question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code-snippets missing from dropdown in Function Editor

See original GitHub issue

What are the steps to reproduce?

Open the function node editor. Start typing “for” as in a for-loop. Press ctrl+space in order to activate code-snippets dropdown.

What happens?

Dropdown is only populated by keywords, variables ect. No code snippet/templates are shown

What do you expect to happen?

Code-snippets should be present in dropdown menu.

As per https://discourse.nodered.org/t/js-editor-code-completion-templates/20863/6 it is due to missing snippet support in the current custom version of the JavaScript Mode.

Please tell us about your environment:

  • [1.0.3 ] Node-RED version:
  • [ v8.17.0] Node.js version:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dceejaycommented, Jan 26, 2020

still pre-coffee

0reactions
knollearycommented, Feb 5, 2020

I’ve added back the javascript snippets to the custom nrjavascript mode we use.

I’ve removed some of the ones that aren’t relevant to the Function node, as well as adding in some NR specific ones:

nodes -> node.send(msg)
clone -> RED.util.cloneMessage(msg)

and others.

Will be in 1.0.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snippets in Visual Studio Code
To create or edit your own snippets, select User Snippets under File > Preferences (Code > Preferences on macOS), and then select the...
Read more >
Missing snippets in IntelliSense - Martin Zikmund
In Visual Studio, go to Tools – Options. Go into Text Editor – C# and select the IntelliSense section. Now check the Snippets...
Read more >
Visual Studio Code user snippets not working - Stack Overflow
Go to settings (Windows/Linux: File > Preferences > Settings, macOS: Code > Preferences > Settings) and type in quick in search box and...
Read more >
Use the Code snippet web part - Microsoft Support
Go to the page where you want to add the Code snippet web part. · If your page is not already in edit...
Read more >
How to create code snippets in Xcode - Sarunw
To edit a snippet, open Code Snippets Library and select a snippet that you want ... token where you can navigate and input...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found