dot-language-support 4.1.4 → 4.2.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/index.mjs +2 -0
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -3185,6 +3185,7 @@ function getCompletions(doc, sourceFile, position) {
|
|
|
3185
3185
|
if (p) switch (p.kind) {
|
|
3186
3186
|
case syntaxKind.NodeId: return getNodeCompletions(symbols);
|
|
3187
3187
|
case syntaxKind.Assignment: return getAssignmentCompletion(p);
|
|
3188
|
+
case syntaxKind.IdEqualsIdStatement: return getAssignmentCompletion(p);
|
|
3188
3189
|
}
|
|
3189
3190
|
}
|
|
3190
3191
|
if (node.flags & syntaxNodeFlags.ContainsErrors || node.end === node.pos) {
|
|
@@ -3193,6 +3194,7 @@ function getCompletions(doc, sourceFile, position) {
|
|
|
3193
3194
|
if (!attribute.parent) throw "sourceFile is not bound";
|
|
3194
3195
|
const parent = attribute.parent;
|
|
3195
3196
|
if (parent.kind === syntaxKind.Assignment) return getAssignmentCompletion(parent);
|
|
3197
|
+
if (parent.kind === syntaxKind.IdEqualsIdStatement) return getAssignmentCompletion(parent);
|
|
3196
3198
|
}
|
|
3197
3199
|
return [];
|
|
3198
3200
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dot-language-support",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Parser and language service for graphviz (dot) files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dot",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"expect": "^30.3.0",
|
|
39
39
|
"oxfmt": "^0.45.0",
|
|
40
40
|
"oxlint": "^1.60.0",
|
|
41
|
-
"oxlint-tsgolint": "^0.
|
|
42
|
-
"tsdown": "^0.21.
|
|
43
|
-
"typescript": "^6.0.
|
|
41
|
+
"oxlint-tsgolint": "^0.21.1",
|
|
42
|
+
"tsdown": "^0.21.9",
|
|
43
|
+
"typescript": "^6.0.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=22"
|