Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lsif-protocol

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lsif-protocol - npm Package Compare versions

Comparing version 0.6.0-next.3 to 0.6.0-next.4

53

lib/protocol.d.ts

@@ -84,3 +84,2 @@ import * as lsp from 'vscode-languageserver-protocol';

event = "$event",
catalogInfo = "catalogInfo",
source = "source",

@@ -468,17 +467,2 @@ capabilities = "capabilities",

}
export interface RepositoryIndexInfo extends RepositoryInfo {
/**
* A commitId if available.
*/
commitId: string;
/**
* The branch name.
*/
branchName: string;
}
export declare namespace RepositoryIndexInfo {
const descriptor: ObjectDescriptor<RepositoryIndexInfo>;
function is(value: any): value is RepositoryInfo;
function property(flags?: PropertyFlags): Property<RepositoryIndexInfo>;
}
export interface Source extends V {

@@ -493,3 +477,3 @@ label: VertexLabels.source;

*/
repository?: RepositoryInfo | RepositoryIndexInfo;
repository?: RepositoryInfo;
}

@@ -500,33 +484,2 @@ export declare namespace Source {

}
export interface CatalogInfo extends V {
label: VertexLabels.catalogInfo;
/**
* The URI of the catalog info. The scheme of a catalog URI should usually
* be `lsif-cat` and the authority should point to the organization's
* http address. And example of a catalogue URI would be something
* like `lsif-cat://microsoft.com/Azure/DevDiv/vscode/vscode-languageserver-protocol`
*/
uri: Uri;
/**
* A user friendly name of the catalogue info.
*/
name: string;
/**
* An optional description.
*/
description?: string;
/**
* When a project is re-index it might want to update its catalog info. If the
* DB managing the index already has an entry for the catalog information the
* value defines how the conflict should be resolved. The meanings are:
*
* - `takeDump`: information of the catalogue should overwrite information in a DB.
* - `takeDB`: information of the catalogue is ignored. The DB values stay as is.
*/
conflictResolution: 'takeDump' | 'takeDB';
}
export declare namespace CatalogueInfo {
const descriptor: VertexDescriptor<CatalogInfo>;
function is(value: any): value is CatalogInfo;
}
/**

@@ -572,3 +525,3 @@ * The LSP capabilities a dump supports

const descriptor: VertexDescriptor<Capabilities>;
function is(value: any): value is CatalogInfo;
function is(value: any): value is Capabilities;
}

@@ -900,3 +853,3 @@ /**

*/
export declare type Vertex = MetaData | Event | Source | CatalogInfo | Capabilities | Project | Document | Moniker | PackageInformation | ResultSet | Range | DocumentSymbolResult | FoldingRangeResult | DocumentLinkResult | DiagnosticResult | DefinitionResult | DeclarationResult | TypeDefinitionResult | HoverResult | ReferenceResult | ImplementationResult;
export declare type Vertex = MetaData | Event | Source | Capabilities | Project | Document | Moniker | PackageInformation | ResultSet | Range | DocumentSymbolResult | FoldingRangeResult | DocumentLinkResult | DiagnosticResult | DefinitionResult | DeclarationResult | TypeDefinitionResult | HoverResult | ReferenceResult | ImplementationResult;
export declare namespace Vertex {

@@ -903,0 +856,0 @@ function getDescriptor(vertexOrVertexLabel: Vertex | VertexLabels): VertexDescriptor<V>;

@@ -7,4 +7,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.HoverResult = exports.ImplementationResult = exports.ReferenceResult = exports.TypeDefinitionResult = exports.DefinitionResult = exports.DeclarationResult = exports.DocumentLinkResult = exports.FoldingRangeResult = exports.DiagnosticResult = exports.DocumentSymbolResult = exports.RangeBasedDocumentSymbol = exports.PackageInformation = exports.Moniker = exports.UniquenessLevel = exports.MonikerKind = exports.Document = exports.Project = exports.Capabilities = exports.CatalogueInfo = exports.Source = exports.RepositoryIndexInfo = exports.RepositoryInfo = exports.MetaData = exports.ToolState = exports.ToolInfo = exports.Location = exports.ReferenceRange = exports.DeclarationRange = exports.DefinitionRange = exports.Range = exports.RangeTag = exports.UnknownTag = exports.ReferenceTag = exports.DefinitionTag = exports.DeclarationTag = exports.RangeTagTypes = exports.ResultSet = exports.MonikerAttachEvent = exports.DocumentEvent = exports.ProjectEvent = exports.Event = exports.EventScope = exports.EventKind = exports.V = exports.VertexDescriptor = exports.VertexLabels = exports.Element = exports.ElementTypes = exports.Id = exports.uinteger = void 0;
exports.Edge = exports.textDocument_implementation = exports.textDocument_references = exports.textDocument_hover = exports.textDocument_typeDefinition = exports.textDocument_definition = exports.textDocument_declaration = exports.textDocument_diagnostic = exports.textDocument_documentLink = exports.textDocument_foldingRange = exports.textDocument_documentSymbol = exports.packageInformation = exports.attach = exports.moniker = exports.item = exports.next = exports.contains = exports.ItemEdgeProperties = exports.E1N = exports.E11 = exports.EdgeDescriptor = exports.Cardinality = exports.EdgeLabels = exports.Vertex = void 0;
exports.EdgeLabels = exports.Vertex = exports.HoverResult = exports.ImplementationResult = exports.ReferenceResult = exports.TypeDefinitionResult = exports.DefinitionResult = exports.DeclarationResult = exports.DocumentLinkResult = exports.FoldingRangeResult = exports.DiagnosticResult = exports.DocumentSymbolResult = exports.RangeBasedDocumentSymbol = exports.PackageInformation = exports.Moniker = exports.UniquenessLevel = exports.MonikerKind = exports.Document = exports.Project = exports.Capabilities = exports.Source = exports.RepositoryInfo = exports.MetaData = exports.ToolState = exports.ToolInfo = exports.Location = exports.ReferenceRange = exports.DeclarationRange = exports.DefinitionRange = exports.Range = exports.RangeTag = exports.UnknownTag = exports.ReferenceTag = exports.DefinitionTag = exports.DeclarationTag = exports.RangeTagTypes = exports.ResultSet = exports.MonikerAttachEvent = exports.DocumentEvent = exports.ProjectEvent = exports.Event = exports.EventScope = exports.EventKind = exports.V = exports.VertexDescriptor = exports.VertexLabels = exports.Element = exports.ElementTypes = exports.Id = exports.uinteger = void 0;
exports.Edge = exports.textDocument_implementation = exports.textDocument_references = exports.textDocument_hover = exports.textDocument_typeDefinition = exports.textDocument_definition = exports.textDocument_declaration = exports.textDocument_diagnostic = exports.textDocument_documentLink = exports.textDocument_foldingRange = exports.textDocument_documentSymbol = exports.packageInformation = exports.attach = exports.moniker = exports.item = exports.next = exports.contains = exports.ItemEdgeProperties = exports.E1N = exports.E11 = exports.EdgeDescriptor = exports.Cardinality = void 0;
const lsp = require("vscode-languageserver-protocol");

@@ -240,3 +240,2 @@ var Is;

VertexLabels["event"] = "$event";
VertexLabels["catalogInfo"] = "catalogInfo";
VertexLabels["source"] = "source";

@@ -599,17 +598,2 @@ VertexLabels["capabilities"] = "capabilities";

})(RepositoryInfo = exports.RepositoryInfo || (exports.RepositoryInfo = {}));
var RepositoryIndexInfo;
(function (RepositoryIndexInfo) {
RepositoryIndexInfo.descriptor = new ObjectDescriptor(Object.assign({}, RepositoryInfo.descriptor.description, {
commitId: new StringProperty(PropertyFlags.optional),
branchName: new StringProperty(PropertyFlags.optional)
}));
function is(value) {
return RepositoryIndexInfo.descriptor.validate(value);
}
RepositoryIndexInfo.is = is;
function property(flags = PropertyFlags.none) {
return new Property(RepositoryIndexInfo.is, flags);
}
RepositoryIndexInfo.property = property;
})(RepositoryIndexInfo = exports.RepositoryIndexInfo || (exports.RepositoryIndexInfo = {}));
var Source;

