Skip to content

Commit

Permalink
Merge pull request #1431 from ericdallo/fix-jar-lsp
Browse files Browse the repository at this point in the history
Add jar files as lsp document selectors
  • Loading branch information
PEZ authored Dec 10, 2021
2 parents ba64d07 + 55c73f8 commit 7d83647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changes to Calva.
## [Unreleased]
- Fix: [Babashka Jack-In REPL doesn't show eval errors](https://github.com/BetterThanTomorrow/calva/issues/1413)
- [Inform about conflict with the Clojure extension](https://github.com/BetterThanTomorrow/calva/issues/1427)
- Fix: [Allow LSP features on jar files](https://github.com/BetterThanTomorrow/calva/issues/1421)


## [2.0.228] - 2021-12-02
Expand Down
5 changes: 4 additions & 1 deletion src/lsp/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function createClient(clojureLspPath: string): LanguageClient {
debug: { command: clojureLspPath },
};
const clientOptions: LanguageClientOptions = {
documentSelector: [{ scheme: 'file', language: 'clojure' }],
documentSelector: [
{ scheme: 'file', language: 'clojure' },
{ scheme: 'jar', language: 'clojure' },
],
synchronize: {
configurationSection: 'clojure-lsp',
fileEvents: vscode.workspace.createFileSystemWatcher('**/.clientrc')
Expand Down

0 comments on commit 7d83647

Please sign in to comment.