Skip to content

Commit 38ca840

Browse files
committed
refactor: disable sample diagnostic messages from language server
1 parent b584509 commit 38ca840

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

packages/server/src/sampleServer.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ documents.listen(connection);
2929
connection.onInitialize(() => {
3030
return {
3131
capabilities: {
32-
codeActionProvider: true,
33-
textDocumentSync: {
34-
openClose: true,
35-
change: TextDocumentSyncKind.Incremental,
36-
},
37-
executeCommandProvider: {
38-
commands: ['sample.fixMe'],
39-
},
32+
// codeActionProvider: true,
33+
// textDocumentSync: {
34+
// openClose: true,
35+
// change: TextDocumentSyncKind.Incremental,
36+
// },
37+
// executeCommandProvider: {
38+
// commands: ['sample.fixMe'],
39+
// },
4040
},
4141
};
4242
});
@@ -55,13 +55,13 @@ function validate(document: TextDocument): void {
5555
});
5656
}
5757

58-
documents.onDidOpen((event) => {
59-
validate(event.document);
60-
});
58+
// documents.onDidOpen((event) => {
59+
// validate(event.document);
60+
// });
6161

62-
documents.onDidChangeContent((event) => {
63-
validate(event.document);
64-
});
62+
// documents.onDidChangeContent((event) => {
63+
// validate(event.document);
64+
// });
6565

6666
// connection.onCodeAction((params) => {
6767
// const textDocument = documents.get(params.textDocument.uri);

0 commit comments

Comments
 (0)