-
Hiya! First off, thanks a lot for this amazing extension, writing docs is a lot more fun with this. My question basically is what command is exactly run for adding it to the dictionary? When I add a word through the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The usual way to execute a quick fix with the keyboard, such as adding a word to the dictionary, is
I think VS Code is currently not exposing the list of quick fixes for a selection in the editor to allow extensions running one of them manually (e.g., by another command that has been triggered by a keyboard shortcut). |
Beta Was this translation helpful? Give feedback.
The usual way to execute a quick fix with the keyboard, such as adding a word to the dictionary, is
Ctrl+.
(Control and period keys),Arrow-Down
, andReturn
.ltex.addToDictionary
is an internal (undocumented) command. All supported commands are documented here. The reason whyltex.addToDictionary
doesn't work for you is that it expects a list of arguments (uri
with the document URI andwords
with the list of words to add). When running the quick fix via the context menu, VS Code supplies the arguments because the language server part (LTEX LS) told it before what values to use in case it wants to run the quick fix. When running it via a keybinding, the arguments are missing, and the comma…