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.

Javascript does not honor wordBasedSuggestions = false

See original GitHub issue

monaco-editor version: v0.20.0

ISSUE: Can we have suggest any word suggestions turned off? It confuses. Below repro in playground:

function a() { let myVar; }
myV| // CTRL + SPACE here should not suggest myVar as type any-word

NOTE: This works in Typescript - only Javascript has the issue. It says its fixed here but its not: https://github.com/microsoft/monaco-editor/issues/907). I assume the wordBasedSuggestions is meant to turn this off.

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
AndersMadcommented, Nov 4, 2021

TIP: this annoying bug can be fixed with option suggest: { showFiles: false } - yes, file 🙄

0reactions
hedietcommented, Jul 24, 2021

Duplicate of #2136.

See https://github.com/microsoft/monaco-editor/issues/2136#issuecomment-886025174.

Monaco is not doing word based suggestions - they are comming from the JavaScript language service.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid completion items when using dots in ... - GitHub
I was only able to reproduce this when registering a completion item ... Javascript does not honor wordBasedSuggestions = false #1980.
Read more >
Disable word based suggestion in Visual Studio Code
I just want code suggestion. I tried "editor.wordBasedSuggestions": false , but no luck. How to change that ? Thanks. Example: Example.
Read more >
User and Workspace Settings - Visual Studio Code
When you search using the Search bar, it will not only show and highlight ... Errors due to incorrect setting names or JSON...
Read more >
Element.ariaHidden - Web APIs - MDN Web Docs
In this example the aria-hidden attribute on the element with an ID of hidden is set to "true". Using ariaHidden we update the...
Read more >
Language-specific indentation settings in VS Code
When I'm working with Python I like four space indents, but for JavaScript or HTML I like two space indents. Today I figured...
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