-
Notifications
You must be signed in to change notification settings - Fork 3.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] autocompletion does not work inside strings #2883
Comments
@fdrag Seems fine to me. 🤔 |
xBeOt1Z9GW.mp4 |
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? |
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
}); |
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. |
Thank you for your explanation. :D |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 )
The text was updated successfully, but these errors were encountered: