This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using go-languageserver, also use code completion feature (#1607)
* When using go-languageserver, also use code completion Instead of using go-code, use go-languageserver for providing code completion results when enabled. Solves #1593 * Add naive feature detect for language server feature In case executing the binary with an unknown flag does not yield the -gocodecompletion flag in the help output, we assume the version installed is out of date and prompt for updating * Also consider case where -help might be added at some point in the future * Pass func snippet completion pref, fall back to non-server completion when unsupported * Check supported language server flags and filter before passing * Use initializationOptions for triggering langserver based features * Revert changes to langserver detection, merge onReady callbacks, show message about outdated langserver version * Refactoring * stricter checks
- Loading branch information
1 parent
fbf84b8
commit 372b0fe
Showing
4 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters