-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Description
Issue Type: Bug
Hi,
This is a followup to valentjn/vscode-ltex#363 (comment).
It seems like putting the following in keybindings.json:
[
{
"key": "ctrl+shift+q",
"command": "editor.action.codeAction",
"args": {
"kind": "quickfix.ltex.acceptSuggestions"
}
},
{
"key": "ctrl+shift+d",
"command": "editor.action.codeAction",
"args": {
"kind": "quickfix.ltex.addToDictionary"
}
}
]
does work for acceptSuggestions, which is a code action associated to a WorkspaceEdit, and does not for addToDictionary, which is a code action associated to a Command, and produce the No code action for quickfix.ltex.addToDistionary available popup when hit. According to @valentjn, this seems to be a bug of VS Code:
I think that's a bug in VS Code. The difference between
acceptSuggestionsand the other kinds of quick fixes is that the code action corresponding toacceptSuggestionsis associated to aWorkspaceEdit, but the others are associated to aCommand. However, I don't see a reason why VS Code shouldn't be able to run those quick fixes, too. Please refer to microsoft/vscode for this.
Thoughts ?
VS Code version: Code - Insiders 1.65.0-insider (0283cec, 2022-02-08T05:16:42.414Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.88GB (6.90GB free) |
| Process Argv | --folder-uri file:///c%3A/Users/u009192/Documents/project_ggchd/ggchd_paper --crash-reporter-id ba05d066-2a4b-4588-a50c-4c80808f45e6 |
| Screen Reader | no |
| VM | 0% |
Extensions (3)
| Extension | Author (truncated) | Version |
|---|---|---|
| vscode-pull-request-github | Git | 0.36.1 |
| latex-workshop | Jam | 8.23.0 |
| vscode-ltex | val | 13.1.0 |