Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
a80edb2e
Commit
a80edb2e
authored
Apr 25, 2021
by
Mark Nauwelaerts
Browse files
lspclient: declarationProvider is now specified in LSP protocol
See also issue
#31
parent
321e1c26
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
a80edb2e
...
...
@@ -2254,8 +2254,7 @@ public:
if
(
server
)
{
const
auto
&
caps
=
server
->
capabilities
();
defEnabled
=
caps
.
definitionProvider
;
// FIXME no real official protocol way to detect, so enable anyway
declEnabled
=
caps
.
declarationProvider
||
true
;
declEnabled
=
caps
.
declarationProvider
;
refEnabled
=
caps
.
referencesProvider
;
implEnabled
=
caps
.
implementationProvider
;
hoverEnabled
=
caps
.
hoverProvider
;
...
...
addons/lspclient/lspclientprotocol.h
View file @
a80edb2e
...
...
@@ -76,7 +76,7 @@ struct LSPServerCapabilities {
LSPCompletionOptions
completionProvider
;
LSPSignatureHelpOptions
signatureHelpProvider
;
bool
definitionProvider
=
false
;
//
FIXME ? clangd un
official extension
// official extension
as of 3.14.0
bool
declarationProvider
=
false
;
bool
referencesProvider
=
false
;
bool
implementationProvider
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment