Replies: 8 comments 1 reply
|
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? |
0 replies
|
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
}); |
1 reply
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. |
0 replies
Thank you for your explanation. :D |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 )
All reactions