dot-language-support
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -117,2 +117,3 @@ "use strict"; | ||
bind(node.leftId); | ||
bind(node.rightId); | ||
if (node.rightId && !checker_1.nodeContainsErrors(node.rightId)) { | ||
@@ -123,3 +124,2 @@ if (isAttributeName("color", node.leftId)) { | ||
} | ||
bind(node.rightId); | ||
if (node.terminator) | ||
@@ -159,2 +159,3 @@ bind(node.terminator); | ||
ensureMemberSymbol(node.leftId, carrierIdentifier); | ||
bind(node.rightId); | ||
if (node.rightId && !checker_1.nodeContainsErrors(node.rightId)) { | ||
@@ -165,3 +166,2 @@ if (isAttributeName("color", node.leftId)) { | ||
} | ||
bind(node.rightId); | ||
if (node.terminator) | ||
@@ -168,0 +168,0 @@ bind(node.terminator); |
@@ -6,2 +6,2 @@ import * as lst from "vscode-languageserver-types"; | ||
export declare function getDocumentColors(doc: DocumentLike, sourceFile: SourceFile): ColorInformation[] | undefined; | ||
export declare function getColorRepresentation(doc: DocumentLike, sourceFile: SourceFile, color: Color, range: lst.Range): ColorPresentation[] | undefined; | ||
export declare function getColorRepresentations(doc: DocumentLike, sourceFile: SourceFile, color: Color, range: lst.Range): ColorPresentation[] | undefined; |
@@ -13,3 +13,3 @@ "use strict"; | ||
exports.getDocumentColors = getDocumentColors; | ||
function getColorRepresentation(doc, sourceFile, color, range) { | ||
function getColorRepresentations(doc, sourceFile, color, range) { | ||
if (!color || !range) | ||
@@ -20,7 +20,7 @@ return undefined; | ||
{ | ||
label: hexColor, | ||
label: '"' + hexColor + '"', | ||
} | ||
]; | ||
} | ||
exports.getColorRepresentation = getColorRepresentation; | ||
exports.getColorRepresentations = getColorRepresentations; | ||
function colorTableToColorInformation(doc, sf, colors) { | ||
@@ -27,0 +27,0 @@ if (!colors || colors.size === 0) |
@@ -22,3 +22,3 @@ import * as lst from "vscode-languageserver-types"; | ||
getDocumentColors(doc: DocumentLike, sourceFile: SourceFile): ColorInformation[] | undefined; | ||
getColorRepresentation(doc: DocumentLike, sourceFile: SourceFile, color: Color, range: lst.Range): ColorPresentation[] | undefined; | ||
getColorRepresentations(doc: DocumentLike, sourceFile: SourceFile, color: Color, range: lst.Range): ColorPresentation[] | undefined; | ||
getCodeActions(doc: DocumentLike, sourceFile: SourceFile, range: lst.Range, context: lst.CodeActionContext): lst.Command[] | undefined; | ||
@@ -25,0 +25,0 @@ executeCommand(doc: DocumentLike, sourceFile: SourceFile, command: Omit<lst.Command, "title">): CommandApplication | undefined; |
@@ -31,3 +31,3 @@ "use strict"; | ||
getDocumentColors: colorProvider_1.getDocumentColors, | ||
getColorRepresentation: colorProvider_1.getColorRepresentation, | ||
getColorRepresentations: colorProvider_1.getColorRepresentations, | ||
getCodeActions: codeAction_1.getCodeActions, | ||
@@ -34,0 +34,0 @@ executeCommand: codeAction_1.executeCommand, |
{ | ||
"name": "dot-language-support", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"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
177772