Replies: 8 comments
-
@fdrag Seems fine to me. 🤔 |
Beta Was this translation helpful? Give feedback.
-
xBeOt1Z9GW.mp4 |
Beta Was this translation helpful? Give feedback.
-
it still not working for me, how to implement string autocompletion myself? |
Beta Was this translation helpful? Give feedback.
-
If you invoke Intellisense explicitly with Control+Space (or Cmd+Space on macOS) it works. What is this from? |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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
const content = `interface env {
a: "abc" | "def";
}
let env: env = {
a: ""
}`;
monaco.editor.create(document.getElementById('container'), {
value: content,
language: 'typescript',
quickSuggestions: true
}); |
Beta Was this translation helpful? Give feedback.
-
const defaults: ValidQuickSuggestionsOptions = {
other: true,
comments: false,
strings: false
}; 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. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your explanation. :D |
Beta Was this translation helpful? Give feedback.
-
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Code
Actual Behavior
help
Expected Behavior
show autocompletion
Additional Context
if not bug then how to implement string completion? (sorry bad english )
Beta Was this translation helpful? Give feedback.
All reactions