vscode-languageserver-protocol
Advanced tools
Comparing version 3.17.0-next.5 to 3.17.0-next.6
@@ -51,16 +51,26 @@ import type { integer } from 'vscode-languageserver-types'; | ||
type $DiagnosticClientCapabilities = diag.$DiagnosticClientCapabilities; | ||
type DiagnosticParams = diag.DiagnosticParams; | ||
type DiagnosticOptions = diag.DiagnosticOptions; | ||
type DiagnosticRegistrationOptions = diag.DiagnosticRegistrationOptions; | ||
type $DiagnosticServerCapabilities = diag.$DiagnosticServerCapabilities; | ||
type DiagnosticPullModeFlags = diag.DiagnosticPullModeFlags; | ||
const DiagnosticPullModeFlags: typeof diag.DiagnosticPullModeFlags; | ||
type DiagnosticTriggerKind = diag.DiagnosticTriggerKind; | ||
const DiagnosticTriggerKind: typeof diag.DiagnosticTriggerKind; | ||
type DiagnosticContext = diag.DiagnosticContext; | ||
type DocumentDiagnosticParams = diag.DocumentDiagnosticParams; | ||
type DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData; | ||
const DiagnosticServerCancellationData: typeof diag.DiagnosticServerCancellationData; | ||
type DiagnosticList = diag.DiagnosticList; | ||
const DiagnosticRequest: typeof diag.DiagnosticRequest; | ||
type DocumentDiagnosticReportKind = diag.DocumentDiagnosticReportKind; | ||
const DocumentDiagnosticReportKind: typeof diag.DocumentDiagnosticReportKind; | ||
type FullDocumentDiagnosticReport = diag.FullDocumentDiagnosticReport; | ||
type RelatedFullDocumentDiagnosticReport = diag.RelatedFullDocumentDiagnosticReport; | ||
type UnchangedDocumentDiagnosticReport = diag.UnchangedDocumentDiagnosticReport; | ||
type RelatedUnchangedDocumentDiagnosticReport = diag.RelatedUnchangedDocumentDiagnosticReport; | ||
type DocumentDiagnosticReport = diag.DocumentDiagnosticReport; | ||
type DocumentDiagnosticReportPartialResult = diag.DocumentDiagnosticReportPartialResult; | ||
const DocumentDiagnosticRequest: typeof diag.DocumentDiagnosticRequest; | ||
type PreviousResultId = diag.PreviousResultId; | ||
type WorkspaceDiagnosticParams = diag.WorkspaceDiagnosticParams; | ||
type WorkspaceFullDocumentDiagnosticReport = diag.WorkspaceFullDocumentDiagnosticReport; | ||
type WorkspaceUnchangedDocumentDiagnosticReport = diag.WorkspaceUnchangedDocumentDiagnosticReport; | ||
type WorkspaceDocumentDiagnosticReport = diag.WorkspaceDocumentDiagnosticReport; | ||
type WorkspaceDiagnosticReport = diag.WorkspaceDiagnosticReport; | ||
type WorkspaceDiagnosticReportPartialResult = diag.WorkspaceDiagnosticReportPartialResult; | ||
const WorkspaceDiagnosticRequest: typeof diag.WorkspaceDiagnosticRequest; | ||
const DiagnosticRefreshRequest: typeof diag.DiagnosticRefreshRequest; | ||
} |
@@ -68,8 +68,8 @@ "use strict"; | ||
(function (Proposed) { | ||
Proposed.DiagnosticPullModeFlags = diag.DiagnosticPullModeFlags; | ||
Proposed.DiagnosticTriggerKind = diag.DiagnosticTriggerKind; | ||
Proposed.DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData; | ||
Proposed.DiagnosticRequest = diag.DiagnosticRequest; | ||
Proposed.DocumentDiagnosticReportKind = diag.DocumentDiagnosticReportKind; | ||
Proposed.DocumentDiagnosticRequest = diag.DocumentDiagnosticRequest; | ||
Proposed.WorkspaceDiagnosticRequest = diag.WorkspaceDiagnosticRequest; | ||
Proposed.DiagnosticRefreshRequest = diag.DiagnosticRefreshRequest; | ||
})(Proposed = exports.Proposed || (exports.Proposed = {})); | ||
//# sourceMappingURL=api.js.map |
@@ -1,3 +0,3 @@ | ||
import { RequestHandler0, RequestHandler } from 'vscode-jsonrpc'; | ||
import { TextDocumentIdentifier, Diagnostic } from 'vscode-languageserver-types'; | ||
import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc'; | ||
import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types'; | ||
import { ProtocolRequestType0, ProtocolRequestType } from './messages'; | ||
@@ -15,128 +15,305 @@ import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol'; | ||
dynamicRegistration?: boolean; | ||
/** | ||
* Whether the clients supports related documents for document diagnostic pulls. | ||
*/ | ||
relatedDocumentSupport?: boolean; | ||
} | ||
export interface $DiagnosticClientCapabilities { | ||
textDocument?: TextDocumentClientCapabilities & { | ||
diagnostic: DiagnosticClientCapabilities; | ||
diagnostic?: DiagnosticClientCapabilities; | ||
}; | ||
} | ||
/** | ||
* Diagnostic options. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare namespace DiagnosticPullModeFlags { | ||
export interface DiagnosticOptions extends WorkDoneProgressOptions { | ||
/** | ||
* Trigger the diagnostic pull on open only. | ||
* An optional identifier under which the diagnostics are | ||
* managed by the client. | ||
*/ | ||
const onOpen: 1; | ||
identifier?: string; | ||
/** | ||
* Trigger the diagnostic pull on type only | ||
* Whether the language has inter file dependencies meaning that | ||
* editing code in one file can result in a different diagnostic | ||
* set in another file. Inter file dependencies are common for | ||
* most programming languages and typically uncommon for linters. | ||
*/ | ||
const onType: 2; | ||
interFileDependencies: boolean; | ||
/** | ||
* Trigger the diagnostic pull on save only | ||
* The server provides support for workspace diagnostics as well. | ||
*/ | ||
const onSave: 4; | ||
workspaceDiagnostics: boolean; | ||
} | ||
/** | ||
* Diagnostic registration options. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticRegistrationOptions extends TextDocumentRegistrationOptions, DiagnosticOptions, StaticRegistrationOptions { | ||
} | ||
export interface $DiagnosticServerCapabilities { | ||
diagnosticProvider?: DiagnosticOptions; | ||
} | ||
/** | ||
* Cancellation data returned from a diagnostic request. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticServerCancellationData { | ||
retriggerRequest: boolean; | ||
} | ||
/** | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare namespace DiagnosticServerCancellationData { | ||
function is(value: any): value is DiagnosticServerCancellationData; | ||
} | ||
/** | ||
* Parameters of the document diagnostic request. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DocumentDiagnosticParams extends WorkDoneProgressParams, PartialResultParams { | ||
/** | ||
* Trigger the diagnostic pull on open, type and save. | ||
* The text document. | ||
*/ | ||
const all: number; | ||
function is(value: any): value is DiagnosticPullModeFlags; | ||
function isOpen(value: number): boolean; | ||
function isType(value: number): boolean; | ||
function isSave(value: number): boolean; | ||
textDocument: TextDocumentIdentifier; | ||
/** | ||
* The additional identifier provided during registration. | ||
*/ | ||
identifier?: string; | ||
/** | ||
* The result id of a previous response if provided. | ||
*/ | ||
previousResultId?: string; | ||
} | ||
export declare type DiagnosticPullModeFlags = number; | ||
/** | ||
* The document diagnostic report kinds. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare namespace DiagnosticTriggerKind { | ||
export declare enum DocumentDiagnosticReportKind { | ||
/** | ||
* The request got triggered through some API | ||
* A diagnostic report with a full | ||
* set of problems. | ||
*/ | ||
const Invoked: 1; | ||
full = "full", | ||
/** | ||
* The request got triggered because the user opened a document. | ||
* A report indicating that the last | ||
* returned report is still accurate. | ||
*/ | ||
const Opened: 2; | ||
unChanged = "unChanged" | ||
} | ||
/** | ||
* A diagnostic report with a full set of problems. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface FullDocumentDiagnosticReport { | ||
/** | ||
* The request got triggered because the user typed in a document. | ||
* A full document diagnostic report. | ||
*/ | ||
const Typed: 3; | ||
kind: DocumentDiagnosticReportKind.full; | ||
/** | ||
* The request got triggered because the user saved a document. | ||
* An optional result id. If provided it will | ||
* be sent on the next diagnostic request for the | ||
* same document. | ||
*/ | ||
const Saved: 4; | ||
function is(value: any): value is DiagnosticTriggerKind; | ||
resultId?: string; | ||
/** | ||
* The actual items. | ||
*/ | ||
items: Diagnostic[]; | ||
} | ||
export declare type DiagnosticTriggerKind = 1 | 2 | 3 | 4; | ||
/** | ||
* A full diagnostic report with a set of related documents. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticContext { | ||
triggerKind: DiagnosticTriggerKind; | ||
export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport { | ||
/** | ||
* Diagnostics of related documents. This information is useful | ||
* in programming languages where code in a file A can generate | ||
* diagnostics in a file B which A depends on. An example of | ||
* such a language is C/C++ where marco definitions in a file | ||
* a.cpp and result in errors in a header file b.hpp. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
relatedDocuments?: { | ||
[uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; | ||
}; | ||
} | ||
/** | ||
* A diagnostic report indicating that the last returned | ||
* report is still accurate. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticParams extends WorkDoneProgressParams, PartialResultParams { | ||
export interface UnchangedDocumentDiagnosticReport { | ||
/** | ||
* The text document. | ||
* A document diagnostic report indicating | ||
* no changes to the last result. A server can | ||
* only return `unchanged` if result ids are | ||
* provided. | ||
*/ | ||
textDocument: TextDocumentIdentifier; | ||
kind: DocumentDiagnosticReportKind.unChanged; | ||
/** | ||
* Additional context information. | ||
* A result id which will be sent on the next | ||
* diagnostic request for the same document. | ||
*/ | ||
context: DiagnosticContext; | ||
resultId: string; | ||
} | ||
/** | ||
* An unchanged diagnostic report with a set of related documents. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticOptions extends WorkDoneProgressOptions { | ||
export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport { | ||
/** | ||
* An optional identifier under which the diagnostics are | ||
* managed by the client. | ||
* Diagnostics of related documents. This information is useful | ||
* in programming languages where code in a file A can generate | ||
* diagnostics in a file B which A depends on. An example of | ||
* such a language is C/C++ where marco definitions in a file | ||
* a.cpp and result in errors in a header file b.hpp. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
relatedDocuments?: { | ||
[uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; | ||
}; | ||
} | ||
/** | ||
* The result of a document diagnostic pull request. A report can | ||
* either be a full report containing all diagnostics for the | ||
* requested document or a unchanged report indicating that nothing | ||
* has changed in terms of diagnostics in comparison to the last | ||
* pull request. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticReport | RelatedUnchangedDocumentDiagnosticReport; | ||
/** | ||
* A partial result for a document diagnostic report. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DocumentDiagnosticReportPartialResult { | ||
relatedDocuments: { | ||
[uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; | ||
}; | ||
} | ||
/** | ||
* The document diagnostic request definition. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare namespace DocumentDiagnosticRequest { | ||
const method: 'textDocument/diagnostic'; | ||
const type: ProtocolRequestType<DocumentDiagnosticParams, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DiagnosticServerCancellationData, DiagnosticRegistrationOptions>; | ||
const partialResult: ProgressType<DocumentDiagnosticReportPartialResult>; | ||
type HandlerSignature = RequestHandler<DocumentDiagnosticParams, DocumentDiagnosticReport, void>; | ||
} | ||
/** | ||
* A previous result id in a workspace pull request. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare type PreviousResultId = { | ||
/** | ||
* The URI for which the client knowns a | ||
* result id. | ||
*/ | ||
uri: DocumentUri; | ||
/** | ||
* The value of the previous result id. | ||
*/ | ||
value: string; | ||
}; | ||
/** | ||
* Parameters of the workspace diagnostic request. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, PartialResultParams { | ||
/** | ||
* The additional identifier provided during registration. | ||
*/ | ||
identifier?: string; | ||
/** | ||
* An optional mode indicating when the client should | ||
* pull. Defaults to `onOpen & onType`. | ||
* The currently known diagnostic reports with their | ||
* previous result ids. | ||
*/ | ||
mode?: DiagnosticPullModeFlags; | ||
previousResultIds: PreviousResultId[]; | ||
} | ||
/** | ||
* A full document diagnostic report for a workspace diagnostic result. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticRegistrationOptions extends TextDocumentRegistrationOptions, DiagnosticOptions, StaticRegistrationOptions { | ||
export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport { | ||
/** | ||
* The URI for which diagnostic information is reported. | ||
*/ | ||
uri: DocumentUri; | ||
/** | ||
* The version number for which the diagnostics are reported. | ||
* If the document is not marked as open `null` can be provided. | ||
*/ | ||
version: integer | null; | ||
} | ||
export interface $DiagnosticServerCapabilities { | ||
diagnosticProvider?: boolean | DiagnosticOptions; | ||
} | ||
/** | ||
* An unchanged document diagnostic report for a workspace diagnostic result. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticServerCancellationData { | ||
retriggerRequest: boolean; | ||
export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport { | ||
/** | ||
* The URI for which diagnostic information is reported. | ||
*/ | ||
uri: DocumentUri; | ||
/** | ||
* The version number for which the diagnostics are reported. | ||
* If the document is not marked as open `null` can be provided. | ||
*/ | ||
version: integer | null; | ||
} | ||
/** | ||
* A workspace diagnostic document report. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare namespace DiagnosticServerCancellationData { | ||
function is(value: any): value is DiagnosticServerCancellationData; | ||
export declare type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDiagnosticReport | WorkspaceUnchangedDocumentDiagnosticReport; | ||
/** | ||
* A workspace diagnostic report. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface WorkspaceDiagnosticReport { | ||
items: WorkspaceDocumentDiagnosticReport[]; | ||
} | ||
/** | ||
* The result of a diagnostic pull request. | ||
* A partial result for a workspace diagnostic report. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export interface DiagnosticList { | ||
items: Diagnostic[]; | ||
export interface WorkspaceDiagnosticReportPartialResult { | ||
items: WorkspaceDocumentDiagnosticReport[]; | ||
} | ||
/** | ||
* The workspace diagnostic request definition. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
export declare namespace DiagnosticRequest { | ||
const method: 'textDocument/diagnostic'; | ||
const type: ProtocolRequestType<DiagnosticParams, DiagnosticList, Diagnostic[], DiagnosticServerCancellationData, DiagnosticRegistrationOptions>; | ||
type HandlerSignature = RequestHandler<DiagnosticParams, DiagnosticList | null, void>; | ||
export declare namespace WorkspaceDiagnosticRequest { | ||
const method: 'workspace/diagnostic'; | ||
const type: ProtocolRequestType<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, DiagnosticServerCancellationData, void>; | ||
const partialResult: ProgressType<WorkspaceDiagnosticReportPartialResult>; | ||
type HandlerSignature = RequestHandler<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport | null, void>; | ||
} | ||
/** | ||
* The diagnostic refresh request definition. | ||
* | ||
* @since 3.17.0 - proposed state | ||
@@ -143,0 +320,0 @@ */ |
"use strict"; | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) TypeFox and others. All rights reserved. | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DiagnosticRefreshRequest = exports.DiagnosticRequest = exports.DiagnosticServerCancellationData = exports.DiagnosticTriggerKind = exports.DiagnosticPullModeFlags = void 0; | ||
exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0; | ||
const vscode_jsonrpc_1 = require("vscode-jsonrpc"); | ||
const Is = require("./utils/is"); | ||
@@ -13,83 +14,53 @@ const messages_1 = require("./messages"); | ||
*/ | ||
var DiagnosticPullModeFlags; | ||
(function (DiagnosticPullModeFlags) { | ||
/** | ||
* Trigger the diagnostic pull on open only. | ||
*/ | ||
DiagnosticPullModeFlags.onOpen = 1; | ||
/** | ||
* Trigger the diagnostic pull on type only | ||
*/ | ||
DiagnosticPullModeFlags.onType = 2; | ||
/** | ||
* Trigger the diagnostic pull on save only | ||
*/ | ||
DiagnosticPullModeFlags.onSave = 4; | ||
/** | ||
* Trigger the diagnostic pull on open, type and save. | ||
*/ | ||
DiagnosticPullModeFlags.all = DiagnosticPullModeFlags.onOpen | DiagnosticPullModeFlags.onType | DiagnosticPullModeFlags.onSave; | ||
var DiagnosticServerCancellationData; | ||
(function (DiagnosticServerCancellationData) { | ||
function is(value) { | ||
return DiagnosticPullModeFlags.onType <= value && value <= DiagnosticPullModeFlags.all; | ||
const candidate = value; | ||
return candidate && Is.boolean(candidate.retriggerRequest); | ||
} | ||
DiagnosticPullModeFlags.is = is; | ||
function isOpen(value) { | ||
return (value & DiagnosticPullModeFlags.onOpen) !== 0; | ||
} | ||
DiagnosticPullModeFlags.isOpen = isOpen; | ||
function isType(value) { | ||
return (value & DiagnosticPullModeFlags.onType) !== 0; | ||
} | ||
DiagnosticPullModeFlags.isType = isType; | ||
function isSave(value) { | ||
return (value & DiagnosticPullModeFlags.onSave) !== 0; | ||
} | ||
DiagnosticPullModeFlags.isSave = isSave; | ||
})(DiagnosticPullModeFlags = exports.DiagnosticPullModeFlags || (exports.DiagnosticPullModeFlags = {})); | ||
DiagnosticServerCancellationData.is = is; | ||
})(DiagnosticServerCancellationData = exports.DiagnosticServerCancellationData || (exports.DiagnosticServerCancellationData = {})); | ||
/** | ||
* The document diagnostic report kinds. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
var DiagnosticTriggerKind; | ||
(function (DiagnosticTriggerKind) { | ||
var DocumentDiagnosticReportKind; | ||
(function (DocumentDiagnosticReportKind) { | ||
/** | ||
* The request got triggered through some API | ||
* A diagnostic report with a full | ||
* set of problems. | ||
*/ | ||
DiagnosticTriggerKind.Invoked = 1; | ||
DocumentDiagnosticReportKind["full"] = "full"; | ||
/** | ||
* The request got triggered because the user opened a document. | ||
* A report indicating that the last | ||
* returned report is still accurate. | ||
*/ | ||
DiagnosticTriggerKind.Opened = 2; | ||
/** | ||
* The request got triggered because the user typed in a document. | ||
*/ | ||
DiagnosticTriggerKind.Typed = 3; | ||
/** | ||
* The request got triggered because the user saved a document. | ||
*/ | ||
DiagnosticTriggerKind.Saved = 4; | ||
function is(value) { | ||
return DiagnosticTriggerKind.Invoked <= value && value <= DiagnosticTriggerKind.Saved; | ||
} | ||
DiagnosticTriggerKind.is = is; | ||
})(DiagnosticTriggerKind = exports.DiagnosticTriggerKind || (exports.DiagnosticTriggerKind = {})); | ||
DocumentDiagnosticReportKind["unChanged"] = "unChanged"; | ||
})(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {})); | ||
/** | ||
* The document diagnostic request definition. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
var DiagnosticServerCancellationData; | ||
(function (DiagnosticServerCancellationData) { | ||
function is(value) { | ||
const candidate = value; | ||
return candidate && Is.boolean(candidate.retriggerRequest); | ||
} | ||
DiagnosticServerCancellationData.is = is; | ||
})(DiagnosticServerCancellationData = exports.DiagnosticServerCancellationData || (exports.DiagnosticServerCancellationData = {})); | ||
var DocumentDiagnosticRequest; | ||
(function (DocumentDiagnosticRequest) { | ||
DocumentDiagnosticRequest.method = 'textDocument/diagnostic'; | ||
DocumentDiagnosticRequest.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest.method); | ||
DocumentDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType(); | ||
})(DocumentDiagnosticRequest = exports.DocumentDiagnosticRequest || (exports.DocumentDiagnosticRequest = {})); | ||
/** | ||
* The workspace diagnostic request definition. | ||
* | ||
* @since 3.17.0 - proposed state | ||
*/ | ||
var DiagnosticRequest; | ||
(function (DiagnosticRequest) { | ||
DiagnosticRequest.method = 'textDocument/diagnostic'; | ||
DiagnosticRequest.type = new messages_1.ProtocolRequestType(DiagnosticRequest.method); | ||
})(DiagnosticRequest = exports.DiagnosticRequest || (exports.DiagnosticRequest = {})); | ||
var WorkspaceDiagnosticRequest; | ||
(function (WorkspaceDiagnosticRequest) { | ||
WorkspaceDiagnosticRequest.method = 'workspace/diagnostic'; | ||
WorkspaceDiagnosticRequest.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest.method); | ||
WorkspaceDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType(); | ||
})(WorkspaceDiagnosticRequest = exports.WorkspaceDiagnosticRequest || (exports.WorkspaceDiagnosticRequest = {})); | ||
/** | ||
* The diagnostic refresh request definition. | ||
* | ||
* @since 3.17.0 - proposed state | ||
@@ -96,0 +67,0 @@ */ |
"use strict"; | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) TypeFox and others. All rights reserved. | ||
* Copyright (c) TypeFox, Microsoft and others. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
@@ -5,0 +5,0 @@ * ------------------------------------------------------------------------------------------ */ |
@@ -35,4 +35,4 @@ import { RequestHandler } from 'vscode-jsonrpc'; | ||
const method: 'textDocument/declaration'; | ||
const type: ProtocolRequestType<DeclarationParams, Location | Location[] | LocationLink[] | null, Location[] | LocationLink[], void, DeclarationRegistrationOptions>; | ||
const type: ProtocolRequestType<DeclarationParams, Declaration | LocationLink[] | null, Location[] | LocationLink[], void, DeclarationRegistrationOptions>; | ||
type HandlerSignature = RequestHandler<DeclarationParams, Declaration | DeclarationLink[] | null, void>; | ||
} |
@@ -36,4 +36,4 @@ import { RequestHandler } from 'vscode-jsonrpc'; | ||
const method: 'textDocument/implementation'; | ||
const type: ProtocolRequestType<ImplementationParams, Location | Location[] | LocationLink[] | null, Location[] | LocationLink[], void, ImplementationRegistrationOptions>; | ||
const type: ProtocolRequestType<ImplementationParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, ImplementationRegistrationOptions>; | ||
type HandlerSignature = RequestHandler<ImplementationParams, Definition | DefinitionLink[] | null, void>; | ||
} |
@@ -36,4 +36,4 @@ import { RequestHandler } from 'vscode-jsonrpc'; | ||
const method: 'textDocument/typeDefinition'; | ||
const type: ProtocolRequestType<TypeDefinitionParams, Location | Location[] | LocationLink[] | null, Location[] | LocationLink[], void, TypeDefinitionRegistrationOptions>; | ||
const type: ProtocolRequestType<TypeDefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, TypeDefinitionRegistrationOptions>; | ||
type HandlerSignature = RequestHandler<TypeDefinitionParams, Definition | DefinitionLink[] | null, void>; | ||
} |
{ | ||
"name": "vscode-languageserver-protocol", | ||
"description": "VSCode Language Server Protocol implementation", | ||
"version": "3.17.0-next.5", | ||
"version": "3.17.0-next.6", | ||
"author": "Microsoft Corporation", | ||
@@ -21,4 +21,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"vscode-jsonrpc": "6.1.0-next.2", | ||
"vscode-languageserver-types": "3.17.0-next.1" | ||
"vscode-jsonrpc": "7.0.0-next.1", | ||
"vscode-languageserver-types": "3.17.0-next.2" | ||
}, | ||
@@ -25,0 +25,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
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
259113
6290
+ Addedvscode-jsonrpc@7.0.0-next.1(transitive)
+ Addedvscode-languageserver-types@3.17.0-next.2(transitive)
- Removedvscode-jsonrpc@6.1.0-next.2(transitive)
- Removedvscode-languageserver-types@3.17.0-next.1(transitive)
Updatedvscode-jsonrpc@7.0.0-next.1