Skip to content

Commit

Permalink
VSCode: Synchronise File Events
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthi-chaud committed Nov 12, 2024
1 parent 51367f5 commit f96b929
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ The follow binaries should be in your `PATH`:
- `lambdananas-language-server`

Go [here](https://github.com/Arthi-chaud/lambdananas-language-server) for installation instruction

## Changelog

### 0.1.0

- Send File Events to Language Server
4 changes: 2 additions & 2 deletions vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lambdananas-coding-style-checker",
"displayName": "Lambdananas for VSCode",
"description": "VSCode Extension for the Lambdananas Coding Style Checker",
"version": "0.0.1",
"version": "0.1.0",
"engines": {
"vscode": "^1.95.0"
},
Expand Down
5 changes: 3 additions & 2 deletions vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
env,
window,
OutputChannel,
languages,
} from "vscode";

import {
Expand Down Expand Up @@ -138,7 +137,9 @@ export function activateForFolder(
const pattern = folder ? `${folder.uri.fsPath}/**/*` : "**/*";
const clientOptions: LanguageClientOptions = {
documentSelector: [{ scheme: "file", language: "haskell", pattern }],
synchronize: {},
synchronize: {
fileEvents: workspace.createFileSystemWatcher("**/*.hs")
},
outputChannel,
outputChannelName: clientName,
diagnosticCollectionName: clientName,
Expand Down

0 comments on commit f96b929

Please sign in to comment.