dot-language-support
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -30,3 +30,3 @@ "use strict"; | ||
|| (node.kind == types_1.SyntaxKind.CommaToken && parent && parent.kind === types_1.SyntaxKind.Assignment)) { | ||
return getAttributeCompletions(); | ||
return getAttributeCompletions(position); | ||
} | ||
@@ -90,7 +90,15 @@ const prevNode = checker_1.findNodeAtOffset(g, node.pos - 1, true); | ||
} | ||
function getAttributeCompletions() { | ||
function getAttributeCompletions(posistion) { | ||
const kind = lst.CompletionItemKind.Property; | ||
return languageFacts.attributes.map(a => ({ | ||
const range = { | ||
start: posistion, | ||
end: posistion, | ||
}; | ||
return languageFacts.attributes.map(label => ({ | ||
kind, | ||
label: util_1.escapeIdentifierText(a), | ||
label, | ||
textEdit: { | ||
range, | ||
newText: util_1.escapeIdentifierText(label) + "=", | ||
} | ||
})); | ||
@@ -97,0 +105,0 @@ } |
{ | ||
"name": "dot-language-support", | ||
"version": "1.3.1", | ||
"version": "1.3.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
182392
5355