This commit is contained in:
80
node_modules/yaml-language-server/lib/umd/yamlSettings.js
generated
vendored
Normal file
80
node_modules/yaml-language-server/lib/umd/yamlSettings.js
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
(function (factory) {
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var v = factory(require, exports);
|
||||
if (v !== undefined) module.exports = v;
|
||||
}
|
||||
else if (typeof define === "function" && define.amd) {
|
||||
define(["require", "exports", "vscode-languageserver", "vscode-languageserver-textdocument", "./languageservice/utils/schemaUrls"], factory);
|
||||
}
|
||||
})(function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TextDocumentTestManager = exports.SettingsState = void 0;
|
||||
const vscode_languageserver_1 = require("vscode-languageserver");
|
||||
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
||||
const schemaUrls_1 = require("./languageservice/utils/schemaUrls");
|
||||
// This class is responsible for handling all the settings
|
||||
class SettingsState {
|
||||
constructor() {
|
||||
this.yamlConfigurationSettings = undefined;
|
||||
this.schemaAssociations = undefined;
|
||||
this.formatterRegistration = null;
|
||||
this.specificValidatorPaths = [];
|
||||
this.schemaConfigurationSettings = [];
|
||||
this.yamlShouldValidate = true;
|
||||
this.yamlFormatterSettings = {
|
||||
singleQuote: false,
|
||||
bracketSpacing: true,
|
||||
proseWrap: 'preserve',
|
||||
printWidth: 80,
|
||||
enable: true,
|
||||
};
|
||||
this.yamlShouldHover = true;
|
||||
this.yamlShouldCompletion = true;
|
||||
this.schemaStoreSettings = [];
|
||||
this.customTags = [];
|
||||
this.schemaStoreEnabled = true;
|
||||
this.schemaStoreUrl = schemaUrls_1.JSON_SCHEMASTORE_URL;
|
||||
this.indentation = undefined;
|
||||
this.disableAdditionalProperties = false;
|
||||
this.disableDefaultProperties = false;
|
||||
this.suggest = {
|
||||
parentSkeletonSelectedFirst: false,
|
||||
};
|
||||
this.keyOrdering = false;
|
||||
this.maxItemsComputed = 5000;
|
||||
// File validation helpers
|
||||
this.pendingValidationRequests = {};
|
||||
this.validationDelayMs = 200;
|
||||
// Create a simple text document manager. The text document manager
|
||||
// supports full document sync only
|
||||
this.documents = new vscode_languageserver_1.TextDocuments(vscode_languageserver_textdocument_1.TextDocument);
|
||||
this.workspaceRoot = null;
|
||||
this.workspaceFolders = [];
|
||||
this.clientDynamicRegisterSupport = false;
|
||||
this.hierarchicalDocumentSymbolSupport = false;
|
||||
this.hasWorkspaceFolderCapability = false;
|
||||
this.hasConfigurationCapability = false;
|
||||
this.useVSCodeContentRequest = false;
|
||||
this.yamlVersion = '1.2';
|
||||
this.useSchemaSelectionRequests = false;
|
||||
this.hasWsChangeWatchedFileDynamicRegistration = false;
|
||||
this.fileExtensions = ['.yml', '.yaml'];
|
||||
}
|
||||
}
|
||||
exports.SettingsState = SettingsState;
|
||||
class TextDocumentTestManager extends vscode_languageserver_1.TextDocuments {
|
||||
constructor() {
|
||||
super(vscode_languageserver_textdocument_1.TextDocument);
|
||||
this.testTextDocuments = new Map();
|
||||
}
|
||||
get(uri) {
|
||||
return this.testTextDocuments.get(uri);
|
||||
}
|
||||
set(textDocument) {
|
||||
this.testTextDocuments.set(textDocument.uri, textDocument);
|
||||
}
|
||||
}
|
||||
exports.TextDocumentTestManager = TextDocumentTestManager;
|
||||
});
|
||||
//# sourceMappingURL=yamlSettings.js.map
|
||||
Reference in New Issue
Block a user