-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (23 loc) · 762 Bytes
/
index.js
File metadata and controls
28 lines (23 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// server.js
/*
const { createConnection, ProposedFeatures, TextDocuments } = require('vscode-languageserver/node');
const { TextDocument } = require('vscode-languageserver-textdocument');
const connection = createConnection(ProposedFeatures.all);
const documents = new TextDocuments(TextDocument);
documents.onDidChangeContent(change => {
const document = change.document;
// Implement parsing and analyzing code logic here
// Send diagnostics (errors) to the editor using connection.sendDiagnostics()
});
connection.onInitialize(() => {
return {
capabilities: {
textDocumentSync: documents.syncKind,
// Add other capabilities as needed
},
};
});
documents.listen(connection);
connection.listen();
*/
console.log('Hello, X!');