mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Fix default supported capabilities (#1379)
* add missing supported capabilities * sort alphabetically * set `dynamicRegistration` to `v:false` for adding capabilities * add `prepareSupportDefaultBehavior` to `rename` capability
This commit is contained in:
committed by
GitHub
parent
2bb97d2938
commit
a85b71bfc8
@@ -484,6 +484,9 @@ function! lsp#default_get_supported_capabilities(server_info) abort
|
||||
" Sorted alphabetically
|
||||
return {
|
||||
\ 'textDocument': {
|
||||
\ 'callHierarchy': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ },
|
||||
\ 'codeAction': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ 'codeActionLiteralSupport': {
|
||||
@@ -548,12 +551,20 @@ function! lsp#default_get_supported_capabilities(server_info) abort
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ 'linkSupport' : v:true
|
||||
\ },
|
||||
\ 'publishDiagnostics': {
|
||||
\ 'relatedInformation': v:true,
|
||||
\ },
|
||||
\ 'rangeFormatting': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ },
|
||||
\ 'references': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ },
|
||||
\ 'rename': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ 'prepareSupport': v:true,
|
||||
\ 'prepareSupportDefaultBehavior': 1
|
||||
\ },
|
||||
\ 'semanticTokens': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ 'requests': {
|
||||
@@ -576,8 +587,11 @@ function! lsp#default_get_supported_capabilities(server_info) abort
|
||||
\ 'multilineTokenSupport': v:false,
|
||||
\ 'serverCancelSupport': v:false
|
||||
\ },
|
||||
\ 'publishDiagnostics': {
|
||||
\ 'relatedInformation': v:true,
|
||||
\ 'signatureHelp': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ },
|
||||
\ 'symbol': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ },
|
||||
\ 'synchronization': {
|
||||
\ 'didSave': v:true,
|
||||
@@ -585,13 +599,13 @@ function! lsp#default_get_supported_capabilities(server_info) abort
|
||||
\ 'willSave': v:false,
|
||||
\ 'willSaveWaitUntil': v:false,
|
||||
\ },
|
||||
\ 'typeHierarchy': {
|
||||
\ 'dynamicRegistration': v:false
|
||||
\ },
|
||||
\ 'typeDefinition': {
|
||||
\ 'dynamicRegistration': v:false,
|
||||
\ 'linkSupport' : v:true
|
||||
\ },
|
||||
\ 'typeHierarchy': {
|
||||
\ 'dynamicRegistration': v:false
|
||||
\ },
|
||||
\ },
|
||||
\ 'window': {
|
||||
\ 'workDoneProgress': g:lsp_work_done_progress_enabled ? v:true : v:false,
|
||||
|
||||
Reference in New Issue
Block a user