1 /*---------------------------------------------------------------------------------------------
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Licensed under the MIT License. See License.txt in the project root for license information.
4 *--------------------------------------------------------------------------------------------*/
5 import { Range, TextEdit, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, MarkupKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, Position, InsertTextFormat, MarkupContent, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString } from 'vscode-languageserver-types';
6 import { TextDocument } from 'vscode-languageserver-textdocument';
7 export { TextDocument, Range, TextEdit, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, Position, InsertTextFormat, MarkupContent, MarkupKind, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString };
9 * Error codes used by diagnostics
12 (function (ErrorCode) {
13 ErrorCode[ErrorCode["Undefined"] = 0] = "Undefined";
14 ErrorCode[ErrorCode["EnumValueMismatch"] = 1] = "EnumValueMismatch";
15 ErrorCode[ErrorCode["Deprecated"] = 2] = "Deprecated";
16 ErrorCode[ErrorCode["UnexpectedEndOfComment"] = 257] = "UnexpectedEndOfComment";
17 ErrorCode[ErrorCode["UnexpectedEndOfString"] = 258] = "UnexpectedEndOfString";
18 ErrorCode[ErrorCode["UnexpectedEndOfNumber"] = 259] = "UnexpectedEndOfNumber";
19 ErrorCode[ErrorCode["InvalidUnicode"] = 260] = "InvalidUnicode";
20 ErrorCode[ErrorCode["InvalidEscapeCharacter"] = 261] = "InvalidEscapeCharacter";
21 ErrorCode[ErrorCode["InvalidCharacter"] = 262] = "InvalidCharacter";
22 ErrorCode[ErrorCode["PropertyExpected"] = 513] = "PropertyExpected";
23 ErrorCode[ErrorCode["CommaExpected"] = 514] = "CommaExpected";
24 ErrorCode[ErrorCode["ColonExpected"] = 515] = "ColonExpected";
25 ErrorCode[ErrorCode["ValueExpected"] = 516] = "ValueExpected";
26 ErrorCode[ErrorCode["CommaOrCloseBacketExpected"] = 517] = "CommaOrCloseBacketExpected";
27 ErrorCode[ErrorCode["CommaOrCloseBraceExpected"] = 518] = "CommaOrCloseBraceExpected";
28 ErrorCode[ErrorCode["TrailingComma"] = 519] = "TrailingComma";
29 ErrorCode[ErrorCode["DuplicateKey"] = 520] = "DuplicateKey";
30 ErrorCode[ErrorCode["CommentNotPermitted"] = 521] = "CommentNotPermitted";
31 ErrorCode[ErrorCode["SchemaResolveError"] = 768] = "SchemaResolveError";
32 })(ErrorCode || (ErrorCode = {}));
33 export var ClientCapabilities;
34 (function (ClientCapabilities) {
35 ClientCapabilities.LATEST = {
39 documentationFormat: [MarkupKind.Markdown, MarkupKind.PlainText],
40 commitCharactersSupport: true
45 })(ClientCapabilities || (ClientCapabilities = {}));