You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] autocompletion does not work inside strings #2883
At a surface level, the obvious issue is that the trigger characters in Visual Studio Code are not the same as Monaco's (per above). We can see Monaco does not invoke Intellisense as aggressively as VS Code.
Another issue is that quickSuggestions seems to be false when it supposedly defaults to being true. Turning it on explicitly seems to fix your problem. Please try the code below, fdrag.
I think this is the issue. Quick suggestions are enabled by default...they're just not enabled by default if the text caret is inside a comment or a string. The comment should be updated to reflect this in my opinion.
Activity
rcjsuen commentedon Jan 9, 2022
fdrag Seems fine to me. 🤔
fdrag commentedon Jan 9, 2022
xBeOt1Z9GW.mp4
fdrag commentedon Jan 9, 2022
it still not working for me, how to implement string autocompletion myself?
i want to copy this

rcjsuen commentedon Jan 9, 2022
If you invoke Intellisense explicitly with Control+Space (or Cmd+Space on macOS) it works.
What is this from?
fdrag commentedon Jan 9, 2022
it is from visual studio code, im trying to making my own monaco editor for testing purposes but im not knowing how to implement those
how to automatic invoke intellisense when in qoutes?
rcjsuen commentedon Jan 9, 2022
monaco-editor/src/typescript/languageFeatures.ts
Lines 435 to 438 in a385674
monaco-editor/website/typedoc/monaco.d.ts
Lines 3056 to 3060 in a385674
quickSuggestionsseems to befalsewhen it supposedly defaults to being true. Turning it on explicitly seems to fix your problem. Please try the code below, fdrag.rcjsuen commentedon Jan 9, 2022
I think this is the issue. Quick suggestions are enabled by default...they're just not enabled by default if the text caret is inside a comment or a string. The comment should be updated to reflect this in my opinion.
fdrag commentedon Jan 9, 2022
Thank you for your explanation. :D