@neo4j-cypher/language-server 2.0.0-next.30 → 2.0.0-next.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cypher-language-server +192 -193
- package/dist/server.js +5 -3
- package/package.json +25 -25
- package/src/server.ts +3 -2
package/dist/server.js
CHANGED
|
@@ -61,7 +61,7 @@ class SymbolFetcher {
|
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
catch
|
|
64
|
+
catch {
|
|
65
65
|
//eslint-disable-next-line
|
|
66
66
|
console.log('Symbol table calculation failed');
|
|
67
67
|
}
|
|
@@ -104,7 +104,7 @@ connection.onInitialize(() => {
|
|
|
104
104
|
// Tell the client what features does the server support
|
|
105
105
|
completionProvider: {
|
|
106
106
|
resolveProvider: false,
|
|
107
|
-
triggerCharacters: ['.', ':', '{', '$', ')', ' ', ']'],
|
|
107
|
+
triggerCharacters: ['.', ':', '{', '$', ')', ' ', ']', '-', '<'],
|
|
108
108
|
},
|
|
109
109
|
semanticTokensProvider: {
|
|
110
110
|
documentSelector: [{ language: 'cypher' }],
|
|
@@ -165,7 +165,9 @@ connection.onNotification('connectionUpdated', (connectionSettings) => {
|
|
|
165
165
|
neo4jSchemaPoller.events.once('schemaFetched', relintAllDocuments);
|
|
166
166
|
});
|
|
167
167
|
connection.onNotification('fetchSymbolTable', (params) => {
|
|
168
|
-
neo4jSchemaPoller.events.once('schemaFetched',
|
|
168
|
+
neo4jSchemaPoller.events.once('schemaFetched',
|
|
169
|
+
// oxlint-disable-next-line typescript-eslint/no-meaningless-void-operator
|
|
170
|
+
void symbolFetcher.queueSymbolJob(params.query, params.uri, params.schema));
|
|
169
171
|
});
|
|
170
172
|
connection.onNotification('updateParameters', (parameters) => {
|
|
171
173
|
neo4jSchemaPoller.setParameters(parameters);
|
package/package.json
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-cypher/language-server",
|
|
3
|
+
"version": "2.0.0-next.31",
|
|
3
4
|
"description": "Cypher Language Server",
|
|
4
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cypher",
|
|
7
|
+
"language server",
|
|
8
|
+
"neo4j"
|
|
9
|
+
],
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/neo4j/cypher-language-support/issues"
|
|
12
|
+
},
|
|
5
13
|
"license": "Apache-2.0",
|
|
14
|
+
"author": "Neo4j Inc.",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git://github.com/neo4j/cypher-language-support.git"
|
|
18
|
+
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"cypher-language-server": "./dist/cypher-language-server"
|
|
21
|
+
},
|
|
6
22
|
"files": [
|
|
7
23
|
"./dist/cypher-language-server",
|
|
8
24
|
"./src",
|
|
@@ -11,43 +27,27 @@
|
|
|
11
27
|
"LICENSE.md",
|
|
12
28
|
"CHANGELOG.md"
|
|
13
29
|
],
|
|
14
|
-
"keywords": [
|
|
15
|
-
"neo4j",
|
|
16
|
-
"cypher",
|
|
17
|
-
"language server"
|
|
18
|
-
],
|
|
19
|
-
"version": "2.0.0-next.30",
|
|
20
30
|
"main": "./dist/server.js",
|
|
21
31
|
"types": "src/server.ts",
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git://github.com/neo4j/cypher-language-support.git"
|
|
25
|
-
},
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://github.com/neo4j/cypher-language-support/issues"
|
|
28
|
-
},
|
|
29
|
-
"engineStrict": true,
|
|
30
|
-
"engines": {
|
|
31
|
-
"node": ">=24.11.1"
|
|
32
|
-
},
|
|
33
|
-
"bin": {
|
|
34
|
-
"cypher-language-server": "./dist/cypher-language-server"
|
|
35
|
-
},
|
|
36
32
|
"dependencies": {
|
|
33
|
+
"axios": "^1.9.0",
|
|
37
34
|
"lodash.debounce": "^4.0.8",
|
|
38
35
|
"neo4j-driver": "6.0.1",
|
|
39
36
|
"vscode-languageserver": "^8.1.0",
|
|
40
37
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
41
38
|
"workerpool": "^9.3.3",
|
|
42
|
-
"
|
|
43
|
-
"@neo4j-cypher/language-support": "2.0.0-next.
|
|
44
|
-
"@neo4j-cypher/
|
|
45
|
-
"@neo4j-cypher/lint-worker": "1.10.1-next.6"
|
|
39
|
+
"@neo4j-cypher/query-tools": "2.0.0-next.30",
|
|
40
|
+
"@neo4j-cypher/language-support": "2.0.0-next.30",
|
|
41
|
+
"@neo4j-cypher/lint-worker": "1.10.1-next.7"
|
|
46
42
|
},
|
|
47
43
|
"devDependencies": {
|
|
48
44
|
"@types/lodash.debounce": "^4.0.9",
|
|
49
45
|
"copyfiles": "^2.4.1"
|
|
50
46
|
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=24.11.1"
|
|
49
|
+
},
|
|
50
|
+
"engineStrict": true,
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsc -b && pnpm bundle && pnpm make-executable && pnpm copy-lint-worker",
|
|
53
53
|
"copy-lint-worker": "copyfiles -u 4 ../lint-worker/dist/cjs/lintWorker.cjs dist/",
|
package/src/server.ts
CHANGED
|
@@ -97,7 +97,7 @@ class SymbolFetcher {
|
|
|
97
97
|
}),
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
-
} catch
|
|
100
|
+
} catch {
|
|
101
101
|
//eslint-disable-next-line
|
|
102
102
|
console.log('Symbol table calculation failed');
|
|
103
103
|
}
|
|
@@ -154,7 +154,7 @@ connection.onInitialize(() => {
|
|
|
154
154
|
// Tell the client what features does the server support
|
|
155
155
|
completionProvider: {
|
|
156
156
|
resolveProvider: false,
|
|
157
|
-
triggerCharacters: ['.', ':', '{', '$', ')', ' ', ']'],
|
|
157
|
+
triggerCharacters: ['.', ':', '{', '$', ')', ' ', ']', '-', '<'],
|
|
158
158
|
},
|
|
159
159
|
semanticTokensProvider: {
|
|
160
160
|
documentSelector: [{ language: 'cypher' }],
|
|
@@ -245,6 +245,7 @@ connection.onNotification(
|
|
|
245
245
|
}) => {
|
|
246
246
|
neo4jSchemaPoller.events.once(
|
|
247
247
|
'schemaFetched',
|
|
248
|
+
// oxlint-disable-next-line typescript-eslint/no-meaningless-void-operator
|
|
248
249
|
void symbolFetcher.queueSymbolJob(
|
|
249
250
|
params.query,
|
|
250
251
|
params.uri,
|