-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for injecting the source code path (to be analyzed) in the extension metadata. The `Location` field will continue to be injected. There are providers that do not honor the Location field but instead expect a `workspaceFolders` array populated. This is an inconsistency in providers. To support this, the location needs to be templated. A new `location` variable in the `builtin` namespace may be used by the extension writer. Example: ``` metadata: provider: address: localhost:$(PORT) initConfig: - providerSpecificConfig: lspServerName: generic lspServerPath: /usr/local/bin/pylsp workspaceFolders: - $(builtin.location) <-------------- HERE dependencyFolders: - examples/python/__pycache__ - examples/python/.venv name: python ``` --------- Signed-off-by: Jeff Ortel <[email protected]>
- Loading branch information
Showing
7 changed files
with
237 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,9 @@ fmt: $(GOIMPORTS) | |
vet: | ||
go vet $(PKG) | ||
|
||
test: | ||
go test -count=1 -v ./cmd/... | ||
|
||
# Ensure goimports installed. | ||
$(GOIMPORTS): | ||
go install golang.org/x/tools/cmd/[email protected] |
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
Oops, something went wrong.