lsif-protocol
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -422,9 +422,2 @@ import * as lsp from 'vscode-languageserver-protocol'; | ||
} | ||
/** | ||
* The LSP defines the result of a `textDocument/definition` request as | ||
* `Location | Location[]. In the SIP we allow to use range ids as well. | ||
*/ | ||
export declare type DeclarationResultTypeSingle = RangeId | lsp.Location; | ||
export declare type DeclarationResultTypeMany = (RangeId | lsp.Location)[]; | ||
export declare type DeclarationResultType = DeclarationResultTypeSingle | DeclarationResultTypeMany; | ||
export interface DeclarationResult extends V { | ||
@@ -438,12 +431,5 @@ /** | ||
*/ | ||
result: DeclarationResultType; | ||
result?: (RangeId | lsp.Location)[]; | ||
} | ||
/** | ||
* The LSP defines the result of a `textDocument/definition` request as | ||
* `Location | Location[]. In the SIP we allow to use range ids as well. | ||
*/ | ||
export declare type DefinitionResultTypeSingle = RangeId | lsp.Location; | ||
export declare type DefinitionResultTypeMany = (RangeId | lsp.Location)[]; | ||
export declare type DefinitionResultType = DefinitionResultTypeSingle | DefinitionResultTypeMany; | ||
/** | ||
* A vertex representing a definition result. | ||
@@ -459,12 +445,5 @@ */ | ||
*/ | ||
result: DefinitionResultType; | ||
result?: (RangeId | lsp.Location)[]; | ||
} | ||
/** | ||
* The LSP defines the result of a `textDocument/typeDefinition` request as | ||
* `Location | Location[]. In the SIP we allow to use range ids as well. | ||
*/ | ||
export declare type TypeDefinitionResultTypeSingle = RangeId | lsp.Location; | ||
export declare type TypeDefinitionResultTypeMany = (RangeId | lsp.Location)[]; | ||
export declare type TypeDefinitionResultType = TypeDefinitionResultTypeSingle | TypeDefinitionResultTypeMany; | ||
/** | ||
* A vertex representing a type definition result. | ||
@@ -480,3 +459,3 @@ */ | ||
*/ | ||
result: TypeDefinitionResultType; | ||
result?: (RangeId | lsp.Location)[]; | ||
} | ||
@@ -599,6 +578,7 @@ /** | ||
export declare enum ItemEdgeProperties { | ||
declaration = "declaration", | ||
definition = "definition", | ||
reference = "reference", | ||
referenceResults = "referenceResults" | ||
declarations = "declarations", | ||
definitions = "definitions", | ||
references = "references", | ||
referenceResults = "referenceResults", | ||
implementationResults = "implementationResults" | ||
} | ||
@@ -605,0 +585,0 @@ export interface ItemEdge<S extends V, T extends V> extends E<S, T, EdgeLabels.item> { |
@@ -88,7 +88,8 @@ "use strict"; | ||
(function (ItemEdgeProperties) { | ||
ItemEdgeProperties["declaration"] = "declaration"; | ||
ItemEdgeProperties["definition"] = "definition"; | ||
ItemEdgeProperties["reference"] = "reference"; | ||
ItemEdgeProperties["declarations"] = "declarations"; | ||
ItemEdgeProperties["definitions"] = "definitions"; | ||
ItemEdgeProperties["references"] = "references"; | ||
ItemEdgeProperties["referenceResults"] = "referenceResults"; | ||
ItemEdgeProperties["implementationResults"] = "implementationResults"; | ||
})(ItemEdgeProperties = exports.ItemEdgeProperties || (exports.ItemEdgeProperties = {})); | ||
//# sourceMappingURL=protocol.js.map |
{ | ||
"name": "lsif-protocol", | ||
"version": "0.2.1", | ||
"description": "Typescript implementation of the LSIF protocol", | ||
"version": "0.2.2", | ||
"author": "Microsoft Corporation", | ||
@@ -23,9 +23,9 @@ "license": "MIT", | ||
"scripts": { | ||
"compile": "node ../build/bin/tsc -p ./tsconfig.json", | ||
"compile:prod": "node ../build/bin/tsc -p ./tsconfig.prod.json", | ||
"watch": "node ../build/bin/tsc -w -p ./tsconfig.json", | ||
"compile": "node ../build/bin/tsc -b ./tsconfig.json", | ||
"compile:publish": "node ../build/bin/tsc -p ./tsconfig.publish.json", | ||
"watch": "node ../build/bin/tsc -b ./tsconfig.json -w", | ||
"clean": "node ../node_modules/rimraf/bin.js lib", | ||
"prepublishOnly": "npm run clean && npm run compile:prod", | ||
"prepublishOnly": "npm run clean && npm run compile:publish", | ||
"postpublish": "node ../build/bin/post-publish.js" | ||
} | ||
} | ||
} |
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
8
29946
811