dot-language-support
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -10,3 +10,3 @@ "use strict"; | ||
function getCompletions(doc, sourceFile, position) { | ||
var _a, _b, _c, _d, _e; | ||
var _a, _b, _c, _d, _e, _f; | ||
const symbols = sourceFile.symbols; | ||
@@ -34,8 +34,14 @@ if (!symbols) | ||
? [prevOffsetNode.symbol.name] | ||
: []; | ||
: undefined; | ||
return getNodeCompletions(symbols, exclusions); | ||
} | ||
} | ||
if (node.kind === types_1.SyntaxKind.TextIdentifier && ((_e = parent) === null || _e === void 0 ? void 0 : _e.kind) === types_1.SyntaxKind.NodeId) { | ||
const exclusions = node.symbol | ||
? [node.symbol.name] | ||
: undefined; | ||
return getNodeCompletions(symbols, exclusions); | ||
} | ||
if (node.kind === types_1.SyntaxKind.AttributeContainer | ||
|| (node.kind == types_1.SyntaxKind.CommaToken && ((_e = parent) === null || _e === void 0 ? void 0 : _e.kind) === types_1.SyntaxKind.Assignment)) { | ||
|| (node.kind == types_1.SyntaxKind.CommaToken && ((_f = parent) === null || _f === void 0 ? void 0 : _f.kind) === types_1.SyntaxKind.Assignment)) { | ||
return getAttributeCompletions(position); | ||
@@ -42,0 +48,0 @@ } |
{ | ||
"name": "dot-language-support", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Parser and language service for graphviz (dot) files", | ||
@@ -5,0 +5,0 @@ "author": "Niklas Mollenhauer", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183743
5380