Configurations for LSP features using filetypes are deprecated. #4335
chemzqm
started this conversation in
Show and tell
Replies: 2 comments 8 replies
-
|
Hi @chemzqm I've just update my configuration file from: {
"coc.preferences.formatOnSaveFiletypes": ["typescriptreact", "typescript", "php"],
}to {
"[typescriptreact][typescript][php]": {
"coc.preferences.formatOnSave": true
}
}but it doesn't work. Is my configuration correct ? |
Beta Was this translation helpful? Give feedback.
8 replies
-
|
Maybe this is obvious but I didn't understand when first looking at it. This is the first time I've come across the I found it helps to have these two pieces of documentation next to each other.
And you can combine those two to have for example: "[rust][lua][c]": {
"coc.preferences.formatOnSave": true
}Its also worth noting that this deprecated config is still common out in the wild, for example
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Including:
coc.preferences.formatOnSaveFiletypes, usecoc.preferences.formatOnSaveinstead.coc.preferences.formatOnTypeFiletypes, usecoc.preferences.formatOnTypeinstead.colors.filetypes, usecolors.enableinstead.inlayHint.filetypes, useinlayHint.enableinstead.semanticTokens.filetypes, usesemanticTokens.enableinstead.They could be removed in the feature major release, consider update your configuration file.
Beta Was this translation helpful? Give feedback.
All reactions