CSpell is not respecting the words from the global VSCode settings file
I have all my words that should be considered correct in my global VSCode settings file (AppData\Roaming...):
"cSpell.userWords": [
...
]
After the recent update, none of these words are no longer taken into account by the extension.
Please make sure cSpell.userWords isn't in a .vscode/settings.json file. VS Code will override the global setting.
The user setting:
Will show Also modified in Workspace.
If you see Also modified in Workspace, then the value is getting overwritten.
The best expected behavior is to unite/concatenate information from different sources. Using both information from:
file.code-workspace->cSpell.*(being local configuration);.vscode/settings.json(being local configuration);- and user profile
cSpell.*(being global configuration).
Having local information (file.code-workspace) with priority in case of conflicts.
edit.: I listed the priority order of the settings in case of conflicts
original text (pt-BR)
O melhor comportamento esperado é unir/concatenar as informações das diversas origens. Usando tanto as informações de:
file.code-workspace->cSpell.*(sendo configuração local);.vscode/settings.json(sendo configuração local);- e do perfil do usuário
cSpell.*(sendo configuração global).
Tendo as informações locais (file.code-workspace) com prioridade em caso de conflitos.
edit.: Enumerei a ordem de prioridade das configurações em caso de conflitos
I tried to reinstall the recent version again, and I've noticed two issues:
- After the extension host is restarted, I get an error
No view is registered with id: cSpellIssuesViewByFile - I have enabled CSpell logs I found this:
2024-11-27 15:34:51.041 [error] Failed to find document for vscode-userdata:/c%3A/Users/y**********h/AppData/Roaming/Code/User/settings.json
The error above probably explains why my custom words are not working, but the extension has no issue locating the config file 3.0.1 (I'm currently using 3.0.1 right now)
p.s. Not sure what c%3A in the file path is...
@GYuriy,
I tried to reinstall the recent version again, and I've noticed two issues:
- After the extension host is restarted, I get an error
No view is registered with id: cSpellIssuesViewByFile
No view is registered with id: cSpellIssuesViewByFileis a known bug in VS Code. And doesn't impact the operation of the spell checker.
- I have enabled CSpell logs I found this:
2024-11-27 15:34:51.041 [error] Failed to find document for vscode-userdata:/c%3A/Users/y**********h/AppData/Roaming/Code/User/settings.jsonThe error above probably explains why my custom
wordsare not working, but the extension has no issue locating the config file3.0.1(I'm currently using3.0.1right now)p.s. Not sure what
c%3Ain the file path is...
This shouldn't be an issue. It shows up when trying to edit the global settings. The spell checker asks VS Code for the settings. I'll address this issue, but it is unrelated to what you are seeing.
c%3A is c:.
Something else is blocking the setting from getting through.
@djedu28,
The best expected behavior is to unite/concatenate information from different sources. Using both information from:
file.code-workspace->cSpell.*(being local configuration);.vscode/settings.json(being local configuration);- and user profile
cSpell.*(being global configuration).Having local information (
file.code-workspace) with priority in case of conflicts.edit.: I listed the priority order of the settings in case of conflicts
Extensions have no control over the order in which the settings are merged. See VS Code Settings Precedence
@Jason3S
Extensions have no control over the order in which the settings are merged. See VS Code Settings Precedence
I thank you for the information
@Jason3S I'm still trying to figure out what else could change between 3.0.1 and 4+ and caused the issue
@GYuriy,
I'm not sure if it has fixed the issue, but please try the pre-release version.