-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[editor] annoying auto-suggestion when writing comments #5227
Comments
Have been looking into this and from what I can see the problem is within packages/monaco/src/browser/monaco-snippet-suggest-provider.ts. I can intercept when the snippets are provided but I am having difficulty working out if it is within a comment block. The only feasible way I can see to do this is to the class name of the div what is being written... any other ideas? |
@sauny I took a look at the hint you provided and saw that For test purposes updating the code to return |
@sauny I wonder if we can detect when we have a |
@vince-fugnitto I thought that, the comments get registered in the grammar-contribution files but I see nowhere where they get used. If I can work out where theia decides to set the CSS for comments, I should be able to set something to say it is in comment mode... but I can't find a way to do it.... |
I don't quite understand what you mean about the CSS suggestion. |
I meant the Monaco editor sets the css for a comment (it goes green). But I can't work out where that happens. |
I noticed this problem, it is caused by the configuration of monaco. // type in monaco editor
quickSuggestions?: boolean | {
other: boolean;
comments: boolean;
strings: boolean;
};
// editor preference
'editor.quickSuggestions': {
'type': 'boolean',
'default': true,
'description': 'Enable quick suggestions (shadow suggestions)'
}, The value |
@BroKun can you handle it please? Please could you also reference a corresponding default configuration in VS Code, just to check that it is so. |
Yes, I am doing this. |
…pse-theia#5227 eclipse-theia#5228 Signed-off-by: Brokun <brokun0128@gmail.com>
…pse-theia#5227 eclipse-theia#5228 Signed-off-by: Brokun <brokun0128@gmail.com>
@vince-fugnitto This seems to have been resolved after #5931 and Monaco upgraded to 0.17.0. |
I forgot to close, thank you! |
Description
There is an annoying auto-suggestion feature when writing comments.
I do not expect suggestions when writing comments as it is intrusive to the experience.
In comparison, here's vscode:
The text was updated successfully, but these errors were encountered: