@neo4j-cypher/react-codemirror 2.0.0-next.24 → 2.0.0-next.25
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 +15 -0
- package/dist/src/CypherEditor.d.ts +0 -1
- package/dist/src/CypherEditor.js +7 -4
- package/dist/src/CypherEditor.js.map +1 -1
- package/dist/src/CypherEditor.test.js +3 -0
- package/dist/src/CypherEditor.test.js.map +1 -1
- package/dist/src/e2e_tests/autoCompletion.spec.js +15 -1
- package/dist/src/e2e_tests/autoCompletion.spec.js.map +1 -1
- package/dist/src/e2e_tests/e2eUtils.js +1 -1
- package/dist/src/e2e_tests/e2eUtils.js.map +1 -1
- package/dist/src/e2e_tests/signatureHelp.spec.js +1 -1
- package/dist/src/e2e_tests/signatureHelp.spec.js.map +1 -1
- package/dist/src/e2e_tests/syntaxValidation.spec.js +2 -2
- package/dist/src/e2e_tests/syntaxValidation.spec.js.map +1 -1
- package/dist/src/lang-cypher/langCypher.d.ts +0 -1
- package/dist/src/lang-cypher/langCypher.js.map +1 -1
- package/dist/src/lang-cypher/lintWorker.mjs +146 -140
- package/dist/src/lang-cypher/syntaxValidation.js +8 -1
- package/dist/src/lang-cypher/syntaxValidation.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/CypherEditor.test.tsx +4 -0
- package/src/CypherEditor.tsx +28 -28
- package/src/e2e_tests/autoCompletion.spec.tsx +26 -1
- package/src/e2e_tests/e2eUtils.ts +1 -1
- package/src/e2e_tests/signatureHelp.spec.tsx +0 -1
- package/src/e2e_tests/syntaxValidation.spec.tsx +1 -3
- package/src/lang-cypher/langCypher.ts +0 -1
- package/src/lang-cypher/lintWorker.mjs +146 -140
- package/src/lang-cypher/syntaxValidation.ts +9 -1
|
@@ -4,6 +4,7 @@ import { DiagnosticSeverity, DiagnosticTag } from 'vscode-languageserver-types';
|
|
|
4
4
|
import workerpool from 'workerpool';
|
|
5
5
|
import type { CypherConfig } from './langCypher';
|
|
6
6
|
import type { LinterTask, LintWorker } from '@neo4j-cypher/lint-worker';
|
|
7
|
+
import { parserWrapper } from '@neo4j-cypher/language-support';
|
|
7
8
|
|
|
8
9
|
const WorkerURL = new URL('./lintWorker.mjs', import.meta.url).pathname;
|
|
9
10
|
|
|
@@ -38,7 +39,14 @@ export const cypherLinter: (config: CypherConfig) => Extension = (config) =>
|
|
|
38
39
|
);
|
|
39
40
|
const result = await lastSemanticJob;
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
if (result.symbolTables) {
|
|
43
|
+
parserWrapper.setSymbolsInfo({
|
|
44
|
+
query,
|
|
45
|
+
symbolTables: result.symbolTables,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const a: Diagnostic[] = result.diagnostics.map((diagnostic) => {
|
|
42
50
|
return {
|
|
43
51
|
from: diagnostic.offsets.start,
|
|
44
52
|
to: diagnostic.offsets.end,
|