Skip to content

Commit 87e78e4

Browse files
Lint and Format codebase
1 parent 30049f7 commit 87e78e4

5 files changed

Lines changed: 929 additions & 783 deletions

File tree

src/effektLanguageClient.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ import { LanguageClient } from 'vscode-languageclient/node';
33
/*
44
* Overrides the `registerFeature` method to disable the built-in inlay hints feature.
55
*
6-
* By default the LanguageClient provides inlay hints automatically, which does not allow
6+
* By default the LanguageClient provides inlay hints automatically, which does not allow
77
* for filtering Inlay Hints based on their 'data'-field. We use the 'data'-field to allow
88
* the user to select which inlay hints the extension should show.
9-
*
9+
*
1010
* By doing this, we retain full control over how inlay hints are displayed, allowing us to
1111
* implement custom logic.
1212
*
1313
* Note: This approach relies on identifying the inlay hints feature by its constructor name
1414
* (`InlayHintsFeature`). If the LSP implementation changes, this logic may need to be updated.
1515
*/
1616
export class EffektLanguageClient extends LanguageClient {
17-
public registerFeature(feature: any) {
18-
if (feature.constructor.name === 'InlayHintsFeature') {
19-
return;
20-
}
21-
super.registerFeature(feature);
17+
public registerFeature(feature: any) {
18+
if (feature.constructor.name === 'InlayHintsFeature') {
19+
return;
2220
}
23-
}
21+
super.registerFeature(feature);
22+
}
23+
}

0 commit comments

Comments
 (0)