dot-language-support
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -28,6 +28,9 @@ "use strict"; | ||
} | ||
if (node.kind === types_1.SyntaxKind.AttributeContainer && ((_d = prevOffsetNodeParent) === null || _d === void 0 ? void 0 : _d.kind) === types_1.SyntaxKind.EdgeStatement) { | ||
if (node.kind === types_1.SyntaxKind.AttributeContainer) { | ||
const openingBracket = node.openBracket; | ||
if (openingBracket.end - 1 > offset - 1) { | ||
return getNodeCompletions(symbols); | ||
const exclusions = ((_d = prevOffsetNode) === null || _d === void 0 ? void 0 : _d.kind) === types_1.SyntaxKind.TextIdentifier && prevOffsetNode.symbol | ||
? [prevOffsetNode.symbol.name] | ||
: []; | ||
return getNodeCompletions(symbols, exclusions); | ||
} | ||
@@ -111,5 +114,8 @@ } | ||
} | ||
function getNodeCompletions(symbols) { | ||
function getNodeCompletions(symbols, exlucdedSymbols) { | ||
var _a; | ||
const res = new Array(); | ||
for (const [key, value] of symbols) { | ||
if ((_a = exlucdedSymbols) === null || _a === void 0 ? void 0 : _a.includes(key)) | ||
continue; | ||
let kind = lst.CompletionItemKind.Variable; | ||
@@ -116,0 +122,0 @@ const a = value.firstMention.parent; |
{ | ||
"name": "dot-language-support", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"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
183420
5374