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
-
Including:
coc.preferences.formatOnSaveFiletypes
, usecoc.preferences.formatOnSave
instead.coc.preferences.formatOnTypeFiletypes
, usecoc.preferences.formatOnType
instead.colors.filetypes
, usecolors.enable
instead.inlayHint.filetypes
, useinlayHint.enable
instead.semanticTokens.filetypes
, usesemanticTokens.enable
instead.They could be removed in the feature major release, consider update your configuration file.
Beta Was this translation helpful? Give feedback.
All reactions