@likec4/language-server 0.54.0 → 0.56.0
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/dist/module.d.ts +2 -2
- package/dist/module.js +7 -7
- package/package.json +9 -9
package/dist/module.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Rpc } from './Rpc';
|
|
1
|
+
import { type DefaultSharedModuleContext, type LangiumServices, type LangiumSharedServices, type Module, type PartialLangiumServices, WorkspaceCache } from 'langium';
|
|
3
2
|
import { LikeC4CodeLensProvider, LikeC4DocumentHighlightProvider, LikeC4DocumentLinkProvider, LikeC4DocumentSymbolProvider, LikeC4HoverProvider, LikeC4SemanticTokenProvider } from './lsp';
|
|
4
3
|
import { FqnIndex, LikeC4ModelBuilder, LikeC4ModelLocator, LikeC4ModelParser } from './model';
|
|
5
4
|
import { LikeC4ScopeComputation, LikeC4ScopeProvider } from './references';
|
|
5
|
+
import { Rpc } from './Rpc';
|
|
6
6
|
import { LikeC4WorkspaceManager, NodeKindProvider, WorkspaceSymbolProvider } from './shared';
|
|
7
7
|
interface LikeC4AddedSharedServices {
|
|
8
8
|
lsp: {
|
package/dist/module.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalizeError } from "@likec4/core";
|
|
2
2
|
import {
|
|
3
|
-
EmptyFileSystem,
|
|
4
|
-
WorkspaceCache,
|
|
5
3
|
createDefaultModule,
|
|
6
4
|
createDefaultSharedModule,
|
|
7
|
-
|
|
5
|
+
EmptyFileSystem,
|
|
6
|
+
inject,
|
|
7
|
+
WorkspaceCache
|
|
8
8
|
} from "langium";
|
|
9
|
-
import { Rpc } from "./Rpc.js";
|
|
10
9
|
import { LikeC4GeneratedModule, LikeC4GeneratedSharedModule } from "./generated/module.js";
|
|
11
10
|
import { logger } from "./logger.js";
|
|
12
11
|
import {
|
|
@@ -19,6 +18,7 @@ import {
|
|
|
19
18
|
} from "./lsp/index.js";
|
|
20
19
|
import { FqnIndex, LikeC4ModelBuilder, LikeC4ModelLocator, LikeC4ModelParser } from "./model/index.js";
|
|
21
20
|
import { LikeC4ScopeComputation, LikeC4ScopeProvider } from "./references/index.js";
|
|
21
|
+
import { Rpc } from "./Rpc.js";
|
|
22
22
|
import { LikeC4WorkspaceManager, NodeKindProvider, WorkspaceSymbolProvider } from "./shared/index.js";
|
|
23
23
|
import { registerValidationChecks } from "./validation/index.js";
|
|
24
24
|
const LikeC4SharedModule = {
|
|
@@ -65,9 +65,9 @@ export function createLanguageServices(context) {
|
|
|
65
65
|
connection.telemetry.logEvent({ eventName: "error", error: arg });
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const error = normalizeError(arg);
|
|
69
69
|
original(error);
|
|
70
|
-
connection.telemetry.logEvent({ eventName: "error", error: message });
|
|
70
|
+
connection.telemetry.logEvent({ eventName: "error", error: error.stack ?? error.message });
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
const moduleContext = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/language-server",
|
|
3
3
|
"description": "LikeC4 Language Server",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.56.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
7
7
|
"homepage": "https://likec4.dev",
|
|
@@ -50,32 +50,32 @@
|
|
|
50
50
|
"test": "vitest run"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@likec4/core": "0.
|
|
54
|
-
"@likec4/graph": "0.
|
|
53
|
+
"@likec4/core": "0.56.0",
|
|
54
|
+
"@likec4/graph": "0.56.0",
|
|
55
55
|
"debounce-fn": "^6.0.0",
|
|
56
56
|
"langium": "^2.1.3",
|
|
57
57
|
"object-hash": "^3.0.0",
|
|
58
58
|
"p-debounce": "^4.0.0",
|
|
59
59
|
"rambdax": "^9.1.1",
|
|
60
|
-
"remeda": "^1.
|
|
60
|
+
"remeda": "^1.40.1",
|
|
61
61
|
"strip-indent": "^4.0.0",
|
|
62
|
-
"type-fest": "^4.
|
|
62
|
+
"type-fest": "^4.10.2",
|
|
63
63
|
"ufo": "^1.3.2",
|
|
64
64
|
"vscode-languageserver": "9.0.1",
|
|
65
65
|
"vscode-languageserver-protocol": "3.17.5",
|
|
66
66
|
"vscode-uri": "3.0.8"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@types/node": "^20.
|
|
69
|
+
"@types/node": "^20.11.17",
|
|
70
70
|
"@types/object-hash": "^3.0.6",
|
|
71
71
|
"execa": "^8.0.1",
|
|
72
72
|
"langium-cli": "^2.1.0",
|
|
73
|
-
"npm-run-
|
|
73
|
+
"npm-run-all2": "^5.0.2",
|
|
74
74
|
"typescript": "^5.3.3",
|
|
75
75
|
"unbuild": "^2.0.0",
|
|
76
|
-
"vitest": "^1.
|
|
76
|
+
"vitest": "^1.2.2"
|
|
77
77
|
},
|
|
78
|
-
"packageManager": "yarn@4.0
|
|
78
|
+
"packageManager": "yarn@4.1.0",
|
|
79
79
|
"volta": {
|
|
80
80
|
"extends": "../../package.json"
|
|
81
81
|
}
|