Skip to content

Remove unnecessary calls to didChange #1119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ derivative = "2.1.1"
anyhow = "1.0.32"
thiserror = "1.0.20"
lazy_static = "1.4.0"
tracing = { version = "0.1", features = ["log", "log-always"] }
tracing-log = "0.1.1"
7 changes: 0 additions & 7 deletions autoload/LanguageClient.vim
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ function! LanguageClient#textDocument_hover(...) abort
let l:Callback = get(a:000, 1, v:null)
let l:params = {
\ 'filename': LSP#filename(),
\ 'text': LSP#text(),
\ 'line': LSP#line(),
\ 'character': LSP#character(),
\ 'handle': s:IsFalse(l:Callback),
Expand Down Expand Up @@ -846,7 +845,6 @@ function! LanguageClient#textDocument_references(...) abort
let l:Callback = get(a:000, 1, v:null)
let l:params = {
\ 'filename': LSP#filename(),
\ 'text': LSP#text(),
\ 'line': LSP#line(),
\ 'character': LSP#character(),
\ 'includeDeclaration': v:true,
Expand All @@ -860,7 +858,6 @@ endfunction
function! LanguageClient#textDocument_rename(...) abort
let l:params = {
\ 'filename': LSP#filename(),
\ 'text': LSP#text(),
\ 'line': LSP#line(),
\ 'character': LSP#character(),
\ 'cword': expand('<cword>'),
Expand All @@ -875,7 +872,6 @@ function! LanguageClient#textDocument_documentSymbol(...) abort
let l:Callback = get(a:000, 1, v:null)
let l:params = {
\ 'filename': LSP#filename(),
\ 'text': LSP#text(),
\ 'handle': s:IsFalse(l:Callback),
\ }
call extend(l:params, get(a:000, 0, {}))
Expand All @@ -886,7 +882,6 @@ function! LanguageClient#workspace_symbol(...) abort
let l:Callback = get(a:000, 2, v:null)
let l:params = {
\ 'filename': LSP#filename(),
\ 'text': LSP#text(),
\ 'query': get(a:000, 0, ''),
\ 'handle': s:IsFalse(l:Callback),
\ }
Expand All @@ -898,7 +893,6 @@ function! LanguageClient#textDocument_codeLens(...) abort
let l:Callback = get(a:000, 1, v:null)
let l:params = {
\ 'filename': LSP#filename(),
\ 'text': LSP#text(),
\ 'line': LSP#line(),
\ 'character': LSP#character(),
\ 'handle': s:IsFalse(l:Callback),
Expand Down Expand Up @@ -1023,7 +1017,6 @@ function! LanguageClient#textDocument_documentHighlight(...) abort
let l:Callback = get(a:000, 1, v:null)
let l:params = {
\ 'filename': LSP#filename(),
\ 'text': LSP#text(),
\ 'line': LSP#line(),
\ 'character': LSP#character(),
\ 'handle': s:IsFalse(l:Callback),
Expand Down
19 changes: 19 additions & 0 deletions doc/LanguageClient.txt
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,20 @@ margin, set this setting to 0. Example:
<
Default: 1

2.43 g:LanguageClient_restartOnCrash *g:LanguageClient_restartOnCrash*

If enabled, the client will attempt to restart the server on the event that it
unexpectedly crashes.

Default: 1

2.44 g:LanguageClient_maxRestartRetries *g:LanguageClient_maxRestartRetries*

Max number of times to attempt to recover from a server crash. Each language
handles its own count independently.

Default: 5

==============================================================================
3. Commands *LanguageClientCommands*

Expand Down Expand Up @@ -1094,6 +1108,11 @@ This event is triggered when diagnostics changed.

Triggered after textDocument/didOpen notification is sent to language server.

6.5 LanguageServerCrashed
*LanguageServerCrashed*

This event is triggered when a language server unexpectedly quits.

==============================================================================
7. License *LanguageClientLicense*

Expand Down
Loading