This commit is contained in:
27
node_modules/yaml-language-server/out/server/test/utils/errorMessages.d.ts
generated
vendored
Normal file
27
node_modules/yaml-language-server/out/server/test/utils/errorMessages.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* List of error messages
|
||||
*/
|
||||
/**
|
||||
* Type Errors
|
||||
*/
|
||||
export declare const StringTypeError = "Incorrect type. Expected \"string\".";
|
||||
export declare const NumberTypeError = "Incorrect type. Expected \"number\".";
|
||||
export declare const BooleanTypeError = "Incorrect type. Expected \"boolean\".";
|
||||
export declare const ArrayTypeError = "Incorrect type. Expected \"array\".";
|
||||
export declare const ObjectTypeError = "Incorrect type. Expected \"object\".";
|
||||
export declare const TypeMismatchWarning = "Incorrect type. Expected \"{0}\".";
|
||||
export declare const MissingRequiredPropWarning = "Missing property \"{0}\".";
|
||||
export declare const ConstWarning = "Value must be {0}.";
|
||||
export declare function propertyIsNotAllowed(name: string): string;
|
||||
/**
|
||||
* Parse errors
|
||||
*/
|
||||
export declare const BlockMappingEntryError = "Implicit map keys need to be followed by map values";
|
||||
/**
|
||||
* Value Errors
|
||||
*/
|
||||
export declare const IncludeWithoutValueError = "!include without value";
|
||||
/**
|
||||
* Duplicate Key error
|
||||
*/
|
||||
export declare const DuplicateKeyError = "Map keys must be unique";
|
||||
38
node_modules/yaml-language-server/out/server/test/utils/errorMessages.js
generated
vendored
Normal file
38
node_modules/yaml-language-server/out/server/test/utils/errorMessages.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Red Hat. 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.DuplicateKeyError = exports.IncludeWithoutValueError = exports.BlockMappingEntryError = exports.propertyIsNotAllowed = exports.ConstWarning = exports.MissingRequiredPropWarning = exports.TypeMismatchWarning = exports.ObjectTypeError = exports.ArrayTypeError = exports.BooleanTypeError = exports.NumberTypeError = exports.StringTypeError = void 0;
|
||||
/**
|
||||
* List of error messages
|
||||
*/
|
||||
/**
|
||||
* Type Errors
|
||||
*/
|
||||
exports.StringTypeError = 'Incorrect type. Expected "string".';
|
||||
exports.NumberTypeError = 'Incorrect type. Expected "number".';
|
||||
exports.BooleanTypeError = 'Incorrect type. Expected "boolean".';
|
||||
exports.ArrayTypeError = 'Incorrect type. Expected "array".';
|
||||
exports.ObjectTypeError = 'Incorrect type. Expected "object".';
|
||||
exports.TypeMismatchWarning = 'Incorrect type. Expected "{0}".';
|
||||
exports.MissingRequiredPropWarning = 'Missing property "{0}".';
|
||||
exports.ConstWarning = 'Value must be {0}.';
|
||||
function propertyIsNotAllowed(name) {
|
||||
return `Property ${name} is not allowed.`;
|
||||
}
|
||||
exports.propertyIsNotAllowed = propertyIsNotAllowed;
|
||||
/**
|
||||
* Parse errors
|
||||
*/
|
||||
exports.BlockMappingEntryError = 'Implicit map keys need to be followed by map values';
|
||||
/**
|
||||
* Value Errors
|
||||
*/
|
||||
exports.IncludeWithoutValueError = '!include without value';
|
||||
/**
|
||||
* Duplicate Key error
|
||||
*/
|
||||
exports.DuplicateKeyError = 'Map keys must be unique';
|
||||
//# sourceMappingURL=errorMessages.js.map
|
||||
1
node_modules/yaml-language-server/out/server/test/utils/errorMessages.js.map
generated
vendored
Normal file
1
node_modules/yaml-language-server/out/server/test/utils/errorMessages.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"errorMessages.js","sourceRoot":"","sources":["../../../../test/utils/errorMessages.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG;;GAEG;AAEH;;GAEG;AACU,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,gBAAgB,GAAG,qCAAqC,CAAC;AACzD,QAAA,cAAc,GAAG,mCAAmC,CAAC;AACrD,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,mBAAmB,GAAG,iCAAiC,CAAC;AACxD,QAAA,0BAA0B,GAAG,yBAAyB,CAAC;AACvD,QAAA,YAAY,GAAG,oBAAoB,CAAC;AAEjD,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,OAAO,YAAY,IAAI,kBAAkB,CAAC;AAC5C,CAAC;AAFD,oDAEC;AAED;;GAEG;AACU,QAAA,sBAAsB,GAAG,qDAAqD,CAAC;AAE5F;;GAEG;AACU,QAAA,wBAAwB,GAAG,wBAAwB,CAAC;AAEjE;;GAEG;AACU,QAAA,iBAAiB,GAAG,yBAAyB,CAAC"}
|
||||
15
node_modules/yaml-language-server/out/server/test/utils/serviceSetup.d.ts
generated
vendored
Normal file
15
node_modules/yaml-language-server/out/server/test/utils/serviceSetup.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { LanguageSettings, SchemasSettings } from '../../src/languageservice/yamlLanguageService';
|
||||
export declare class ServiceSetup {
|
||||
languageSettings: LanguageSettings;
|
||||
withValidate(): ServiceSetup;
|
||||
withHover(): ServiceSetup;
|
||||
withCompletion(): ServiceSetup;
|
||||
withFormat(): ServiceSetup;
|
||||
withKubernetes(allow?: boolean): ServiceSetup;
|
||||
withSchemaFileMatch(schemaFileMatch: SchemasSettings): ServiceSetup;
|
||||
withCustomTags(customTags: string[]): ServiceSetup;
|
||||
withIndentation(indentation: string): ServiceSetup;
|
||||
withFlowMapping(mapping: 'allow' | 'forbid'): ServiceSetup;
|
||||
withFlowSequence(sequence: 'allow' | 'forbid'): ServiceSetup;
|
||||
withKeyOrdering(order?: boolean): ServiceSetup;
|
||||
}
|
||||
70
node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js
generated
vendored
Normal file
70
node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ServiceSetup = void 0;
|
||||
class ServiceSetup {
|
||||
constructor() {
|
||||
/*
|
||||
* By default the service setup is going to have everything disabled
|
||||
* and each test is going to enable a feature with a with function call
|
||||
*/
|
||||
this.languageSettings = {
|
||||
validate: false,
|
||||
hover: false,
|
||||
completion: false,
|
||||
format: false,
|
||||
isKubernetes: false,
|
||||
schemas: [],
|
||||
customTags: [],
|
||||
indentation: undefined,
|
||||
yamlVersion: '1.2',
|
||||
flowMapping: 'allow',
|
||||
flowSequence: 'allow',
|
||||
};
|
||||
}
|
||||
withValidate() {
|
||||
this.languageSettings.validate = true;
|
||||
return this;
|
||||
}
|
||||
withHover() {
|
||||
this.languageSettings.hover = true;
|
||||
return this;
|
||||
}
|
||||
withCompletion() {
|
||||
this.languageSettings.completion = true;
|
||||
return this;
|
||||
}
|
||||
withFormat() {
|
||||
this.languageSettings.format = true;
|
||||
return this;
|
||||
}
|
||||
withKubernetes(allow = true) {
|
||||
this.languageSettings.isKubernetes = allow;
|
||||
return this;
|
||||
}
|
||||
withSchemaFileMatch(schemaFileMatch) {
|
||||
this.languageSettings.schemas.push(schemaFileMatch);
|
||||
return this;
|
||||
}
|
||||
withCustomTags(customTags) {
|
||||
this.languageSettings.customTags = customTags;
|
||||
return this;
|
||||
}
|
||||
withIndentation(indentation) {
|
||||
this.languageSettings.indentation = indentation;
|
||||
return this;
|
||||
}
|
||||
withFlowMapping(mapping) {
|
||||
this.languageSettings.flowMapping = mapping;
|
||||
return this;
|
||||
}
|
||||
withFlowSequence(sequence) {
|
||||
this.languageSettings.flowSequence = sequence;
|
||||
return this;
|
||||
}
|
||||
withKeyOrdering(order = true) {
|
||||
this.languageSettings.keyOrdering = order;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
exports.ServiceSetup = ServiceSetup;
|
||||
//# sourceMappingURL=serviceSetup.js.map
|
||||
1
node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js.map
generated
vendored
Normal file
1
node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"serviceSetup.js","sourceRoot":"","sources":["../../../../test/utils/serviceSetup.ts"],"names":[],"mappings":";;;AAMA,MAAa,YAAY;IAAzB;QACE;;;WAGG;QACH,qBAAgB,GAAqB;YACnC,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,KAAK;YACnB,OAAO,EAAE,EAAE;YACX,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,OAAO;YACpB,YAAY,EAAE,OAAO;SACtB,CAAC;IAsDJ,CAAC;IApDC,YAAY;QACV,IAAI,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS;QACP,IAAI,CAAC,gBAAgB,CAAC,KAAK,GAAG,IAAI,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,cAAc;QACZ,IAAI,CAAC,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU;QACR,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,cAAc,CAAC,KAAK,GAAG,IAAI;QACzB,IAAI,CAAC,gBAAgB,CAAC,YAAY,GAAG,KAAK,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,mBAAmB,CAAC,eAAgC;QAClD,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,cAAc,CAAC,UAAoB;QACjC,IAAI,CAAC,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,eAAe,CAAC,WAAmB;QACjC,IAAI,CAAC,gBAAgB,CAAC,WAAW,GAAG,WAAW,CAAC;QAChD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,eAAe,CAAC,OAA2B;QACzC,IAAI,CAAC,gBAAgB,CAAC,WAAW,GAAG,OAAO,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gBAAgB,CAAC,QAA4B;QAC3C,IAAI,CAAC,gBAAgB,CAAC,YAAY,GAAG,QAAQ,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,eAAe,CAAC,KAAK,GAAG,IAAI;QAC1B,IAAI,CAAC,gBAAgB,CAAC,WAAW,GAAG,KAAK,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvED,oCAuEC"}
|
||||
78
node_modules/yaml-language-server/out/server/test/utils/testHelper.d.ts
generated
vendored
Normal file
78
node_modules/yaml-language-server/out/server/test/utils/testHelper.d.ts
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
import { SettingsState } from '../../src/yamlSettings';
|
||||
import { FileSystem } from '../../src/languageservice/services/schemaRequestHandler';
|
||||
import { LanguageService, LanguageSettings } from '../../src';
|
||||
import { ValidationHandler } from '../../src/languageserver/handlers/validationHandlers';
|
||||
import { LanguageHandlers } from '../../src/languageserver/handlers/languageHandlers';
|
||||
import { TextDocument } from 'vscode-languageserver-textdocument';
|
||||
import { TestTelemetry } from './testsTypes';
|
||||
import { JSONSchema } from '../../src/languageservice/jsonSchema';
|
||||
export declare function toFsPath(str: unknown): string;
|
||||
export declare const TEST_URI = "file://~/Desktop/vscode-k8s/test.yaml";
|
||||
export declare const SCHEMA_ID = "default_schema_id.yaml";
|
||||
export declare function setupTextDocument(content: string): TextDocument;
|
||||
export declare function setupSchemaIDTextDocument(content: string, customSchemaID?: string): TextDocument;
|
||||
export declare const testFileSystem: FileSystem;
|
||||
export interface TestLanguageServerSetup {
|
||||
languageService: LanguageService;
|
||||
validationHandler: ValidationHandler;
|
||||
languageHandler: LanguageHandlers;
|
||||
yamlSettings: SettingsState;
|
||||
telemetry: TestTelemetry;
|
||||
schemaProvider: TestCustomSchemaProvider;
|
||||
}
|
||||
export declare function setupLanguageService(languageSettings: LanguageSettings): TestLanguageServerSetup;
|
||||
/**
|
||||
* Derives the absolute `position` of the caret given `content` containing a virtual caret.
|
||||
* @param content The content of the document.
|
||||
* The caret is located in the content using `|` bookends.
|
||||
* For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2`
|
||||
* @returns The absolute position of the caret.
|
||||
*/
|
||||
export declare function caretPosition(content: string): {
|
||||
position: number;
|
||||
content: string;
|
||||
};
|
||||
export declare class TestCustomSchemaProvider {
|
||||
private schemas;
|
||||
private static self;
|
||||
private constructor();
|
||||
static instance(): TestCustomSchemaProvider;
|
||||
/**
|
||||
* Adds a schema to the list of custom schemas.
|
||||
* @param doc The uri of the document
|
||||
* @param schema The JSON schema object.
|
||||
*/
|
||||
addSchema(doc: string, schema: JSONSchema): void;
|
||||
/**
|
||||
* Adds a schema to the list of custom schemas.
|
||||
* @param doc The uri of the document
|
||||
* @param uri The uri of the schema
|
||||
* @param schema The JSON schema object.
|
||||
*/
|
||||
addSchemaWithUri(doc: string, uri: string, schema: JSONSchema): void;
|
||||
/**
|
||||
* Deletes a schema from the list of custom schemas.
|
||||
* @param doc The uri of the document
|
||||
*/
|
||||
deleteSchema(doc: string): void;
|
||||
/**
|
||||
* Checks if a schema exists for a given document.
|
||||
* @param doc The uri of the document
|
||||
* @returns True if a schema exists for the document, false otherwise.
|
||||
*/
|
||||
has(doc: string): boolean;
|
||||
/**
|
||||
* Returns the schemas for a given document
|
||||
* @param doc The uri of the document.
|
||||
* @returns The uris of the schemas
|
||||
* @throws Error if no schema found
|
||||
*/
|
||||
getSchemas(doc: string): string | string[];
|
||||
/**
|
||||
* Returns the content of a schema for a given uri.
|
||||
* @param uri The uri of the schema.
|
||||
* @returns The content of the schema as a string, or null if the schema is not found.
|
||||
*/
|
||||
getContentForSchema(uri: string): string | null;
|
||||
}
|
||||
export declare function schemaItSelfCustomSchemaProvider(uri: string): Promise<string | string[]>;
|
||||
197
node_modules/yaml-language-server/out/server/test/utils/testHelper.js
generated
vendored
Normal file
197
node_modules/yaml-language-server/out/server/test/utils/testHelper.js
generated
vendored
Normal file
@@ -0,0 +1,197 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.schemaItSelfCustomSchemaProvider = exports.TestCustomSchemaProvider = exports.caretPosition = exports.setupLanguageService = exports.testFileSystem = exports.setupSchemaIDTextDocument = exports.setupTextDocument = exports.SCHEMA_ID = exports.TEST_URI = exports.toFsPath = void 0;
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Red Hat. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
const node_1 = require("vscode-languageserver/node");
|
||||
const path = require("path");
|
||||
const fs_1 = require("fs");
|
||||
const yamlSettings_1 = require("../../src/yamlSettings");
|
||||
const schemaRequestHandler_1 = require("../../src/languageservice/services/schemaRequestHandler");
|
||||
const yamlServerInit_1 = require("../../src/yamlServerInit");
|
||||
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
||||
const vscode_json_languageservice_1 = require("vscode-json-languageservice");
|
||||
const yaml_documents_1 = require("../../src/languageservice/parser/yaml-documents");
|
||||
const testsTypes_1 = require("./testsTypes");
|
||||
function toFsPath(str) {
|
||||
if (typeof str !== 'string') {
|
||||
throw new TypeError(`Expected a string, got ${typeof str}`);
|
||||
}
|
||||
let pathName;
|
||||
pathName = path.resolve(str);
|
||||
pathName = pathName.replace(/\\/g, '/');
|
||||
// Windows drive letter must be prefixed with a slash
|
||||
if (pathName[0] !== '/') {
|
||||
pathName = `/${pathName}`;
|
||||
}
|
||||
return encodeURI(`file://${pathName}`).replace(/[?#]/g, encodeURIComponent);
|
||||
}
|
||||
exports.toFsPath = toFsPath;
|
||||
exports.TEST_URI = 'file://~/Desktop/vscode-k8s/test.yaml';
|
||||
exports.SCHEMA_ID = 'default_schema_id.yaml';
|
||||
function setupTextDocument(content) {
|
||||
yaml_documents_1.yamlDocumentsCache.clear(); // clear cache
|
||||
return vscode_languageserver_textdocument_1.TextDocument.create(exports.TEST_URI, 'yaml', 0, content);
|
||||
}
|
||||
exports.setupTextDocument = setupTextDocument;
|
||||
function setupSchemaIDTextDocument(content, customSchemaID) {
|
||||
yaml_documents_1.yamlDocumentsCache.clear(); // clear cache
|
||||
if (customSchemaID) {
|
||||
return vscode_languageserver_textdocument_1.TextDocument.create(customSchemaID, 'yaml', 0, content);
|
||||
}
|
||||
else {
|
||||
return vscode_languageserver_textdocument_1.TextDocument.create(exports.SCHEMA_ID, 'yaml', 0, content);
|
||||
}
|
||||
}
|
||||
exports.setupSchemaIDTextDocument = setupSchemaIDTextDocument;
|
||||
exports.testFileSystem = { readFile: (fsPath) => fs_1.promises.readFile(fsPath).then((c) => c.toString()) };
|
||||
function setupLanguageService(languageSettings) {
|
||||
const yamlSettings = new yamlSettings_1.SettingsState();
|
||||
process.argv.push('--node-ipc');
|
||||
const connection = (0, node_1.createConnection)();
|
||||
const schemaRequestHandlerWrapper = (connection, uri) => {
|
||||
const testSchemaProvider = TestCustomSchemaProvider.instance();
|
||||
const testSchema = testSchemaProvider.getContentForSchema(uri);
|
||||
if (testSchema) {
|
||||
return Promise.resolve(testSchema);
|
||||
}
|
||||
return (0, schemaRequestHandler_1.schemaRequestHandler)(connection, uri, yamlSettings.workspaceFolders, yamlSettings.workspaceRoot, yamlSettings.useVSCodeContentRequest, exports.testFileSystem);
|
||||
};
|
||||
const schemaRequestService = schemaRequestHandlerWrapper.bind(this, connection);
|
||||
const telemetry = new testsTypes_1.TestTelemetry(connection);
|
||||
const serverInit = new yamlServerInit_1.YAMLServerInit(connection, yamlSettings, schemaRequestHandler_1.workspaceContext, schemaRequestService, telemetry);
|
||||
serverInit.connectionInitialized({
|
||||
processId: null,
|
||||
capabilities: vscode_json_languageservice_1.ClientCapabilities.LATEST,
|
||||
rootUri: null,
|
||||
workspaceFolders: null,
|
||||
});
|
||||
const languageService = serverInit.languageService;
|
||||
const validationHandler = serverInit.validationHandler;
|
||||
const languageHandler = serverInit.languageHandler;
|
||||
languageService.configure(languageSettings);
|
||||
const schemaProvider = TestCustomSchemaProvider.instance();
|
||||
languageService.registerCustomSchemaProvider(schemaItSelfCustomSchemaProvider);
|
||||
return {
|
||||
languageService,
|
||||
validationHandler,
|
||||
languageHandler,
|
||||
yamlSettings,
|
||||
telemetry,
|
||||
schemaProvider,
|
||||
};
|
||||
}
|
||||
exports.setupLanguageService = setupLanguageService;
|
||||
/**
|
||||
* Derives the absolute `position` of the caret given `content` containing a virtual caret.
|
||||
* @param content The content of the document.
|
||||
* The caret is located in the content using `|` bookends.
|
||||
* For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2`
|
||||
* @returns The absolute position of the caret.
|
||||
*/
|
||||
function caretPosition(content) {
|
||||
// console.log(`was: len: ${content.length}, content: "${content}", str: "${content.substring(position)}"`);
|
||||
// Find bookends `|.|` in content
|
||||
const position = content.search(/\|[^]\|/); // | -> any char including newline -> |
|
||||
if (position === -1)
|
||||
throw new Error('Error in test case: no caret found in content');
|
||||
// Elide bookends from content
|
||||
content = content.substring(0, position) + content.substring(position + 1, position + 2) + content.substring(position + 3);
|
||||
// console.log(`now: len: ${content.length}, content: "${content}", pos: ${position}, str: "${content.substring(position)}"`);
|
||||
return { position, content };
|
||||
}
|
||||
exports.caretPosition = caretPosition;
|
||||
/*
|
||||
* A class that provides custom schemas for testing purposes.
|
||||
*/
|
||||
class TestCustomSchemaProvider {
|
||||
constructor() {
|
||||
this.schemas = new Array(0);
|
||||
// use instance only
|
||||
}
|
||||
static instance() {
|
||||
if (!TestCustomSchemaProvider.self) {
|
||||
TestCustomSchemaProvider.self = new TestCustomSchemaProvider();
|
||||
}
|
||||
return TestCustomSchemaProvider.self;
|
||||
}
|
||||
/**
|
||||
* Adds a schema to the list of custom schemas.
|
||||
* @param doc The uri of the document
|
||||
* @param schema The JSON schema object.
|
||||
*/
|
||||
addSchema(doc, schema) {
|
||||
this.addSchemaWithUri(doc, `file:///${doc}`, schema);
|
||||
}
|
||||
/**
|
||||
* Adds a schema to the list of custom schemas.
|
||||
* @param doc The uri of the document
|
||||
* @param uri The uri of the schema
|
||||
* @param schema The JSON schema object.
|
||||
*/
|
||||
addSchemaWithUri(doc, uri, schema) {
|
||||
const item = [doc, uri, schema];
|
||||
this.schemas.push(item);
|
||||
}
|
||||
/**
|
||||
* Deletes a schema from the list of custom schemas.
|
||||
* @param doc The uri of the document
|
||||
*/
|
||||
deleteSchema(doc) {
|
||||
const items = this.schemas.filter((item) => item[0] === doc);
|
||||
if (items.length > 0) {
|
||||
this.schemas = this.schemas.filter((item) => item[0] !== doc);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Checks if a schema exists for a given document.
|
||||
* @param doc The uri of the document
|
||||
* @returns True if a schema exists for the document, false otherwise.
|
||||
*/
|
||||
has(doc) {
|
||||
const item = this.schemas.findIndex((item) => item[0] === doc);
|
||||
return item > -1;
|
||||
}
|
||||
/**
|
||||
* Returns the schemas for a given document
|
||||
* @param doc The uri of the document.
|
||||
* @returns The uris of the schemas
|
||||
* @throws Error if no schema found
|
||||
*/
|
||||
getSchemas(doc) {
|
||||
if (this.has(doc)) {
|
||||
const items = this.schemas.filter((item) => item[0] === doc);
|
||||
if (items.length === 1) {
|
||||
return items[0][1];
|
||||
}
|
||||
return items.map((item) => {
|
||||
return item[1];
|
||||
});
|
||||
}
|
||||
throw new Error(`Test schema not found for ${doc}`);
|
||||
}
|
||||
/**
|
||||
* Returns the content of a schema for a given uri.
|
||||
* @param uri The uri of the schema.
|
||||
* @returns The content of the schema as a string, or null if the schema is not found.
|
||||
*/
|
||||
getContentForSchema(uri) {
|
||||
const item = this.schemas.findIndex((item) => item[1] === uri);
|
||||
if (item < 0) {
|
||||
return null;
|
||||
}
|
||||
return JSON.stringify(this.schemas[item][2]);
|
||||
}
|
||||
}
|
||||
exports.TestCustomSchemaProvider = TestCustomSchemaProvider;
|
||||
async function schemaItSelfCustomSchemaProvider(uri) {
|
||||
const schemaProvider = TestCustomSchemaProvider.instance();
|
||||
if (schemaProvider.has(uri)) {
|
||||
return schemaProvider.getSchemas(uri);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
exports.schemaItSelfCustomSchemaProvider = schemaItSelfCustomSchemaProvider;
|
||||
//# sourceMappingURL=testHelper.js.map
|
||||
1
node_modules/yaml-language-server/out/server/test/utils/testHelper.js.map
generated
vendored
Normal file
1
node_modules/yaml-language-server/out/server/test/utils/testHelper.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
27
node_modules/yaml-language-server/out/server/test/utils/testsTypes.d.ts
generated
vendored
Normal file
27
node_modules/yaml-language-server/out/server/test/utils/testsTypes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Event, NotificationHandler, RequestHandler } from 'vscode-jsonrpc';
|
||||
import { ApplyWorkspaceEditParams, WorkspaceEdit, ApplyWorkspaceEditResponse, ConfigurationItem, WorkspaceFolder, WorkspaceFoldersChangeEvent, CreateFilesParams, RenameFilesParams, DeleteFilesParams } from 'vscode-languageserver-protocol';
|
||||
import { Connection, RemoteWorkspace } from 'vscode-languageserver';
|
||||
import { TelemetryImpl } from '../../src/languageserver/telemetry';
|
||||
import { TelemetryEvent } from '../../src/languageservice/telemetry';
|
||||
export declare class TestWorkspace implements RemoteWorkspace {
|
||||
connection: Connection;
|
||||
applyEdit(paramOrEdit: ApplyWorkspaceEditParams | WorkspaceEdit): Promise<ApplyWorkspaceEditResponse>;
|
||||
getConfiguration(): Promise<any>;
|
||||
getConfiguration(section: string): Promise<any>;
|
||||
getConfiguration(item: ConfigurationItem): Promise<any>;
|
||||
getConfiguration(items: ConfigurationItem[]): Promise<any[]>;
|
||||
getWorkspaceFolders(): Promise<WorkspaceFolder[]>;
|
||||
onDidChangeWorkspaceFolders: Event<WorkspaceFoldersChangeEvent>;
|
||||
onDidCreateFiles(handler: NotificationHandler<CreateFilesParams>): void;
|
||||
onDidRenameFiles(handler: NotificationHandler<RenameFilesParams>): void;
|
||||
onDidDeleteFiles(handler: NotificationHandler<DeleteFilesParams>): void;
|
||||
onWillCreateFiles(handler: RequestHandler<CreateFilesParams, WorkspaceEdit, never>): void;
|
||||
onWillRenameFiles(handler: RequestHandler<RenameFilesParams, WorkspaceEdit, never>): void;
|
||||
onWillDeleteFiles(handler: RequestHandler<DeleteFilesParams, WorkspaceEdit, never>): void;
|
||||
}
|
||||
export declare class TestTelemetry extends TelemetryImpl {
|
||||
messages: TelemetryEvent[];
|
||||
constructor(connection: Connection);
|
||||
send(event: TelemetryEvent): void;
|
||||
clearMessages(): void;
|
||||
}
|
||||
55
node_modules/yaml-language-server/out/server/test/utils/testsTypes.js
generated
vendored
Normal file
55
node_modules/yaml-language-server/out/server/test/utils/testsTypes.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Red Hat. 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.TestTelemetry = exports.TestWorkspace = void 0;
|
||||
const telemetry_1 = require("../../src/languageserver/telemetry");
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||
class TestWorkspace {
|
||||
applyEdit(paramOrEdit) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getConfiguration(items) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getWorkspaceFolders() {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onDidCreateFiles(handler) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onDidRenameFiles(handler) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onDidDeleteFiles(handler) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onWillCreateFiles(handler) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onWillRenameFiles(handler) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onWillDeleteFiles(handler) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
}
|
||||
exports.TestWorkspace = TestWorkspace;
|
||||
class TestTelemetry extends telemetry_1.TelemetryImpl {
|
||||
constructor(connection) {
|
||||
super(connection);
|
||||
this.messages = [];
|
||||
}
|
||||
send(event) {
|
||||
this.messages.push(event);
|
||||
}
|
||||
clearMessages() {
|
||||
this.messages = [];
|
||||
}
|
||||
}
|
||||
exports.TestTelemetry = TestTelemetry;
|
||||
//# sourceMappingURL=testsTypes.js.map
|
||||
1
node_modules/yaml-language-server/out/server/test/utils/testsTypes.js.map
generated
vendored
Normal file
1
node_modules/yaml-language-server/out/server/test/utils/testsTypes.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"testsTypes.js","sourceRoot":"","sources":["../../../../test/utils/testsTypes.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAehG,kEAAmE;AAGnE,uDAAuD;AACvD,sDAAsD;AACtD,sEAAsE;AACtE,MAAa,aAAa;IAExB,SAAS,CAAC,WAAqD;QAC7D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAKD,gBAAgB,CAAC,KAAW;QAC1B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,mBAAmB;QACjB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,gBAAgB,CAAC,OAA+C;QAC9D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,gBAAgB,CAAC,OAA+C;QAC9D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,gBAAgB,CAAC,OAA+C;QAC9D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,iBAAiB,CAAC,OAAgE;QAChF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,iBAAiB,CAAC,OAAgE;QAChF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,iBAAiB,CAAC,OAAgE;QAChF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF;AAlCD,sCAkCC;AAED,MAAa,aAAc,SAAQ,yBAAa;IAE9C,YAAY,UAAsB;QAChC,KAAK,CAAC,UAAU,CAAC,CAAC;QAFpB,aAAQ,GAAqB,EAAE,CAAC;IAGhC,CAAC;IACD,IAAI,CAAC,KAAqB;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,aAAa;QACX,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACrB,CAAC;CACF;AAZD,sCAYC"}
|
||||
8
node_modules/yaml-language-server/out/server/test/utils/verifyError.d.ts
generated
vendored
Normal file
8
node_modules/yaml-language-server/out/server/test/utils/verifyError.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { CompletionItem, CompletionItemKind, Diagnostic, DiagnosticSeverity, DocumentSymbol, InsertTextFormat, SymbolKind, SymbolInformation } from 'vscode-languageserver-types';
|
||||
export declare function createExpectedError(message: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number, severity?: DiagnosticSeverity, source?: string, code?: string | number): Diagnostic;
|
||||
export declare function createDiagnosticWithData(message: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number, severity: DiagnosticSeverity, source: string, schemaUri: string | string[], data?: Record<string, unknown>): Diagnostic;
|
||||
export declare function createUnusedAnchorDiagnostic(message: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number): Diagnostic;
|
||||
export declare function createExpectedSymbolInformation(name: string, kind: SymbolKind, containerName: string | undefined, uri: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number): SymbolInformation;
|
||||
export declare function createExpectedDocumentSymbol(name: string, kind: SymbolKind, startLine: number, startCharacter: number, endLine: number, endCharacter: number, startLineSelection: number, startCharacterSelection: number, endLineSelection: number, endCharacterSelection: number, children?: DocumentSymbol[], detail?: string): DocumentSymbol;
|
||||
export declare function createExpectedDocumentSymbolNoDetail(name: string, kind: SymbolKind, startLine: number, startCharacter: number, endLine: number, endCharacter: number, startLineSelection: number, startCharacterSelection: number, endLineSelection: number, endCharacterSelection: number, children?: DocumentSymbol[]): DocumentSymbol;
|
||||
export declare function createExpectedCompletion(label: string, insertText: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number, kind: CompletionItemKind, insertTextFormat?: InsertTextFormat, extra?: {}): CompletionItem;
|
||||
82
node_modules/yaml-language-server/out/server/test/utils/verifyError.js
generated
vendored
Normal file
82
node_modules/yaml-language-server/out/server/test/utils/verifyError.js
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
"use strict";
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Red Hat. 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.createExpectedCompletion = exports.createExpectedDocumentSymbolNoDetail = exports.createExpectedDocumentSymbol = exports.createExpectedSymbolInformation = exports.createUnusedAnchorDiagnostic = exports.createDiagnosticWithData = exports.createExpectedError = void 0;
|
||||
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
||||
const vscode_json_languageservice_1 = require("vscode-json-languageservice");
|
||||
function createExpectedError(message, startLine, startCharacter, endLine, endCharacter, severity = 1, source = 'YAML', code = vscode_json_languageservice_1.ErrorCode.Undefined) {
|
||||
return vscode_languageserver_types_1.Diagnostic.create(vscode_languageserver_types_1.Range.create(startLine, startCharacter, endLine, endCharacter), message, severity, code, source);
|
||||
}
|
||||
exports.createExpectedError = createExpectedError;
|
||||
function createDiagnosticWithData(message, startLine, startCharacter, endLine, endCharacter, severity = 1, source = 'YAML', schemaUri, data = {}) {
|
||||
const diagnostic = createExpectedError(message, startLine, startCharacter, endLine, endCharacter, severity, source);
|
||||
diagnostic.data = { schemaUri: typeof schemaUri === 'string' ? [schemaUri] : schemaUri, ...data };
|
||||
return diagnostic;
|
||||
}
|
||||
exports.createDiagnosticWithData = createDiagnosticWithData;
|
||||
function createUnusedAnchorDiagnostic(message, startLine, startCharacter, endLine, endCharacter) {
|
||||
const diagnostic = createExpectedError(message, startLine, startCharacter, endLine, endCharacter, vscode_languageserver_types_1.DiagnosticSeverity.Hint, 'YAML');
|
||||
diagnostic.tags = [vscode_languageserver_types_1.DiagnosticTag.Unnecessary];
|
||||
return diagnostic;
|
||||
}
|
||||
exports.createUnusedAnchorDiagnostic = createUnusedAnchorDiagnostic;
|
||||
function createExpectedSymbolInformation(name, kind, containerName, uri, startLine, startCharacter, endLine, endCharacter) {
|
||||
return {
|
||||
name,
|
||||
kind,
|
||||
containerName,
|
||||
location: {
|
||||
uri,
|
||||
range: {
|
||||
start: {
|
||||
line: startLine,
|
||||
character: startCharacter,
|
||||
},
|
||||
end: {
|
||||
line: endLine,
|
||||
character: endCharacter,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
exports.createExpectedSymbolInformation = createExpectedSymbolInformation;
|
||||
function createExpectedDocumentSymbol(name, kind, startLine, startCharacter, endLine, endCharacter, startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection, children = [], detail) {
|
||||
return vscode_languageserver_types_1.DocumentSymbol.create(name, detail, kind, vscode_languageserver_types_1.Range.create(startLine, startCharacter, endLine, endCharacter), vscode_languageserver_types_1.Range.create(startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection), children);
|
||||
}
|
||||
exports.createExpectedDocumentSymbol = createExpectedDocumentSymbol;
|
||||
function createExpectedDocumentSymbolNoDetail(name, kind, startLine, startCharacter, endLine, endCharacter, startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection, children = []) {
|
||||
const docSymbol = vscode_languageserver_types_1.DocumentSymbol.create(name, undefined, kind, vscode_languageserver_types_1.Range.create(startLine, startCharacter, endLine, endCharacter), vscode_languageserver_types_1.Range.create(startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection), children);
|
||||
delete docSymbol.detail;
|
||||
return docSymbol;
|
||||
}
|
||||
exports.createExpectedDocumentSymbolNoDetail = createExpectedDocumentSymbolNoDetail;
|
||||
function createExpectedCompletion(label, insertText, startLine, startCharacter, endLine, endCharacter, kind, insertTextFormat = 2, extra = {}) {
|
||||
return {
|
||||
...{
|
||||
insertText,
|
||||
label,
|
||||
insertTextFormat,
|
||||
kind,
|
||||
textEdit: {
|
||||
newText: insertText,
|
||||
range: {
|
||||
start: {
|
||||
line: startLine,
|
||||
character: startCharacter,
|
||||
},
|
||||
end: {
|
||||
line: endLine,
|
||||
character: endCharacter,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
...extra,
|
||||
};
|
||||
}
|
||||
exports.createExpectedCompletion = createExpectedCompletion;
|
||||
//# sourceMappingURL=verifyError.js.map
|
||||
1
node_modules/yaml-language-server/out/server/test/utils/verifyError.js.map
generated
vendored
Normal file
1
node_modules/yaml-language-server/out/server/test/utils/verifyError.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"verifyError.js","sourceRoot":"","sources":["../../../../test/utils/verifyError.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,6EAWqC;AACrC,6EAAwD;AAExD,SAAgB,mBAA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