@likec4/language-server 0.47.0 → 0.48.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractSemanticTokenProvider, type AstNode, type SemanticTokenAcceptor } from 'langium';
|
|
2
2
|
export declare class LikeC4SemanticTokenProvider extends AbstractSemanticTokenProvider {
|
|
3
|
-
protected highlightElement(node: AstNode, acceptor: SemanticTokenAcceptor): void;
|
|
3
|
+
protected highlightElement(node: AstNode, acceptor: SemanticTokenAcceptor): void | undefined | 'prune';
|
|
4
4
|
private highlightAstElement;
|
|
5
5
|
private highlightView;
|
|
6
6
|
}
|
|
@@ -2,6 +2,7 @@ import { AbstractSemanticTokenProvider } from "langium";
|
|
|
2
2
|
import { SemanticTokenModifiers, SemanticTokenTypes } from "vscode-languageserver-protocol";
|
|
3
3
|
import { ast } from "../ast.js";
|
|
4
4
|
export class LikeC4SemanticTokenProvider extends AbstractSemanticTokenProvider {
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
5
6
|
highlightElement(node, acceptor) {
|
|
6
7
|
if (ast.isRelation(node) && "kind" in node) {
|
|
7
8
|
acceptor({
|
|
@@ -23,6 +24,7 @@ export class LikeC4SemanticTokenProvider extends AbstractSemanticTokenProvider {
|
|
|
23
24
|
cst: node.$cstNode,
|
|
24
25
|
type: SemanticTokenTypes.variable
|
|
25
26
|
});
|
|
27
|
+
return "prune";
|
|
26
28
|
}
|
|
27
29
|
if (ast.isWildcardExpr(node) && node.$cstNode) {
|
|
28
30
|
acceptor({
|
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.48.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
7
7
|
"homepage": "https://likec4.dev",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test": "vitest run"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@likec4/core": "0.
|
|
54
|
-
"@likec4/graph": "0.
|
|
53
|
+
"@likec4/core": "0.48.0",
|
|
54
|
+
"@likec4/graph": "0.48.0",
|
|
55
55
|
"langium": "^2.1.2",
|
|
56
56
|
"object-hash": "^3.0.0",
|
|
57
57
|
"p-debounce": "^4.0.0",
|