Skip to content

Commit 1f659c1

Browse files
committed
"query" param overwrite.
Close #23.
1 parent cb03425 commit 1f659c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugin/LanguageClient.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ endfunction
267267
let g:LanguageClient_workspaceSymbolResults = []
268268
function! LanguageClient_workspace_symbol(...) abort
269269
let l:params = {
270+
\ 'buftype': &buftype,
271+
\ 'languageId': &filetype,
272+
\ 'query': '',
270273
\ 'handle': v:true,
271274
\ }
272275
call extend(l:params, a:0 >= 1 ? a:1 : {})

src/languageclient.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ impl ILanguageClient for Arc<Mutex<State>> {
17951795
return Ok(Value::Null);
17961796
}
17971797

1798-
let query = "".to_owned();
1798+
let (query,): (String,) = self.gather_args(&[("query", "")], params)?;
17991799
let result = self.call(
18001800
Some(&languageId),
18011801
lsp::request::WorkspaceSymbol::METHOD,

0 commit comments

Comments
 (0)