75 lines
3.4 KiB
JavaScript
75 lines
3.4 KiB
JavaScript
![]() |
"use strict";
|
||
|
/* --------------------------------------------------------------------------------------------
|
||
|
* 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.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
|
||
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
||
|
const Is = require("./utils/is");
|
||
|
const messages_1 = require("./messages");
|
||
|
/**
|
||
|
* @since 3.17.0
|
||
|
*/
|
||
|
var DiagnosticServerCancellationData;
|
||
|
(function (DiagnosticServerCancellationData) {
|
||
|
function is(value) {
|
||
|
const candidate = value;
|
||
|
return candidate && Is.boolean(candidate.retriggerRequest);
|
||
|
}
|
||
|
DiagnosticServerCancellationData.is = is;
|
||
|
})(DiagnosticServerCancellationData = exports.DiagnosticServerCancellationData || (exports.DiagnosticServerCancellationData = {}));
|
||
|
/**
|
||
|
* The document diagnostic report kinds.
|
||
|
*
|
||
|
* @since 3.17.0
|
||
|
*/
|
||
|
var DocumentDiagnosticReportKind;
|
||
|
(function (DocumentDiagnosticReportKind) {
|
||
|
/**
|
||
|
* A diagnostic report with a full
|
||
|
* set of problems.
|
||
|
*/
|
||
|
DocumentDiagnosticReportKind.Full = 'full';
|
||
|
/**
|
||
|
* A report indicating that the last
|
||
|
* returned report is still accurate.
|
||
|
*/
|
||
|
DocumentDiagnosticReportKind.Unchanged = 'unchanged';
|
||
|
})(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
|
||
|
/**
|
||
|
* The document diagnostic request definition.
|
||
|
*
|
||
|
* @since 3.17.0
|
||
|
*/
|
||
|
var DocumentDiagnosticRequest;
|
||
|
(function (DocumentDiagnosticRequest) {
|
||
|
DocumentDiagnosticRequest.method = 'textDocument/diagnostic';
|
||
|
DocumentDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
||
|
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
|
||
|
*/
|
||
|
var WorkspaceDiagnosticRequest;
|
||
|
(function (WorkspaceDiagnosticRequest) {
|
||
|
WorkspaceDiagnosticRequest.method = 'workspace/diagnostic';
|
||
|
WorkspaceDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
||
|
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
|
||
|
*/
|
||
|
var DiagnosticRefreshRequest;
|
||
|
(function (DiagnosticRefreshRequest) {
|
||
|
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
||
|
DiagnosticRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
||
|
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
||
|
})(DiagnosticRefreshRequest = exports.DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = {}));
|