dot-language-support
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -20,9 +20,13 @@ "use strict"; | ||
return []; | ||
const prevOffsetNode = checker_1.findNodeAtOffset(g, offset - 1, true); | ||
const parent = node.parent; | ||
const prevOffsetNodeParent = prevOffsetNode ? prevOffsetNode.parent : undefined; | ||
if ((parent && parent.parent && checker_1.isEdgeStatement(parent.parent) | ||
|| | ||
(prevOffsetNodeParent && prevOffsetNodeParent.parent && checker_1.isEdgeStatement(prevOffsetNodeParent.parent)))) { | ||
return getNodeCompletions(symbols); | ||
} | ||
const prevNode = checker_1.findNodeAtOffset(g, node.pos - 1, true); | ||
if (!prevNode) | ||
return []; | ||
if (parent && parent.parent && checker_1.isEdgeStatement(parent.parent)) { | ||
return getNodeCompletions(symbols); | ||
} | ||
if (__1.isIdentifierNode(prevNode)) { | ||
@@ -29,0 +33,0 @@ const p = prevNode.parent; |
{ | ||
"name": "dot-language-support", | ||
"version": "1.2.2", | ||
"version": "1.2.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
177871
5086