-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Unable to get quick fixes in problems view to work #54803
Comments
This is fishy |
We have a great developer community over on slack where extension authors help each other. This is a great place for you to ask questions and find support. Happy Coding! |
Hm.. Anyway, it's actually not the I also thought that the example may be too isolated, and that an action.edit = new WorkspaceEdit();
action.edit.replace(document.uri, new vscode.Range(0, 0, 1, 0), "Foo"); ...the quick fix still can't be triggered from the problems view: |
Sorry, I missed that this is our |
Ok, I know now. The context menu filters for code actions of the quickFix-kind. So adding |
@mjbvz I think we should print a message when we drop code actions on the client because of filtering/request constraints |
Oh, interesting. I had assumed that So I guess the default kind is actually |
@Gama11 Yes the default for quick fixes is empty. This is because the editor lightbulb isn't tied to quick fixes specifically but also will show up if there are refactorings and other action types available. For quick fixes in the problems view however, we do request that extensions only provide quick fixes and will filter out anything that isn't marked as such @jrieken I can add some debug logging here but it will be noisy since many code action providers return commands or return |
Yeah, only when a code action is returned. We can also use the log service for this |
Fixes microsoft#54803 Adds a loggin warning when a code action provider returns code actions that will be dropped. Warn in the the following cases: - A provider returns code actions (not commands) - And a specific code action type is requested. - And the returned code actions either don't set kind or are of the wrong kind
* Add extension logging when returned code action will be dropped Fixes #54803 Adds a loggin warning when a code action provider returns code actions that will be dropped. Warn in the the following cases: - A provider returns code actions (not commands) - And a specific code action type is requested. - And the returned code actions either don't set kind or are of the wrong kind * Use log service * Include extension id in warning
Issue Type: Bug
VS Code version: Code - Insiders 1.26.0-insider (26e5a55, 2018-07-20T05:18:39.569Z)
OS version: Windows_NT x64 10.0.17134
After trying to support #52627 in the Haxe language server didn't work as expected, I tried with a simple VSCode extension, but I didn't have much luck here either. I'm setting the
diagnostics
property of theCodeAction
as required according to #52627 (comment) - is there anything else I'm missing?The text was updated successfully, but these errors were encountered: