Upload original JAVA语言程序设计 course files (part 24)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE+21-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md+425-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.d.ts+12-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js+76-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.d.ts+7-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js+50-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.d.ts+6-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js+17-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.d.ts+8-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js+87-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.d.ts+12-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js+38-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.d.ts+17-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js+267-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.d.ts+11-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js+61-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.d.ts+3-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js+48-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.d.ts+68-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js+1473-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.d.ts+9-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js+52-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.d.ts+4-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js+76-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.d.ts+8-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js+58-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.d.ts+15-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js+231-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.d.ts+8-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js+42-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.d.ts+4-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js+57-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js.map+1-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.d.ts+102-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js+585-3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js.map+1-3
123version https://git-lfs.github.com/spec/v1oid sha256:2a6ebc3c5b441f0aef19c5190d17f5bfc1ab4f729db49fabb2db7d10bd9a6146size 1081123456789101112131415161718192021MIT LicenseCopyright (c) 2017 Red Hat Inc. and others.Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
123version https://git-lfs.github.com/spec/v1oid sha256:ddeb0ccda8988d416fc83e6c3afb0b978dd0253247bc3a132f900b59877d9588size 14219123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 [](https://www.npmjs.com/package/yaml-language-server) [](https://coveralls.io/github/redhat-developer/yaml-language-server?branch=main)# YAML Language ServerSupports JSON Schema 7 and below.Starting from `1.0.0` the language server uses [eemeli/yaml](https://github.com/eemeli/yaml) as the new YAML parser, which strictly enforces the specified YAML spec version. Default YAML spec version is `1.2`, it can be changed with `yaml.yamlVersion` setting.## Features1. YAML validation:- Detects whether the entire file is valid yaml2. Validation:- Detects errors such as:- Node is not found- Node has an invalid key node type- Node has an invalid type- Node is not a valid child node- Detects warnings such as:- Node is an additional property of parent3. Auto completion:- Auto completes on all commands- Scalar nodes autocomplete to schema's defaults if they exist4. Hover support:- Hovering over a node shows description _if available_5. Document outlining:- Shows a complete document outline of all nodes in the document## Language Server SettingsThe following settings are supported:- `yaml.yamlVersion`: Set default YAML spec version (1.2 or 1.1)- `yaml.format.enable`: Enable/disable default YAML formatter (requires restart)- `yaml.format.singleQuote`: Use single quotes instead of double quotes- `yaml.format.bracketSpacing`: Print spaces between brackets in objects- `yaml.format.proseWrap`: Always: wrap prose if it exceeds the print width, Never: never wrap the prose, Preserve: wrap prose as-is- `yaml.format.printWidth`: Specify the line length that the printer will wrap on- `yaml.validate`: Enable/disable validation feature- `yaml.hover`: Enable/disable hover- `yaml.completion`: Enable/disable autocompletion- `yaml.schemas`: Helps you associate schemas with files in a glob pattern- `yaml.schemaStore.enable`: When set to true the YAML language server will pull in all available schemas from [JSON Schema Store](https://www.schemastore.org/json/)- `yaml.schemaStore.url`: URL of a schema store catalog to use when downloading schemas.- `yaml.customTags`: Array of custom tags that the parser will validate against. It has two ways to be used. Either an item in the array is a custom tag such as "!Ref" and it will automatically map !Ref to scalar or you can specify the type of the object !Ref should be e.g. "!Ref sequence". The type of object can be either scalar (for strings and booleans), sequence (for arrays), map (for objects).- `yaml.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons).- `[yaml].editor.tabSize`: the number of spaces to use when autocompleting. Takes priority over editor.tabSize.- `editor.tabSize`: the number of spaces to use when autocompleting. Default is 2.- `http.proxy`: The URL of the proxy server that will be used when attempting to download a schema. If it is not set or it is undefined no proxy server will be used.- `http.proxyStrictSSL`: If true the proxy server certificate should be verified against the list of supplied CAs. Default is false.- `[yaml].editor.formatOnType`: Enable/disable on type indent and auto formatting array- `yaml.disableDefaultProperties`: Disable adding not required properties with default values into completion text- `yaml.suggest.parentSkeletonSelectedFirst`: If true, the user must select some parent skeleton first before autocompletion starts to suggest the rest of the properties.\nWhen yaml object is not empty, autocompletion ignores this setting and returns all properties and skeletons.- `yaml.style.flowMapping` : Forbids flow style mappings if set to `forbid`- `yaml.style.flowSequence` : Forbids flow style sequences if set to `forbid`- `yaml.keyOrdering` : Enforces alphabetical ordering of keys in mappings when set to `true`. Default is `false`##### Adding custom tagsIn order to use the custom tags in your YAML file you need to first specify the custom tags in the setting of your code editor. For example, we can have the following custom tags:```YAML"yaml.customTags": ["!Scalar-example scalar","!Seq-example sequence","!Mapping-example mapping"]```The !Scalar-example would map to a scalar custom tag, the !Seq-example would map to a sequence custom tag, the !Mapping-example would map to a mapping custom tag.We can then use the newly defined custom tags inside our YAML file:```YAMLsome_key: !Scalar-example some_valuesome_sequence: !Seq-example- some_seq_key_1: some_seq_value_1- some_seq_key_2: some_seq_value_2some_mapping: !Mapping-examplesome_mapping_key_1: some_mapping_value_1some_mapping_key_2: some_mapping_value_2```##### Associating a schema to a glob pattern via yaml.schemas:yaml.schemas applies a schema to a file. In other words, the schema (placed on the left) is applied to the glob pattern on the right. Your schema can be local or online. Your schema path must be relative to the project root and not an absolute path to the schema.For example:If you have project structuremyProject > myYamlFile.yamlyou can do```yaml.schemas: {"https://json.schemastore.org/composer": "/myYamlFile.yaml"}```and that will associate the composer schema with myYamlFile.yaml.## More examples of schema association:### Using yaml.schemas settings#### Single root schema association:When associating a schema it should follow the format below```jsonyaml.schemas: {"url": "globPattern","Kubernetes": "globPattern"}```e.g.```jsonyaml.schemas: {"https://json.schemastore.org/composer": "/*"}```e.g.```jsonyaml.schemas: {"kubernetes": "/myYamlFile.yaml"}```e.g.```jsonyaml.schemas: {"https://json.schemastore.org/composer": "/*","kubernetes": "/myYamlFile.yaml"}```On Windows with full path:```jsonyaml.schemas: {"C:\\Users\\user\\Documents\\custom_schema.json": "someFilePattern.yaml",}```On Mac/Linux with full path:```jsonyaml.schemas: {"/home/user/custom_schema.json": "someFilePattern.yaml",}```Since `0.11.0` YAML Schemas can be used for validation:```json"/home/user/custom_schema.yaml": "someFilePattern.yaml"```A schema can be associated with multiple globs using a json array, e.g.```jsonyaml.schemas: {"kubernetes": ["filePattern1.yaml", "filePattern2.yaml"]}```e.g.```json"yaml.schemas": {"http://json.schemastore.org/composer": ["/*"],"file:///home/johnd/some-schema.json": ["some.yaml"],"../relative/path/schema.json": ["/config*.yaml"],"/Users/johnd/some-schema.json": ["some.yaml"],}```e.g.```json"yaml.schemas": {"kubernetes": ["/myYamlFile.yaml"]}```e.g.```json"yaml.schemas": {"http://json.schemastore.org/composer": ["/*"],"kubernetes": ["/myYamlFile.yaml"]}```#### Multi root schema association:You can also use relative paths when working with multi root workspaces.Suppose you have a multi root workspace that is laid out like:```My_first_project:test.yamlmy_schema.jsonMy_second_project:test2.yamlmy_schema2.json```You must then associate schemas relative to the root of the multi root workspace project.```yaml.schemas: {"My_first_project/my_schema.json": "test.yaml","My_second_project/my_schema2.json": "test2.yaml"}````yaml.schemas` allows you to specify json schemas that you want to validate against the yaml that you write. Kubernetes is an optional field. It does not require a url as the language server will provide that. You just need the keyword kubernetes and a glob pattern.### Nested Schema ReferencesSuppose a file is meant to be a component of an existing schema (like a `job.yaml` file in a circleci orb), but there isn't a standalone schema that you can reference. If there is a nested schema definition for this subcomponent, you can reference it using a url fragment, e.g.:```yaml.schemas: {"https://json.schemastore.org/circleciconfig#/definitions/jobs/additionalProperties": "/src/jobs/*.yaml",}```> **Note**> This will require reading your existing schema and understanding the schemastore structure a bit. (TODO: link to a documentation or blog post here?)### Using inlined schemaIt is possible to specify a yaml schema using a modeline.```yaml# yaml-language-server: $schema=<urlToTheSchema>```Also it is possible to use relative path in a modeline:```yaml# yaml-language-server: $schema=../relative/path/to/schema```or absolute path:```yaml# yaml-language-server: $schema=/absolute/path/to/schema```### Schema priorityThe following is the priority of schema association in highest to lowest priority:1. Modeline2. CustomSchemaProvider API3. yaml.settings4. Schema association notification5. Schema Store## Containerized Language ServerAn image is provided for users who would like to use the YAML language server without having to install dependencies locally.The image is located at `quay.io/redhat-developer/yaml-language-server`To run the image you can use:```docker run -it quay.io/redhat-developer/yaml-language-server:latest```## Language Server Protocol version`yaml-language-server` use `vscode-languageserver@7.0.0` which implements [LSP 3.16](https://github.com/Microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md)## Language Server Protocol extensions### SchemaSelectionRequests#### SupportSchemaSelection NotificationThe support schema selection notification is sent from a client to the server to inform server that client supports JSON Schema selection._Notification:_- method: `'yaml/supportSchemaSelection'`- params: `void`#### SchemaStoreInitialized NotificationThe schema store initialized notification is sent from the server to a client to inform client that server has finished initializing/loading schemas from schema store, and client now can ask for schemas._Notification:_- method: `'yaml/schema/store/initialized'`- params: `void`#### GetAllSchemas RequestThe get all schemas request sent from a client to server to get all known schemas._Request:_- method: `'yaml/get/all/jsonSchemas'`;- params: the document uri, server will mark used schema for document_Response:_- result: `JSONSchemaDescriptionExt[]````typescriptinterface JSONSchemaDescriptionExt {/*** Schema URI*/uri: string;/*** Schema name, from schema store*/name?: string;/*** Schema description, from schema store*/description?: string;/*** Is schema used for current document*/usedForCurrentFile: boolean;/*** Is schema from schema store*/fromStore: boolean;}```#### GetSchemas RequestThe request sent from a client to server to get schemas used for current document. Client can use this method to indicate in UI which schemas used for current YAML document._Request:_- method: `'yaml/get/jsonSchema'`;- params: the document uri to get used schemas_Response:_- result: `JSONSchemaDescription[]````typescriptinterface JSONSchemaDescriptionExt {/*** Schema URI*/uri: string;/*** Schema name, from schema store*/name?: string;/*** Schema description, from schema store*/description?: string;}```## ClientsThis repository only contains the server implementation. Here are some known clients consuming this server:- [Eclipse Che](https://www.eclipse.org/che/)- [vscode-yaml](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) for VSCode- [ide-yaml](https://atom.io/packages/ide-yaml) for Atom editor- [coc-yaml](https://github.com/neoclide/coc-yaml) for [coc.nvim](https://github.com/neoclide/coc.nvim)- [Eclipse Wild Web Developer](https://marketplace.eclipse.org/content/eclipse-wild-web-developer-web-development-eclipse-ide) for Eclipse IDE- [lsp-mode](https://github.com/emacs-lsp/lsp-mode) for Emacs- [vim-lsp](https://github.com/prabirshrestha/vim-lsp) for Vim- [LSP-yaml](https://packagecontrol.io/packages/LSP-yaml) for Sublime Text- [monaco-yaml](https://monaco-yaml.js.org) for Monaco editor- [Vim-EasyComplete](https://github.com/jayli/vim-easycomplete) for Vim/NeoVim- [nova-yaml](https://github.com/robb-j/nova-yaml/) for Nova## Developer Support### Getting started1. Install prerequisites:- latest [Visual Studio Code](https://code.visualstudio.com/)- [Node.js](https://nodejs.org/) v12.0.0 or higher2. Fork and clone this repository3. Install the dependencies```bashcd yaml-language-server$ yarn install```4. Build the language server```bash$ yarn run build```5. The new built server is now located in ./out/server/src/server.js.```bashnode (Yaml Language Server Location)/out/server/src/server.js [--stdio]```### Connecting to the language server via stdioWe have included the option to connect to the language server via [stdio](https://github.com/redhat-developer/yaml-language-server/blob/681985b5a059c2cb55c8171235b07e1651b6c546/src/server.ts#L46-L51) to help with integrating the language server into different clients.### ESM and UMD ModulesBuilding the YAML Language Server produces [CommonJS](http://www.commonjs.org/) modules in the `/out/server/src` directory. In addition, a build also produces [UMD](https://github.com/umdjs/umd) (Universal Module Definition) modules and [ES Modules](https://tc39.es/ecma262/#sec-modules) (ESM) in the `/lib` directory. That gives you choices in using the YAML Language Server with different module loaders on the server side and in the browser with bundlers like webpack.### CIWe use a GitHub Action to publish each change in the `main` branch to [npm registry](https://www.npmjs.com/package/yaml-language-server) with the `next` tag.You may use the `next` version to adopt the latest changes into your project.
123version https://git-lfs.github.com/spec/v1oid sha256:c7aabf9da911da4a66d45285a4b889b4ea1a120d53d3916aab12349d5eab7bfcsize 690123456789101112import { URI } from 'vscode-uri';import { Connection, WorkspaceFolder } from 'vscode-languageserver';import { WorkspaceContextService } from '../yamlLanguageService';export interface FileSystem {readFile(fsPath: string, encoding?: string): Promise<string>;}/*** Handles schema content requests given the schema URI* @param uri can be a local file, vscode request, http(s) request or a custom request*/export declare const schemaRequestHandler: (connection: Connection, uri: string, workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, useVSCodeContentRequest: boolean, fs: FileSystem) => Promise<string>;export declare const workspaceContext: WorkspaceContextService;
123version https://git-lfs.github.com/spec/v1oid sha256:c5a6aab1fa3cfe2e03ee695edb6d596e04be9a94b78602ab68e45e80092962e2size 387412345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576(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-uri", "request-light", "url", "../../requestTypes", "../utils/paths"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.workspaceContext = exports.schemaRequestHandler = void 0;const vscode_uri_1 = require("vscode-uri");const request_light_1 = require("request-light");const URL = require("url");const requestTypes_1 = require("../../requestTypes");const paths_1 = require("../utils/paths");/*** Handles schema content requests given the schema URI* @param uri can be a local file, vscode request, http(s) request or a custom request*/const schemaRequestHandler = (connection, uri, workspaceFolders, workspaceRoot, useVSCodeContentRequest, fs) => {if (!uri) {return Promise.reject('No schema specified');}// If the requested schema URI is a relative file path// Convert it into a proper absolute path URIif ((0, paths_1.isRelativePath)(uri)) {uri = (0, paths_1.relativeToAbsolutePath)(workspaceFolders, workspaceRoot, uri);}let scheme = vscode_uri_1.URI.parse(uri).scheme.toLowerCase();// test if uri is windows path, ie starts with 'c:\'if (/^[a-z]:[\\/]/i.test(uri)) {const winUri = vscode_uri_1.URI.file(uri);scheme = winUri.scheme.toLowerCase();uri = winUri.toString();}// If the requested schema is a local file, read and return the file contentsif (scheme === 'file') {const fsPath = vscode_uri_1.URI.parse(uri).fsPath;return fs.readFile(fsPath, 'UTF-8').catch(() => {// If there was an error reading the file, return empty error message// Otherwise return the file contents as a stringreturn '';});}// HTTP(S) requests are sent and the response result is either the schema content or an errorif (scheme === 'http' || scheme === 'https') {// If we are running inside of VSCode we need to make a content request. This content request// will make it so that schemas behind VPN's will resolve correctlyif (useVSCodeContentRequest) {return connection.sendRequest(requestTypes_1.VSCodeContentRequest.type, uri).then((responseText) => {return responseText;}, (error) => {return Promise.reject(error.message);});}// Send the HTTP(S) schema content request and return the resultconst headers = { 'Accept-Encoding': 'gzip, deflate' };return (0, request_light_1.xhr)({ url: uri, followRedirects: 5, headers }).then((response) => {return response.responseText;}, (error) => {return Promise.reject(error.responseText || (0, request_light_1.getErrorStatusDescription)(error.status) || error.toString());});}// Neither local file nor vscode, nor HTTP(S) schema request, so send it off as a custom requestreturn connection.sendRequest(requestTypes_1.CustomSchemaContentRequest.type, uri);};exports.schemaRequestHandler = schemaRequestHandler;exports.workspaceContext = {resolveRelativePath: (relativePath, resource) => {return URL.resolve(resource, relativePath);},};});//# sourceMappingURL=schemaRequestHandler.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:bc3f0b944fa51323af077aa3215c3c58b35efc9bee62a8abeff04970dff5cb36size 21691{"version":3,"file":"schemaRequestHandler.js","sourceRoot":"","sources":["../../../../src/languageservice/services/schemaRequestHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,2CAAiC;IAEjC,iDAA4E;IAC5E,2BAA2B;IAC3B,qDAAsF;IACtF,0CAAwE;IAOxE;;;OAGG;IACI,MAAM,oBAAoB,GAAG,CAClC,UAAsB,EACtB,GAAW,EACX,gBAAmC,EACnC,aAAkB,EAClB,uBAAgC,EAChC,EAAc,EACG,EAAE;QACnB,IAAI,CAAC,GAAG,EAAE;YACR,OAAO,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;SAC9C;QAED,sDAAsD;QACtD,6CAA6C;QAC7C,IAAI,IAAA,sBAAc,EAAC,GAAG,CAAC,EAAE;YACvB,GAAG,GAAG,IAAA,8BAAsB,EAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;SACpE;QAED,IAAI,MAAM,GAAG,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QAEjD,oDAAoD;QACpD,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,MAAM,GAAG,gBAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC7B,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YACrC,GAAG,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;SACzB;QAED,6EAA6E;QAC7E,IAAI,MAAM,KAAK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IAAI,EAAE,GAAG,CAAoB,CAAC;IACzF,CAAC,CAAC;IAnEW,QAAA,oBAAoB,wBAmE/B;IAEW,QAAA,gBAAgB,GAA4B;QACvD,mBAAmB,EAAE,CAAC,YAAoB,EAAE,QAAgB,EAAE,EAAE;YAC9D,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC7C,CAAC;KACF,CAAC"}
123version https://git-lfs.github.com/spec/v1oid sha256:ce1d87ebcd7fbad99e3e8ffa718cf3d00c325e9868f97fd4fa283f06429d6d58size 3961234567import { TextDocument } from 'vscode-languageserver-textdocument';import { Diagnostic } from 'vscode-languageserver-types';import { SingleYAMLDocument } from '../../parser/yaml-documents';import { AdditionalValidator } from './types';export declare class MapKeyOrderValidator implements AdditionalValidator {validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];}
123version https://git-lfs.github.com/spec/v1oid sha256:cff82aae5d109e46cfb4206164ea64ad15ce313431e8ca5218e3d802dd941e1dsize 25401234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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-types", "yaml"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.MapKeyOrderValidator = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const yaml_1 = require("yaml");class MapKeyOrderValidator {validate(document, yamlDoc) {const result = [];(0, yaml_1.visit)(yamlDoc.internalDocument, (key, node) => {if ((0, yaml_1.isMap)(node)) {for (let i = 1; i < node.items.length; i++) {if (compare(node.items[i - 1], node.items[i]) > 0) {const range = createRange(document, node.items[i - 1]);result.push(vscode_languageserver_types_1.Diagnostic.create(range, `Wrong ordering of key "${node.items[i - 1].key}" in mapping`, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'mapKeyOrder'));}}}});return result;}}exports.MapKeyOrderValidator = MapKeyOrderValidator;function createRange(document, node) {const start = node?.srcToken.start[0]?.offset ?? node?.srcToken?.key.offset ?? node?.srcToken?.sep[0]?.offset;const end = node?.srcToken?.value.offset ||node?.srcToken?.sep[0]?.offset ||node?.srcToken?.key.offset ||node?.srcToken.start[node.srcToken.start.length - 1]?.offset;return vscode_languageserver_types_1.Range.create(document.positionAt(start), document.positionAt(end));}function compare(thiz, that) {const thatKey = String(that.key);const thisKey = String(thiz.key);return thisKey.localeCompare(thatKey);}});//# sourceMappingURL=map-key-order.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:8adab1de77125ef8a7b1ea79b97c83296149b26d3c7cc33c2458bdd0827d122csize 17531{"version":3,"file":"map-key-order.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/validation/map-key-order.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EAAoF;IAGpF,+BAA0C;IAE1C,MAAa,oBAAoB;QAC/B,QAAQ,CAAC,QAAsB,EAAE,OAA2B;YAC1D,MAAM,MAAM,GAAG,EAAE,CAAC;YAElB,IAAA,YAAK,EAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;gBAC5C,IAAI,IAAA,YAAK,EAAC,IAAI,CAAC,EAAE;oBACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC1C,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;4BACjD,MAAM,KAAK,GAAG,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,C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Aa,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC"}
123version https://git-lfs.github.com/spec/v1oid sha256:adfb4c2329933ce089fa240ffd835dbd4d931092fa8d2916803dbc7e8e85908fsize 313123456import { TextDocument } from 'vscode-languageserver-textdocument';import { Diagnostic } from 'vscode-languageserver-types';import { SingleYAMLDocument } from '../../parser/yaml-documents';export interface AdditionalValidator {validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];}
123version https://git-lfs.github.com/spec/v1oid sha256:495882da59d85165cae57c46f373e1f6ad655a3e6f45dd65af47d685e3a47399size 8031234567891011121314151617/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });});//# sourceMappingURL=types.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:d2d4892fc7aef86876a5d67103a9147b6adb562832028479efd6c3db7e66b360size 1631{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/validation/types.ts"],"names":[],"mappings":"AAAA;;;gGAGgG"}
123version https://git-lfs.github.com/spec/v1oid sha256:9f103199fc4a5109450ad9f5736c3b570808df078d71a898c180589beca4681fsize 42512345678import { TextDocument } from 'vscode-languageserver-textdocument';import { Diagnostic } from 'vscode-languageserver-types';import { SingleYAMLDocument } from '../../parser/yaml-documents';import { AdditionalValidator } from './types';export declare class UnusedAnchorsValidator implements AdditionalValidator {validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];private getAnchorNode;}
123version https://git-lfs.github.com/spec/v1oid sha256:eab14bcdf94c54d3171d28563e3744464d5b79d31dbe7ddbc72228e7c5b9b5casize 3993123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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-types", "yaml", "../../../languageservice/utils/astUtils"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.UnusedAnchorsValidator = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const yaml_1 = require("yaml");const astUtils_1 = require("../../../languageservice/utils/astUtils");class UnusedAnchorsValidator {validate(document, yamlDoc) {const result = [];const anchors = new Set();const usedAnchors = new Set();const anchorParent = new Map();(0, yaml_1.visit)(yamlDoc.internalDocument, (key, node, path) => {if (!(0, yaml_1.isNode)(node)) {return;}if (((0, yaml_1.isCollection)(node) || (0, yaml_1.isScalar)(node)) && node.anchor) {anchors.add(node);anchorParent.set(node, path[path.length - 1]);}if ((0, yaml_1.isAlias)(node)) {usedAnchors.add(node.resolve(yamlDoc.internalDocument));}});for (const anchor of anchors) {if (!usedAnchors.has(anchor)) {const aToken = this.getAnchorNode(anchorParent.get(anchor), anchor);if (aToken) {const range = vscode_languageserver_types_1.Range.create(document.positionAt(aToken.offset), document.positionAt(aToken.offset + aToken.source.length));const warningDiagnostic = vscode_languageserver_types_1.Diagnostic.create(range, `Unused anchor "${aToken.source}"`, vscode_languageserver_types_1.DiagnosticSeverity.Hint, 0);warningDiagnostic.tags = [vscode_languageserver_types_1.DiagnosticTag.Unnecessary];result.push(warningDiagnostic);}}}return result;}getAnchorNode(parentNode, node) {if (parentNode && parentNode.srcToken) {const token = parentNode.srcToken;if ((0, astUtils_1.isCollectionItem)(token)) {return getAnchorFromCollectionItem(token);}else if (yaml_1.CST.isCollection(token)) {for (const t of token.items) {if (node.srcToken !== t.value)continue;const anchor = getAnchorFromCollectionItem(t);if (anchor) {return anchor;}}}}return undefined;}}exports.UnusedAnchorsValidator = UnusedAnchorsValidator;function getAnchorFromCollectionItem(token) {for (const t of token.start) {if (t.type === 'anchor') {return t;}}if (token.sep && Array.isArray(token.sep)) {for (const t of token.sep) {if (t.type === 'anchor') {return t;}}}}});//# sourceMappingURL=unused-anchors.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:2e5891181b26908f3426bd1162be2163676d55304fdc20997a7d501ce4eebaf4size 24961{"version":3,"file":"unused-anchors.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/validation/unused-anchors.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EAAmG;IACnG,+BAAiH;IAIjH,sEAA2E;IAE3E,MAAa,sBAAsB;QACjC,QAAQ,CAAC,QAAsB,EAAE,OAA2B;YAC1D,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,MAAM,OAAO,GAAG,IAAI,GAAG,EAA8B,CAAC;YACtD,MAAM,WAAW,GAAG,IAAI,GAAG,EAAQ,CAAC;YACpC,MAAM,YAAY,GAAG,IAAI,GAAG,EAA2C,CAAC;YAExE,IAAA,YAAK,EAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;gBAClD,IAAI,CAAC,IAAA,aAAM,EAAC,IAAI,CAAC,EAAE;oBACjB,OAAO;iBACR;gBACD,IAAI,CAAC,IAAA,mBAAY,EAAC,IAAI,CAAC,IAAI,IAAA,eAAQ,EAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE;oBACzD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oBAClB,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAS,CAAC,CAAC;iBACvD;gBACD,IAAI,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE;oBACjB,WAAW,CAA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3B,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,KAAK;4BAAE,SAAS;wBACxC,MAAM,MAAM,GAAG,2BAA2B,CAAC,CAAC,CAAC,CAAC;wBAC9C,IAAI,MAAM,EAAE;4BACV,OAAO,MAAM,CAAC;yBACf;qBACF;iBACF;aACF;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;KACF;IAtDD,wDAsDC;IACD,SAAS,2BAA2B,CAAC,KAAyB;QAC5D,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE;YAC3B,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACvB,OAAO,CAAC,CAAC;aACV;SACF;QACD,IAAI,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACzC,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE;gBACzB,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;oBACvB,OAAO,CAAC,CAAC;iBACV;aACF;SACF;IACH,CAAC"}
123version https://git-lfs.github.com/spec/v1oid sha256:1c26eb06263c94d9f14dd962eb587b65a20b7d932100dc7e9be61d5689e4f3e3size 580123456789101112import { TextDocument } from 'vscode-languageserver-textdocument';import { Diagnostic } from 'vscode-languageserver-types';import { SingleYAMLDocument } from '../../parser/yaml-documents';import { LanguageSettings } from '../../yamlLanguageService';import { AdditionalValidator } from './types';export declare class YAMLStyleValidator implements AdditionalValidator {private forbidSequence;private forbidMapping;constructor(settings: LanguageSettings);validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];private getRangeOf;}
123version https://git-lfs.github.com/spec/v1oid sha256:b1893e9ad4d7f23f971b1219a938e4f2a26fd1eab6a6774575d6e05cbc7a0f45size 20451234567891011121314151617181920212223242526272829303132333435363738(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-types", "yaml"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.YAMLStyleValidator = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const yaml_1 = require("yaml");class YAMLStyleValidator {constructor(settings) {this.forbidMapping = settings.flowMapping === 'forbid';this.forbidSequence = settings.flowSequence === 'forbid';}validate(document, yamlDoc) {const result = [];(0, yaml_1.visit)(yamlDoc.internalDocument, (key, node) => {if (this.forbidMapping && (0, yaml_1.isMap)(node) && node.srcToken?.type === 'flow-collection') {result.push(vscode_languageserver_types_1.Diagnostic.create(this.getRangeOf(document, node.srcToken), 'Flow style mapping is forbidden', vscode_languageserver_types_1.DiagnosticSeverity.Error, 'flowMap'));}if (this.forbidSequence && (0, yaml_1.isSeq)(node) && node.srcToken?.type === 'flow-collection') {result.push(vscode_languageserver_types_1.Diagnostic.create(this.getRangeOf(document, node.srcToken), 'Flow style sequence is forbidden', vscode_languageserver_types_1.DiagnosticSeverity.Error, 'flowSeq'));}});return result;}getRangeOf(document, node) {return vscode_languageserver_types_1.Range.create(document.positionAt(node.start.offset), document.positionAt(node.end.pop().offset));}}exports.YAMLStyleValidator = YAMLStyleValidator;});//# sourceMappingURL=yaml-style.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:1e2b523df73aa3294704f6749a7e490a4c1800215a7abb5d81e0e2be9bce4042size 13031{"version":3,"file":"yaml-style.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/validation/yaml-style.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,6EAAoF;IACpF,+BAA2C;IAM3C,MAAa,kBAAkB;QAI7B,YAAY,QAA0B;YACpC,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,WAAW,KAAK,QAAQ,CAAC;YACvD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,YAAY,KAAK,QAAQ,CAAC;QAC3D,CAAC;QACD,QAAQ,CAAC,QAAsB,EAAE,OAA2B;YAC1D,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,IAAA,YAAK,EAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;gBAC5C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAA,YAAK,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,KAAK,iBAAiB,EAAE;oBAClF,MAAM,CAAC,IAAI,CACT,wCAAU,CAAC,MAAM,CACf,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,EACxC,iCAAiC,EACjC,gDAAkB,CAAC,KAAK,EACxB,SAAS,CACV,CACF,CAAC;iBACH;gBACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAA,YAAK,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,KAAK,iBAAiB,EAAE;oBACnF,MAAM,CAAC,IAAI,CACT,wCAAU,CAAC,MAAM,CACf,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,EACxC,kCAAkC,EAClC,gDAAkB,CAAC,KAAK,EACxB,SAAS,CACV,CACF,CAAC;iBACH;YACH,CAAC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;QAEO,UAAU,CAAC,QAAsB,EAAE,IAAoB;YAC7D,OAAO,mCAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;QAC1G,CAAC;KACF;IAtCD,gDAsCC"}
123version https://git-lfs.github.com/spec/v1oid sha256:61a372286547924eddb7e0bf98b0c98b2e28b5d81e86b5b1f7b2cccfb3c5c666size 8031234567891011121314151617import { TextDocument } from 'vscode-languageserver-textdocument';import { CodeAction } from 'vscode-languageserver-types';import { ClientCapabilities, CodeActionParams } from 'vscode-languageserver-protocol';import { LanguageSettings } from '../yamlLanguageService';export declare class YamlCodeActions {private readonly clientCapabilities;private indentation;constructor(clientCapabilities: ClientCapabilities);configure(settings: LanguageSettings): void;getCodeAction(document: TextDocument, params: CodeActionParams): CodeAction[] | undefined;private getJumpToSchemaActions;private getTabToSpaceConverting;private getUnusedAnchorsDelete;private getConvertToBooleanActions;private getConvertToBlockStyleActions;private getKeyOrderActions;}
123version https://git-lfs.github.com/spec/v1oid sha256:fa58144978285cc29063278522953cebb09be8be697bbe965e7d9cc66fbb26b5size 16011123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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-types", "../../commands", "path", "../utils/textBuffer", "../parser/jsonParser07", "../utils/strings", "../utils/arrUtils", "yaml", "../parser/yaml-documents", "../utils/flow-style-rewriter", "lodash"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.YamlCodeActions = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const commands_1 = require("../../commands");const path = require("path");const textBuffer_1 = require("../utils/textBuffer");const jsonParser07_1 = require("../parser/jsonParser07");const strings_1 = require("../utils/strings");const arrUtils_1 = require("../utils/arrUtils");const yaml_1 = require("yaml");const yaml_documents_1 = require("../parser/yaml-documents");const flow_style_rewriter_1 = require("../utils/flow-style-rewriter");const _ = require("lodash");class YamlCodeActions {constructor(clientCapabilities) {this.clientCapabilities = clientCapabilities;this.indentation = ' ';}configure(settings) {this.indentation = settings.indentation;}getCodeAction(document, params) {if (!params.context.diagnostics) {return;}const result = [];result.push(...this.getConvertToBooleanActions(params.context.diagnostics, document));result.push(...this.getJumpToSchemaActions(params.context.diagnostics));result.push(...this.getTabToSpaceConverting(params.context.diagnostics, document));result.push(...this.getUnusedAnchorsDelete(params.context.diagnostics, document));result.push(...this.getConvertToBlockStyleActions(params.context.diagnostics, document));result.push(...this.getKeyOrderActions(params.context.diagnostics, document));return result;}getJumpToSchemaActions(diagnostics) {const isOpenTextDocumentEnabled = this.clientCapabilities?.window?.showDocument?.support ?? false;if (!isOpenTextDocumentEnabled) {return [];}const schemaUriToDiagnostic = new Map();for (const diagnostic of diagnostics) {const schemaUri = diagnostic.data?.schemaUri || [];for (const schemaUriStr of schemaUri) {if (schemaUriStr) {if (!schemaUriToDiagnostic.has(schemaUriStr)) {schemaUriToDiagnostic.set(schemaUriStr, []);}schemaUriToDiagnostic.get(schemaUriStr).push(diagnostic);}}}const result = [];for (const schemaUri of schemaUriToDiagnostic.keys()) {const action = vscode_languageserver_types_1.CodeAction.create(`Jump to schema location (${path.basename(schemaUri)})`, vscode_languageserver_types_1.Command.create('JumpToSchema', commands_1.YamlCommands.JUMP_TO_SCHEMA, schemaUri));action.diagnostics = schemaUriToDiagnostic.get(schemaUri);result.push(action);}return result;}getTabToSpaceConverting(diagnostics, document) {const result = [];const textBuff = new textBuffer_1.TextBuffer(document);const processedLine = [];for (const diag of diagnostics) {if (diag.message === 'Using tabs can lead to unpredictable results') {if (processedLine.includes(diag.range.start.line)) {continue;}const lineContent = textBuff.getLineContent(diag.range.start.line);let replacedTabs = 0;let newText = '';for (let i = diag.range.start.character; i <= diag.range.end.character; i++) {const char = lineContent.charAt(i);if (char !== '\t') {break;}replacedTabs++;newText += this.indentation;}processedLine.push(diag.range.start.line);let resultRange = diag.range;if (replacedTabs !== diag.range.end.character - diag.range.start.character) {resultRange = vscode_languageserver_types_1.Range.create(diag.range.start, vscode_languageserver_types_1.Position.create(diag.range.end.line, diag.range.start.character + replacedTabs));}result.push(vscode_languageserver_types_1.CodeAction.create('Convert Tab to Spaces', createWorkspaceEdit(document.uri, [vscode_languageserver_types_1.TextEdit.replace(resultRange, newText)]), vscode_languageserver_types_1.CodeActionKind.QuickFix));}}if (result.length !== 0) {const replaceEdits = [];for (let i = 0; i <= textBuff.getLineCount(); i++) {const lineContent = textBuff.getLineContent(i);let replacedTabs = 0;let newText = '';for (let j = 0; j < lineContent.length; j++) {const char = lineContent.charAt(j);if (char !== ' ' && char !== '\t') {if (replacedTabs !== 0) {replaceEdits.push(vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(i, j - replacedTabs, i, j), newText));replacedTabs = 0;newText = '';}break;}if (char === ' ' && replacedTabs !== 0) {replaceEdits.push(vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(i, j - replacedTabs, i, j), newText));replacedTabs = 0;newText = '';continue;}if (char === '\t') {newText += this.indentation;replacedTabs++;}}// line contains only tabsif (replacedTabs !== 0) {replaceEdits.push(vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(i, 0, i, textBuff.getLineLength(i)), newText));}}if (replaceEdits.length > 0) {result.push(vscode_languageserver_types_1.CodeAction.create('Convert all Tabs to Spaces', createWorkspaceEdit(document.uri, replaceEdits), vscode_languageserver_types_1.CodeActionKind.QuickFix));}}return result;}getUnusedAnchorsDelete(diagnostics, document) {const result = [];const buffer = new textBuffer_1.TextBuffer(document);for (const diag of diagnostics) {if (diag.message.startsWith('Unused anchor') && diag.source === jsonParser07_1.YAML_SOURCE) {const range = vscode_languageserver_types_1.Range.create(diag.range.start, diag.range.end);const actual = buffer.getText(range);const lineContent = buffer.getLineContent(range.end.line);const lastWhitespaceChar = (0, strings_1.getFirstNonWhitespaceCharacterAfterOffset)(lineContent, range.end.character);range.end.character = lastWhitespaceChar;const action = vscode_languageserver_types_1.CodeAction.create(`Delete unused anchor: ${actual}`, createWorkspaceEdit(document.uri, [vscode_languageserver_types_1.TextEdit.del(range)]), vscode_languageserver_types_1.CodeActionKind.QuickFix);action.diagnostics = [diag];result.push(action);}}return result;}getConvertToBooleanActions(diagnostics, document) {const results = [];for (const diagnostic of diagnostics) {if (diagnostic.message === 'Incorrect type. Expected "boolean".') {const value = document.getText(diagnostic.range).toLocaleLowerCase();if (value === '"true"' || value === '"false"' || value === "'true'" || value === "'false'") {const newValue = value.includes('true') ? 'true' : 'false';results.push(vscode_languageserver_types_1.CodeAction.create('Convert to boolean', createWorkspaceEdit(document.uri, [vscode_languageserver_types_1.TextEdit.replace(diagnostic.range, newValue)]), vscode_languageserver_types_1.CodeActionKind.QuickFix));}}}return results;}getConvertToBlockStyleActions(diagnostics, document) {const results = [];for (const diagnostic of diagnostics) {if (diagnostic.code === 'flowMap' || diagnostic.code === 'flowSeq') {const node = getNodeforDiagnostic(document, diagnostic);if ((0, yaml_1.isMap)(node.internalNode) || (0, yaml_1.isSeq)(node.internalNode)) {const blockTypeDescription = (0, yaml_1.isMap)(node.internalNode) ? 'map' : 'sequence';const rewriter = new flow_style_rewriter_1.FlowStyleRewriter(this.indentation);results.push(vscode_languageserver_types_1.CodeAction.create(`Convert to block style ${blockTypeDescription}`, createWorkspaceEdit(document.uri, [vscode_languageserver_types_1.TextEdit.replace(diagnostic.range, rewriter.write(node))]), vscode_languageserver_types_1.CodeActionKind.QuickFix));}}}return results;}getKeyOrderActions(diagnostics, document) {const results = [];for (const diagnostic of diagnostics) {if (diagnostic?.code === 'mapKeyOrder') {let node = getNodeforDiagnostic(document, diagnostic);while (node && node.type !== 'object') {node = node.parent;}if (node && (0, yaml_1.isMap)(node.internalNode)) {const sorted = _.cloneDeep(node.internalNode);if ((sorted.srcToken.type === 'block-map' || sorted.srcToken.type === 'flow-collection') &&(node.internalNode.srcToken.type === 'block-map' || node.internalNode.srcToken.type === 'flow-collection')) {sorted.srcToken.items.sort((a, b) => {if (a.key && b.key && yaml_1.CST.isScalar(a.key) && yaml_1.CST.isScalar(b.key)) {return a.key.source.localeCompare(b.key.source);}if (!a.key && b.key) {return -1;}if (a.key && !b.key) {return 1;}if (!a.key && !b.key) {return 0;}});for (let i = 0; i < sorted.srcToken.items.length; i++) {const item = sorted.srcToken.items[i];const uItem = node.internalNode.srcToken.items[i];item.start = uItem.start;if (item.value?.type === 'alias' ||item.value?.type === 'scalar' ||item.value?.type === 'single-quoted-scalar' ||item.value?.type === 'double-quoted-scalar') {const newLineIndex = item.value?.end?.findIndex((p) => p.type === 'newline') ?? -1;let newLineToken = null;if (uItem.value?.type === 'block-scalar') {newLineToken = uItem.value?.props?.find((p) => p.type === 'newline');}else if (yaml_1.CST.isScalar(uItem.value)) {newLineToken = uItem.value?.end?.find((p) => p.type === 'newline');}if (newLineToken && newLineIndex < 0) {item.value.end = item.value.end ?? [];item.value.end.push(newLineToken);}if (!newLineToken && newLineIndex > -1) {item.value.end.splice(newLineIndex, 1);}}else if (item.value?.type === 'block-scalar') {const nwline = item.value.props.find((p) => p.type === 'newline');if (!nwline) {item.value.props.push({ type: 'newline', indent: 0, offset: item.value.offset, source: '\n' });}}}}const replaceRange = vscode_languageserver_types_1.Range.create(document.positionAt(node.offset), document.positionAt(node.offset + node.length));results.push(vscode_languageserver_types_1.CodeAction.create('Fix key order for this map', createWorkspaceEdit(document.uri, [vscode_languageserver_types_1.TextEdit.replace(replaceRange, yaml_1.CST.stringify(sorted.srcToken))]), vscode_languageserver_types_1.CodeActionKind.QuickFix));}}}return results;}}exports.YamlCodeActions = YamlCodeActions;function getNodeforDiagnostic(document, diagnostic) {const yamlDocuments = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);const startOffset = document.offsetAt(diagnostic.range.start);const yamlDoc = (0, arrUtils_1.matchOffsetToDocument)(startOffset, yamlDocuments);const node = yamlDoc.getNodeFromOffset(startOffset);return node;}function createWorkspaceEdit(uri, edits) {const changes = {};changes[uri] = edits;const edit = {changes,};return edit;}});//# sourceMappingURL=yamlCodeActions.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:73eea91d075c03c2ec585c42670e1c475a2d1c0046efea2e301dbf37710c79b9size 114191{"version":3,"file":"yamlCodeActions.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlCodeActions.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EASqC;IAErC,6CAA8C;IAC9C,6BAA6B;IAC7B,oDAAiD;IAEjD,yDAAqD;IACrD,8CAA6E;IAC7E,gDAA0D;IAC1D,+BAAkD;IAClD,6DAA8D;IAC9D,sEAAiE;IAEjE,4BAA4B;IAM5B,MAAa,eAAe;QAG1B,YAA6B,kBAAsC;YAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;YAF3D,gBAAW,GAAG,IAAI,CAAC;QAE2C,CAAC;QAEvE,SAAS,CAAC,QAA0B;YAClC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC1C,CAAC;QAED,aAAa,CAAC,QAAsB,EAAE,MAAwB;YAC5D,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE;gBAC/B,OAAO;aACR;YAED,MAAM,MAAM,GAAG,EAAE,CAAC;YAElB,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;YACtF,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;YACxE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;YACn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CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACrB,MAAM,IAAI,GAAkB;YAC1B,OAAO;SACR,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC"}
123version https://git-lfs.github.com/spec/v1oid sha256:c431b36e8d0e3d0aebcd059f96bd89f14c784ce1d783b86cc057d5b3702c5d17size 5251234567891011import { TextDocument } from 'vscode-languageserver-textdocument';import { CodeLens } from 'vscode-languageserver-types';import { YAMLSchemaService } from './yamlSchemaService';import { Telemetry } from '../telemetry';export declare class YamlCodeLens {private schemaService;private readonly telemetry?;constructor(schemaService: YAMLSchemaService, telemetry?: Telemetry);getCodeLens(document: TextDocument): Promise<CodeLens[]>;resolveCodeLens(param: CodeLens): Thenable<CodeLens> | CodeLens;}
123version https://git-lfs.github.com/spec/v1oid sha256:478e7a23daf2d2b1468e22dfaafa67dae364a8fb7d95aea55f1022d89c6b9416size 308112345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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-types", "../../commands", "../parser/yaml-documents", "../utils/schemaUrls", "../utils/objects", "../utils/schemaUtils"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.YamlCodeLens = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const commands_1 = require("../../commands");const yaml_documents_1 = require("../parser/yaml-documents");const schemaUrls_1 = require("../utils/schemaUrls");const objects_1 = require("../utils/objects");const schemaUtils_1 = require("../utils/schemaUtils");class YamlCodeLens {constructor(schemaService, telemetry) {this.schemaService = schemaService;this.telemetry = telemetry;}async getCodeLens(document) {const result = [];try {const yamlDocument = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);let schemaUrls = new Map();for (const currentYAMLDoc of yamlDocument.documents) {const schema = await this.schemaService.getSchemaForResource(document.uri, currentYAMLDoc);if (schema?.schema) {// merge schemas from all docs to avoid duplicatesschemaUrls = new Map([...(0, schemaUrls_1.getSchemaUrls)(schema?.schema), ...schemaUrls]);}}for (const urlToSchema of schemaUrls) {const lens = vscode_languageserver_types_1.CodeLens.create(vscode_languageserver_types_1.Range.create(0, 0, 0, 0));lens.command = {title: (0, schemaUtils_1.getSchemaTitle)(urlToSchema[1], urlToSchema[0]),command: commands_1.YamlCommands.JUMP_TO_SCHEMA,arguments: [urlToSchema[0]],};result.push(lens);}}catch (err) {this.telemetry?.sendError('yaml.codeLens.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });}return result;}resolveCodeLens(param) {return param;}}exports.YamlCodeLens = YamlCodeLens;});//# sourceMappingURL=yamlCodeLens.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:6df5ec5e6c7f72e40632c441981311dcf0c6f7645aac438e049365cb5560e7b7size 14811{"version":3,"file":"yamlCodeLens.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlCodeLens.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EAA8D;IAC9D,6CAA8C;IAC9C,6DAA8D;IAI9D,oDAAoD;IACpD,8CAA8D;IAC9D,sDAAsD;IAEtD,MAAa,YAAY;QACvB,YAAoB,aAAgC,EAAmB,SAAqB;YAAxE,kBAAa,GAAb,aAAa,CAAmB;YAAmB,cAAS,GAAT,SAAS,CAAY;QAAG,CAAC;QAEhG,KAAK,CAAC,WAAW,CAAC,QAAsB;YACtC,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,IAAI;gBACF,MAAM,YAAY,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;gBAClE,IAAI,UAAU,GAAG,IAAI,GAAG,EAAsB,CAAC;gBAC/C,KAAK,MAAM,cAAc,IAAI,YAAY,CAAC,SAAS,EAAE;oBACnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;oBAC3F,IAAI,MAAM,EAAE,MAAM,EAAE;wBAClB,kDAAkD;wBAClD,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,IAAA,0BAAa,EAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC;qBACzE;iBACF;gBACD,KAAK,MAAM,WAAW,IAAI,UAAU,EAAE;oBACpC,MAAM,IAAI,GAAG,sCAAQ,CAAC,MAAM,CAAC,mCAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;oBACvD,IAAI,CAAC,OAAO,GAAG;wBACb,KAAK,EAAE,IAAA,4BAAc,EAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;wBACrD,OAAO,EAAE,uBAAY,CAAC,cAAc;wBACpC,SAAS,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;qBAC5B,CAAC;oBACF,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACnB;aACF;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aAC9F;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,eAAe,CAAC,KAAe;YAC7B,OAAO,KAAK,CAAC;QACf,CAAC;KACF;IAjCD,oCAiCC"}
123version https://git-lfs.github.com/spec/v1oid sha256:79d354ef41d18e7c3eeac8f1a8c214f2f3f70659e926f7f79c9e23220c47794esize 230123import { Connection } from 'vscode-languageserver';import { CommandExecutor } from '../../languageserver/commandExecutor';export declare function registerCommands(commandExecutor: CommandExecutor, connection: Connection): void;
123version https://git-lfs.github.com/spec/v1oid sha256:2480b9f928af761ad98f0b16c75cbc2028723d5492ca09f7e5bb1c5a22e9a979size 2303123456789101112131415161718192021222324252627282930313233343536373839404142434445464748/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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", "../../commands", "vscode-uri"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.registerCommands = void 0;const commands_1 = require("../../commands");const vscode_uri_1 = require("vscode-uri");function registerCommands(commandExecutor, connection) {commandExecutor.registerCommand(commands_1.YamlCommands.JUMP_TO_SCHEMA, async (uri) => {if (!uri) {return;}// if uri points to local file of its a windows pathif (!uri.startsWith('file') && !/^[a-z]:[\\/]/i.test(uri)) {const origUri = vscode_uri_1.URI.parse(uri);const customUri = vscode_uri_1.URI.from({scheme: 'json-schema',authority: origUri.authority,path: origUri.path.endsWith('.json') ? origUri.path : origUri.path + '.json',fragment: uri,});uri = customUri.toString();}// test if uri is windows path, ie starts with 'c:\' and convert to URIif (/^[a-z]:[\\/]/i.test(uri)) {const winUri = vscode_uri_1.URI.file(uri);uri = winUri.toString();}const result = await connection.window.showDocument({ uri: uri, external: false, takeFocus: true });if (!result) {connection.window.showErrorMessage(`Cannot open ${uri}`);}});}exports.registerCommands = registerCommands;});//# sourceMappingURL=yamlCommands.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:9adc9c33e6a3242deac3eafa40d628cc0ebd910e6dec432f67c4d925eaa1cd3dsize 12581{"version":3,"file":"yamlCommands.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlCommands.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6CAA8C;IAE9C,2CA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;IACL,CAAC;IA5BD,4CA4BC"}
123version https://git-lfs.github.com/spec/v1oid sha256:a31bd81b96cf9c2b55c3181753233a7e2f8c5f2a2efa109cf2020af865f41c9csize 28391234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768import { TextDocument } from 'vscode-languageserver-textdocument';import { ClientCapabilities } from 'vscode-languageserver';import { CompletionItem as CompletionItemBase, CompletionList, Position } from 'vscode-languageserver-types';import { Telemetry } from '../telemetry';import { YamlDocuments } from '../parser/yaml-documents';import { LanguageSettings } from '../yamlLanguageService';import { YAMLSchemaService } from './yamlSchemaService';import { JSONSchema } from '../jsonSchema';interface ParentCompletionItemOptions {schema: JSONSchema;indent?: string;insertTexts?: string[];}interface CompletionItem extends CompletionItemBase {parent?: ParentCompletionItemOptions;}export declare class YamlCompletion {private schemaService;private clientCapabilities;private yamlDocument;private readonly telemetry?;private customTags;private completionEnabled;private configuredIndentation;private yamlVersion;private indentation;private arrayPrefixIndentation;private supportsMarkdown;private disableDefaultProperties;private parentSkeletonSelectedFirst;constructor(schemaService: YAMLSchemaService, clientCapabilities: ClientCapabilities, yamlDocument: YamlDocuments, telemetry?: Telemetry);configure(languageSettings: LanguageSettings): void;doComplete(document: TextDocument, position: Position, isKubernetes?: boolean, doComplete?: boolean): Promise<CompletionList>;updateCompletionText(completionItem: CompletionItem, text: string): void;mergeSimpleInsertTexts(label: string, existingText: string, addingText: string, oneOfSchema: boolean): string | undefined;getValuesFromInsertText(insertText: string): string[];private finalizeParentCompletion;private createTempObjNode;private addPropertyCompletions;private getValueCompletions;private addArrayItemValueCompletion;private getInsertTextForProperty;private getInsertTextForObject;private getInsertTextForArray;private getInsertTextForGuessedValue;private getInsertTextForPlainText;private getInsertTextForValue;private getInsertTemplateForValue;private addSchemaValueCompletions;private collectTypes;private addDefaultValueCompletions;private addEnumValueCompletions;private getLabelForValue;private collectDefaultSnippets;private getInsertTextForSnippetValue;private addBooleanValueCompletion;private addNullValueCompletion;private getLabelForSnippetValue;private getCustomTagValueCompletions;private addCustomTagValueCompletion;private getDocumentationWithMarkdownText;private getSuggestionKind;private getCurrentWord;private fromMarkup;private doesSupportMarkdown;private findItemAtOffset;}export {};
123version https://git-lfs.github.com/spec/v1oid sha256:016ecdf66c51416e9b9f27cb15fc1e4dc6a674d86c47ce00f3dcdfb05aa8e00asize 82190123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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-types", "yaml", "../utils/arrUtils", "../utils/indentationGuesser", "../utils/textBuffer", "../utils/json", "../utils/objects", "vscode-nls", "../parser/isKubernetes", "../parser/jsonParser07", "../utils/astUtils", "./modelineUtil", "../utils/schemaUtils"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.YamlCompletion = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const yaml_1 = require("yaml");const arrUtils_1 = require("../utils/arrUtils");const indentationGuesser_1 = require("../utils/indentationGuesser");const textBuffer_1 = require("../utils/textBuffer");const json_1 = require("../utils/json");const objects_1 = require("../utils/objects");const nls = require("vscode-nls");const isKubernetes_1 = require("../parser/isKubernetes");const jsonParser07_1 = require("../parser/jsonParser07");const astUtils_1 = require("../utils/astUtils");const modelineUtil_1 = require("./modelineUtil");const schemaUtils_1 = require("../utils/schemaUtils");const localize = nls.loadMessageBundle();const doubleQuotesEscapeRegExp = /[\\]+"/g;const parentCompletionKind = vscode_languageserver_types_1.CompletionItemKind.Class;const existingProposeItem = '__';class YamlCompletion {constructor(schemaService, clientCapabilities = {}, yamlDocument, telemetry) {this.schemaService = schemaService;this.clientCapabilities = clientCapabilities;this.yamlDocument = yamlDocument;this.telemetry = telemetry;this.completionEnabled = true;this.arrayPrefixIndentation = '';}configure(languageSettings) {if (languageSettings) {this.completionEnabled = languageSettings.completion;}this.customTags = languageSettings.customTags;this.yamlVersion = languageSettings.yamlVersion;this.configuredIndentation = languageSettings.indentation;this.disableDefaultProperties = languageSettings.disableDefaultProperties;this.parentSkeletonSelectedFirst = languageSettings.parentSkeletonSelectedFirst;}async doComplete(document, position, isKubernetes = false, doComplete = true) {const result = vscode_languageserver_types_1.CompletionList.create([], false);if (!this.completionEnabled) {return result;}const doc = this.yamlDocument.getYamlDocument(document, { customTags: this.customTags, yamlVersion: this.yamlVersion }, true);const textBuffer = new textBuffer_1.TextBuffer(document);if (!this.configuredIndentation) {const indent = (0, indentationGuesser_1.guessIndentation)(textBuffer, 2, true);this.indentation = indent.insertSpaces ? ' '.repeat(indent.tabSize) : '\t';}else {this.indentation = this.configuredIndentation;}(0, isKubernetes_1.setKubernetesParserOption)(doc.documents, isKubernetes);// set parser optionsfor (const jsonDoc of doc.documents) {jsonDoc.uri = document.uri;}const offset = document.offsetAt(position);const text = document.getText();if (text.charAt(offset - 1) === ':') {return Promise.resolve(result);}let currentDoc = (0, arrUtils_1.matchOffsetToDocument)(offset, doc);if (currentDoc === null) {return Promise.resolve(result);}// as we modify AST for completion, we need to use copy of original documentcurrentDoc = currentDoc.clone();let [node, foundByClosest] = currentDoc.getNodeFromPosition(offset, textBuffer, this.indentation.length);const currentWord = this.getCurrentWord(document, offset);let lineContent = textBuffer.getLineContent(position.line);const lineAfterPosition = lineContent.substring(position.character);const areOnlySpacesAfterPosition = /^[ ]+\n?$/.test(lineAfterPosition);this.arrayPrefixIndentation = '';let overwriteRange = null;if (areOnlySpacesAfterPosition) {overwriteRange = vscode_languageserver_types_1.Range.create(position, vscode_languageserver_types_1.Position.create(position.line, lineContent.length));const isOnlyWhitespace = lineContent.trim().length === 0;const isOnlyDash = lineContent.match(/^\s*(-)\s*$/);if (node && (0, yaml_1.isScalar)(node) && !isOnlyWhitespace && !isOnlyDash) {const lineToPosition = lineContent.substring(0, position.character);const matches =// get indentation of unfinished property (between indent and cursor)lineToPosition.match(/^[\s-]*([^:]+)?$/) ||// OR get unfinished value (between colon and cursor)lineToPosition.match(/:[ \t]((?!:[ \t]).*)$/);if (matches?.[1]) {overwriteRange = vscode_languageserver_types_1.Range.create(vscode_languageserver_types_1.Position.create(position.line, position.character - matches[1].length), vscode_languageserver_types_1.Position.create(position.line, lineContent.length));}}}else if (node && (0, yaml_1.isScalar)(node) && node.value === 'null') {const nodeStartPos = document.positionAt(node.range[0]);nodeStartPos.character += 1;const nodeEndPos = document.positionAt(node.range[2]);nodeEndPos.character += 1;overwriteRange = vscode_languageserver_types_1.Range.create(nodeStartPos, nodeEndPos);}else if (node && (0, yaml_1.isScalar)(node) && node.value) {const start = document.positionAt(node.range[0]);overwriteRange = vscode_languageserver_types_1.Range.create(start, document.positionAt(node.range[1]));}else if (node && (0, yaml_1.isScalar)(node) && node.value === null && currentWord === '-') {overwriteRange = vscode_languageserver_types_1.Range.create(position, position);this.arrayPrefixIndentation = ' ';}else {let overwriteStart = offset - currentWord.length;if (overwriteStart > 0 && text[overwriteStart - 1] === '"') {overwriteStart--;}overwriteRange = vscode_languageserver_types_1.Range.create(document.positionAt(overwriteStart), position);}const proposed = {};const collector = {add: (completionItem, oneOfSchema) => {const addSuggestionForParent = function (completionItem) {const existsInYaml = proposed[completionItem.label]?.label === existingProposeItem;//don't put to parent suggestion if already in yamlif (existsInYaml) {return;}const schema = completionItem.parent.schema;const schemaType = (0, schemaUtils_1.getSchemaTypeName)(schema);const schemaDescription = schema.markdownDescription || schema.description;let parentCompletion = result.items.find((item) => item.parent?.schema === schema && item.kind === parentCompletionKind);if (parentCompletion && parentCompletion.parent.insertTexts.includes(completionItem.insertText)) {// already exists in the parentreturn;}else if (!parentCompletion) {// create a new parentparentCompletion = {...completionItem,label: schemaType,documentation: schemaDescription,sortText: '_' + schemaType,kind: parentCompletionKind,};parentCompletion.label = parentCompletion.label || completionItem.label;parentCompletion.parent.insertTexts = [completionItem.insertText];result.items.push(parentCompletion);}else {// add to the existing parentparentCompletion.parent.insertTexts.push(completionItem.insertText);}};const isForParentCompletion = !!completionItem.parent;let label = completionItem.label;if (!label) {// we receive not valid CompletionItem as `label` is mandatory field, so just ignore itconsole.warn(`Ignoring CompletionItem without label: ${JSON.stringify(completionItem)}`);return;}if (!(0, objects_1.isString)(label)) {label = String(label);}label = label.replace(/[\n]/g, '↵');if (label.length > 60) {const shortendedLabel = label.substr(0, 57).trim() + '...';if (!proposed[shortendedLabel]) {label = shortendedLabel;}}// trim $1 from end of completionif (completionItem.insertText.endsWith('$1') && !isForParentCompletion) {completionItem.insertText = completionItem.insertText.substr(0, completionItem.insertText.length - 2);}if (overwriteRange && overwriteRange.start.line === overwriteRange.end.line) {completionItem.textEdit = vscode_languageserver_types_1.TextEdit.replace(overwriteRange, completionItem.insertText);}completionItem.label = label;if (isForParentCompletion) {addSuggestionForParent(completionItem);return;}if (this.arrayPrefixIndentation) {this.updateCompletionText(completionItem, this.arrayPrefixIndentation + completionItem.insertText);}const existing = proposed[label];const isInsertTextDifferent = existing?.label !== existingProposeItem && existing?.insertText !== completionItem.insertText;if (!existing) {proposed[label] = completionItem;result.items.push(completionItem);}else if (isInsertTextDifferent) {// try to merge simple insert valuesconst mergedText = this.mergeSimpleInsertTexts(label, existing.insertText, completionItem.insertText, oneOfSchema);if (mergedText) {this.updateCompletionText(existing, mergedText);}else {// add to result when it wasn't able to merge (even if the item is already there but with a different value)proposed[label] = completionItem;result.items.push(completionItem);}}if (existing && !existing.documentation && completionItem.documentation) {existing.documentation = completionItem.documentation;}},error: (message) => {this.telemetry?.sendError('yaml.completion.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(message) });},log: (message) => {console.log(message);},getNumberOfProposals: () => {return result.items.length;},result,proposed,};if (this.customTags.length > 0) {this.getCustomTagValueCompletions(collector);}if (lineContent.endsWith('\n')) {lineContent = lineContent.substr(0, lineContent.length - 1);}try {const schema = await this.schemaService.getSchemaForResource(document.uri, currentDoc);if (!schema || schema.errors.length) {if (position.line === 0 && position.character === 0 && !(0, modelineUtil_1.isModeline)(lineContent)) {const inlineSchemaCompletion = {kind: vscode_languageserver_types_1.CompletionItemKind.Text,label: 'Inline schema',insertText: '# yaml-language-server: $schema=',insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.PlainText,};result.items.push(inlineSchemaCompletion);}}if ((0, modelineUtil_1.isModeline)(lineContent) || (0, astUtils_1.isInComment)(doc.tokens, offset)) {const schemaIndex = lineContent.indexOf('$schema=');if (schemaIndex !== -1 && schemaIndex + '$schema='.length <= position.character) {this.schemaService.getAllSchemas().forEach((schema) => {const schemaIdCompletion = {kind: vscode_languageserver_types_1.CompletionItemKind.Constant,label: schema.name ?? schema.uri,detail: schema.description,insertText: schema.uri,insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.PlainText,insertTextMode: vscode_languageserver_types_1.InsertTextMode.asIs,};result.items.push(schemaIdCompletion);});}return result;}if (!schema || schema.errors.length) {return result;}let currentProperty = null;if (!node) {if (!currentDoc.internalDocument.contents || (0, yaml_1.isScalar)(currentDoc.internalDocument.contents)) {const map = currentDoc.internalDocument.createNode({});map.range = [offset, offset + 1, offset + 1];currentDoc.internalDocument.contents = map;currentDoc.updateFromInternalDocument();node = map;}else {node = currentDoc.findClosestNode(offset, textBuffer);foundByClosest = true;}}const originalNode = node;if (node) {if (lineContent.length === 0) {node = currentDoc.internalDocument.contents;}else {const parent = currentDoc.getParent(node);if (parent) {if ((0, yaml_1.isScalar)(node)) {if (node.value) {if ((0, yaml_1.isPair)(parent)) {if (parent.value === node) {if (lineContent.trim().length > 0 && lineContent.indexOf(':') < 0) {const map = this.createTempObjNode(currentWord, node, currentDoc);const parentParent = currentDoc.getParent(parent);if ((0, yaml_1.isSeq)(currentDoc.internalDocument.contents)) {const index = (0, astUtils_1.indexOf)(currentDoc.internalDocument.contents, parent);if (typeof index === 'number') {currentDoc.internalDocument.set(index, map);currentDoc.updateFromInternalDocument();}}else if (parentParent && ((0, yaml_1.isMap)(parentParent) || (0, yaml_1.isSeq)(parentParent))) {parentParent.set(parent.key, map);currentDoc.updateFromInternalDocument();}else {currentDoc.internalDocument.set(parent.key, map);currentDoc.updateFromInternalDocument();}currentProperty = map.items[0];node = map;}else if (lineContent.trim().length === 0) {const parentParent = currentDoc.getParent(parent);if (parentParent) {node = parentParent;}}}else if (parent.key === node) {const parentParent = currentDoc.getParent(parent);currentProperty = parent;if (parentParent) {node = parentParent;}}}else if ((0, yaml_1.isSeq)(parent)) {if (lineContent.trim().length > 0) {const map = this.createTempObjNode(currentWord, node, currentDoc);parent.delete(node);parent.add(map);currentDoc.updateFromInternalDocument();node = map;}else {node = parent;}}}else if (node.value === null) {if ((0, yaml_1.isPair)(parent)) {if (parent.key === node) {node = parent;}else {if ((0, yaml_1.isNode)(parent.key) && parent.key.range) {const parentParent = currentDoc.getParent(parent);if (foundByClosest && parentParent && (0, yaml_1.isMap)(parentParent) && (0, astUtils_1.isMapContainsEmptyPair)(parentParent)) {node = parentParent;}else {const parentPosition = document.positionAt(parent.key.range[0]);//if cursor has bigger indentation that parent key, then we need to complete new empty objectif (position.character > parentPosition.character && position.line !== parentPosition.line) {const map = this.createTempObjNode(currentWord, node, currentDoc);if (parentParent && ((0, yaml_1.isMap)(parentParent) || (0, yaml_1.isSeq)(parentParent))) {parentParent.set(parent.key, map);currentDoc.updateFromInternalDocument();}else {currentDoc.internalDocument.set(parent.key, map);currentDoc.updateFromInternalDocument();}currentProperty = map.items[0];node = map;}else if (parentPosition.character === position.character) {if (parentParent) {node = parentParent;}}}}}}else if ((0, yaml_1.isSeq)(parent)) {if (lineContent.charAt(position.character - 1) !== '-') {const map = this.createTempObjNode(currentWord, node, currentDoc);parent.delete(node);parent.add(map);currentDoc.updateFromInternalDocument();node = map;}else if (lineContent.charAt(position.character - 1) === '-') {const map = this.createTempObjNode('', node, currentDoc);parent.delete(node);parent.add(map);currentDoc.updateFromInternalDocument();node = map;}else {node = parent;}}}}else if ((0, yaml_1.isMap)(node)) {if (!foundByClosest && lineContent.trim().length === 0 && (0, yaml_1.isSeq)(parent)) {const nextLine = textBuffer.getLineContent(position.line + 1);if (textBuffer.getLineCount() === position.line + 1 || nextLine.trim().length === 0) {node = parent;}}}}else if ((0, yaml_1.isScalar)(node)) {const map = this.createTempObjNode(currentWord, node, currentDoc);currentDoc.internalDocument.contents = map;currentDoc.updateFromInternalDocument();currentProperty = map.items[0];node = map;}else if ((0, yaml_1.isMap)(node)) {for (const pair of node.items) {if ((0, yaml_1.isNode)(pair.value) && pair.value.range && pair.value.range[0] === offset + 1) {node = pair.value;}}}else if ((0, yaml_1.isSeq)(node)) {if (lineContent.charAt(position.character - 1) !== '-') {const map = this.createTempObjNode(currentWord, node, currentDoc);map.items = [];currentDoc.updateFromInternalDocument();for (const pair of node.items) {if ((0, yaml_1.isMap)(pair)) {pair.items.forEach((value) => {map.items.push(value);});}}node = map;}}}}// completion for object keysif (node && (0, yaml_1.isMap)(node)) {// don't suggest properties that are already presentconst properties = node.items;for (const p of properties) {if (!currentProperty || currentProperty !== p) {if ((0, yaml_1.isScalar)(p.key)) {proposed[p.key.value + ''] = vscode_languageserver_types_1.CompletionItem.create(existingProposeItem);}}}this.addPropertyCompletions(schema, currentDoc, node, originalNode, '', collector, textBuffer, overwriteRange, doComplete);if (!schema && currentWord.length > 0 && text.charAt(offset - currentWord.length - 1) !== '"') {collector.add({kind: vscode_languageserver_types_1.CompletionItemKind.Property,label: currentWord,insertText: this.getInsertTextForProperty(currentWord, null, ''),insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,});}}// proposals for valuesconst types = {};this.getValueCompletions(schema, currentDoc, node, offset, document, collector, types, doComplete);}catch (err) {this.telemetry?.sendError('yaml.completion.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });}this.finalizeParentCompletion(result);const uniqueItems = result.items.filter((arr, index, self) => index ===self.findIndex((item) => item.label === arr.label && item.insertText === arr.insertText && item.kind === arr.kind));if (uniqueItems?.length > 0) {result.items = uniqueItems;}return result;}updateCompletionText(completionItem, text) {completionItem.insertText = text;if (completionItem.textEdit) {completionItem.textEdit.newText = text;}}mergeSimpleInsertTexts(label, existingText, addingText, oneOfSchema) {const containsNewLineAfterColon = (value) => {return value.includes('\n');};const startWithNewLine = (value) => {return value.startsWith('\n');};const isNullObject = (value) => {const index = value.indexOf('\n');return index > 0 && value.substring(index, value.length).trim().length === 0;};if (containsNewLineAfterColon(existingText) || containsNewLineAfterColon(addingText)) {//if the exisiting object null one then replace with the non-null objectif (oneOfSchema && isNullObject(existingText) && !isNullObject(addingText) && !startWithNewLine(addingText)) {return addingText;}return undefined;}const existingValues = this.getValuesFromInsertText(existingText);const addingValues = this.getValuesFromInsertText(addingText);const newValues = Array.prototype.concat(existingValues, addingValues);if (!newValues.length) {return undefined;}else if (newValues.length === 1) {return `${label}: \${1:${newValues[0]}}`;}else {return `${label}: \${1|${newValues.join(',')}|}`;}}getValuesFromInsertText(insertText) {const value = insertText.substring(insertText.indexOf(':') + 1).trim();if (!value) {return [];}const valueMath = value.match(/^\${1[|:]([^|]*)+\|?}$/); // ${1|one,two,three|} or ${1:one}if (valueMath) {return valueMath[1].split(',');}return [value];}finalizeParentCompletion(result) {const reindexText = (insertTexts) => {//modify added props to have unique $xlet max$index = 0;return insertTexts.map((text) => {const match = text.match(/\$([0-9]+)|\${[0-9]+:/g);if (!match) {return text;}const max$indexLocal = match.map((m) => +m.replace(/\${([0-9]+)[:|]/g, '$1').replace('$', '')) // get numbers form $1 or ${1:...}.reduce((p, n) => (n > p ? n : p), 0); // find the max oneconst reindexedStr = text.replace(/\$([0-9]+)/g, (s, args) => '$' + (+args + max$index)) // increment each by max$index.replace(/\${([0-9]+)[:|]/g, (s, args) => '${' + (+args + max$index) + ':'); // increment each by max$indexmax$index += max$indexLocal;return reindexedStr;});};result.items.forEach((completionItem) => {if (isParentCompletionItem(completionItem)) {const indent = completionItem.parent.indent || '';const reindexedTexts = reindexText(completionItem.parent.insertTexts);// add indent to each object property and join completion item textslet insertText = reindexedTexts.join(`\n${indent}`);// trim $1 from end of completionif (insertText.endsWith('$1')) {insertText = insertText.substring(0, insertText.length - 2);}completionItem.insertText = this.arrayPrefixIndentation + insertText;if (completionItem.textEdit) {completionItem.textEdit.newText = completionItem.insertText;}// remove $x or use {$x:value} in documentationconst mdText = insertText.replace(/\${[0-9]+[:|](.*)}/g, (s, arg) => arg).replace(/\$([0-9]+)/g, '');const originalDocumentation = completionItem.documentation ? [completionItem.documentation, '', '----', ''] : [];completionItem.documentation = {kind: vscode_languageserver_types_1.MarkupKind.Markdown,value: [...originalDocumentation, '```yaml', indent + mdText, '```'].join('\n'),};delete completionItem.parent;}});}createTempObjNode(currentWord, node, currentDoc) {const obj = {};obj[currentWord] = null;const map = currentDoc.internalDocument.createNode(obj);map.range = node.range;map.items[0].key.range = node.range;map.items[0].value.range = node.range;return map;}addPropertyCompletions(schema, doc, node, originalNode, separatorAfter, collector, textBuffer, overwriteRange, doComplete) {const matchingSchemas = doc.getMatchingSchemas(schema.schema, -1, null, doComplete);const existingKey = textBuffer.getText(overwriteRange);const lineContent = textBuffer.getLineContent(overwriteRange.start.line);const hasOnlyWhitespace = lineContent.trim().length === 0;const hasColon = lineContent.indexOf(':') !== -1;const isInArray = lineContent.trimLeft().indexOf('-') === 0;const nodeParent = doc.getParent(node);const matchOriginal = matchingSchemas.find((it) => it.node.internalNode === originalNode && it.schema.properties);const oneOfSchema = matchingSchemas.filter((schema) => schema.schema.oneOf).map((oneOfSchema) => oneOfSchema.schema.oneOf)[0];let didOneOfSchemaMatches = false;if (oneOfSchema?.length < matchingSchemas.length) {oneOfSchema?.forEach((property, index) => {if (!matchingSchemas[index]?.schema.oneOf && matchingSchemas[index]?.schema.properties === property.properties) {didOneOfSchemaMatches = true;}});}for (const schema of matchingSchemas) {if (((schema.node.internalNode === node && !matchOriginal) ||(schema.node.internalNode === originalNode && !hasColon) ||(schema.node.parent?.internalNode === originalNode && !hasColon)) &&!schema.inverted) {this.collectDefaultSnippets(schema.schema, separatorAfter, collector, {newLineFirst: false,indentFirstObject: false,shouldIndentWithTab: isInArray,});const schemaProperties = schema.schema.properties;if (schemaProperties) {const maxProperties = schema.schema.maxProperties;if (maxProperties === undefined ||node.items === undefined ||node.items.length < maxProperties ||(node.items.length === maxProperties && !hasOnlyWhitespace)) {for (const key in schemaProperties) {if (Object.prototype.hasOwnProperty.call(schemaProperties, key)) {const propertySchema = schemaProperties[key];if (typeof propertySchema === 'object' && !propertySchema.deprecationMessage && !propertySchema['doNotSuggest']) {let identCompensation = '';if (nodeParent && (0, yaml_1.isSeq)(nodeParent) && node.items.length <= 1 && !hasOnlyWhitespace) {// because there is a slash '-' to prevent the properties generated to have the correct// indentconst sourceText = textBuffer.getText();const indexOfSlash = sourceText.lastIndexOf('-', node.range[0] - 1);if (indexOfSlash >= 0) {// add one space to compensate the '-'const overwriteChars = overwriteRange.end.character - overwriteRange.start.character;identCompensation = ' ' + sourceText.slice(indexOfSlash + 1, node.range[1] - overwriteChars);}}identCompensation += this.arrayPrefixIndentation;// if check that current node has last pair with "null" value and key witch match key from schema,// and if schema has array definition it add completion item for array item creationlet pair;if (propertySchema.type === 'array' &&(pair = node.items.find((it) => (0, yaml_1.isScalar)(it.key) &&it.key.range &&it.key.value === key &&(0, yaml_1.isScalar)(it.value) &&!it.value.value &&textBuffer.getPosition(it.key.range[2]).line === overwriteRange.end.line - 1)) &&pair) {if (Array.isArray(propertySchema.items)) {this.addSchemaValueCompletions(propertySchema.items[0], separatorAfter, collector, {}, 'property');}else if (typeof propertySchema.items === 'object' && propertySchema.items.type === 'object') {this.addArrayItemValueCompletion(propertySchema.items, separatorAfter, collector);}}let insertText = key;if (!key.startsWith(existingKey) || !hasColon) {insertText = this.getInsertTextForProperty(key, propertySchema, separatorAfter, identCompensation + this.indentation);}const isNodeNull = ((0, yaml_1.isScalar)(originalNode) && originalNode.value === null) ||((0, yaml_1.isMap)(originalNode) && originalNode.items.length === 0);const existsParentCompletion = schema.schema.required?.length > 0;if (!this.parentSkeletonSelectedFirst || !isNodeNull || !existsParentCompletion) {collector.add({kind: vscode_languageserver_types_1.CompletionItemKind.Property,label: key,insertText,insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '',}, didOneOfSchemaMatches);}// if the prop is required add it also to parent suggestionif (schema.schema.required?.includes(key)) {collector.add({label: key,insertText: this.getInsertTextForProperty(key, propertySchema, separatorAfter, identCompensation + this.indentation),insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '',parent: {schema: schema.schema,indent: identCompensation,},});}}}}}}// Error fix// If this is a array of string/boolean/number// test:// - item1// it will treated as a property key since `:` has been appendedif (nodeParent && (0, yaml_1.isSeq)(nodeParent) && (0, schemaUtils_1.isPrimitiveType)(schema.schema)) {this.addSchemaValueCompletions(schema.schema, separatorAfter, collector, {}, 'property', Array.isArray(nodeParent.items));}if (schema.schema.propertyNames && schema.schema.additionalProperties && schema.schema.type === 'object') {const propertyNameSchema = (0, jsonParser07_1.asSchema)(schema.schema.propertyNames);const label = propertyNameSchema.title || 'property';collector.add({kind: vscode_languageserver_types_1.CompletionItemKind.Property,label,insertText: '$' + `{1:${label}}: `,insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: this.fromMarkup(propertyNameSchema.markdownDescription) || propertyNameSchema.description || '',});}}if (nodeParent && schema.node.internalNode === nodeParent && schema.schema.defaultSnippets) {// For some reason the first item in the array needs to be treated differently, otherwise// the indentation will not be correctif (node.items.length === 1) {this.collectDefaultSnippets(schema.schema, separatorAfter, collector, {newLineFirst: false,indentFirstObject: false,shouldIndentWithTab: true,}, 1);}else {this.collectDefaultSnippets(schema.schema, separatorAfter, collector, {newLineFirst: false,indentFirstObject: true,shouldIndentWithTab: false,}, 1);}}}}getValueCompletions(schema, doc, node, offset, document, collector, types, doComplete) {let parentKey = null;if (node && (0, yaml_1.isScalar)(node)) {node = doc.getParent(node);}if (!node) {this.addSchemaValueCompletions(schema.schema, '', collector, types, 'value');return;}if ((0, yaml_1.isPair)(node)) {const valueNode = node.value;if (valueNode && valueNode.range && offset > valueNode.range[0] + valueNode.range[2]) {return; // we are past the value node}parentKey = (0, yaml_1.isScalar)(node.key) ? node.key.value + '' : null;node = doc.getParent(node);}if (node && (parentKey !== null || (0, yaml_1.isSeq)(node))) {const separatorAfter = '';const matchingSchemas = doc.getMatchingSchemas(schema.schema, -1, null, doComplete);for (const s of matchingSchemas) {if (s.node.internalNode === node && !s.inverted && s.schema) {if (s.schema.items) {this.collectDefaultSnippets(s.schema, separatorAfter, collector, {newLineFirst: false,indentFirstObject: false,shouldIndentWithTab: false,});if ((0, yaml_1.isSeq)(node) && node.items) {if (Array.isArray(s.schema.items)) {const index = this.findItemAtOffset(node, document, offset);if (index < s.schema.items.length) {this.addSchemaValueCompletions(s.schema.items[index], separatorAfter, collector, types, 'value');}}else if (typeof s.schema.items === 'object' &&(s.schema.items.type === 'object' || (0, schemaUtils_1.isAnyOfAllOfOneOfType)(s.schema.items))) {this.addSchemaValueCompletions(s.schema.items, separatorAfter, collector, types, 'value', true);}else {this.addSchemaValueCompletions(s.schema.items, separatorAfter, collector, types, 'value');}}}if (s.schema.properties) {const propertySchema = s.schema.properties[parentKey];if (propertySchema) {this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types, 'value');}}else if (s.schema.additionalProperties) {this.addSchemaValueCompletions(s.schema.additionalProperties, separatorAfter, collector, types, 'value');}}}if (types['boolean']) {this.addBooleanValueCompletion(true, separatorAfter, collector);this.addBooleanValueCompletion(false, separatorAfter, collector);}if (types['null']) {this.addNullValueCompletion(separatorAfter, collector);}}}addArrayItemValueCompletion(schema, separatorAfter, collector, index) {const schemaType = (0, schemaUtils_1.getSchemaTypeName)(schema);const insertText = `- ${this.getInsertTextForObject(schema, separatorAfter).insertText.trimLeft()}`;//append insertText to documentationconst schemaTypeTitle = schemaType ? ' type `' + schemaType + '`' : '';const schemaDescription = schema.description ? ' (' + schema.description + ')' : '';const documentation = this.getDocumentationWithMarkdownText(`Create an item of an array${schemaTypeTitle}${schemaDescription}`, insertText);collector.add({kind: this.getSuggestionKind(schema.type),label: '- (array item) ' + (schemaType || index),documentation: documentation,insertText: insertText,insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,});}getInsertTextForProperty(key, propertySchema, separatorAfter, indent = this.indentation) {const propertyText = this.getInsertTextForValue(key, '', 'string');const resultText = propertyText + ':';let value;let nValueProposals = 0;if (propertySchema) {let type = Array.isArray(propertySchema.type) ? propertySchema.type[0] : propertySchema.type;if (!type) {if (propertySchema.properties) {type = 'object';}else if (propertySchema.items) {type = 'array';}else if (propertySchema.anyOf) {type = 'anyOf';}}if (Array.isArray(propertySchema.defaultSnippets)) {if (propertySchema.defaultSnippets.length === 1) {const body = propertySchema.defaultSnippets[0].body;if ((0, objects_1.isDefined)(body)) {value = this.getInsertTextForSnippetValue(body, '', {newLineFirst: true,indentFirstObject: false,shouldIndentWithTab: false,}, [], 1);// add space before default snippet valueif (!value.startsWith(' ') && !value.startsWith('\n')) {value = ' ' + value;}}}nValueProposals += propertySchema.defaultSnippets.length;}if (propertySchema.enum) {if (!value && propertySchema.enum.length === 1) {value = ' ' + this.getInsertTextForGuessedValue(propertySchema.enum[0], '', type);}nValueProposals += propertySchema.enum.length;}if (propertySchema.const) {if (!value) {value = this.getInsertTextForGuessedValue(propertySchema.const, '', type);value = evaluateTab1Symbol(value); // prevent const being selected after snippet insertvalue = ' ' + value;}nValueProposals++;}if ((0, objects_1.isDefined)(propertySchema.default)) {if (!value) {value = ' ' + this.getInsertTextForGuessedValue(propertySchema.default, '', type);}nValueProposals++;}if (Array.isArray(propertySchema.examples) && propertySchema.examples.length) {if (!value) {value = ' ' + this.getInsertTextForGuessedValue(propertySchema.examples[0], '', type);}nValueProposals += propertySchema.examples.length;}if (propertySchema.properties) {return `${resultText}\n${this.getInsertTextForObject(propertySchema, separatorAfter, indent).insertText}`;}else if (propertySchema.items) {return `${resultText}\n${indent}- ${this.getInsertTextForArray(propertySchema.items, separatorAfter, 1, indent).insertText}`;}if (nValueProposals === 0) {switch (type) {case 'boolean':value = ' $1';break;case 'string':value = ' $1';break;case 'object':value = `\n${indent}`;break;case 'array':value = `\n${indent}- `;break;case 'number':case 'integer':value = ' ${1:0}';break;case 'null':value = ' ${1:null}';break;case 'anyOf':value = ' $1';break;default:return propertyText;}}}if (!value || nValueProposals > 1) {value = ' $1';}return resultText + value + separatorAfter;}getInsertTextForObject(schema, separatorAfter, indent = this.indentation, insertIndex = 1) {let insertText = '';if (!schema.properties) {insertText = `${indent}$${insertIndex++}\n`;return { insertText, insertIndex };}Object.keys(schema.properties).forEach((key) => {const propertySchema = schema.properties[key];let type = Array.isArray(propertySchema.type) ? propertySchema.type[0] : propertySchema.type;if (!type) {if (propertySchema.anyOf) {type = 'anyOf';}if (propertySchema.properties) {type = 'object';}if (propertySchema.items) {type = 'array';}}if (schema.required && schema.required.indexOf(key) > -1) {switch (type) {case 'boolean':case 'string':case 'number':case 'integer':case 'anyOf': {let value = propertySchema.default || propertySchema.const;if (value) {if (type === 'string') {value = convertToStringValue(value);}insertText += `${indent}${key}: \${${insertIndex++}:${value}}\n`;}else {insertText += `${indent}${key}: $${insertIndex++}\n`;}break;}case 'array':{const arrayInsertResult = this.getInsertTextForArray(propertySchema.items, separatorAfter, insertIndex++, indent);const arrayInsertLines = arrayInsertResult.insertText.split('\n');let arrayTemplate = arrayInsertResult.insertText;if (arrayInsertLines.length > 1) {for (let index = 1; index < arrayInsertLines.length; index++) {const element = arrayInsertLines[index];arrayInsertLines[index] = ` ${element}`;}arrayTemplate = arrayInsertLines.join('\n');}insertIndex = arrayInsertResult.insertIndex;insertText += `${indent}${key}:\n${indent}${this.indentation}- ${arrayTemplate}\n`;}break;case 'object':{const objectInsertResult = this.getInsertTextForObject(propertySchema, separatorAfter, `${indent}${this.indentation}`, insertIndex++);insertIndex = objectInsertResult.insertIndex;insertText += `${indent}${key}:\n${objectInsertResult.insertText}\n`;}break;}}else if (!this.disableDefaultProperties && propertySchema.default !== undefined) {switch (type) {case 'boolean':case 'number':case 'integer':insertText += `${indent}${//added quote if key is nullkey === 'null' ? this.getInsertTextForValue(key, '', 'string') : key}: \${${insertIndex++}:${propertySchema.default}}\n`;break;case 'string':insertText += `${indent}${key}: \${${insertIndex++}:${convertToStringValue(propertySchema.default)}}\n`;break;case 'array':case 'object':// TODO: support default value for array objectbreak;}}});if (insertText.trim().length === 0) {insertText = `${indent}$${insertIndex++}\n`;}insertText = insertText.trimRight() + separatorAfter;return { insertText, insertIndex };}// eslint-disable-next-line @typescript-eslint/no-explicit-anygetInsertTextForArray(schema, separatorAfter, insertIndex = 1, indent = this.indentation) {let insertText = '';if (!schema) {insertText = `$${insertIndex++}`;return { insertText, insertIndex };}let type = Array.isArray(schema.type) ? schema.type[0] : schema.type;if (!type) {if (schema.properties) {type = 'object';}if (schema.items) {type = 'array';}}switch (schema.type) {case 'boolean':insertText = `\${${insertIndex++}:false}`;break;case 'number':case 'integer':insertText = `\${${insertIndex++}:0}`;break;case 'string':insertText = `\${${insertIndex++}:""}`;break;case 'object':{const objectInsertResult = this.getInsertTextForObject(schema, separatorAfter, `${indent} `, insertIndex++);insertText = objectInsertResult.insertText.trimLeft();insertIndex = objectInsertResult.insertIndex;}break;}return { insertText, insertIndex };}// eslint-disable-next-line @typescript-eslint/no-explicit-anygetInsertTextForGuessedValue(value, separatorAfter, type) {switch (typeof value) {case 'object':if (value === null) {return '${1:null}' + separatorAfter;}return this.getInsertTextForValue(value, separatorAfter, type);case 'string': {let snippetValue = JSON.stringify(value);snippetValue = snippetValue.substr(1, snippetValue.length - 2); // remove quotessnippetValue = this.getInsertTextForPlainText(snippetValue); // escape \ and }if (type === 'string') {snippetValue = convertToStringValue(snippetValue);}return '${1:' + snippetValue + '}' + separatorAfter;}case 'number':case 'boolean':return '${1:' + value + '}' + separatorAfter;}return this.getInsertTextForValue(value, separatorAfter, type);}getInsertTextForPlainText(text) {return text.replace(/[\\$}]/g, '\\$&'); // escape $, \ and }}// eslint-disable-next-line @typescript-eslint/no-explicit-anygetInsertTextForValue(value, separatorAfter, type) {if (value === null) {return 'null'; // replace type null with string 'null'}switch (typeof value) {case 'object': {const indent = this.indentation;return this.getInsertTemplateForValue(value, indent, { index: 1 }, separatorAfter);}case 'number':case 'boolean':return this.getInsertTextForPlainText(value + separatorAfter);}type = Array.isArray(type) ? type[0] : type;if (type === 'string') {value = convertToStringValue(value);}return this.getInsertTextForPlainText(value + separatorAfter);}getInsertTemplateForValue(value, indent, navOrder, separatorAfter) {if (Array.isArray(value)) {let insertText = '\n';for (const arrValue of value) {insertText += `${indent}- \${${navOrder.index++}:${arrValue}}\n`;}return insertText;}else if (typeof value === 'object') {let insertText = '\n';for (const key in value) {if (Object.prototype.hasOwnProperty.call(value, key)) {const element = value[key];insertText += `${indent}\${${navOrder.index++}:${key}}:`;let valueTemplate;if (typeof element === 'object') {valueTemplate = `${this.getInsertTemplateForValue(element, indent + this.indentation, navOrder, separatorAfter)}`;}else {valueTemplate = ` \${${navOrder.index++}:${this.getInsertTextForPlainText(element + separatorAfter)}}\n`;}insertText += `${valueTemplate}`;}}return insertText;}return this.getInsertTextForPlainText(value + separatorAfter);}addSchemaValueCompletions(schema, separatorAfter, collector, types, completionType, isArray) {if (typeof schema === 'object') {this.addEnumValueCompletions(schema, separatorAfter, collector, isArray);this.addDefaultValueCompletions(schema, separatorAfter, collector);this.collectTypes(schema, types);if (isArray && completionType === 'value' && !(0, schemaUtils_1.isAnyOfAllOfOneOfType)(schema)) {// add array only for final types (no anyOf, allOf, oneOf)this.addArrayItemValueCompletion(schema, separatorAfter, collector);}if (Array.isArray(schema.allOf)) {schema.allOf.forEach((s) => {return this.addSchemaValueCompletions(s, separatorAfter, collector, types, completionType, isArray);});}if (Array.isArray(schema.anyOf)) {schema.anyOf.forEach((s) => {return this.addSchemaValueCompletions(s, separatorAfter, collector, types, completionType, isArray);});}if (Array.isArray(schema.oneOf)) {schema.oneOf.forEach((s) => {return this.addSchemaValueCompletions(s, separatorAfter, collector, types, completionType, isArray);});}}}collectTypes(schema, types) {if (Array.isArray(schema.enum) || (0, objects_1.isDefined)(schema.const)) {return;}const type = schema.type;if (Array.isArray(type)) {type.forEach(function (t) {return (types[t] = true);});}else if (type) {types[type] = true;}}addDefaultValueCompletions(schema, separatorAfter, collector, arrayDepth = 0) {let hasProposals = false;if ((0, objects_1.isDefined)(schema.default)) {let type = schema.type;let value = schema.default;for (let i = arrayDepth; i > 0; i--) {value = [value];type = 'array';}let label;if (typeof value == 'object') {label = 'Default value';}else {label = value.toString().replace(doubleQuotesEscapeRegExp, '"');}collector.add({kind: this.getSuggestionKind(type),label,insertText: this.getInsertTextForValue(value, separatorAfter, type),insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,detail: localize('json.suggest.default', 'Default value'),});hasProposals = true;}if (Array.isArray(schema.examples)) {schema.examples.forEach((example) => {let type = schema.type;let value = example;for (let i = arrayDepth; i > 0; i--) {value = [value];type = 'array';}collector.add({kind: this.getSuggestionKind(type),label: this.getLabelForValue(value),insertText: this.getInsertTextForValue(value, separatorAfter, type),insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,});hasProposals = true;});}this.collectDefaultSnippets(schema, separatorAfter, collector, {newLineFirst: true,indentFirstObject: true,shouldIndentWithTab: true,});if (!hasProposals && typeof schema.items === 'object' && !Array.isArray(schema.items)) {this.addDefaultValueCompletions(schema.items, separatorAfter, collector, arrayDepth + 1);}}addEnumValueCompletions(schema, separatorAfter, collector, isArray) {if ((0, objects_1.isDefined)(schema.const) && !isArray) {collector.add({kind: this.getSuggestionKind(schema.type),label: this.getLabelForValue(schema.const),insertText: this.getInsertTextForValue(schema.const, separatorAfter, schema.type),insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: this.fromMarkup(schema.markdownDescription) || schema.description,});}if (Array.isArray(schema.enum)) {for (let i = 0, length = schema.enum.length; i < length; i++) {const enm = schema.enum[i];let documentation = this.fromMarkup(schema.markdownDescription) || schema.description;if (schema.markdownEnumDescriptions && i < schema.markdownEnumDescriptions.length && this.doesSupportMarkdown()) {documentation = this.fromMarkup(schema.markdownEnumDescriptions[i]);}else if (schema.enumDescriptions && i < schema.enumDescriptions.length) {documentation = schema.enumDescriptions[i];}collector.add({kind: this.getSuggestionKind(schema.type),label: this.getLabelForValue(enm),insertText: this.getInsertTextForValue(enm, separatorAfter, schema.type),insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: documentation,});}}}getLabelForValue(value) {if (value === null) {return 'null'; // return string with 'null' value if schema contains null as possible value}if (Array.isArray(value)) {return JSON.stringify(value);}return '' + value;}collectDefaultSnippets(schema, separatorAfter, collector, settings, arrayDepth = 0) {if (Array.isArray(schema.defaultSnippets)) {for (const s of schema.defaultSnippets) {let type = schema.type;let value = s.body;let label = s.label;let insertText;let filterText;if ((0, objects_1.isDefined)(value)) {const type = s.type || schema.type;if (arrayDepth === 0 && type === 'array') {// We know that a - isn't present yet so we need to add oneconst fixedObj = {};Object.keys(value).forEach((val, index) => {if (index === 0 && !val.startsWith('-')) {fixedObj[`- ${val}`] = value[val];}else {fixedObj[` ${val}`] = value[val];}});value = fixedObj;}const existingProps = Object.keys(collector.proposed).filter((proposedProp) => collector.proposed[proposedProp].label === existingProposeItem);insertText = this.getInsertTextForSnippetValue(value, separatorAfter, settings, existingProps);// if snippet result is empty and value has a real value, don't add it as a completionif (insertText === '' && value) {continue;}label = label || this.getLabelForSnippetValue(value);}else if (typeof s.bodyText === 'string') {let prefix = '', suffix = '', indent = '';for (let i = arrayDepth; i > 0; i--) {prefix = prefix + indent + '[\n';suffix = suffix + '\n' + indent + ']';indent += this.indentation;type = 'array';}insertText = prefix + indent + s.bodyText.split('\n').join('\n' + indent) + suffix + separatorAfter;label = label || insertText;filterText = insertText.replace(/[\n]/g, ''); // remove new lines}collector.add({kind: s.suggestionKind || this.getSuggestionKind(type),label,sortText: s.sortText || s.label,documentation: this.fromMarkup(s.markdownDescription) || s.description,insertText,insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,filterText,});}}}getInsertTextForSnippetValue(value, separatorAfter, settings, existingProps, depth) {// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst replacer = (value) => {if (typeof value === 'string') {if (value[0] === '^') {return value.substr(1);}if (value === 'true' || value === 'false') {return `"${value}"`;}}return value;};return ((0, json_1.stringifyObject)(value, '', replacer, { ...settings, indentation: this.indentation, existingProps }, depth) + separatorAfter);}addBooleanValueCompletion(value, separatorAfter, collector) {collector.add({kind: this.getSuggestionKind('boolean'),label: value ? 'true' : 'false',insertText: this.getInsertTextForValue(value, separatorAfter, 'boolean'),insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: '',});}addNullValueCompletion(separatorAfter, collector) {collector.add({kind: this.getSuggestionKind('null'),label: 'null',insertText: 'null' + separatorAfter,insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: '',});}// eslint-disable-next-line @typescript-eslint/no-explicit-anygetLabelForSnippetValue(value) {const label = JSON.stringify(value);return label.replace(/\$\{\d+:([^}]+)\}|\$\d+/g, '$1');}getCustomTagValueCompletions(collector) {const validCustomTags = (0, arrUtils_1.filterInvalidCustomTags)(this.customTags);validCustomTags.forEach((validTag) => {// Valid custom tags are guarenteed to be stringsconst label = validTag.split(' ')[0];this.addCustomTagValueCompletion(collector, ' ', label);});}addCustomTagValueCompletion(collector, separatorAfter, label) {collector.add({kind: this.getSuggestionKind('string'),label: label,insertText: label + separatorAfter,insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,documentation: '',});}getDocumentationWithMarkdownText(documentation, insertText) {let res = documentation;if (this.doesSupportMarkdown()) {insertText = insertText.replace(/\${[0-9]+[:|](.*)}/g, (s, arg) => {return arg;}).replace(/\$([0-9]+)/g, '');res = this.fromMarkup(`${documentation}\n \`\`\`\n${insertText}\n\`\`\``);}return res;}// eslint-disable-next-line @typescript-eslint/no-explicit-anygetSuggestionKind(type) {if (Array.isArray(type)) {// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst array = type;type = array.length > 0 ? array[0] : null;}if (!type) {return vscode_languageserver_types_1.CompletionItemKind.Value;}switch (type) {case 'string':return vscode_languageserver_types_1.CompletionItemKind.Value;case 'object':return vscode_languageserver_types_1.CompletionItemKind.Module;case 'property':return vscode_languageserver_types_1.CompletionItemKind.Property;default:return vscode_languageserver_types_1.CompletionItemKind.Value;}}getCurrentWord(doc, offset) {let i = offset - 1;const text = doc.getText();while (i >= 0 && ' \t\n\r\v":{[,]}'.indexOf(text.charAt(i)) === -1) {i--;}return text.substring(i + 1, offset);}fromMarkup(markupString) {if (markupString && this.doesSupportMarkdown()) {return {kind: vscode_languageserver_types_1.MarkupKind.Markdown,value: markupString,};}return undefined;}doesSupportMarkdown() {if (this.supportsMarkdown === undefined) {const completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion;this.supportsMarkdown =completion &&completion.completionItem &&Array.isArray(completion.completionItem.documentationFormat) &&completion.completionItem.documentationFormat.indexOf(vscode_languageserver_types_1.MarkupKind.Markdown) !== -1;}return this.supportsMarkdown;}findItemAtOffset(seqNode, doc, offset) {for (let i = seqNode.items.length - 1; i >= 0; i--) {const node = seqNode.items[i];if ((0, yaml_1.isNode)(node)) {if (node.range) {if (offset > node.range[1]) {return i;}else if (offset >= node.range[0]) {return i;}}}}return 0;}}exports.YamlCompletion = YamlCompletion;const isNumberExp = /^\d+$/;function convertToStringValue(param) {let value;if (typeof param === 'string') {value = param;}else {value = '' + param;}if (value.length === 0) {return value;}if (value === 'true' || value === 'false' || value === 'null' || isNumberExp.test(value)) {return `"${value}"`;}if (value.indexOf('"') !== -1) {value = value.replace(doubleQuotesEscapeRegExp, '"');}let doQuote = !isNaN(parseInt(value)) || value.charAt(0) === '@';if (!doQuote) {// need to quote value if in `foo: bar`, `foo : bar` (mapping) or `foo:` (partial map) format// but `foo:bar` and `:bar` (colon without white-space after it) are just plain stringlet idx = value.indexOf(':', 0);for (; idx > 0 && idx < value.length; idx = value.indexOf(':', idx + 1)) {if (idx === value.length - 1) {// `foo:` (partial map) formatdoQuote = true;break;}// there are only two valid kinds of white-space in yaml: space or tab// ref: https://yaml.org/spec/1.2.1/#id2775170const nextChar = value.charAt(idx + 1);if (nextChar === '\t' || nextChar === ' ') {doQuote = true;break;}}}if (doQuote) {value = `"${value}"`;}return value;}/*** simplify `{$1:value}` to `value`*/function evaluateTab1Symbol(value) {return value.replace(/\$\{1:(.*)\}/, '$1');}function isParentCompletionItem(item) {return 'parent' in item;}});//# sourceMappingURL=yamlCompletion.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:4220c8e4cde986301792793d47f13fa9fbf3f20bde7c8c8a49a8ab2b68aef096size 548191{"version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,GAAG,CAAC,CAAC,EAAE;gBACvE,IAAI,GAAG,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;oBAC5B,8BAA8B;oBAC9B,OAAO,GAAG,IAAI,CAAC;oBACf,MAAM;iBACP;gBAED,sEAAsE;gBACtE,8CAA8C;gBAC9C,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;gBACvC,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,GAAG,EAAE;oBACzC,OAAO,GAAG,IAAI,CAAC;oBACf,MAAM;iBACP;aACF;SACF;QAED,IAAI,OAAO,EAAE;YACX,KAAK,GAAG,IAAI,KAAK,GAAG,CAAC;SACtB;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,SAAS,kBAAkB,CAAC,KAAa;QACvC,OAAO,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,SAAS,sBAAsB,CAAC,IAAwB;QACtD,OAAO,QAAQ,IAAI,IAAI,CAAC;IAC1B,CAAC"}
123version https://git-lfs.github.com/spec/v1oid sha256:7a88dcf0cbb376a7d0f780c8ebab082796a8125bf18f12cf23db924bb1fd3e9dsize 450123456789import { DefinitionParams } from 'vscode-languageserver-protocol';import { TextDocument } from 'vscode-languageserver-textdocument';import { DefinitionLink } from 'vscode-languageserver-types';import { Telemetry } from '../telemetry';export declare class YamlDefinition {private readonly telemetry?;constructor(telemetry?: Telemetry);getDefinition(document: TextDocument, params: DefinitionParams): DefinitionLink[] | undefined;}
123version https://git-lfs.github.com/spec/v1oid sha256:20a6d9233cf5bfe16b0ddd50c5dfa1e4f4149ece957b6f5dcc31151d0e92d4f9size 292312345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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-types", "yaml", "../parser/yaml-documents", "../utils/arrUtils", "../utils/objects", "../utils/textBuffer"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.YamlDefinition = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const yaml_1 = require("yaml");const yaml_documents_1 = require("../parser/yaml-documents");const arrUtils_1 = require("../utils/arrUtils");const objects_1 = require("../utils/objects");const textBuffer_1 = require("../utils/textBuffer");class YamlDefinition {constructor(telemetry) {this.telemetry = telemetry;}getDefinition(document, params) {try {const yamlDocument = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);const offset = document.offsetAt(params.position);const currentDoc = (0, arrUtils_1.matchOffsetToDocument)(offset, yamlDocument);if (currentDoc) {const [node] = currentDoc.getNodeFromPosition(offset, new textBuffer_1.TextBuffer(document));if (node && (0, yaml_1.isAlias)(node)) {const defNode = node.resolve(currentDoc.internalDocument);if (defNode && defNode.range) {const targetRange = vscode_languageserver_types_1.Range.create(document.positionAt(defNode.range[0]), document.positionAt(defNode.range[2]));const selectionRange = vscode_languageserver_types_1.Range.create(document.positionAt(defNode.range[0]), document.positionAt(defNode.range[1]));return [vscode_languageserver_types_1.LocationLink.create(document.uri, targetRange, selectionRange)];}}}}catch (err) {this.telemetry?.sendError('yaml.definition.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });}return undefined;}}exports.YamlDefinition = YamlDefinition;});//# sourceMappingURL=yamlDefinition.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:01fa5c092892bd860d74dc3f9a58a2710ee2e61e9ef21350247fb88d2dc8044dsize 14721{"version":3,"file":"yamlDefinition.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlDefinition.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAIhG,6EAAk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AC,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;yBACzE;qBACF;iBACF;aACF;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aAChG;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;KACF;IAzBD,wCAyBC"}
123version https://git-lfs.github.com/spec/v1oid sha256:c9b72ec822052b0a1e21e7f636faf35c30ea111a52fbb237cfcf355017949858size 3051234import { FoldingRange } from 'vscode-languageserver-types';import { FoldingRangesContext } from '../yamlTypes';import { TextDocument } from 'vscode-languageserver-textdocument';export declare function getFoldingRanges(document: TextDocument, context: FoldingRangesContext): FoldingRange[] | undefined;
123version https://git-lfs.github.com/spec/v1oid sha256:85b2d1e634b87c9abb80a99444b5a61244f4153aaa5b93d9ec8a810208e1ea23size 373712345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576(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-types", "../parser/yaml-documents"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.getFoldingRanges = void 0;/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/const vscode_languageserver_types_1 = require("vscode-languageserver-types");const yaml_documents_1 = require("../parser/yaml-documents");function getFoldingRanges(document, context) {if (!document) {return;}const result = [];const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);for (const ymlDoc of doc.documents) {if (doc.documents.length > 1) {result.push(createNormalizedFolding(document, ymlDoc.root));}ymlDoc.visit((node) => {if (node.type === 'object' && node.parent?.type === 'array') {result.push(createNormalizedFolding(document, node));}if (node.type === 'property' && node.valueNode) {switch (node.valueNode.type) {case 'array':case 'object':result.push(createNormalizedFolding(document, node));break;case 'string': {// check if it is a multi-line stringconst nodePosn = document.positionAt(node.offset);const valuePosn = document.positionAt(node.valueNode.offset + node.valueNode.length);if (nodePosn.line !== valuePosn.line) {result.push(createNormalizedFolding(document, node));}break;}default:return true;}}return true;});}const rangeLimit = context && context.rangeLimit;if (typeof rangeLimit !== 'number' || result.length <= rangeLimit) {return result;}if (context && context.onRangeLimitExceeded) {context.onRangeLimitExceeded(document.uri);}return result.slice(0, context.rangeLimit);}exports.getFoldingRanges = getFoldingRanges;function createNormalizedFolding(document, node) {const startPos = document.positionAt(node.offset);let endPos = document.positionAt(node.offset + node.length);const textFragment = document.getText(vscode_languageserver_types_1.Range.create(startPos, endPos));const newLength = textFragment.length - textFragment.trimRight().length;if (newLength > 0) {endPos = document.positionAt(node.offset + node.length - newLength);}return vscode_languageserver_types_1.FoldingRange.create(startPos.line, endPos.line, startPos.character, endPos.character);}});//# sourceMappingURL=yamlFolding.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:910bad30067aab8b4171c807c0bc204a8085b5ace6aca711dd1eb1c39e24f7e5size 23641{"version":3,"file":"yamlFolding.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlFolding.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA;;;oGAGgG;IAChG,6EAAkE;IAGlE,6DAA8D;IAG9D,SAAgB,gBAAgB,CAAC,QAAsB,EAAE,OAA6B;QACpF,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO;SACR;QACD,MAAM,MAAM,GAAmB,EAAE,CAAC;QAClC,MAAM,GAAG,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACzD,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE;YAClC,IAAI,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC5B,MAAM,C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MAAM,IAAI,UAAU,EAAE;YACjE,OAAO,MAAM,CAAC;SACf;QACD,IAAI,OAAO,IAAI,OAAO,CAAC,oBAAoB,EAAE;YAC3C,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;SAC5C;QAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;IA7CD,4CA6CC;IAED,SAAS,uBAAuB,CAAC,QAAsB,EAAE,IAAa;QACpE,MAAM,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5D,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,mCAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QACtE,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC;QACxE,IAAI,SAAS,GAAG,CAAC,EAAE;YACjB,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;SACrE;QACD,OAAO,0CAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC/F,CAAC"}
123version https://git-lfs.github.com/spec/v1oid sha256:8231cfa9a1e4a38a0bbeaed003e818c239d85ae97ca1dd9196793085498de453size 44812345678import { TextEdit, FormattingOptions } from 'vscode-languageserver-types';import { CustomFormatterOptions, LanguageSettings } from '../yamlLanguageService';import { TextDocument } from 'vscode-languageserver-textdocument';export declare class YAMLFormatter {private formatterEnabled;configure(shouldFormat: LanguageSettings): void;format(document: TextDocument, options: FormattingOptions & CustomFormatterOptions): TextEdit[];}
123version https://git-lfs.github.com/spec/v1oid sha256:96dc220b881ae34b4cdee5870581d748e66b46650c1e69d1b3267d6f7a7069fbsize 272712345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758(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-types", "prettier", "prettier/parser-yaml"], factory);}})(function (require, exports) {/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Copyright (c) Adam Voss. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.YAMLFormatter = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const prettier = require("prettier");const parser = require("prettier/parser-yaml");class YAMLFormatter {constructor() {this.formatterEnabled = true;}configure(shouldFormat) {if (shouldFormat) {this.formatterEnabled = shouldFormat.format;}}format(document, options) {if (!this.formatterEnabled) {return [];}try {const text = document.getText();const prettierOptions = {parser: 'yaml',plugins: [parser],// --- FormattingOptions ---tabWidth: options.tabWidth || options.tabSize,// --- CustomFormatterOptions ---singleQuote: options.singleQuote,bracketSpacing: options.bracketSpacing,// 'preserve' is the default for Options.proseWrap. See also server.tsproseWrap: 'always' === options.proseWrap ? 'always' : 'never' === options.proseWrap ? 'never' : 'preserve',printWidth: options.printWidth,};const formatted = prettier.format(text, prettierOptions);return [vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(vscode_languageserver_types_1.Position.create(0, 0), document.positionAt(text.length)), formatted)];}catch (error) {return [];}}}exports.YAMLFormatter = YAMLFormatter;});//# sourceMappingURL=yamlFormatter.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:069682d78987704d32ff40103e79af3aa61a123a6c103a82b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AQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;aAC7G;YAAC,OAAO,KAAK,EAAE;gBACd,OAAO,EAAE,CAAC;aACX;QACH,CAAC;KACF;IAvCD,sCAuCC"}
123version https://git-lfs.github.com/spec/v1oid sha256:0d24da5f660c79bfa5992e1b231f1ec94bb9435659ee99bc4b519d363d826d17size 690123456789101112131415import { Hover, Position } from 'vscode-languageserver-types';import { LanguageSettings } from '../yamlLanguageService';import { YAMLSchemaService } from './yamlSchemaService';import { TextDocument } from 'vscode-languageserver-textdocument';import { Telemetry } from '../telemetry';export declare class YAMLHover {private readonly telemetry?;private shouldHover;private indentation;private schemaService;constructor(schemaService: YAMLSchemaService, telemetry?: Telemetry);configure(languageSettings: LanguageSettings): void;doHover(document: TextDocument, position: Position, isKubernetes?: boolean): Promise<Hover | null>;private getHover;}
123version https://git-lfs.github.com/spec/v1oid sha256:c0b166cb70be2caf912b5aa13c2946884b0e50a681638218e574498fd9cf157bsize 11962123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231(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-types", "../utils/arrUtils", "../parser/isKubernetes", "../parser/yaml-documents", "../parser/jsonParser07", "vscode-uri", "path", "../utils/objects"], factory);}})(function (require, exports) {/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. 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.*--------------------------------------------------------------------------------------------*/'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.YAMLHover = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const arrUtils_1 = require("../utils/arrUtils");const isKubernetes_1 = require("../parser/isKubernetes");const yaml_documents_1 = require("../parser/yaml-documents");const jsonParser07_1 = require("../parser/jsonParser07");const vscode_uri_1 = require("vscode-uri");const path = require("path");const objects_1 = require("../utils/objects");class YAMLHover {constructor(schemaService, telemetry) {this.telemetry = telemetry;this.shouldHover = true;this.schemaService = schemaService;}configure(languageSettings) {if (languageSettings) {this.shouldHover = languageSettings.hover;this.indentation = languageSettings.indentation;}}doHover(document, position, isKubernetes = false) {try {if (!this.shouldHover || !document) {return Promise.resolve(undefined);}const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);const offset = document.offsetAt(position);const currentDoc = (0, arrUtils_1.matchOffsetToDocument)(offset, doc);if (currentDoc === null) {return Promise.resolve(undefined);}(0, isKubernetes_1.setKubernetesParserOption)(doc.documents, isKubernetes);const currentDocIndex = doc.documents.indexOf(currentDoc);currentDoc.currentDocIndex = currentDocIndex;return this.getHover(document, position, currentDoc);}catch (error) {this.telemetry?.sendError('yaml.hover.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(error) });}}// method copied from https://github.com/microsoft/vscode-json-languageservice/blob/2ea5ad3d2ffbbe40dea11cfe764a502becf113ce/src/services/jsonHover.ts#L23getHover(document, position, doc) {const offset = document.offsetAt(position);let node = doc.getNodeFromOffset(offset);if (!node ||((node.type === 'object' || node.type === 'array') && offset > node.offset + 1 && offset < node.offset + node.length - 1)) {return Promise.resolve(null);}const hoverRangeNode = node;// use the property description when hovering over an object keyif (node.type === 'string') {const parent = node.parent;if (parent && parent.type === 'property' && parent.keyNode === node) {node = parent.valueNode;if (!node) {return Promise.resolve(null);}}}const hoverRange = vscode_languageserver_types_1.Range.create(document.positionAt(hoverRangeNode.offset), document.positionAt(hoverRangeNode.offset + hoverRangeNode.length));const createHover = (contents) => {if (this.indentation !== undefined) {const indentationMatchRegex = new RegExp(` {${this.indentation.length}}`, 'g');contents = contents.replace(indentationMatchRegex, ' ');}const markupContent = {kind: vscode_languageserver_types_1.MarkupKind.Markdown,value: contents,};const result = {contents: markupContent,range: hoverRange,};return result;};const removePipe = (value) => {return value.replace(/\|\|\s*$/, '');};return this.schemaService.getSchemaForResource(document.uri, doc).then((schema) => {if (schema && node && !schema.errors.length) {const matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset);let title = undefined;let markdownDescription = undefined;let markdownEnumValueDescription = undefined;let enumValue = undefined;const markdownExamples = [];matchingSchemas.every((s) => {if ((s.node === node || (node.type === 'property' && node.valueNode === s.node)) && !s.inverted && s.schema) {title = title || s.schema.title || s.schema.closestTitle;markdownDescription = markdownDescription || s.schema.markdownDescription || toMarkdown(s.schema.description);if (s.schema.enum) {const idx = s.schema.enum.indexOf((0, jsonParser07_1.getNodeValue)(node));if (s.schema.markdownEnumDescriptions) {markdownEnumValueDescription = s.schema.markdownEnumDescriptions[idx];}else if (s.schema.enumDescriptions) {markdownEnumValueDescription = toMarkdown(s.schema.enumDescriptions[idx]);}if (markdownEnumValueDescription) {enumValue = s.schema.enum[idx];if (typeof enumValue !== 'string') {enumValue = JSON.stringify(enumValue);}}}if (s.schema.anyOf && isAllSchemasMatched(node, matchingSchemas, s.schema)) {//if append title and description of all matched schemas on hovertitle = '';markdownDescription = '';s.schema.anyOf.forEach((childSchema, index) => {title += childSchema.title || s.schema.closestTitle || '';markdownDescription += childSchema.markdownDescription || toMarkdown(childSchema.description) || '';if (index !== s.schema.anyOf.length - 1) {title += ' || ';markdownDescription += ' || ';}});title = removePipe(title);markdownDescription = removePipe(markdownDescription);}if (s.schema.examples) {s.schema.examples.forEach((example) => {markdownExamples.push(JSON.stringify(example, null, 2));});}}return true;});let result = '';if (title) {result = '#### ' + toMarkdown(title);}if (markdownDescription) {if (result.length > 0) {result += '\n\n';}result += markdownDescription;}if (markdownEnumValueDescription) {if (result.length > 0) {result += '\n\n';}result += `\`${toMarkdownCodeBlock(enumValue)}\`: ${markdownEnumValueDescription}`;}if (markdownExamples.length !== 0) {if (result.length > 0) {result += '\n\n';}result += 'Examples:';markdownExamples.forEach((example) => {result += `\n\n\`\`\`${example}\`\`\``;});}if (result.length > 0 && schema.schema.url) {result += `\n\nSource: [${getSchemaName(schema.schema)}](${schema.schema.url})`;}return createHover(result);}return null;});}}exports.YAMLHover = YAMLHover;function getSchemaName(schema) {let result = 'JSON Schema';const urlString = schema.url;if (urlString) {const url = vscode_uri_1.URI.parse(urlString);result = path.basename(url.fsPath);}else if (schema.title) {result = schema.title;}return result;}function toMarkdown(plain) {if (plain) {const res = plain.replace(/([^\n\r])(\r?\n)([^\n\r])/gm, '$1\n\n$3'); // single new lines to \n\n (Markdown paragraph)return res.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&'); // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash}return undefined;}// copied from https://github.com/microsoft/vscode-json-languageservice/blob/2ea5ad3d2ffbbe40dea11cfe764a502becf113ce/src/services/jsonHover.ts#L122function toMarkdownCodeBlock(content) {// see https://daringfireball.net/projects/markdown/syntax#precodeif (content.indexOf('`') !== -1) {return '`` ' + content + ' ``';}return content;}/*** check all the schemas which is inside anyOf presented or not in matching schema.* @param node node* @param matchingSchemas all matching schema* @param schema scheam which is having anyOf* @returns true if all the schemas which inside anyOf presents in matching schema*/function isAllSchemasMatched(node, matchingSchemas, schema) {let count = 0;for (const matchSchema of matchingSchemas) {if (node === matchSchema.node && matchSchema.schema !== schema) {schema.anyOf.forEach((childSchema) => {if (matchSchema.schema.title === childSchema.title &&matchSchema.schema.description === childSchema.description &&matchSchema.schema.properties === childSchema.properties) {count++;}});}}return count === schema.anyOf.length;}});//# sourceMappingURL=yamlHover.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:4afed20e324d68fbf078a39b68b6d3a7e1f16f626d2a233824c16739fca22abesize 75371{"version":3,"file":"yamlHover.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlHover.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;;oGAIgG;IAChG,YAAY,CAAC;;;IAEb,6EAAgG;IAChG,gDAA0D;IAG1D,yDAAmE;IAEnE,6DAA8D;IAE9D,yDAAyE;IAEzE,2CAAiC;IACjC,6BAA6B;IAE7B,8CAA8D;IAG9D,MAAa,SAAS;QAKpB,YAAY,aAAgC,EAAmB,SAAqB;YAArB,cAAS,GAAT,SAAS,CAAY;YAClF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACrC,CAAC;QAED,SAAS,CAAC,gBAAkC;YAC1C,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,GAAG,gBAAgB,CAAC,KAAK,CAAC;gBAC1C,IAAI,CAAC,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC;aACjD;QACH,CAAC;QAED,OAAO,CAAC,QAAsB,EAAE,QAAkB,EAAE,YAAY,GAAG,KAAK;YACtE,IAAI;gBACF,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,EAAE;oBAClC,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;iBACnC;gBACD,MAAM,GAAG,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;gBACzD,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;gBAC3C,MAAM,UAAU,GAAG,IAAA,gCAAqB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBACtD,IAAI,UAAU,KAAK,IAAI,EAAE;oBACvB,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;iBACnC;gBAED,IAAA,wCAAyB,EAAC,GAAG,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;gBACvD,MAAM,eAAe,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WAAW,CAAC,WAAW;wBAC1D,WAAW,CAAC,MAAM,CAAC,UAAU,KAAK,WAAW,CAAC,UAAU,EACxD;wBACA,KAAK,EAAE,CAAC;qBACT;gBACH,CAAC,CAAC,CAAC;aACJ;SACF;QACD,OAAO,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IACvC,CAAC"}
123version https://git-lfs.github.com/spec/v1oid sha256:696f2fd0d738f228c37018f34ca63c969c4a4fdb0fca4ddc6d13e200349d96besize 34112345678import { DocumentLink } from 'vscode-languageserver-types';import { TextDocument } from 'vscode-languageserver-textdocument';import { Telemetry } from '../telemetry';export declare class YamlLinks {private readonly telemetry?;constructor(telemetry?: Telemetry);findLinks(document: TextDocument): Promise<DocumentLink[]>;}
123version https://git-lfs.github.com/spec/v1oid sha256:18c28cc2deafd9dbe2992d709f1bcab0dc4038d2e846294e4c6590008efbf9ccsize 2152123456789101112131415161718192021222324252627282930313233343536373839404142(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-json-languageservice/lib/umd/services/jsonLinks", "../parser/yaml-documents", "../utils/objects"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.YamlLinks = void 0;/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/const jsonLinks_1 = require("vscode-json-languageservice/lib/umd/services/jsonLinks");const yaml_documents_1 = require("../parser/yaml-documents");const objects_1 = require("../utils/objects");class YamlLinks {constructor(telemetry) {this.telemetry = telemetry;}findLinks(document) {try {const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);// Find links across all YAML Documents then report them back once finishedconst linkPromises = [];for (const yamlDoc of doc.documents) {linkPromises.push((0, jsonLinks_1.findLinks)(document, yamlDoc));}// Wait for all the promises to return and then flatten them into one DocumentLink arrayreturn Promise.all(linkPromises).then((yamlLinkArray) => [].concat(...yamlLinkArray));}catch (err) {this.telemetry?.sendError('yaml.documentLink.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });}}}exports.YamlLinks = YamlLinks;});//# sourceMappingURL=yamlLinks.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:dcb708cbcd40263b4cccf4d6b013b9219fb89fb8e676fbfb91283ca0b0d1865bsize 8471{"version":3,"file":"yamlLinks.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlLinks.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA;;;oGAGgG;IAChG,sFAAoG;IAIpG,6DAA8D;IAC9D,8CAA8D;IAE9D,MAAa,SAAS;QACpB,YAA6B,SAAqB;YAArB,cAAS,GAAT,SAAS,CAAY;QAAG,CAAC;QAEtD,SAAS,CAAC,QAAsB;YAC9B,IAAI;gBACF,MAAM,GAAG,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;gBACzD,2EAA2E;gBAC3E,MAAM,YAAY,GAAG,EAAE,CAAC;gBACxB,KAAK,MAAM,OAAO,IAAI,GAAG,CAAC,SAAS,EAAE;oBACnC,YAAY,CAAC,IAAI,CAAC,IAAA,qBAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;iBACrD;gBACD,wFAAwF;gBACxF,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;aACvF;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aAClG;QACH,CAAC;KACF;IAjBD,8BAiBC"}
123version https://git-lfs.github.com/spec/v1oid sha256:4aecaf44ce73e3277a8d6c31b33ad672dc77fba19ae231a6032a0c92bef6328bsize 3351234import { DocumentOnTypeFormattingParams } from 'vscode-languageserver';import { TextEdit } from 'vscode-languageserver-types';import { TextDocument } from 'vscode-languageserver-textdocument';export declare function doDocumentOnTypeFormatting(document: TextDocument, params: DocumentOnTypeFormattingParams): TextEdit[] | undefined;
123version https://git-lfs.github.com/spec/v1oid sha256:2adee56cba4809a87123648d7bc91b1adc64d8a8a05012bdb36ea7c46bc2c186size 3352123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. All rights reserved.* Licensed under the MIT License. See License.txt in the project root for license information.*--------------------------------------------------------------------------------------------*/(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-types", "../utils/textBuffer"], factory);}})(function (require, exports) {"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.doDocumentOnTypeFormatting = void 0;const vscode_languageserver_types_1 = require("vscode-languageserver-types");const textBuffer_1 = require("../utils/textBuffer");function doDocumentOnTypeFormatting(document, params) {const { position } = params;const tb = new textBuffer_1.TextBuffer(document);if (params.ch === '\n') {const previousLine = tb.getLineContent(position.line - 1);if (previousLine.trimRight().endsWith(':')) {const currentLine = tb.getLineContent(position.line);const subLine = currentLine.substring(position.character, currentLine.length);const isInArray = previousLine.indexOf(' - ') !== -1;if (subLine.trimRight().length === 0) {const indentationFix = position.character - (previousLine.length - previousLine.trimLeft().length);if (indentationFix === params.options.tabSize && !isInArray) {return; // skip if line already has proper formatting}const result = [];if (currentLine.length > 0) {result.push(vscode_languageserver_types_1.TextEdit.del(vscode_languageserver_types_1.Range.create(position, vscode_languageserver_types_1.Position.create(position.line, currentLine.length - 1))));}result.push(vscode_languageserver_types_1.TextEdit.insert(position, ' '.repeat(params.options.tabSize + (isInArray ? 2 - indentationFix : 0))));return result;}if (isInArray) {return [vscode_languageserver_types_1.TextEdit.insert(position, ' '.repeat(params.options.tabSize))];}}if (previousLine.trimRight().endsWith('|')) {return [vscode_languageserver_types_1.TextEdit.insert(position, ' '.repeat(params.options.tabSize))];}if (previousLine.includes(' - ') && !previousLine.includes(': ')) {return [vscode_languageserver_types_1.TextEdit.insert(position, '- ')];}if (previousLine.includes(' - ') && previousLine.includes(': ')) {return [vscode_languageserver_types_1.TextEdit.insert(position, ' ')];}}}exports.doDocumentOnTypeFormatting = doDocumentOnTypeFormatting;});//# sourceMappingURL=yamlOnTypeFormatting.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:c2eee8573bb04264184c7213deb515916917e60ae1573a4ae40de4dd651c29bdsize 21541{"version":3,"file":"yamlOnTypeFormatting.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlOnTypeFormatting.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EAAwE;IAExE,oDAAiD;IAEjD,SAAgB,0BAA0B,CACxC,QAAsB,EACtB,MAAsC;QAEtC,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,MAAM,EAAE,GAAG,IAAI,uBAAU,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,MAAM,CAAC,EAAE,KAAK,IAAI,EAAE;YACtB,MAAM,YAAY,GAAG,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;YAC1D,IAAI,YAAY,CAAC,SAAS,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC1C,MAAM,WAAW,GAAG,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACrD,MAAM,OAAO,GAAG,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;gBAC9E,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,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CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;aACxE;YAED,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBAChE,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;aAC1C;YAED,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBAC/D,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;aAC1C;SACF;IACH,CAAC;IA1CD,gEA0CC"}
123version https://git-lfs.github.com/spec/v1oid sha256:4d265f93b1cbc28de09dc5d2e23e7f657c41c94e31d6f7702a2ebf575abf6850size 4359123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102import { JSONSchema } from '../jsonSchema';import { SchemaPriority, SchemaRequestService, WorkspaceContextService } from '../yamlLanguageService';import { UnresolvedSchema, ResolvedSchema, JSONSchemaService, SchemaDependencies, ISchemaContributions, SchemaHandle } from 'vscode-json-languageservice/lib/umd/services/jsonSchemaService';import { JSONDocument } from '../parser/jsonParser07';import { JSONSchemaDescriptionExt } from '../../requestTypes';import { SchemaVersions } from '../yamlTypes';export declare type CustomSchemaProvider = (uri: string) => Promise<string | string[]>;export declare enum MODIFICATION_ACTIONS {'delete' = 0,'add' = 1,'deleteAll' = 2}export interface SchemaAdditions {schema: string;action: MODIFICATION_ACTIONS.add;path: string;key: string;content: any;}export interface SchemaDeletions {schema: string;action: MODIFICATION_ACTIONS.delete;path: string;key: string;}export interface SchemaDeletionsAll {schemas: string[];action: MODIFICATION_ACTIONS.deleteAll;}export declare class FilePatternAssociation {private schemas;private patternRegExp;constructor(pattern: string);addSchema(id: string): void;matchesPattern(fileName: string): boolean;getSchemas(): string[];}export declare class YAMLSchemaService extends JSONSchemaService {[x: string]: any;private customSchemaProvider;private filePatternAssociations;private contextService;private requestService;schemaPriorityMapping: Map<string, Set<SchemaPriority>>;private schemaUriToNameAndDescription;constructor(requestService: SchemaRequestService, contextService?: WorkspaceContextService, promiseConstructor?: PromiseConstructor);registerCustomSchemaProvider(customSchemaProvider: CustomSchemaProvider): void;getAllSchemas(): JSONSchemaDescriptionExt[];resolveSchemaContent(schemaToResolve: UnresolvedSchema, schemaURL: string, dependencies: SchemaDependencies): Promise<ResolvedSchema>;getSchemaForResource(resource: string, doc: JSONDocument): Promise<ResolvedSchema>;addSchemaPriority(uri: string, priority: number): void;/*** Search through all the schemas and find the ones with the highest priority*/private highestPrioritySchemas;private resolveCustomSchema;/*** Save a schema with schema ID and schema content.* Overrides previous schemas set for that schema ID.*/saveSchema(schemaId: string, schemaContent: JSONSchema): Promise<void>;/*** Delete schemas on specific path*/deleteSchemas(deletions: SchemaDeletionsAll): Promise<void>;/*** Delete a schema with schema ID.*/deleteSchema(schemaId: string): Promise<void>;/*** Add content to a specified schema at a specified path*/addContent(additions: SchemaAdditions): Promise<void>;/*** Delete content in a specified schema at a specified path*/deleteContent(deletions: SchemaDeletions): Promise<void>;/*** Take a JSON Schema and the path that you would like to get to* @returns the JSON Schema resolved at that specific path*/private resolveJSONSchemaToSection;/*** Resolve the next Object if they have compatible types* @param object a location in the JSON Schema* @param token the next token that you want to search for*/private resolveNext;/*** Everything below here is needed because we're importing from vscode-json-languageservice umd and we need* to provide a wrapper around the javascript methods we are calling since they have no type*/normalizeId(id: string): string;getOrAddSchemaHandle(id: string, unresolvedSchemaContent?: JSONSchema): SchemaHandle;loadSchema(schemaUri: string): Promise<UnresolvedSchema>;registerExternalSchema(uri: string, filePatterns?: string[], unresolvedSchema?: JSONSchema, name?: string, description?: string, versions?: SchemaVersions): SchemaHandle;clearExternalSchemas(): void;setSchemaContributions(schemaContributions: ISchemaContributions): void;getRegisteredSchemaIds(filter?: (scheme: any) => boolean): string[];getResolvedSchema(schemaId: string): Promise<ResolvedSchema>;onResourceChange(uri: string): boolean;}
123version https://git-lfs.github.com/spec/v1oid sha256:e954ecd4f199588d6fccfcd7991c02adc7e16d9fcde41d8726ef1d60969d46d3size 28575123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585(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", "../yamlLanguageService", "vscode-json-languageservice/lib/umd/services/jsonSchemaService", "vscode-uri", "vscode-nls", "../utils/strings", "yaml", "path", "./modelineUtil", "ajv", "../utils/schemaUtils"], factory);}})(function (require, exports) {/*---------------------------------------------------------------------------------------------* Copyright (c) Red Hat, Inc. 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.*--------------------------------------------------------------------------------------------*/'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.YAMLSchemaService = exports.FilePatternAssociation = exports.MODIFICATION_ACTIONS = void 0;const yamlLanguageService_1 = require("../yamlLanguageService");const jsonSchemaService_1 = require("vscode-json-languageservice/lib/umd/services/jsonSchemaService");const vscode_uri_1 = require("vscode-uri");const nls = require("vscode-nls");const strings_1 = require("../utils/strings");const yaml_1 = require("yaml");const path = require("path");const modelineUtil_1 = require("./modelineUtil");const ajv_1 = require("ajv");const schemaUtils_1 = require("../utils/schemaUtils");const localize = nls.loadMessageBundle();const ajv = new ajv_1.default();// load JSON Schema 07 def to validate loaded schemas// eslint-disable-next-line @typescript-eslint/no-var-requiresconst jsonSchema07 = require('ajv/dist/refs/json-schema-draft-07.json');const schema07Validator = ajv.compile(jsonSchema07);var MODIFICATION_ACTIONS;(function (MODIFICATION_ACTIONS) {MODIFICATION_ACTIONS[MODIFICATION_ACTIONS["delete"] = 0] = "delete";MODIFICATION_ACTIONS[MODIFICATION_ACTIONS["add"] = 1] = "add";MODIFICATION_ACTIONS[MODIFICATION_ACTIONS["deleteAll"] = 2] = "deleteAll";})(MODIFICATION_ACTIONS = exports.MODIFICATION_ACTIONS || (exports.MODIFICATION_ACTIONS = {}));class FilePatternAssociation {constructor(pattern) {try {this.patternRegExp = new RegExp((0, strings_1.convertSimple2RegExpPattern)(pattern) + '$');}catch (e) {// invalid patternthis.patternRegExp = null;}this.schemas = [];}addSchema(id) {this.schemas.push(id);}matchesPattern(fileName) {return this.patternRegExp && this.patternRegExp.test(fileName);}getSchemas() {return this.schemas;}}exports.FilePatternAssociation = FilePatternAssociation;class YAMLSchemaService extends jsonSchemaService_1.JSONSchemaService {constructor(requestService, contextService, promiseConstructor) {super(requestService, contextService, promiseConstructor);this.schemaUriToNameAndDescription = new Map();this.customSchemaProvider = undefined;this.requestService = requestService;this.schemaPriorityMapping = new Map();}registerCustomSchemaProvider(customSchemaProvider) {this.customSchemaProvider = customSchemaProvider;}getAllSchemas() {const result = [];const schemaUris = new Set();for (const filePattern of this.filePatternAssociations) {const schemaUri = filePattern.uris[0];if (schemaUris.has(schemaUri)) {continue;}schemaUris.add(schemaUri);const schemaHandle = {uri: schemaUri,fromStore: false,usedForCurrentFile: false,};if (this.schemaUriToNameAndDescription.has(schemaUri)) {const { name, description, versions } = this.schemaUriToNameAndDescription.get(schemaUri);schemaHandle.name = name;schemaHandle.description = description;schemaHandle.fromStore = true;schemaHandle.versions = versions;}result.push(schemaHandle);}return result;}async resolveSchemaContent(schemaToResolve, schemaURL, dependencies) {const resolveErrors = schemaToResolve.errors.slice(0);let schema = schemaToResolve.schema;const contextService = this.contextService;if (!schema07Validator(schema)) {const errs = [];for (const err of schema07Validator.errors) {errs.push(`${err.instancePath} : ${err.message}`);}resolveErrors.push(`Schema '${(0, schemaUtils_1.getSchemaTitle)(schemaToResolve.schema, schemaURL)}' is not valid:\n${errs.join('\n')}`);}const findSection = (schema, path) => {if (!path) {return schema;}// eslint-disable-next-line @typescript-eslint/no-explicit-anylet current = schema;if (path[0] === '/') {path = path.substr(1);}path.split('/').some((part) => {current = current[part];return !current;});return current;};const merge = (target, sourceRoot, sourceURI, path) => {const section = findSection(sourceRoot, path);if (section) {for (const key in section) {if (Object.prototype.hasOwnProperty.call(section, key) && !Object.prototype.hasOwnProperty.call(target, key)) {target[key] = section[key];}}}else {resolveErrors.push(localize('json.schema.invalidref', "$ref '{0}' in '{1}' can not be resolved.", path, sourceURI));}};const resolveExternalLink = (node, uri, linkPath, parentSchemaURL, parentSchemaDependencies// eslint-disable-next-line @typescript-eslint/no-explicit-any) => {if (contextService && !/^\w+:\/\/.*/.test(uri)) {uri = contextService.resolveRelativePath(uri, parentSchemaURL);}uri = this.normalizeId(uri);const referencedHandle = this.getOrAddSchemaHandle(uri);return referencedHandle.getUnresolvedSchema().then((unresolvedSchema) => {parentSchemaDependencies[uri] = true;if (unresolvedSchema.errors.length) {const loc = linkPath ? uri + '#' + linkPath : uri;resolveErrors.push(localize('json.schema.problemloadingref', "Problems loading reference '{0}': {1}", loc, unresolvedSchema.errors[0]));}merge(node, unresolvedSchema.schema, uri, linkPath);node.url = uri;// eslint-disable-next-line @typescript-eslint/no-use-before-definereturn resolveRefs(node, unresolvedSchema.schema, uri, referencedHandle.dependencies);});};const resolveRefs = async (node, parentSchema, parentSchemaURL, parentSchemaDependencies// eslint-disable-next-line @typescript-eslint/no-explicit-any) => {if (!node || typeof node !== 'object') {return null;}const toWalk = [node];const seen = [];// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst openPromises = [];const collectEntries = (...entries) => {for (const entry of entries) {if (typeof entry === 'object') {toWalk.push(entry);}}};const collectMapEntries = (...maps) => {for (const map of maps) {if (typeof map === 'object') {for (const key in map) {const entry = map[key];if (typeof entry === 'object') {toWalk.push(entry);}}}}};const collectArrayEntries = (...arrays) => {for (const array of arrays) {if (Array.isArray(array)) {for (const entry of array) {if (typeof entry === 'object') {toWalk.push(entry);}}}}};const handleRef = (next) => {const seenRefs = [];while (next.$ref) {const ref = next.$ref;const segments = ref.split('#', 2);//return back removed $ref. We lost info about referenced type without it.next._$ref = next.$ref;delete next.$ref;if (segments[0].length > 0) {openPromises.push(resolveExternalLink(next, segments[0], segments[1], parentSchemaURL, parentSchemaDependencies));return;}else {if (seenRefs.indexOf(ref) === -1) {merge(next, parentSchema, parentSchemaURL, segments[1]); // can set next.$ref again, use seenRefs to avoid circleseenRefs.push(ref);}}}collectEntries(next.items, next.additionalItems, next.additionalProperties, next.not, next.contains, next.propertyNames, next.if, next.then, next.else);collectMapEntries(next.definitions, next.properties, next.patternProperties, next.dependencies);collectArrayEntries(next.anyOf, next.allOf, next.oneOf, next.items, next.schemaSequence);};if (parentSchemaURL.indexOf('#') > 0) {const segments = parentSchemaURL.split('#', 2);if (segments[0].length > 0 && segments[1].length > 0) {const newSchema = {};await resolveExternalLink(newSchema, segments[0], segments[1], parentSchemaURL, parentSchemaDependencies);for (const key in schema) {if (key === 'required') {continue;}if (Object.prototype.hasOwnProperty.call(schema, key) && !Object.prototype.hasOwnProperty.call(newSchema, key)) {newSchema[key] = schema[key];}}schema = newSchema;}}while (toWalk.length) {const next = toWalk.pop();if (seen.indexOf(next) >= 0) {continue;}seen.push(next);handleRef(next);}return Promise.all(openPromises);};await resolveRefs(schema, schema, schemaURL, dependencies);return new jsonSchemaService_1.ResolvedSchema(schema, resolveErrors);}getSchemaForResource(resource, doc) {const resolveModelineSchema = () => {let schemaFromModeline = (0, modelineUtil_1.getSchemaFromModeline)(doc);if (schemaFromModeline !== undefined) {if (!schemaFromModeline.startsWith('file:') && !schemaFromModeline.startsWith('http')) {// If path contains a fragment and it is left intact, "#" will be// considered part of the filename and converted to "%23" by// path.resolve() -> take it out and add back after path.resolvelet appendix = '';if (schemaFromModeline.indexOf('#') > 0) {const segments = schemaFromModeline.split('#', 2);schemaFromModeline = segments[0];appendix = segments[1];}if (!path.isAbsolute(schemaFromModeline)) {const resUri = vscode_uri_1.URI.parse(resource);schemaFromModeline = vscode_uri_1.URI.file(path.resolve(path.parse(resUri.fsPath).dir, schemaFromModeline)).toString();}else {schemaFromModeline = vscode_uri_1.URI.file(schemaFromModeline).toString();}if (appendix.length > 0) {schemaFromModeline += '#' + appendix;}}return schemaFromModeline;}};const resolveSchemaForResource = (schemas) => {const schemaHandle = super.createCombinedSchema(resource, schemas);return schemaHandle.getResolvedSchema().then((schema) => {if (schema.schema && typeof schema.schema === 'object') {schema.schema.url = schemaHandle.url;}if (schema.schema &&schema.schema.schemaSequence &&schema.schema.schemaSequence[doc.currentDocIndex]) {return new jsonSchemaService_1.ResolvedSchema(schema.schema.schemaSequence[doc.currentDocIndex]);}return schema;});};// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst resolveSchema = () => {const seen = Object.create(null);const schemas = [];for (const entry of this.filePatternAssociations) {if (entry.matchesPattern(resource)) {for (const schemaId of entry.getURIs()) {if (!seen[schemaId]) {schemas.push(schemaId);seen[schemaId] = true;}}}}if (schemas.length > 0) {// Join all schemas with the highest priority.const highestPrioSchemas = this.highestPrioritySchemas(schemas);return resolveSchemaForResource(highestPrioSchemas);}return Promise.resolve(null);};const modelineSchema = resolveModelineSchema();if (modelineSchema) {return resolveSchemaForResource([modelineSchema]);}if (this.customSchemaProvider) {return this.customSchemaProvider(resource).then((schemaUri) => {if (Array.isArray(schemaUri)) {if (schemaUri.length === 0) {return resolveSchema();}return Promise.all(schemaUri.map((schemaUri) => {return this.resolveCustomSchema(schemaUri, doc);})).then((schemas) => {return {errors: [],schema: {allOf: schemas.map((schemaObj) => {return schemaObj.schema;}),},};}, () => {return resolveSchema();});}if (!schemaUri) {return resolveSchema();}return this.resolveCustomSchema(schemaUri, doc);}).then((schema) => {return schema;}, () => {return resolveSchema();});}else {return resolveSchema();}}// Set the priority of a schema in the schema serviceaddSchemaPriority(uri, priority) {let currSchemaArray = this.schemaPriorityMapping.get(uri);if (currSchemaArray) {currSchemaArray = currSchemaArray.add(priority);this.schemaPriorityMapping.set(uri, currSchemaArray);}else {this.schemaPriorityMapping.set(uri, new Set().add(priority));}}/*** Search through all the schemas and find the ones with the highest priority*/highestPrioritySchemas(schemas) {let highestPrio = 0;const priorityMapping = new Map();schemas.forEach((schema) => {// If the schema does not have a priority then give it a default one of [0]const priority = this.schemaPriorityMapping.get(schema) || [0];priority.forEach((prio) => {if (prio > highestPrio) {highestPrio = prio;}// Build up a mapping of priority to schemas so that we can easily get the highest priority schemas easierlet currPriorityArray = priorityMapping.get(prio);if (currPriorityArray) {currPriorityArray = currPriorityArray.concat(schema);priorityMapping.set(prio, currPriorityArray);}else {priorityMapping.set(prio, [schema]);}});});return priorityMapping.get(highestPrio) || [];}async resolveCustomSchema(schemaUri, doc) {const unresolvedSchema = await this.loadSchema(schemaUri);const schema = await this.resolveSchemaContent(unresolvedSchema, schemaUri, []);if (schema.schema && typeof schema.schema === 'object') {schema.schema.url = schemaUri;}if (schema.schema && schema.schema.schemaSequence && schema.schema.schemaSequence[doc.currentDocIndex]) {return new jsonSchemaService_1.ResolvedSchema(schema.schema.schemaSequence[doc.currentDocIndex], schema.errors);}return schema;}/*** Save a schema with schema ID and schema content.* Overrides previous schemas set for that schema ID.*/async saveSchema(schemaId, schemaContent) {const id = this.normalizeId(schemaId);this.getOrAddSchemaHandle(id, schemaContent);this.schemaPriorityMapping.set(id, new Set().add(yamlLanguageService_1.SchemaPriority.Settings));return Promise.resolve(undefined);}/*** Delete schemas on specific path*/async deleteSchemas(deletions) {deletions.schemas.forEach((s) => {this.deleteSchema(s);});return Promise.resolve(undefined);}/*** Delete a schema with schema ID.*/async deleteSchema(schemaId) {const id = this.normalizeId(schemaId);if (this.schemasById[id]) {delete this.schemasById[id];}this.schemaPriorityMapping.delete(id);return Promise.resolve(undefined);}/*** Add content to a specified schema at a specified path*/async addContent(additions) {const schema = await this.getResolvedSchema(additions.schema);if (schema) {const resolvedSchemaLocation = this.resolveJSONSchemaToSection(schema.schema, additions.path);if (typeof resolvedSchemaLocation === 'object') {resolvedSchemaLocation[additions.key] = additions.content;}await this.saveSchema(additions.schema, schema.schema);}}/*** Delete content in a specified schema at a specified path*/async deleteContent(deletions) {const schema = await this.getResolvedSchema(deletions.schema);if (schema) {const resolvedSchemaLocation = this.resolveJSONSchemaToSection(schema.schema, deletions.path);if (typeof resolvedSchemaLocation === 'object') {delete resolvedSchemaLocation[deletions.key];}await this.saveSchema(deletions.schema, schema.schema);}}/*** Take a JSON Schema and the path that you would like to get to* @returns the JSON Schema resolved at that specific path*/resolveJSONSchemaToSection(schema, paths) {const splitPathway = paths.split('/');let resolvedSchemaLocation = schema;for (const path of splitPathway) {if (path === '') {continue;}this.resolveNext(resolvedSchemaLocation, path);resolvedSchemaLocation = resolvedSchemaLocation[path];}return resolvedSchemaLocation;}/*** Resolve the next Object if they have compatible types* @param object a location in the JSON Schema* @param token the next token that you want to search for*/// eslint-disable-next-line @typescript-eslint/no-explicit-anyresolveNext(object, token) {// eslint-disable-next-line @typescript-eslint/no-explicit-anyif (Array.isArray(object) && isNaN(token)) {throw new Error('Expected a number after the array object');}else if (typeof object === 'object' && typeof token !== 'string') {throw new Error('Expected a string after the object');}}/*** Everything below here is needed because we're importing from vscode-json-languageservice umd and we need* to provide a wrapper around the javascript methods we are calling since they have no type*/normalizeId(id) {// The parent's `super.normalizeId(id)` isn't visible, so duplicated the code heretry {return vscode_uri_1.URI.parse(id).toString();}catch (e) {return id;}}/** Everything below here is needed because we're importing from vscode-json-languageservice umd and we need* to provide a wrapper around the javascript methods we are calling since they have no type*/getOrAddSchemaHandle(id, unresolvedSchemaContent) {return super.getOrAddSchemaHandle(id, unresolvedSchemaContent);}loadSchema(schemaUri) {const requestService = this.requestService;return super.loadSchema(schemaUri).then((unresolvedJsonSchema) => {// If json-language-server failed to parse the schema, attempt to parse it as YAML instead.if (unresolvedJsonSchema.errors && unresolvedJsonSchema.schema === undefined) {return requestService(schemaUri).then((content) => {if (!content) {const errorMessage = localize('json.schema.nocontent', "Unable to load schema from '{0}': No content. {1}", toDisplayString(schemaUri), unresolvedJsonSchema.errors);return new jsonSchemaService_1.UnresolvedSchema({}, [errorMessage]);}try {const schemaContent = (0, yaml_1.parse)(content);return new jsonSchemaService_1.UnresolvedSchema(schemaContent, []);}catch (yamlError) {const errorMessage = localize('json.schema.invalidFormat', "Unable to parse content from '{0}': {1}.", toDisplayString(schemaUri), yamlError);return new jsonSchemaService_1.UnresolvedSchema({}, [errorMessage]);}},// eslint-disable-next-line @typescript-eslint/no-explicit-any(error) => {let errorMessage = error.toString();const errorSplit = error.toString().split('Error: ');if (errorSplit.length > 1) {// more concise error message, URL and context are attached by caller anywayserrorMessage = errorSplit[1];}return new jsonSchemaService_1.UnresolvedSchema({}, [errorMessage]);});}unresolvedJsonSchema.uri = schemaUri;if (this.schemaUriToNameAndDescription.has(schemaUri)) {const { name, description, versions } = this.schemaUriToNameAndDescription.get(schemaUri);unresolvedJsonSchema.schema.title = name ?? unresolvedJsonSchema.schema.title;unresolvedJsonSchema.schema.description = description ?? unresolvedJsonSchema.schema.description;unresolvedJsonSchema.schema.versions = versions ?? unresolvedJsonSchema.schema.versions;}return unresolvedJsonSchema;});}registerExternalSchema(uri, filePatterns, unresolvedSchema, name, description, versions) {if (name || description) {this.schemaUriToNameAndDescription.set(uri, { name, description, versions });}return super.registerExternalSchema(uri, filePatterns, unresolvedSchema);}clearExternalSchemas() {super.clearExternalSchemas();}setSchemaContributions(schemaContributions) {super.setSchemaContributions(schemaContributions);}// eslint-disable-next-line @typescript-eslint/no-explicit-anygetRegisteredSchemaIds(filter) {return super.getRegisteredSchemaIds(filter);}getResolvedSchema(schemaId) {return super.getResolvedSchema(schemaId);}onResourceChange(uri) {return super.onResourceChange(uri);}}exports.YAMLSchemaService = YAMLSchemaService;function toDisplayString(url) {try {const uri = vscode_uri_1.URI.parse(url);if (uri.scheme === 'file') {return uri.fsPath;}}catch (e) {// ignore}return url;}});//# sourceMappingURL=yamlSchemaService.js.map
123version https://git-lfs.github.com/spec/v1oid sha256:95067833540c0481cc22e8fdf519b78c0c55c8800389031e41d6cc108ab49d6csize 186941{"version":3,"file":"yamlSchemaService.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlSchemaService.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;;oGAIgG;IAChG,YAAY,CAAC;;;IAGb,gEAAuG;IACvG,sGAOwE;IAExE,2CAAiC;IAEjC,kCAAkC;IAClC,8CAA+D;IAG/D,+BAA6B;IAC7B,6BAA6B;IAC7B,iDAAuD;IAIvD,6BAAwC;IACxC,sDAAsD;IAEtD,MAAM,QAAQ,GAAG,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAEzC,MAAM,GAAG,GAAG,IAAI,aAAG,EAAE,CAAC;IAEtB,qDAAqD;IACrD,8DAA8D;IAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACxE,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAIpD,IAAY,oBAIX;IAJD,WAAY,oBAAoB;QAC9B,mEAAQ,CAAA;QACR,6D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;QAC3C,CAAC;QAED,gBAAgB,CAAC,GAAW;YAC1B,OAAO,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QACrC,CAAC;KACF;IA1mBD,8CA0mBC;IAED,SAAS,eAAe,CAAC,GAAW;QAClC,IAAI;YACF,MAAM,GAAG,GAAG,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3B,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE;gBACzB,OAAO,GAAG,CAAC,MAAM,CAAC;aACnB;SACF;QAAC,OAAO,CAAC,EAAE;YACV,SAAS;SACV;QACD,OAAO,GAAG,CAAC;IACb,CAAC"}
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE+21-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md+425-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.d.ts+12-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js+76-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.d.ts+7-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js+50-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.d.ts+6-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js+17-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.d.ts+8-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js+87-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.d.ts+12-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js+38-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.d.ts+17-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js+267-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.d.ts+11-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js+61-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.d.ts+3-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js+48-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.d.ts+68-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js+1473-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.d.ts+9-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js+52-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.d.ts+4-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js+76-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.d.ts+8-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js+58-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.d.ts+15-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js+231-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.d.ts+8-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js+42-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.d.ts+4-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js+57-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js.map+1-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.d.ts+102-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js+585-3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js.map+1-3