Skip to content

Commit 05b65bf

Browse files
committed
Add setting to disable ElmLS diagnostics
1 parent 2628e32 commit 05b65bf

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

client/src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface IClientSettings {
3737
elmTestPath: string;
3838
trace: { server: string };
3939
elmAnalyseTrigger: ElmAnalyseTrigger;
40+
disableElmLSDiagnostics: boolean;
4041
}
4142

4243
const clients: Map<string, LanguageClient> = new Map<string, LanguageClient>();
@@ -148,6 +149,7 @@ export function activate(context: ExtensionContext): void {
148149
moveFunctionRefactoringSupport: true,
149150
exposeUnexposeSupport: true,
150151
},
152+
disableElmLSDiagnostics: config.disableElmLSDiagnostics,
151153
}
152154
: {},
153155
middleware: new CodeLensResolver(),

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
],
129129
"default": "change",
130130
"description": "When do you want the extension to run elm-analyse? Might need a restart to take effect."
131+
},
132+
"elmLS.disableElmLSDiagnostics": {
133+
"scope": "window",
134+
"type": "boolean",
135+
"default": false,
136+
"description": "Disable linting diagnostics from the language server."
131137
}
132138
}
133139
}

server

Submodule server updated 69 files

0 commit comments

Comments
 (0)