@@ -620,3 +604,3 @@ (function (Source) {

workspaceRoot: new UriProperty(),
repository: new Property((value) => RepositoryInfo.is(value) || RepositoryIndexInfo.is(value), PropertyFlags.optional)
repository: new Property((value) => RepositoryInfo.is(value), PropertyFlags.optional)
}));

@@ -628,16 +612,2 @@ function is(value) {

})(Source = exports.Source || (exports.Source = {}));
var CatalogueInfo;
(function (CatalogueInfo) {
CatalogueInfo.descriptor = new VertexDescriptor(Object.assign({}, V.descriptor.description, {
label: VertexLabels.property(VertexLabels.catalogInfo),
uri: new StringProperty(),
name: new StringProperty(),
description: new StringProperty(PropertyFlags.optional),
conflictResolution: new Property(value => value === 'takeDump' || value === 'takeDB')
}));
function is(value) {
return CatalogueInfo.descriptor.validate(value);
}
CatalogueInfo.is = is;
})(CatalogueInfo = exports.CatalogueInfo || (exports.CatalogueInfo = {}));
var Capabilities;

@@ -932,3 +902,2 @@ (function (Capabilities) {

descriptors.set(VertexLabels.source, Source.descriptor);
descriptors.set(VertexLabels.catalogInfo, CatalogueInfo.descriptor);
descriptors.set(VertexLabels.project, Project.descriptor);

@@ -935,0 +904,0 @@ descriptors.set(VertexLabels.document, Document.descriptor);

2

package.json
{
"name": "lsif-protocol",
"description": "Typescript implementation of the LSIF protocol",
"version": "0.6.0-next.3",
"version": "0.6.0-next.4",
"author": "Microsoft Corporation",

@@ -6,0 +6,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc