diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE" index 148c2b4036f7786c041c8035e2255a32671b940e..e05eaafc26e9765c9a86fe72b7be6d546cfd8d4f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2a6ebc3c5b441f0aef19c5190d17f5bfc1ab4f729db49fabb2db7d10bd9a6146 -size 1081 +MIT License + +Copyright (c) 2017 Red Hat Inc. and others. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, 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 THE +SOFTWARE. diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md" index d12bd31664ff6a9a3e4971c2d78301110000eab1..d31a0c0bb0aedf3726965c64b38e54db5efa1f3b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md" @@ -1,3 +1,425 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ddeb0ccda8988d416fc83e6c3afb0b978dd0253247bc3a132f900b59877d9588 -size 14219 +![CI](https://github.com/redhat-developer/yaml-language-server/workflows/CI/badge.svg) [![version](https://img.shields.io/npm/v/yaml-language-server.svg)](https://www.npmjs.com/package/yaml-language-server) [![Coverage Status](https://coveralls.io/repos/github/redhat-developer/yaml-language-server/badge.svg?branch=main)](https://coveralls.io/github/redhat-developer/yaml-language-server?branch=main) + +# YAML Language Server + +Supports 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. + +## Features + +1. YAML validation: + - Detects whether the entire file is valid yaml +2. 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 parent +3. Auto completion: + - Auto completes on all commands + - Scalar nodes autocomplete to schema's defaults if they exist +4. 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 Settings + +The 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 tags + +In 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: + +```YAML +some_key: !Scalar-example some_value +some_sequence: !Seq-example + - some_seq_key_1: some_seq_value_1 + - some_seq_key_2: some_seq_value_2 +some_mapping: !Mapping-example + some_mapping_key_1: some_mapping_value_1 + some_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 structure + +myProject + +   > myYamlFile.yaml + +you 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 + +```json +yaml.schemas: { + "url": "globPattern", + "Kubernetes": "globPattern" +} +``` + +e.g. + +```json +yaml.schemas: { + "https://json.schemastore.org/composer": "/*" +} +``` + +e.g. + +```json +yaml.schemas: { + "kubernetes": "/myYamlFile.yaml" +} +``` + +e.g. + +```json +yaml.schemas: { + "https://json.schemastore.org/composer": "/*", + "kubernetes": "/myYamlFile.yaml" +} +``` + +On Windows with full path: + +```json +yaml.schemas: { + "C:\\Users\\user\\Documents\\custom_schema.json": "someFilePattern.yaml", +} +``` + +On Mac/Linux with full path: + +```json +yaml.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. + +```json +yaml.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.yaml + my_schema.json +My_second_project: + test2.yaml + my_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 References + +Suppose 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 schema + +It is possible to specify a yaml schema using a modeline. + +```yaml +# yaml-language-server: $schema= +``` + +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 priority + +The following is the priority of schema association in highest to lowest priority: +1. Modeline +2. CustomSchemaProvider API +3. yaml.settings +4. Schema association notification +5. Schema Store + +## Containerized Language Server + +An 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 Notification + +The 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 Notification + +The 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 Request + +The 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[]` + +```typescript +interface 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 Request + +The 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[]` + +```typescript +interface JSONSchemaDescriptionExt { + /** + * Schema URI + */ + uri: string; + /** + * Schema name, from schema store + */ + name?: string; + /** + * Schema description, from schema store + */ + description?: string; +} +``` + +## Clients + +This 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 started + +1. Install prerequisites: + - latest [Visual Studio Code](https://code.visualstudio.com/) + - [Node.js](https://nodejs.org/) v12.0.0 or higher +2. Fork and clone this repository +3. Install the dependencies + ```bash + cd 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. + ```bash + node (Yaml Language Server Location)/out/server/src/server.js [--stdio] + ``` + +### Connecting to the language server via stdio + +We 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 Modules + +Building 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. + +### CI + +We 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. diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 66106d5f8427214c6712baff2cffca48ea3b1e09..3a5f05cfe7da64f1a89669d7b786f7ea095149bd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7aabf9da911da4a66d45285a4b889b4ea1a120d53d3916aab12349d5eab7bfc -size 690 +import { URI } from 'vscode-uri'; +import { Connection, WorkspaceFolder } from 'vscode-languageserver'; +import { WorkspaceContextService } from '../yamlLanguageService'; +export interface FileSystem { + readFile(fsPath: string, encoding?: string): Promise; +} +/** + * 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; +export declare const workspaceContext: WorkspaceContextService; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 9171851e43ad1702956671aa5c9b230a0b958d39..db332ffa439ae503020adaa21f15b6e6b8b8221e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,76 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c5a6aab1fa3cfe2e03ee695edb6d596e04be9a94b78602ab68e45e80092962e2 -size 3874 +(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 URI + if ((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 contents + if (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 string + return ''; + }); + } + // HTTP(S) requests are sent and the response result is either the schema content or an error + if (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 correctly + if (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 result + const 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 request + return connection.sendRequest(requestTypes_1.CustomSchemaContentRequest.type, uri); + }; + exports.schemaRequestHandler = schemaRequestHandler; + exports.workspaceContext = { + resolveRelativePath: (relativePath, resource) => { + return URL.resolve(resource, relativePath); + }, + }; +}); +//# sourceMappingURL=schemaRequestHandler.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 3591e126e0bae6aa64c4c58335269ebe1ef1c9fe..7359fdc4f86ee9474a81892ceef2daaa2a55e247 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bc3f0b944fa51323af077aa3215c3c58b35efc9bee62a8abeff04970dff5cb36 -size 2169 +{"version":3,"file":"schemaRequestHandler.js","sourceRoot":"","sources":["../../../../src/languageservice/services/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ee-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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index e4653d6025d057022c56a8770a62af2edd59fa48..949f8aef1c4cf2557ca02b6fd765da5244a206d0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce1d87ebcd7fbad99e3e8ffa718cf3d00c325e9868f97fd4fa283f06429d6d58 -size 396 +import { 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[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index def6ef6cce4a8a8df12ce767e7f8f74d25794236..ee43b85849fba86b61b304ca1b281b5170cc0f21 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,50 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cff82aae5d109e46cfb4206164ea64ad15ce313431e8ca5218e3d802dd941e1d -size 2540 +/*--------------------------------------------------------------------------------------------- + * 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index a4d3cb31b8d1d3f35e1ec93775a0af9f1760c4bf..5d75a1fc8aae75d9945f115d743f681992be414c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8adab1de77125ef8a7b1ea79b97c83296149b26d3c7cc33c2458bdd0827d122c -size 1753 +{"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,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;4BACvD,MAAM,CAAC,IAAI,CACT,wCAAU,CAAC,MAAM,CACf,KAAK,EACL,0BAA0B,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,cAAc,EAC7D,gDAAkB,CAAC,KAAK,EACxB,aAAa,CACd,CACF,CAAC;yBACH;qBACF;iBACF;YACH,CAAC,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC;QAChB,CAAC;KACF;IAxBD,oDAwBC;IAED,SAAS,WAAW,CAAC,QAAsB,EAAE,IAAU;QACrD,MAAM,KAAK,GAAG,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;QAC9G,MAAM,GAAG,GACP,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM;YAC5B,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM;YAC9B,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM;YAC1B,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC;QAC/D,OAAO,mCAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,SAAS,OAAO,CAAC,IAAU,EAAE,IAAU;QACrC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,OAAO,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index fb964a4c54b59dcbdabfb23135f3661f304b9280..5111afdc2d73c808f6a359e7259e0b8ed24eaeda 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:adfb4c2329933ce089fa240ffd835dbd4d931092fa8d2916803dbc7e8e85908f -size 313 +import { 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[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index a56fdf368037a99d3af83c99721fb6be77a4695e..c530c766ce9e28185d1320bc98e7a3ed121ae47a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:495882da59d85165cae57c46f373e1f6ad655a3e6f45dd65af47d685e3a47399 -size 803 +/*--------------------------------------------------------------------------------------------- + * 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index afc101a5b825e884927bf17544c30b3e7d6f0f29..45bfe1a1302aa62679cf7e42b6bd4346729c3131 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2d4892fc7aef86876a5d67103a9147b6adb562832028479efd6c3db7e66b360 -size 163 +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/validation/types.ts"],"names":[],"mappings":"AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 66d2b4ec1cae9e17f518d86ca5f7f4fd72d11be4..5addcd7bf8501cc6e38db99890d7670a72056983 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f103199fc4a5109450ad9f5736c3b570808df078d71a898c180589beca4681f -size 425 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 1290a888f916c24b32795d8f730407d11e624c71..b48616861aeddb7921064f8406bc5648b7712176 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,87 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eab14bcdf94c54d3171d28563e3744464d5b79d31dbe7ddbc72228e7c5b9b5ca -size 3993 +/*--------------------------------------------------------------------------------------------- + * 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 43585340d8b08f9fe5d72a20c86d380138a8734a..c1144be515fa798ca97826403d207dd4c75e448b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e5891181b26908f3426bd1162be2163676d55304fdc20997a7d501ce4eebaf4 -size 2496 +{"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,G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AAK,CAAC,GAAG,EAAE;gBACzB,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;oBACvB,OAAO,CAAC,CAAC;iBACV;aACF;SACF;IACH,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 651a74344cb94790d7989908d646f09a1fd3d427..8e7010ab72752b9bbb746e553e760c0a9a3855ab 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c26eb06263c94d9f14dd962eb587b65a20b7d932100dc7e9be61d5689e4f3e3 -size 580 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index cb7cb1b034dd82eb76f445e83d50a938ce6ea2ff..cc78e07a65ac5c8614f6170051fc7214661b99b1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1893e9ad4d7f23f971b1219a938e4f2a26fd1eab6a6774575d6e05cbc7a0f45 -size 2045 +(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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index f0a42067dacc3926cf2c38597f393002cbb306f4..efd1bcc5077b1f7a714d1c2d23ad082eacc79f09 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e2b523df73aa3294704f6749a7e490a4c1800215a7abb5d81e0e2be9bce4042 -size 1303 +{"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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 0d0d63ef06bf307a9ddd37d5a3a773e0e900c193..a364c6d317c49f3cdd170e8a2b1ea3f498a9fa87 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61a372286547924eddb7e0bf98b0c98b2e28b5d81e86b5b1f7b2cccfb3c5c666 -size 803 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 66cf3e2bb48e0d332953dd071042a5469dae7976..23137955eef04171eb3b0b29c4d00548c107784e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,267 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa58144978285cc29063278522953cebb09be8be697bbe965e7d9cc66fbb26b5 -size 16011 +/*--------------------------------------------------------------------------------------------- + * 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 tabs + if (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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 394adaf31d01614c38529bff54262c3fbe222624..7345d935029f633ecfcb814fa6a4c691336ded39 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:73eea91d075c03c2ec585c42670e1c475a2d1c0046efea2e301dbf37710c79b9 -size 11419 +{"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,CA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C,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EACnG,4CAAc,CAAC,QAAQ,CACxB,CACF,CAAC;qBACH;iBACF;aACF;YACD,OAAO,OAAO,CAAC;QACjB,CAAC;KACF;IAxRD,0CAwRC;IAED,SAAS,oBAAoB,CAAC,QAAsB,EAAE,UAAsB;QAC1E,MAAM,aAAa,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACnE,MAAM,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9D,MAAM,OAAO,GAAG,IAAA,gCAAqB,EAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAClE,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,mBAAmB,CAAC,GAAW,EAAE,KAAiB;QACzD,MAAM,OAAO,GAAG,EAAE,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACrB,MAAM,IAAI,GAAkB;YAC1B,OAAO;SACR,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index cfbcca4f21ccb8b3edcee31469615853d3ee2d82..8073ebd9b7ce8c097a3d25f0e47942425433f9fe 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c431b36e8d0e3d0aebcd059f96bd89f14c784ce1d783b86cc057d5b3702c5d17 -size 525 +import { 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; + resolveCodeLens(param: CodeLens): Thenable | CodeLens; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index dd63086739ab7b9f04880fdb7edc95b88bbb8d98..c29419f929eae18d5e041eb2b2668450c4e9271b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:478e7a23daf2d2b1468e22dfaafa67dae364a8fb7d95aea55f1022d89c6b9416 -size 3081 +/*--------------------------------------------------------------------------------------------- + * 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 duplicates + schemaUrls = 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 8c1c8151734cb2a6df7558226326e376e43bcbc0..15cb18d5cd93a6de9fb7f49438cd382a0948f220 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6df5ec5e6c7f72e40632c441981311dcf0c6f7645aac438e049365cb5560e7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;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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index ff33b3003e7ec02bc7a8908ee6e1d3b36f6ad915..3866b47084b916f3c86dda10d54f1a727ee3adec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:79d354ef41d18e7c3eeac8f1a8c214f2f3f70659e926f7f79c9e23220c47794e -size 230 +import { Connection } from 'vscode-languageserver'; +import { CommandExecutor } from '../../languageserver/commandExecutor'; +export declare function registerCommands(commandExecutor: CommandExecutor, connection: Connection): void; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index b66b1f8785a1246ba0a835e79cf2f37da453a910..f18daad226f727515ad99312b4868e55d886d8e0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2480b9f928af761ad98f0b16c75cbc2028723d5492ca09f7e5bb1c5a22e9a979 -size 2303 +/*--------------------------------------------------------------------------------------------- + * 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 path + if (!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 URI + if (/^[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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index d1bf1a9ecba9146034bca603edd8e73067331805..2c3557ddac14b61c0dcdfa3bd3363723cb9f9423 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9adc9c33e6a3242deac3eafa40d628cc0ebd910e6dec432f67c4d925eaa1cd3d -size 1258 +{"version":3,"file":"yamlCommands.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlCommands.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6CAA8C;IAE9C,2CAAiC;IAEjC,SAAgB,gBAAgB,CAAC,eAAgC,EAAE,UAAsB;QACvF,eAAe,CAAC,eAAe,CAAC,uBAAY,CAAC,cAAc,EAAE,KAAK,EAAE,GAAW,EAAE,EAAE;YACjF,IAAI,CAAC,GAAG,EAAE;gBACR,OAAO;aACR;YACD,oDAAoD;YACpD,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;gBACzD,MAAM,OAAO,GAAG,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAC/B,MAAM,SAAS,GAAG,gBAAG,CAAC,IAAI,CAAC;oBACzB,MAAM,EAAE,aAAa;oBACrB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,GAAG,OAAO;oBAC5E,QAAQ,EAAE,GAAG;iBACd,CAAC,CAAC;gBACH,GAAG,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;aAC5B;YAED,uEAAuE;YACvE,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;gBAC7B,MAAM,MAAM,GAAG,gBAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAC7B,GAAG,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;aACzB;YAED,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACpG,IAAI,CAAC,MAAM,EAAE;gBACX,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,eAAe,GAAG,EAAE,CAAC,CAAC;aAC1D;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IA5BD,4CA4BC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 0cf9b5a3c4cffe32c98958dc4e24abc66eb52419..ce9f2e7f63bd7a912f769c7f641148f0fb7c9a53 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,68 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a31bd81b96cf9c2b55c3181753233a7e2f8c5f2a2efa109cf2020af865f41c9c -size 2839 +import { 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; + 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 {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 9fdbc87ba9f505c8dd45ef38845929b56865d48e..9c6f1345a7073389b87243387d20959f75eba6cd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,1473 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:016ecdf66c51416e9b9f27cb15fc1e4dc6a674d86c47ce00f3dcdfb05aa8e00a -size 82190 +/*--------------------------------------------------------------------------------------------- + * 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 options + for (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 document + currentDoc = 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 yaml + if (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 parent + return; + } + else if (!parentCompletion) { + // create a new parent + parentCompletion = { + ...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 parent + parentCompletion.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 it + console.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 completion + if (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 values + const 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 object + if (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 keys + if (node && (0, yaml_1.isMap)(node)) { + // don't suggest properties that are already present + const 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 values + const 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 object + if (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 $x + let 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 one + const 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$index + max$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 texts + let insertText = reindexedTexts.join(`\n${indent}`); + // trim $1 from end of completion + if (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 documentation + const 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 + // indent + const 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 creation + let 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 suggestion + if (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 appended + if (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 correct + if (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 documentation + const 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 value + if (!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 insert + value = ' ' + 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 null + key === '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 object + break; + } + } + }); + if (insertText.trim().length === 0) { + insertText = `${indent}$${insertIndex++}\n`; + } + insertText = insertText.trimRight() + separatorAfter; + return { insertText, insertIndex }; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + getInsertTextForArray(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-any + getInsertTextForGuessedValue(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 quotes + snippetValue = 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-any + getInsertTextForValue(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 one + const 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 completion + if (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-any + const 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-any + getLabelForSnippetValue(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 strings + const 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-any + getSuggestionKind(type) { + if (Array.isArray(type)) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const 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 string + let idx = value.indexOf(':', 0); + for (; idx > 0 && idx < value.length; idx = value.indexOf(':', idx + 1)) { + if (idx === value.length - 1) { + // `foo:` (partial map) format + doQuote = true; + break; + } + // there are only two valid kinds of white-space in yaml: space or tab + // ref: https://yaml.org/spec/1.2.1/#id2775170 + const 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 8b02ec6464f077b46c05984a341e6ddd55aea095..9f06bb771afecf99356621ed007c488da934d3aa 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4220c8e4cde986301792793d47f13fa9fbf3f20bde7c8c8a49a8ab2b68aef096 -size 54819 +{"version":3,"file":"yamlCompletion.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlCompletion.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAIhG,6EAWqC;IACrC,+BAA4F;IAI5F,gDAAmF;IACnF,oEAA+D;IAC/D,oDAAiD;IAKjD,wCAAmE;IACnE,8CAAmF;IACnF,kCAAkC;IAClC,yDAAmE;IACnE,yDAAkD;IAClD,gDAAiF;IACjF,iDAA4C;IAC5C,sDAAiG;IAGjG,MAAM,QAAQ,GAAG,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAEzC,MAAM,wBAAwB,GAAG,SAAS,CAAC;IAE3C,MAAM,oBAAoB,GAAG,gDAAkB,CAAC,KAAK,CAAC;IAEtD,MAAM,mBAAmB,GAAG,IAAI,CAAC;IAyBjC,MAAa,cAAc;QAWzB,YACU,aAAgC,EAChC,qBAAyC,EAAE,EAC3C,YAA2B,EAClB,SAAqB;YAH9B,kBAAa,GAAb,aAAa,CAAmB;YAChC,uBAAkB,GAAlB,kBAAkB,CAAyB;YAC3C,iBAAY,GAAZ,YAAY,CAAe;YAClB,cAAS,GAAT,SAAS,CAAY;YAbhC,sBAAiB,GAAG,IAAI,CAAC;YAIzB,2BAAsB,GAAG,EAAE,CAAC;QAUjC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eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 7b06755c0727eadd96d3a219f651aefb67796096..0bdd9bdfd05995baff9aa40a0d5b7fc2b1981d95 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a88dcf0cbb376a7d0f780c8ebab082796a8125bf18f12cf23db924bb1fd3e9d -size 450 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 56a08e67f03b85cb99ab6fe60205f4492762b22f..c40cd02782a9f98c55adfe26c152b08265e0c125 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,52 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20a6d9233cf5bfe16b0ddd50c5dfa1e4f4149ece957b6f5dcc31151d0e92d4f9 -size 2923 +/*--------------------------------------------------------------------------------------------- + * 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 9a1cd8e2dcc8099a70f047c0403f653f041fac2d..93cc75bf0c077f1df705273789406fd9b0039c1f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:01fa5c092892bd860d74dc3f9a58a2710ee2e61e9ef21350247fb88d2dc8044d -size 1472 +{"version":3,"file":"yamlDefinition.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlDefinition.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAIhG,6EAAkF;IAClF,+BAA+B;IAE/B,6DAA8D;IAC9D,gDAA0D;IAC1D,8CAA8D;IAC9D,oDAAiD;IAEjD,MAAa,cAAc;QACzB,YAA6B,SAAqB;YAArB,cAAS,GAAT,SAAS,CAAY;QAAG,CAAC;QAEtD,aAAa,CAAC,QAAsB,EAAE,MAAwB;YAC5D,IAAI;gBACF,MAAM,YAAY,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;gBAClE,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAClD,MAAM,UAAU,GAAG,IAAA,gCAAqB,EAAC,MAAM,EAAE,YAAY,CAAC,CAAC;gBAC/D,IAAI,UAAU,EAAE;oBACd,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,mBAAmB,CAAC,MAAM,EAAE,IAAI,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;oBAChF,IAAI,IAAI,IAAI,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE;wBACzB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;wBAC1D,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE;4BAC5B,MAAM,WAAW,GAAG,mCAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC/G,MAAM,cAAc,GAAG,mCAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BAClH,OAAO,CAAC,0CAAY,CAAC,MAAM,CAAC,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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 363b6c84aafff243b79d95e569ccde99b5229ed3..db3dc1f11f25d1ed6a018c0bdaf11f4a47cfbec4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9b72ec822052b0a1e21e7f636faf35c30ea111a52fbb237cfcf355017949858 -size 305 +import { 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; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 32eaceb8ce70a92c9436c3062a6e9c0859df7d53..5c4e2bf14a3c1ec3a96f75a442161490956afc63 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,76 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85b2d1e634b87c9abb80a99444b5a61244f4153aaa5b93d9ec8a810208e1ea23 -size 3737 +(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 string + const 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 700258c65c219d2d1d03bb3eed5323a55285f6f3..b00c357f88d5611f13aad31e416d3025e8311ad9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:910bad30067aab8b4171c807c0bc204a8085b5ace6aca711dd1eb1c39e24f7e5 -size 2364 +{"version":3,"file":"yamlFolding.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlFolding.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA;;;oGAGgG;IAChG,6EAAkE;IAGlE,6DAA8D;IAG9D,SAAg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,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC/F,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 59ddeceb8052a110f2ba9ec26e3588188d7fced1..f72a0480494ef4d200ccb38adb8b2b8ae6fc2b20 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8231cfa9a1e4a38a0bbeaed003e818c239d85ae97ca1dd9196793085498de453 -size 448 +import { 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[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 5a9dcdff92a72b3eac20af770d0c5a38e771e75b..7f5b62ce16777590cee9d188d96102274816bef7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96dc220b881ae34b4cdee5870581d748e66b46650c1e69d1b3267d6f7a7069fb -size 2727 +(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.ts + proseWrap: '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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 6880ac776e49bf7091bfc39397ea8825bc5abe6e..d70da2ca81383fb12cdd91a260f4982f306524e3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:069682d78987704d32ff40103e79af3aa61a123a6c103a82bb0625e53dc00dff -size 1294 +{"version":3,"file":"yamlFormatter.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlFormatter.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;;oGAIgG;IAChG,YAAY,CAAC;;;IAEb,6EAA2F;IAE3F,qCAAqC;IAErC,+CAA+C;IAG/C,MAAa,aAAa;QAA1B;YACU,qBAAgB,GAAG,IAAI,CAAC;QAsClC,CAAC;QApCQ,SAAS,CAAC,YAA8B;YAC7C,IAAI,YAAY,EAAE;gBAChB,IAAI,CAAC,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC;aAC7C;QACH,CAAC;QAEM,MAAM,CAAC,QAAsB,EAAE,OAAmD;YACvF,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;gBAC1B,OAAO,EAAE,CAAC;aACX;YAED,IAAI;gBACF,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;gBAEhC,MAAM,eAAe,GAAY;oBAC/B,MAAM,EAAE,MAAM;oBACd,OAAO,EAAE,CAAC,MAAM,CAAC;oBAEjB,4BAA4B;oBAC5B,QAAQ,EAAG,OAAO,CAAC,QAAmB,IAAI,OAAO,CAAC,OAAO;oBAEzD,iCAAiC;oBACjC,WAAW,EAAE,OAAO,CAAC,WAAW;oBAChC,cAAc,EAAE,OAAO,CAAC,cAAc;oBACtC,sEAAsE;oBACtE,SAAS,EAAE,QAAQ,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU;oBAC3G,UAAU,EAAE,OAAO,CAAC,UAAU;iBAC/B,CAAC;gBAEF,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;gBAEzD,OAAO,CAAC,sCAAQ,CAAC,OAAO,CAAC,mCAAK,CAAC,MAAM,CAAC,sCAAQ,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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 21ed879819c74ef52dd4bcf682e9e13d384ee6b0..bbbe68ed7a1b0df2e26497132cd1d175ce50e0ef 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0d24da5f660c79bfa5992e1b231f1ec94bb9435659ee99bc4b519d363d826d17 -size 690 +import { 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; + private getHover; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 62f7990c83ce3dfcc171f46be7a3e7a55e16bb4a..0bea95fe50db1ebb04b0482d4f7f87ece3a19a3b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,231 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0b166cb70be2caf912b5aa13c2946884b0e50a681638218e574498fd9cf157b -size 11962 +(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#L23 + getHover(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 key + if (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 hover + title = ''; + 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#L122 + function toMarkdownCodeBlock(content) { + // see https://daringfireball.net/projects/markdown/syntax#precode + if (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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 50b436a3770b9fcadcb84e75a38cbf0320f98e8a..0a8ef8db521ee4175332cee542e0a28a05cad439 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4afed20e324d68fbf078a39b68b6d3a7e1f16f626d2a233824c16739fca22abe -size 7537 +{"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,I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,CAAC,IAAI,IAAI,WAAW,CAAC,MAAM,KAAK,MAAM,EAAE;gBAC9D,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,WAAuB,EAAE,EAAE;oBAC/C,IACE,WAAW,CAAC,MAAM,CAAC,KAAK,KAAK,WAAW,CAAC,KAAK;wBAC9C,WAAW,CAAC,MAAM,CAAC,WAAW,KAAK,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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 0955e550f8db282b69c9e5391f5fa3f2892c0310..d17bfee343c9568c705cfc997548b3dba841b623 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:696f2fd0d738f228c37018f34ca63c969c4a4fdb0fca4ddc6d13e200349d96be -size 341 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 71a345c93032736992501f8b00a2112d0b0ecee8..2a31837b2b95c1ebd950522faa624821d366e527 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:18c28cc2deafd9dbe2992d709f1bcab0dc4038d2e846294e4c6590008efbf9cc -size 2152 +(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 finished + const 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 array + return 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 90fa9202aab2b8975617c0a1cdb3f7550619aa2c..647dbc08456d9b6c852ee36977ee63e682c21041 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dcb708cbcd40263b4cccf4d6b013b9219fb89fb8e676fbfb91283ca0b0d1865b -size 847 +{"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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 9d8d5e38cf02ace62826d1e79f874b00029dcef9..7ff37e69a019a6f0463e101b724fad9d70e0629a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4aecaf44ce73e3277a8d6c31b33ad672dc77fba19ae231a6032a0c92bef6328b -size 335 +import { 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; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 0a5e72e32342f507384f650698ca292333368ddf..8319132c86a6b7eeb28446320eb95881ee9c7490 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,57 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2adee56cba4809a87123648d7bc91b1adc64d8a8a05012bdb36ea7c46bc2c186 -size 3352 +/*--------------------------------------------------------------------------------------------- + * 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index d1496a862e7b9cec2aa7c06c3e3788c81e6a3e0c..10d0b80a1e2693fd67b44bd126cf20ab854bb831 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c2eee8573bb04264184c7213deb515916917e60ae1573a4ae40de4dd651c29bd -size 2154 +{"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,CA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CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC1C,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 5f1a8b74703d6d61b67ed786373f1e1a2d4a4ac3..fd2ed96685aba5a59f4b59c2ed282d2f0334e1be 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,102 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d265f93b1cbc28de09dc5d2e23e7f657c41c94e31d6f7702a2ebf575abf6850 -size 4359 +import { 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; +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>; + private schemaUriToNameAndDescription; + constructor(requestService: SchemaRequestService, contextService?: WorkspaceContextService, promiseConstructor?: PromiseConstructor); + registerCustomSchemaProvider(customSchemaProvider: CustomSchemaProvider): void; + getAllSchemas(): JSONSchemaDescriptionExt[]; + resolveSchemaContent(schemaToResolve: UnresolvedSchema, schemaURL: string, dependencies: SchemaDependencies): Promise; + getSchemaForResource(resource: string, doc: JSONDocument): Promise; + 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; + /** + * Delete schemas on specific path + */ + deleteSchemas(deletions: SchemaDeletionsAll): Promise; + /** + * Delete a schema with schema ID. + */ + deleteSchema(schemaId: string): Promise; + /** + * Add content to a specified schema at a specified path + */ + addContent(additions: SchemaAdditions): Promise; + /** + * Delete content in a specified schema at a specified path + */ + deleteContent(deletions: SchemaDeletions): Promise; + /** + * 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; + 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; + onResourceChange(uri: string): boolean; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index a2c9272d89b07eddc47bc436472d174fae835a2b..1eb92863939fb3345276a125f692ed02f9e1a26f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" @@ -1,3 +1,585 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e954ecd4f199588d6fccfcd7991c02adc7e16d9fcde41d8726ef1d60969d46d3 -size 28575 +(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-requires + const 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 pattern + this.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-any + let 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-define + return 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-any + const 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 circle + seenRefs.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.resolve + let 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-any + const 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 service + addSchemaPriority(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 easier + let 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-any + resolveNext(object, token) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (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 here + try { + 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 anyways + errorMessage = 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-any + getRegisteredSchemaIds(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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" index 212da06d34886fe8dc2f2700e201b4b5fd7c3d3f..695dce006ceda089a1fe515f65bc41d01334bfb8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:95067833540c0481cc22e8fdf519b78c0c55c8800389031e41d6cc108ab49d6c -size 18694 +{"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;IAC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,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAC9C,CAAC;QAED,iBAAiB,CAAC,QAAgB;YAChC,OAAO,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;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"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.d.ts" index db5852dbaf831038247c4d14af080320fafa0079..0266571f07967b96693bd387d587a90803eb2476 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7aeb1c23d74335802492dd72a502873843052ea5d37e118d4609ce80f6138ef8 -size 260 +import { Position, SelectionRange } from 'vscode-languageserver-types'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +export declare function getSelectionRanges(document: TextDocument, positions: Position[]): SelectionRange[] | undefined; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js" index 8150b1cb5d1ed6f1157f7e2d18378657ea9659dc..fe89804d26390446675cd6ab3d8f7e139d4c8b9b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js" @@ -1,3 +1,116 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d4cb60e6a40f54c45f15d17534283f57e2b499cee6be5c3fe02148a758c0c03 -size 5363 +(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.getSelectionRanges = void 0; + const vscode_languageserver_types_1 = require("vscode-languageserver-types"); + const yaml_documents_1 = require("../parser/yaml-documents"); + function getSelectionRanges(document, positions) { + if (!document) { + return; + } + const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document); + return positions.map((position) => { + const ranges = getRanges(position); + let current; + for (const range of ranges) { + current = vscode_languageserver_types_1.SelectionRange.create(range, current); + } + if (!current) { + current = vscode_languageserver_types_1.SelectionRange.create({ + start: position, + end: position, + }); + } + return current; + }); + function getRanges(position) { + const offset = document.offsetAt(position); + const result = []; + for (const ymlDoc of doc.documents) { + let currentNode; + let firstNodeOffset; + let isFirstNode = true; + ymlDoc.visit((node) => { + const endOffset = node.offset + node.length; + // Skip if end offset doesn't even reach cursor position + if (endOffset < offset) { + return true; + } + let startOffset = node.offset; + // Recheck start offset with the trimmed one in case of this + // key: + // - value + // ↑ + if (startOffset > offset) { + const nodePosition = document.positionAt(startOffset); + if (nodePosition.line !== position.line) { + return true; + } + const lineBeginning = { line: nodePosition.line, character: 0 }; + const text = document.getText({ + start: lineBeginning, + end: nodePosition, + }); + if (text.trim().length !== 0) { + return true; + } + startOffset = document.offsetAt(lineBeginning); + if (startOffset > offset) { + return true; + } + } + // Allow equal for children to override + if (!currentNode || startOffset >= currentNode.offset) { + currentNode = node; + firstNodeOffset = startOffset; + } + return true; + }); + while (currentNode) { + const startOffset = isFirstNode ? firstNodeOffset : currentNode.offset; + const endOffset = currentNode.offset + currentNode.length; + const range = { + start: document.positionAt(startOffset), + end: document.positionAt(endOffset), + }; + const text = document.getText(range); + const trimmedText = text.trimEnd(); + const trimmedLength = text.length - trimmedText.length; + if (trimmedLength > 0) { + range.end = document.positionAt(endOffset - trimmedLength); + } + // Add a jump between '' "" {} [] + const isSurroundedBy = (startCharacter, endCharacter) => { + return trimmedText.startsWith(startCharacter) && trimmedText.endsWith(endCharacter || startCharacter); + }; + if ((currentNode.type === 'string' && (isSurroundedBy("'") || isSurroundedBy('"'))) || + (currentNode.type === 'object' && isSurroundedBy('{', '}')) || + (currentNode.type === 'array' && isSurroundedBy('[', ']'))) { + result.push({ + start: document.positionAt(startOffset + 1), + end: document.positionAt(endOffset - 1), + }); + } + result.push(range); + currentNode = currentNode.parent; + isFirstNode = false; + } + // A position can't be in multiple documents + if (result.length > 0) { + break; + } + } + return result.reverse(); + } + } + exports.getSelectionRanges = getSelectionRanges; +}); +//# sourceMappingURL=yamlSelectionRanges.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js.map" index 9d909aac7f94dab694c12301d1288f21b0b7c1e0..ff841120a8f7b5b7d893de37107552befc79dd42 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlSelectionRanges.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ef1c06c1c71d57aef57bd22a6a5c70cf42e00570bc0f0515d7d16f461e142c9 -size 3396 +{"version":3,"file":"yamlSelectionRanges.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlSelectionRanges.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,6EAA8E;IAC9E,6DAA8D;IAI9D,SAAgB,kBAAkB,CAAC,QAAsB,EAAE,SAAqB;QAC9E,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO;SACR;QACD,MAAM,GAAG,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACzD,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;YAChC,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;YACnC,IAAI,OAAuB,CAAC;YAC5B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;gBAC1B,OAAO,GAAG,4CAAc,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;aACjD;YACD,IAAI,CAAC,OAAO,EAAE;gBACZ,OAAO,GAAG,4CAAc,CAAC,MAAM,CAAC;oBAC9B,KAAK,EAAE,QAAQ;oBACf,GAAG,EAAE,QAAQ;iBACd,CAAC,CAAC;aACJ;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,SAAS,SAAS,CAAC,QAAkB;YACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC3C,MAAM,MAAM,GAAY,EAAE,CAAC;YAC3B,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE;gBAClC,IAAI,WAAoB,CAAC;gBACzB,IAAI,eAAuB,CAAC;gBAC5B,IAAI,WAAW,GAAG,IAAI,CAAC;gBACvB,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;oBACpB,MAAM,SAAS,GAAG,IAAI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xC,CAAC,CAAC;qBACJ;oBACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACnB,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC;oBACjC,WAAW,GAAG,KAAK,CAAC;iBACrB;gBACD,4CAA4C;gBAC5C,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;oBACrB,MAAM;iBACP;aACF;YACD,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC;IACH,CAAC;IArGD,gDAqGC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.d.ts" index 53402deb5dce5a6edada6f30930d5175c29c2e0e..9257a990729faeb24ad8a30f82bb15b26bd00abc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.d.ts" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dbce1dbeb87afaf896e7715d7ae7dd5f6932844e05f2f6aa37c9c8ed3b5acfe0 -size 1175 +import { Diagnostic } from 'vscode-languageserver-types'; +import { LanguageSettings } from '../yamlLanguageService'; +import { YAMLSchemaService } from './yamlSchemaService'; +import { YAMLDocDiagnostic } from '../utils/parseUtils'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { Telemetry } from '../telemetry'; +/** + * Convert a YAMLDocDiagnostic to a language server Diagnostic + * @param yamlDiag A YAMLDocDiagnostic from the parser + * @param textDocument TextDocument from the language server client + */ +export declare const yamlDiagToLSDiag: (yamlDiag: YAMLDocDiagnostic, textDocument: TextDocument) => Diagnostic; +export declare class YAMLValidation { + private readonly telemetry?; + private validationEnabled; + private customTags; + private jsonValidation; + private disableAdditionalProperties; + private yamlVersion; + private validators; + private MATCHES_MULTIPLE; + constructor(schemaService: YAMLSchemaService, telemetry?: Telemetry); + configure(settings: LanguageSettings): void; + doValidation(textDocument: TextDocument, isKubernetes?: boolean): Promise; + private runAdditionalValidators; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js" index f9d059b3bb4b3fe0c783c0ffa702ac31b3543917..05dacc13c0c5c0846e7a9923b625f211b90b4343 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js" @@ -1,3 +1,144 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38ca330b2fda430a138cb5a2fcec498e1cace15912e36640e5a790cad3aabe7f -size 7602 +(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", "vscode-json-languageservice/lib/umd/services/jsonValidation", "../parser/jsonParser07", "../utils/textBuffer", "../parser/yaml-documents", "../utils/objects", "./validation/unused-anchors", "./validation/yaml-style", "./validation/map-key-order"], 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.YAMLValidation = exports.yamlDiagToLSDiag = void 0; + const vscode_languageserver_types_1 = require("vscode-languageserver-types"); + const jsonValidation_1 = require("vscode-json-languageservice/lib/umd/services/jsonValidation"); + const jsonParser07_1 = require("../parser/jsonParser07"); + const textBuffer_1 = require("../utils/textBuffer"); + const yaml_documents_1 = require("../parser/yaml-documents"); + const objects_1 = require("../utils/objects"); + const unused_anchors_1 = require("./validation/unused-anchors"); + const yaml_style_1 = require("./validation/yaml-style"); + const map_key_order_1 = require("./validation/map-key-order"); + /** + * Convert a YAMLDocDiagnostic to a language server Diagnostic + * @param yamlDiag A YAMLDocDiagnostic from the parser + * @param textDocument TextDocument from the language server client + */ + const yamlDiagToLSDiag = (yamlDiag, textDocument) => { + const start = textDocument.positionAt(yamlDiag.location.start); + const range = { + start, + end: yamlDiag.location.toLineEnd + ? vscode_languageserver_types_1.Position.create(start.line, new textBuffer_1.TextBuffer(textDocument).getLineLength(start.line)) + : textDocument.positionAt(yamlDiag.location.end), + }; + return vscode_languageserver_types_1.Diagnostic.create(range, yamlDiag.message, yamlDiag.severity, yamlDiag.code, jsonParser07_1.YAML_SOURCE); + }; + exports.yamlDiagToLSDiag = yamlDiagToLSDiag; + class YAMLValidation { + constructor(schemaService, telemetry) { + this.telemetry = telemetry; + this.validators = []; + this.MATCHES_MULTIPLE = 'Matches multiple schemas when only one must validate.'; + this.validationEnabled = true; + this.jsonValidation = new jsonValidation_1.JSONValidation(schemaService, Promise); + } + configure(settings) { + this.validators = []; + if (settings) { + this.validationEnabled = settings.validate; + this.customTags = settings.customTags; + this.disableAdditionalProperties = settings.disableAdditionalProperties; + this.yamlVersion = settings.yamlVersion; + // Add style validator if flow style is set to forbid only. + if (settings.flowMapping === 'forbid' || settings.flowSequence === 'forbid') { + this.validators.push(new yaml_style_1.YAMLStyleValidator(settings)); + } + if (settings.keyOrdering) { + this.validators.push(new map_key_order_1.MapKeyOrderValidator()); + } + } + this.validators.push(new unused_anchors_1.UnusedAnchorsValidator()); + } + async doValidation(textDocument, isKubernetes = false) { + if (!this.validationEnabled) { + return Promise.resolve([]); + } + const validationResult = []; + try { + const yamlDocument = yaml_documents_1.yamlDocumentsCache.getYamlDocument(textDocument, { customTags: this.customTags, yamlVersion: this.yamlVersion }, true); + let index = 0; + for (const currentYAMLDoc of yamlDocument.documents) { + currentYAMLDoc.isKubernetes = isKubernetes; + currentYAMLDoc.currentDocIndex = index; + currentYAMLDoc.disableAdditionalProperties = this.disableAdditionalProperties; + currentYAMLDoc.uri = textDocument.uri; + const validation = await this.jsonValidation.doValidation(textDocument, currentYAMLDoc); + const syd = currentYAMLDoc; + if (syd.errors.length > 0) { + // TODO: Get rid of these type assertions (shouldn't need them) + validationResult.push(...syd.errors); + } + if (syd.warnings.length > 0) { + validationResult.push(...syd.warnings); + } + validationResult.push(...validation); + validationResult.push(...this.runAdditionalValidators(textDocument, currentYAMLDoc)); + index++; + } + } + catch (err) { + this.telemetry?.sendError('yaml.validation.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) }); + } + let previousErr; + const foundSignatures = new Set(); + const duplicateMessagesRemoved = []; + for (let err of validationResult) { + /** + * A patch ontop of the validation that removes the + * 'Matches many schemas' error for kubernetes + * for a better user experience. + */ + if (isKubernetes && err.message === this.MATCHES_MULTIPLE) { + continue; + } + if (Object.prototype.hasOwnProperty.call(err, 'location')) { + err = (0, exports.yamlDiagToLSDiag)(err, textDocument); + } + if (!err.source) { + err.source = jsonParser07_1.YAML_SOURCE; + } + if (previousErr && + previousErr.message === err.message && + previousErr.range.end.line === err.range.start.line && + Math.abs(previousErr.range.end.character - err.range.end.character) >= 1) { + previousErr.range.end = err.range.end; + continue; + } + else { + previousErr = err; + } + const errSig = err.range.start.line + ' ' + err.range.start.character + ' ' + err.message; + if (!foundSignatures.has(errSig)) { + duplicateMessagesRemoved.push(err); + foundSignatures.add(errSig); + } + } + return duplicateMessagesRemoved; + } + runAdditionalValidators(document, yarnDoc) { + const result = []; + for (const validator of this.validators) { + result.push(...validator.validate(document, yarnDoc)); + } + return result; + } + } + exports.YAMLValidation = YAMLValidation; +}); +//# sourceMappingURL=yamlValidation.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js.map" index 26d7466464451b7fe70494dd946d197c2a24666e..f65571e631147aed532bf7f4e0432b1c7cc3d7b3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlValidation.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:677b4fa39b9192facef0fe83eb8334d4f131231a9fcb1b12376717f11567bb47 -size 4393 +{"version":3,"file":"yamlValidation.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlValidation.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;;oGAIgG;IAChG,YAAY,CAAC;;;IAEb,6EAAmE;IAMnE,gGAA6F;IAC7F,yDAAqD;IACrD,oDAAiD;IACjD,6DAA8D;IAC9D,8CAA8D;IAG9D,gEAAqE;IACrE,wDAA6D;IAC7D,8DAAkE;IAElE;;;;OAIG;IACI,MAAM,gBAAgB,GAAG,CAAC,QAA2B,EAAE,YAA0B,EAAc,EAAE;QACtG,MAAM,KAAK,GAAG,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC/D,MAAM,KAAK,GAAG;YACZ,KAAK;YACL,GAAG,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS;gBAC9B,CAAC,CAAC,sCAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,uBAAU,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBACrF,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;SACnD,CAAC;QAEF,OAAO,wCAAU,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE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GAAG,CAAC,OAAO,CAAC;gBAC1F,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;oBAChC,wBAAwB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;oBACnC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;iBAC7B;aACF;YAED,OAAO,wBAAwB,CAAC;QAClC,CAAC;QACO,uBAAuB,CAAC,QAAsB,EAAE,OAA2B;YACjF,MAAM,MAAM,GAAG,EAAE,CAAC;YAElB,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE;gBACvC,MAAM,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;aACvD;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;KACF;IA1HD,wCA0HC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.d.ts" index 2a0f9103f46d430207badb8432790ad5c2671d2a..8f3f274ecc16b178cc8346ed4ac7654dae248070 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.d.ts" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:698b60673a9dc847504cc8fd93e4e3873716dc1e8e1c6e739d88443116e68a3a -size 421 +/** + * Due to LSP limitation this object must be JSON serializable + */ +export interface TelemetryEvent { + name: string; + type?: string; + properties?: unknown; + measures?: unknown; + traits?: unknown; + context?: unknown; +} +export interface Telemetry { + send(event: TelemetryEvent): void; + sendError(name: string, properties: unknown): void; + sendTrack(name: string, properties: unknown): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js" index ffa34e1175fe24042b9ae131f00c0586f754899e..71069f70fb5db42b365f0779e7da1ff79ec02c6e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c2a65638054b96e7d6e1b604900667488c7d92f16829803fc65353cb5415d09 -size 812 +/*--------------------------------------------------------------------------------------------- + * 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"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//# sourceMappingURL=telemetry.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js.map" index 55321ca69673cb9f59815dd97502e33722dd3c7a..18169f3b1134ea6313c42b898f5530a36a7f8781 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/telemetry.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:382668a7774dfc82f900ef22c0b58c850d309805bec3488070bd656bb5a3a624 -size 145 +{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/languageservice/telemetry.ts"],"names":[],"mappings":"AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.d.ts" index 7414b49440f89bb5f74cc01bc5e830b8e021ddd6..7873cc3ce29a2d0c4da33c3a647c79b105753bd5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2d0ee789a2efa38d0d4aa0f61ad5c599b981f82396d7baf0709b5b5927ccb58 -size 505 +import { YAMLDocument, SingleYAMLDocument } from '../parser/yamlParser07'; +export declare function getLineOffsets(textDocString: string): number[]; +export declare function removeDuplicatesObj(objArray: T[]): T[]; +export declare function matchOffsetToDocument(offset: number, jsonDocuments: YAMLDocument): SingleYAMLDocument | null; +export declare function filterInvalidCustomTags(customTags: string[]): string[]; +export declare function isArrayEqual(fst: Array, snd: Array): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js" index 4cd1cf3d51f0daa4f340e76ba6bad84d4f7d1e46..8718d788ad6c93e80e0ac7163a49ec527b19ecb7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js" @@ -1,3 +1,99 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a2ac1acabca2d73e067ed4ba818f525607becc865a0493669a105d79170484f -size 3917 +/*--------------------------------------------------------------------------------------------- + * 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"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isArrayEqual = exports.filterInvalidCustomTags = exports.matchOffsetToDocument = exports.removeDuplicatesObj = exports.getLineOffsets = void 0; + function getLineOffsets(textDocString) { + const lineOffsets = []; + const text = textDocString; + let isLineStart = true; + for (let i = 0; i < text.length; i++) { + if (isLineStart) { + lineOffsets.push(i); + isLineStart = false; + } + const ch = text.charAt(i); + isLineStart = ch === '\r' || ch === '\n'; + if (ch === '\r' && i + 1 < text.length && text.charAt(i + 1) === '\n') { + i++; + } + } + if (isLineStart && text.length > 0) { + lineOffsets.push(text.length); + } + return lineOffsets; + } + exports.getLineOffsets = getLineOffsets; + function removeDuplicatesObj(objArray) { + const nonDuplicateSet = new Set(); + const nonDuplicateArr = []; + for (const obj in objArray) { + const currObj = objArray[obj]; + const stringifiedObj = JSON.stringify(currObj); + if (!nonDuplicateSet.has(stringifiedObj)) { + nonDuplicateArr.push(currObj); + nonDuplicateSet.add(stringifiedObj); + } + } + return nonDuplicateArr; + } + exports.removeDuplicatesObj = removeDuplicatesObj; + function matchOffsetToDocument(offset, jsonDocuments) { + for (const jsonDoc of jsonDocuments.documents) { + if (jsonDoc.internalDocument && jsonDoc.internalDocument.range[0] <= offset && jsonDoc.internalDocument.range[2] >= offset) { + return jsonDoc; + } + } + if (jsonDocuments.documents.length === 1) { + return jsonDocuments.documents[0]; + } + return null; + } + exports.matchOffsetToDocument = matchOffsetToDocument; + function filterInvalidCustomTags(customTags) { + const validCustomTags = ['mapping', 'scalar', 'sequence']; + if (!customTags) { + return []; + } + return customTags.filter((tag) => { + if (typeof tag === 'string') { + const typeInfo = tag.split(' '); + const type = (typeInfo[1] && typeInfo[1].toLowerCase()) || 'scalar'; + // We need to check if map is a type because map will throw an error within the yaml-ast-parser + if (type === 'map') { + return false; + } + return validCustomTags.indexOf(type) !== -1; + } + return false; + }); + } + exports.filterInvalidCustomTags = filterInvalidCustomTags; + function isArrayEqual(fst, snd) { + if (!snd || !fst) { + return false; + } + if (snd.length !== fst.length) { + return false; + } + for (let index = fst.length - 1; index >= 0; index--) { + if (fst[index] !== snd[index]) { + return false; + } + } + return true; + } + exports.isArrayEqual = isArrayEqual; +}); +//# sourceMappingURL=arrUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js.map" index e2903ec513db34cea5cc956062eace1aee8aa29f..51733c97fac18b1a64b739274c2e959777ecfa6e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/arrUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7bd5e813f642cbf3b815498dbf52db7a246e6a7cff548144f4b4b8a3db7a0034 -size 2715 +{"version":3,"file":"arrUtils.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/arrUtils.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAIhG,SAAgB,cAAc,CAAC,aAAqB;QAClD,MAAM,WAAW,GAAa,EAAE,CAAC;QACjC,MAAM,IAAI,GAAG,aAAa,CAAC;QAC3B,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,IAAI,WAAW,EAAE;gBACf,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACpB,WAAW,GAAG,KAAK,CAAC;aACrB;YACD,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC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G,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,EAAE;gBAC7B,OAAO,KAAK,CAAC;aACd;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAbD,oCAaC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.d.ts" index 9256f87081f34d2393b946352ddd1b52bb48dbb9..9a9456f3a92203e517d969be4f498cf3cb34aaf3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.d.ts" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff6dca7c7f0ca75d597fd4f9e61620384d3346b78ade4411b029d322eef443c0 -size 689 +import { Document, YAMLMap, YAMLSeq } from 'yaml'; +import { CollectionItem, Token } from 'yaml/dist/parse/cst'; +import { YamlNode } from '../jsonASTTypes'; +export declare function getParent(doc: Document, nodeToFind: YamlNode): YamlNode | undefined; +export declare function isMapContainsEmptyPair(map: YAMLMap): boolean; +export declare function indexOf(seq: YAMLSeq, item: YamlNode): number | undefined; +/** + * Check that given offset is in YAML comment + * @param doc the yaml document + * @param offset the offset to check + */ +export declare function isInComment(tokens: Token[], offset: number): boolean; +export declare function isCollectionItem(token: unknown): token is CollectionItem; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js" index 9857454f28a355dc1e4406ed8e46534b011672ba..f4fc0d31256372c4fe5086d05a6799fa6bc9d984 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js" @@ -1,3 +1,126 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20dbf25c13bf45074ca2dbf7bc75ba2cd0bbe9462b9881b5b9a65b9fb4af0ea8 -size 5023 +/*--------------------------------------------------------------------------------------------- + * 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", "yaml"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isCollectionItem = exports.isInComment = exports.indexOf = exports.isMapContainsEmptyPair = exports.getParent = void 0; + const yaml_1 = require("yaml"); + function getParent(doc, nodeToFind) { + let parentNode; + (0, yaml_1.visit)(doc, (_, node, path) => { + if (node === nodeToFind) { + parentNode = path[path.length - 1]; + return yaml_1.visit.BREAK; + } + }); + if ((0, yaml_1.isDocument)(parentNode)) { + return undefined; + } + return parentNode; + } + exports.getParent = getParent; + function isMapContainsEmptyPair(map) { + if (map.items.length > 1) { + return false; + } + const pair = map.items[0]; + return (0, yaml_1.isScalar)(pair.key) && (0, yaml_1.isScalar)(pair.value) && pair.key.value === '' && !pair.value.value; + } + exports.isMapContainsEmptyPair = isMapContainsEmptyPair; + function indexOf(seq, item) { + for (const [i, obj] of seq.items.entries()) { + if (item === obj) { + return i; + } + } + return undefined; + } + exports.indexOf = indexOf; + /** + * Check that given offset is in YAML comment + * @param doc the yaml document + * @param offset the offset to check + */ + function isInComment(tokens, offset) { + let inComment = false; + for (const token of tokens) { + if (token.type === 'document') { + _visit([], token, (item) => { + if (isCollectionItem(item) && item.value?.type === 'comment') { + if (token.offset <= offset && item.value.source.length + item.value.offset >= offset) { + inComment = true; + return yaml_1.visit.BREAK; + } + } + else if (item.type === 'comment' && item.offset <= offset && item.offset + item.source.length >= offset) { + inComment = true; + return yaml_1.visit.BREAK; + } + }); + } + else if (token.type === 'comment') { + if (token.offset <= offset && token.source.length + token.offset >= offset) { + return true; + } + } + if (inComment) { + break; + } + } + return inComment; + } + exports.isInComment = isInComment; + function isCollectionItem(token) { + return token['start'] !== undefined; + } + exports.isCollectionItem = isCollectionItem; + function _visit(path, item, visitor) { + let ctrl = visitor(item, path); + if (typeof ctrl === 'symbol') + return ctrl; + for (const field of ['key', 'value']) { + const token = item[field]; + if (token && 'items' in token) { + for (let i = 0; i < token.items.length; ++i) { + const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === yaml_1.visit.BREAK) + return yaml_1.visit.BREAK; + else if (ci === yaml_1.visit.REMOVE) { + token.items.splice(i, 1); + i -= 1; + } + } + if (typeof ctrl === 'function' && field === 'key') + ctrl = ctrl(item, path); + } + } + const token = item['sep']; + if (token) { + for (let i = 0; i < token.length; ++i) { + const ci = _visit(Object.freeze(path), token[i], visitor); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === yaml_1.visit.BREAK) + return yaml_1.visit.BREAK; + else if (ci === yaml_1.visit.REMOVE) { + token.items.splice(i, 1); + i -= 1; + } + } + } + return typeof ctrl === 'function' ? ctrl(item, path) : ctrl; + } +}); +//# sourceMappingURL=astUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js.map" index 330089bc0cb848d35a90d2b8c79dd007f5caa1ab..037164bc8cd3c37023dd69464d8ba9a568818a1c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/astUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf758100785038fe0fb992e5ae2258702bf85b44bc3b20704c1f232c6df642e2 -size 3807 +{"version":3,"file":"astUtils.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/astUtils.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAEhG,+BAAqF;IAOrF,SAAgB,SAAS,CAAC,GAAa,EAAE,UAAoB;QAC3D,IAAI,UAAgB,CAAC;QACrB,IAAA,YAAK,EAAC,GAAG,EAAE,CAAC,CAAC,EAAE,IAAU,EAAE,IAAI,EAAE,EAAE;YACjC,IAAI,IAAI,KAAK,UAAU,EAAE;gBACvB,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAS,CAAC;gBAC3C,OAAO,YAAK,CAAC,KAAK,CAAC;aACpB;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,IAAA,iBAAU,EAAC,UAAU,CAAC,EAAE;YAC1B,OAAO,SAAS,CAAC;SAClB;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;IAdD,8BAcC;IACD,SAAgB,sBAAsB,CAAC,GAAY;QACjD,IAAI,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACxB,OAAO,KAAK,CAAC;SACd;QAED,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,OAAO,IAAA,eAAQ,EAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAA,eAAQ,EAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAClG,CAAC;IAPD,wDAOC;IAED,SAAgB,OAAO,CAAC,GAAY,EAAE,IAAc;QAClD,KAAK,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE;YAC1C,IAAI,IAAI,KAA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AI,CAAC,CAAC;aAC5E;SACF;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,KAAK,EAAE;YACT,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;gBACrC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;gBAC1D,IAAI,OAAO,EAAE,KAAK,QAAQ;oBAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;qBAClC,IAAI,EAAE,KAAK,YAAK,CAAC,KAAK;oBAAE,OAAO,YAAK,CAAC,KAAK,CAAC;qBAC3C,IAAI,EAAE,KAAK,YAAK,CAAC,MAAM,EAAE;oBAC5B,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBACzB,CAAC,IAAI,CAAC,CAAC;iBACR;aACF;SACF;QACD,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9D,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.d.ts" index 086d0697e6121fb643b7d90a799dbbb0fae4066b..61c9a2fa955407a2a032f17e689298f9194f2fab 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.d.ts" @@ -1,3 +1,415 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12589e6b27710c071911512033dcc0031cba705fe4dd911cb1b65139c7ef0fb9 -size 11020 +/** + * An inlined enum containing useful character codes (to be used with String.charCodeAt). + * Please leave the const keyword such that it gets inlined when compiled to JavaScript! + */ +export declare const enum CharCode { + Null = 0, + /** + * The `\b` character. + */ + Backspace = 8, + /** + * The `\t` character. + */ + Tab = 9, + /** + * The `\n` character. + */ + LineFeed = 10, + /** + * The `\r` character. + */ + CarriageReturn = 13, + Space = 32, + /** + * The `!` character. + */ + ExclamationMark = 33, + /** + * The `"` character. + */ + DoubleQuote = 34, + /** + * The `#` character. + */ + Hash = 35, + /** + * The `$` character. + */ + DollarSign = 36, + /** + * The `%` character. + */ + PercentSign = 37, + /** + * The `&` character. + */ + Ampersand = 38, + /** + * The `'` character. + */ + SingleQuote = 39, + /** + * The `(` character. + */ + OpenParen = 40, + /** + * The `)` character. + */ + CloseParen = 41, + /** + * The `*` character. + */ + Asterisk = 42, + /** + * The `+` character. + */ + Plus = 43, + /** + * The `,` character. + */ + Comma = 44, + /** + * The `-` character. + */ + Dash = 45, + /** + * The `.` character. + */ + Period = 46, + /** + * The `/` character. + */ + Slash = 47, + Digit0 = 48, + Digit1 = 49, + Digit2 = 50, + Digit3 = 51, + Digit4 = 52, + Digit5 = 53, + Digit6 = 54, + Digit7 = 55, + Digit8 = 56, + Digit9 = 57, + /** + * The `:` character. + */ + Colon = 58, + /** + * The `;` character. + */ + Semicolon = 59, + /** + * The `<` character. + */ + LessThan = 60, + /** + * The `=` character. + */ + Equals = 61, + /** + * The `>` character. + */ + GreaterThan = 62, + /** + * The `?` character. + */ + QuestionMark = 63, + /** + * The `@` character. + */ + AtSign = 64, + A = 65, + B = 66, + C = 67, + D = 68, + E = 69, + F = 70, + G = 71, + H = 72, + I = 73, + J = 74, + K = 75, + L = 76, + M = 77, + N = 78, + O = 79, + P = 80, + Q = 81, + R = 82, + S = 83, + T = 84, + U = 85, + V = 86, + W = 87, + X = 88, + Y = 89, + Z = 90, + /** + * The `[` character. + */ + OpenSquareBracket = 91, + /** + * The `\` character. + */ + Backslash = 92, + /** + * The `]` character. + */ + CloseSquareBracket = 93, + /** + * The `^` character. + */ + Caret = 94, + /** + * The `_` character. + */ + Underline = 95, + /** + * The ``(`)`` character. + */ + BackTick = 96, + a = 97, + b = 98, + c = 99, + d = 100, + e = 101, + f = 102, + g = 103, + h = 104, + i = 105, + j = 106, + k = 107, + l = 108, + m = 109, + n = 110, + o = 111, + p = 112, + q = 113, + r = 114, + s = 115, + t = 116, + u = 117, + v = 118, + w = 119, + x = 120, + y = 121, + z = 122, + /** + * The `{` character. + */ + OpenCurlyBrace = 123, + /** + * The `|` character. + */ + Pipe = 124, + /** + * The `}` character. + */ + CloseCurlyBrace = 125, + /** + * The `~` character. + */ + Tilde = 126, + U_Combining_Grave_Accent = 768, + U_Combining_Acute_Accent = 769, + U_Combining_Circumflex_Accent = 770, + U_Combining_Tilde = 771, + U_Combining_Macron = 772, + U_Combining_Overline = 773, + U_Combining_Breve = 774, + U_Combining_Dot_Above = 775, + U_Combining_Diaeresis = 776, + U_Combining_Hook_Above = 777, + U_Combining_Ring_Above = 778, + U_Combining_Double_Acute_Accent = 779, + U_Combining_Caron = 780, + U_Combining_Vertical_Line_Above = 781, + U_Combining_Double_Vertical_Line_Above = 782, + U_Combining_Double_Grave_Accent = 783, + U_Combining_Candrabindu = 784, + U_Combining_Inverted_Breve = 785, + U_Combining_Turned_Comma_Above = 786, + U_Combining_Comma_Above = 787, + U_Combining_Reversed_Comma_Above = 788, + U_Combining_Comma_Above_Right = 789, + U_Combining_Grave_Accent_Below = 790, + U_Combining_Acute_Accent_Below = 791, + U_Combining_Left_Tack_Below = 792, + U_Combining_Right_Tack_Below = 793, + U_Combining_Left_Angle_Above = 794, + U_Combining_Horn = 795, + U_Combining_Left_Half_Ring_Below = 796, + U_Combining_Up_Tack_Below = 797, + U_Combining_Down_Tack_Below = 798, + U_Combining_Plus_Sign_Below = 799, + U_Combining_Minus_Sign_Below = 800, + U_Combining_Palatalized_Hook_Below = 801, + U_Combining_Retroflex_Hook_Below = 802, + U_Combining_Dot_Below = 803, + U_Combining_Diaeresis_Below = 804, + U_Combining_Ring_Below = 805, + U_Combining_Comma_Below = 806, + U_Combining_Cedilla = 807, + U_Combining_Ogonek = 808, + U_Combining_Vertical_Line_Below = 809, + U_Combining_Bridge_Below = 810, + U_Combining_Inverted_Double_Arch_Below = 811, + U_Combining_Caron_Below = 812, + U_Combining_Circumflex_Accent_Below = 813, + U_Combining_Breve_Below = 814, + U_Combining_Inverted_Breve_Below = 815, + U_Combining_Tilde_Below = 816, + U_Combining_Macron_Below = 817, + U_Combining_Low_Line = 818, + U_Combining_Double_Low_Line = 819, + U_Combining_Tilde_Overlay = 820, + U_Combining_Short_Stroke_Overlay = 821, + U_Combining_Long_Stroke_Overlay = 822, + U_Combining_Short_Solidus_Overlay = 823, + U_Combining_Long_Solidus_Overlay = 824, + U_Combining_Right_Half_Ring_Below = 825, + U_Combining_Inverted_Bridge_Below = 826, + U_Combining_Square_Below = 827, + U_Combining_Seagull_Below = 828, + U_Combining_X_Above = 829, + U_Combining_Vertical_Tilde = 830, + U_Combining_Double_Overline = 831, + U_Combining_Grave_Tone_Mark = 832, + U_Combining_Acute_Tone_Mark = 833, + U_Combining_Greek_Perispomeni = 834, + U_Combining_Greek_Koronis = 835, + U_Combining_Greek_Dialytika_Tonos = 836, + U_Combining_Greek_Ypogegrammeni = 837, + U_Combining_Bridge_Above = 838, + U_Combining_Equals_Sign_Below = 839, + U_Combining_Double_Vertical_Line_Below = 840, + U_Combining_Left_Angle_Below = 841, + U_Combining_Not_Tilde_Above = 842, + U_Combining_Homothetic_Above = 843, + U_Combining_Almost_Equal_To_Above = 844, + U_Combining_Left_Right_Arrow_Below = 845, + U_Combining_Upwards_Arrow_Below = 846, + U_Combining_Grapheme_Joiner = 847, + U_Combining_Right_Arrowhead_Above = 848, + U_Combining_Left_Half_Ring_Above = 849, + U_Combining_Fermata = 850, + U_Combining_X_Below = 851, + U_Combining_Left_Arrowhead_Below = 852, + U_Combining_Right_Arrowhead_Below = 853, + U_Combining_Right_Arrowhead_And_Up_Arrowhead_Below = 854, + U_Combining_Right_Half_Ring_Above = 855, + U_Combining_Dot_Above_Right = 856, + U_Combining_Asterisk_Below = 857, + U_Combining_Double_Ring_Below = 858, + U_Combining_Zigzag_Above = 859, + U_Combining_Double_Breve_Below = 860, + U_Combining_Double_Breve = 861, + U_Combining_Double_Macron = 862, + U_Combining_Double_Macron_Below = 863, + U_Combining_Double_Tilde = 864, + U_Combining_Double_Inverted_Breve = 865, + U_Combining_Double_Rightwards_Arrow_Below = 866, + U_Combining_Latin_Small_Letter_A = 867, + U_Combining_Latin_Small_Letter_E = 868, + U_Combining_Latin_Small_Letter_I = 869, + U_Combining_Latin_Small_Letter_O = 870, + U_Combining_Latin_Small_Letter_U = 871, + U_Combining_Latin_Small_Letter_C = 872, + U_Combining_Latin_Small_Letter_D = 873, + U_Combining_Latin_Small_Letter_H = 874, + U_Combining_Latin_Small_Letter_M = 875, + U_Combining_Latin_Small_Letter_R = 876, + U_Combining_Latin_Small_Letter_T = 877, + U_Combining_Latin_Small_Letter_V = 878, + U_Combining_Latin_Small_Letter_X = 879, + /** + * Unicode Character 'LINE SEPARATOR' (U+2028) + * http://www.fileformat.info/info/unicode/char/2028/index.htm + */ + LINE_SEPARATOR = 8232, + /** + * Unicode Character 'PARAGRAPH SEPARATOR' (U+2029) + * http://www.fileformat.info/info/unicode/char/2029/index.htm + */ + PARAGRAPH_SEPARATOR = 8233, + /** + * Unicode Character 'NEXT LINE' (U+0085) + * http://www.fileformat.info/info/unicode/char/0085/index.htm + */ + NEXT_LINE = 133, + U_CIRCUMFLEX = 94, + U_GRAVE_ACCENT = 96, + U_DIAERESIS = 168, + U_MACRON = 175, + U_ACUTE_ACCENT = 180, + U_CEDILLA = 184, + U_MODIFIER_LETTER_LEFT_ARROWHEAD = 706, + U_MODIFIER_LETTER_RIGHT_ARROWHEAD = 707, + U_MODIFIER_LETTER_UP_ARROWHEAD = 708, + U_MODIFIER_LETTER_DOWN_ARROWHEAD = 709, + U_MODIFIER_LETTER_CENTRED_RIGHT_HALF_RING = 722, + U_MODIFIER_LETTER_CENTRED_LEFT_HALF_RING = 723, + U_MODIFIER_LETTER_UP_TACK = 724, + U_MODIFIER_LETTER_DOWN_TACK = 725, + U_MODIFIER_LETTER_PLUS_SIGN = 726, + U_MODIFIER_LETTER_MINUS_SIGN = 727, + U_BREVE = 728, + U_DOT_ABOVE = 729, + U_RING_ABOVE = 730, + U_OGONEK = 731, + U_SMALL_TILDE = 732, + U_DOUBLE_ACUTE_ACCENT = 733, + U_MODIFIER_LETTER_RHOTIC_HOOK = 734, + U_MODIFIER_LETTER_CROSS_ACCENT = 735, + U_MODIFIER_LETTER_EXTRA_HIGH_TONE_BAR = 741, + U_MODIFIER_LETTER_HIGH_TONE_BAR = 742, + U_MODIFIER_LETTER_MID_TONE_BAR = 743, + U_MODIFIER_LETTER_LOW_TONE_BAR = 744, + U_MODIFIER_LETTER_EXTRA_LOW_TONE_BAR = 745, + U_MODIFIER_LETTER_YIN_DEPARTING_TONE_MARK = 746, + U_MODIFIER_LETTER_YANG_DEPARTING_TONE_MARK = 747, + U_MODIFIER_LETTER_UNASPIRATED = 749, + U_MODIFIER_LETTER_LOW_DOWN_ARROWHEAD = 751, + U_MODIFIER_LETTER_LOW_UP_ARROWHEAD = 752, + U_MODIFIER_LETTER_LOW_LEFT_ARROWHEAD = 753, + U_MODIFIER_LETTER_LOW_RIGHT_ARROWHEAD = 754, + U_MODIFIER_LETTER_LOW_RING = 755, + U_MODIFIER_LETTER_MIDDLE_GRAVE_ACCENT = 756, + U_MODIFIER_LETTER_MIDDLE_DOUBLE_GRAVE_ACCENT = 757, + U_MODIFIER_LETTER_MIDDLE_DOUBLE_ACUTE_ACCENT = 758, + U_MODIFIER_LETTER_LOW_TILDE = 759, + U_MODIFIER_LETTER_RAISED_COLON = 760, + U_MODIFIER_LETTER_BEGIN_HIGH_TONE = 761, + U_MODIFIER_LETTER_END_HIGH_TONE = 762, + U_MODIFIER_LETTER_BEGIN_LOW_TONE = 763, + U_MODIFIER_LETTER_END_LOW_TONE = 764, + U_MODIFIER_LETTER_SHELF = 765, + U_MODIFIER_LETTER_OPEN_SHELF = 766, + U_MODIFIER_LETTER_LOW_LEFT_ARROW = 767, + U_GREEK_LOWER_NUMERAL_SIGN = 885, + U_GREEK_TONOS = 900, + U_GREEK_DIALYTIKA_TONOS = 901, + U_GREEK_KORONIS = 8125, + U_GREEK_PSILI = 8127, + U_GREEK_PERISPOMENI = 8128, + U_GREEK_DIALYTIKA_AND_PERISPOMENI = 8129, + U_GREEK_PSILI_AND_VARIA = 8141, + U_GREEK_PSILI_AND_OXIA = 8142, + U_GREEK_PSILI_AND_PERISPOMENI = 8143, + U_GREEK_DASIA_AND_VARIA = 8157, + U_GREEK_DASIA_AND_OXIA = 8158, + U_GREEK_DASIA_AND_PERISPOMENI = 8159, + U_GREEK_DIALYTIKA_AND_VARIA = 8173, + U_GREEK_DIALYTIKA_AND_OXIA = 8174, + U_GREEK_VARIA = 8175, + U_GREEK_OXIA = 8189, + U_GREEK_DASIA = 8190, + U_OVERLINE = 8254, + /** + * UTF-8 BOM + * Unicode Character 'ZERO WIDTH NO-BREAK SPACE' (U+FEFF) + * http://www.fileformat.info/info/unicode/char/feff/index.htm + */ + UTF8_BOM = 65279 +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js" index 7a122c965814d0db0dd38f3b8c8cd57d60aa041f..153d640665d3e528e79cb7945ae23184dce3a501 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f0291e75a1e45baa976f2a3562c5e212b65809a773813adbe24a1720214318f1 -size 820 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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=charCode.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js.map" index 9554b1b5cf1f194dec7fb0ee711798efb1d06ef5..031106299c7f8054269db1e7de682bd38f5653b4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/charCode.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1817ac573c62d22134fe21c411f3fd2a48d10bdeaecd1ff4fba46e950cf4c9ad -size 152 +{"version":3,"file":"charCode.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/charCode.ts"],"names":[],"mappings":"AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.d.ts" index 7ba1d57e3caada68f7e07664a8050b98c752bd22..8d17f094a52dff5ae84491a2c012df3f0680d91d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d6556f23d9f2ce802e2d4f8807f70826ec7d8008c3c0c763800396ca458b1a3 -size 367 +import { Position } from 'vscode-languageserver-types'; +export declare function insertionPointReturnValue(pt: number): number; +export declare function binarySearch(array: number[], sought: number): number; +export declare function getLineStartPositions(text: string): number[]; +export declare function getPosition(pos: number, lineStartPositions: number[]): Position; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js" index 6b7b66b673549b7c4a85cf9ed92e5b8241e506cb..531084bb86b294746f9d929ccbaf8044d6f488d2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js" @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:84badb98a77591b71176059047593bd58778f440d624a49e8310898fe336a015 -size 3032 +(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"], 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.getPosition = exports.getLineStartPositions = exports.binarySearch = exports.insertionPointReturnValue = void 0; + const vscode_languageserver_types_1 = require("vscode-languageserver-types"); + function insertionPointReturnValue(pt) { + return -pt - 1; + } + exports.insertionPointReturnValue = insertionPointReturnValue; + function binarySearch(array, sought) { + let lower = 0; + let upper = array.length - 1; + while (lower <= upper) { + const idx = Math.floor((lower + upper) / 2); + const value = array[idx]; + if (value === sought) { + return idx; + } + if (lower === upper) { + const insertionPoint = value < sought ? idx + 1 : idx; + return insertionPointReturnValue(insertionPoint); + } + if (sought > value) { + lower = idx + 1; + } + else if (sought < value) { + upper = idx - 1; + } + } + } + exports.binarySearch = binarySearch; + function getLineStartPositions(text) { + const lineStartPositions = [0]; + for (let i = 0; i < text.length; i++) { + const c = text[i]; + if (c === '\r') { + // Check for Windows encoding, otherwise we are old Mac + if (i + 1 < text.length && text[i + 1] === '\n') { + i++; + } + lineStartPositions.push(i + 1); + } + else if (c === '\n') { + lineStartPositions.push(i + 1); + } + } + return lineStartPositions; + } + exports.getLineStartPositions = getLineStartPositions; + function getPosition(pos, lineStartPositions) { + let line = binarySearch(lineStartPositions, pos); + if (line < 0) { + const insertionPoint = -1 * line - 1; + line = insertionPoint - 1; + } + return vscode_languageserver_types_1.Position.create(line, pos - lineStartPositions[line]); + } + exports.getPosition = getPosition; +}); +//# sourceMappingURL=documentPositionCalculator.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js.map" index f927059ec58b114d884ffee0cc9e666b03afcbad..63a2bd874949626a9b4bec35ce3fe4b6ae4a6fdd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/documentPositionCalculator.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:22e4c531df64c5c1f53885604909779e2df780b192d7156b9ad6d7313a6087b5 -size 1892 +{"version":3,"file":"documentPositionCalculator.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/documentPositionCalculator.ts"],"names":[],"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AI,EAAE;gBACd,uDAAuD;gBACvD,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;oBAC/C,CAAC,EAAE,CAAC;iBACL;gBAED,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;aAChC;iBAAM,IAAI,CAAC,KAAK,IAAI,EAAE;gBACrB,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;aAChC;SACF;QAED,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAlBD,sDAkBC;IAED,SAAgB,WAAW,CAAC,GAAW,EAAE,kBAA4B;QACnE,IAAI,IAAI,GAAG,YAAY,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;QAEjD,IAAI,IAAI,GAAG,CAAC,EAAE;YACZ,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;YACrC,IAAI,GAAG,cAAc,GAAG,CAAC,CAAC;SAC3B;QAED,OAAO,sCAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,CAAC;IATD,kCASC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.d.ts" index 3c693cfec2917ad99fe965850f9b5caa2438dcde..6be6072d04259f46767ca5d01048706002646731 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8dae2a77ae65fc791e9e6e4fbc88fbf2911c38990fa194b900a330700ed88e5a -size 199 +import { ASTNode } from '../jsonASTTypes'; +export declare class FlowStyleRewriter { + private readonly indentation; + constructor(indentation: string); + write(node: ASTNode): string | null; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js" index cefcf9dc66dafc6ac8a2676f529892523f5d6559..371ff70b047af114a185ec569543fe7495057682 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js" @@ -1,3 +1,67 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1e6a50c885c88a607afcbcff9cbcd8c7030f54769063366217bb80287c67b4c -size 2989 +(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", "yaml"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.FlowStyleRewriter = void 0; + const yaml_1 = require("yaml"); + class FlowStyleRewriter { + constructor(indentation) { + this.indentation = indentation; + } + write(node) { + if (node.internalNode.srcToken['type'] !== 'flow-collection') { + return null; + } + const collection = node.internalNode.srcToken; + const blockType = collection.start.type === 'flow-map-start' ? 'block-map' : 'block-seq'; + const parentType = node.parent.type; + const blockStyle = { + type: blockType, + offset: collection.offset, + indent: collection.indent, + items: [], + }; + for (const item of collection.items) { + yaml_1.CST.visit(item, ({ key, sep, value }) => { + if (blockType === 'block-map') { + const start = [{ type: 'space', indent: 0, offset: key.offset, source: this.indentation }]; + if (parentType === 'property') { + // add a new line if part of a map + start.unshift({ type: 'newline', indent: 0, offset: key.offset, source: '\n' }); + } + blockStyle.items.push({ + start: start, + key: key, + sep: sep, + value: value, + }); + } + else if (blockType === 'block-seq') { + blockStyle.items.push({ + start: [ + { type: 'newline', indent: 0, offset: value.offset, source: '\n' }, + { type: 'space', indent: 0, offset: value.offset, source: this.indentation }, + { type: 'seq-item-ind', indent: 0, offset: value.offset, source: '-' }, + { type: 'space', indent: 0, offset: value.offset, source: ' ' }, + ], + value: value, + }); + } + if (value.type === 'flow-collection') { + return yaml_1.visit.SKIP; + } + }); + } + return yaml_1.CST.stringify(blockStyle); + } + } + exports.FlowStyleRewriter = FlowStyleRewriter; +}); +//# sourceMappingURL=flow-style-rewriter.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js.map" index 4d07cf4ca31ff09a374487d362c2d223d98b0143..d3cd25facb9503755b44db2a6892ce9f77503a62 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/flow-style-rewriter.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:965ba160acc10e7ca5e2541403b1d4ebebd6342a684883d44df4ee871ba02bfc -size 2092 +{"version":3,"file":"flow-style-rewriter.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/flow-style-rewriter.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,+BAAkC;IAIlC,MAAa,iBAAiB;QAC5B,YAA6B,WAAmB;YAAnB,gBAAW,GAAX,WAAW,CAAQ;QAAG,CAAC;QAE7C,KAAK,CAAC,IAAa;YACxB,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,iBAAiB,EAAE;gBAC5D,OAAO,IAAI,CAAC;aACb;YACD,MAAM,UAAU,GAAuB,IAAI,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L,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAiB;gCACjF,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAiB;gCAC3F,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAiB;gCACrF,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAiB;6BAC/E;4BACD,KAAK,EAAE,KAAK;yBACb,CAAC,CAAC;qBACJ;oBACD,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE;wBACpC,OAAO,YAAK,CAAC,IAAI,CAAC;qBACnB;gBACH,CAAC,CAAC,CAAC;aACJ;YACD,OAAO,UAAG,CAAC,SAAS,CAAC,UAAuB,CAAC,CAAC;QAChD,CAAC;KACF;IAlDD,8CAkDC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.d.ts" index e78fab5d3ce173a1cf04b91f4887699f2279cd2e..7cc8c586e9ca90a9a16c28109a99121d7a5096b3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.d.ts" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:005d20f544203009381a74f854fc8f998f85ee11bd2228238bfc777a57f3f0bb -size 502 +import { TextBuffer } from './textBuffer'; +/** + * Result for a guessIndentation + */ +export interface IGuessedIndentation { + /** + * If indentation is based on spaces (`insertSpaces` = true), then what is the number of spaces that make an indent? + */ + tabSize: number; + /** + * Is indentation based on spaces? + */ + insertSpaces: boolean; +} +export declare function guessIndentation(source: TextBuffer, defaultTabSize: number, defaultInsertSpaces: boolean): IGuessedIndentation; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js" index 6d6dc95072a5ae10d6406d273dbe3bc05fdd5bf1..0221b0480757b4967a45969d943c0b0815d961b2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js" @@ -1,3 +1,190 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:af7a30a1a350ec9fef6c54cffe2929422df79f286a0200a2236af7dd7476f273 -size 8987 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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 }); + exports.guessIndentation = void 0; + class SpacesDiffResult { + constructor() { + this.spacesDiff = 0; + this.looksLikeAlignment = false; + } + } + /** + * Compute the diff in spaces between two line's indentation. + */ + function spacesDiff(a, aLength, b, bLength, result) { + result.spacesDiff = 0; + result.looksLikeAlignment = false; + // This can go both ways (e.g.): + // - a: "\t" + // - b: "\t " + // => This should count 1 tab and 4 spaces + let i; + for (i = 0; i < aLength && i < bLength; i++) { + const aCharCode = a.charCodeAt(i); + const bCharCode = b.charCodeAt(i); + if (aCharCode !== bCharCode) { + break; + } + } + let aSpacesCnt = 0, aTabsCount = 0; + for (let j = i; j < aLength; j++) { + const aCharCode = a.charCodeAt(j); + if (aCharCode === 32 /* CharCode.Space */) { + aSpacesCnt++; + } + else { + aTabsCount++; + } + } + let bSpacesCnt = 0, bTabsCount = 0; + for (let j = i; j < bLength; j++) { + const bCharCode = b.charCodeAt(j); + if (bCharCode === 32 /* CharCode.Space */) { + bSpacesCnt++; + } + else { + bTabsCount++; + } + } + if (aSpacesCnt > 0 && aTabsCount > 0) { + return; + } + if (bSpacesCnt > 0 && bTabsCount > 0) { + return; + } + const tabsDiff = Math.abs(aTabsCount - bTabsCount); + const spacesDiff = Math.abs(aSpacesCnt - bSpacesCnt); + if (tabsDiff === 0) { + // check if the indentation difference might be caused by alignment reasons + // sometime folks like to align their code, but this should not be used as a hint + result.spacesDiff = spacesDiff; + if (spacesDiff > 0 && 0 <= bSpacesCnt - 1 && bSpacesCnt - 1 < a.length && bSpacesCnt < b.length) { + if (b.charCodeAt(bSpacesCnt) !== 32 /* CharCode.Space */ && a.charCodeAt(bSpacesCnt - 1) === 32 /* CharCode.Space */) { + if (a.charCodeAt(a.length - 1) === 44 /* CharCode.Comma */) { + // This looks like an alignment desire: e.g. + // const a = b + c, + // d = b - c; + result.looksLikeAlignment = true; + } + } + } + return; + } + if (spacesDiff % tabsDiff === 0) { + result.spacesDiff = spacesDiff / tabsDiff; + } + } + function guessIndentation(source, defaultTabSize, defaultInsertSpaces) { + // Look at most at the first 10k lines + const linesCount = Math.min(source.getLineCount(), 10000); + let linesIndentedWithTabsCount = 0; // number of lines that contain at least one tab in indentation + let linesIndentedWithSpacesCount = 0; // number of lines that contain only spaces in indentation + let previousLineText = ''; // content of latest line that contained non-whitespace chars + let previousLineIndentation = 0; // index at which latest line contained the first non-whitespace char + const ALLOWED_TAB_SIZE_GUESSES = [2, 4, 6, 8, 3, 5, 7]; // prefer even guesses for `tabSize`, limit to [2, 8]. + const MAX_ALLOWED_TAB_SIZE_GUESS = 8; // max(ALLOWED_TAB_SIZE_GUESSES) = 8 + const spacesDiffCount = [0, 0, 0, 0, 0, 0, 0, 0, 0]; // `tabSize` scores + const tmp = new SpacesDiffResult(); + for (let lineNumber = 1; lineNumber <= linesCount; lineNumber++) { + const currentLineLength = source.getLineLength(lineNumber); + const currentLineText = source.getLineContent(lineNumber); + // if the text buffer is chunk based, so long lines are cons-string, v8 will flattern the string when we check charCode. + // checking charCode on chunks directly is cheaper. + const useCurrentLineText = currentLineLength <= 65536; + let currentLineHasContent = false; // does `currentLineText` contain non-whitespace chars + let currentLineIndentation = 0; // index at which `currentLineText` contains the first non-whitespace char + let currentLineSpacesCount = 0; // count of spaces found in `currentLineText` indentation + let currentLineTabsCount = 0; // count of tabs found in `currentLineText` indentation + for (let j = 0, lenJ = currentLineLength; j < lenJ; j++) { + const charCode = useCurrentLineText ? currentLineText.charCodeAt(j) : source.getLineCharCode(lineNumber, j); + if (charCode === 9 /* CharCode.Tab */) { + currentLineTabsCount++; + } + else if (charCode === 32 /* CharCode.Space */) { + currentLineSpacesCount++; + } + else { + // Hit non whitespace character on this line + currentLineHasContent = true; + currentLineIndentation = j; + break; + } + } + // Ignore empty or only whitespace lines + if (!currentLineHasContent) { + continue; + } + if (currentLineTabsCount > 0) { + linesIndentedWithTabsCount++; + } + else if (currentLineSpacesCount > 1) { + linesIndentedWithSpacesCount++; + } + spacesDiff(previousLineText, previousLineIndentation, currentLineText, currentLineIndentation, tmp); + if (tmp.looksLikeAlignment) { + // if defaultInsertSpaces === true && the spaces count == tabSize, we may want to count it as valid indentation + // + // - item1 + // - item2 + // + // otherwise skip this line entirely + // + // const a = 1, + // b = 2; + if (!(defaultInsertSpaces && defaultTabSize === tmp.spacesDiff)) { + continue; + } + } + const currentSpacesDiff = tmp.spacesDiff; + if (currentSpacesDiff <= MAX_ALLOWED_TAB_SIZE_GUESS) { + spacesDiffCount[currentSpacesDiff]++; + } + previousLineText = currentLineText; + previousLineIndentation = currentLineIndentation; + } + let insertSpaces = defaultInsertSpaces; + if (linesIndentedWithTabsCount !== linesIndentedWithSpacesCount) { + insertSpaces = linesIndentedWithTabsCount < linesIndentedWithSpacesCount; + } + let tabSize = defaultTabSize; + // Guess tabSize only if inserting spaces... + if (insertSpaces) { + let tabSizeScore = insertSpaces ? 0 : 0.1 * linesCount; + // console.log("score threshold: " + tabSizeScore); + ALLOWED_TAB_SIZE_GUESSES.forEach((possibleTabSize) => { + const possibleTabSizeScore = spacesDiffCount[possibleTabSize]; + if (possibleTabSizeScore > tabSizeScore) { + tabSizeScore = possibleTabSizeScore; + tabSize = possibleTabSize; + } + }); + // Let a tabSize of 2 win even if it is not the maximum + // (only in case 4 was guessed) + if (tabSize === 4 && spacesDiffCount[4] > 0 && spacesDiffCount[2] > 0 && spacesDiffCount[2] >= spacesDiffCount[4] / 2) { + tabSize = 2; + } + } + // console.log('--------------------------'); + // console.log('linesIndentedWithTabsCount: ' + linesIndentedWithTabsCount + ', linesIndentedWithSpacesCount: ' + linesIndentedWithSpacesCount); + // console.log('spacesDiffCount: ' + spacesDiffCount); + // console.log('tabSize: ' + tabSize + ', tabSizeScore: ' + tabSizeScore); + return { + insertSpaces: insertSpaces, + tabSize: tabSize, + }; + } + exports.guessIndentation = guessIndentation; +}); +//# sourceMappingURL=indentationGuesser.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js.map" index 5c538a26e1a575c39b8e3ebef8f4be5dc6da45b0..4ef360c101783493e797a2c1662a9de3e1ea4998 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/indentationGuesser.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fbe342a40197017f40a0de1851ad39e5118ce23a64c97f8c221914eaed49f78b -size 5233 +{"version":3,"file":"indentationGuesser.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/indentationGuesser.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAOhG,MAAM,gBAAgB;QAAtB;YACS,eAAU,GAAG,CAAC,CAAC;YACf,uBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;KAAA;IAED;;OAEG;IACH,SAAS,UAAU,CAAC,CAAS,EAAE,OAAe,EAAE,CAAS,EAAE,OAAe,EAAE,MAAwB;QAClG,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC;QACtB,MAAM,CAAC,kBAAkB,GAAG,KAAK,CAAC;QAElC,gCAAgC;QAChC,aAAa;QACb,iBAAiB;QACjB,2CAA2C;QAE3C,IAAI,CAAS,CAAC;QAEd,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;YAC3C,MAAM,SAAS,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAClC,MAAM,SAAS,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAElC,IAAI,SAAS,KAAK,SAAS,EAAE;gBAC3B,MAAM;aACP;SACF;QAED,IAAI,UAAU,GAAG,CAAC,EAChB,UAAU,GAAG,CAAC,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;YAChC,MAAM,SAAS,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAClC,IAAI,SAAS,4BAAmB,EAAE;gBAChC,UAAU,EAAE,CAAC;aACd;iBAAM;gBACL,UAAU,EAAE,CAAC;aACd;SACF;QAED,IAAI,UAAU,GAAG,CAAC,EA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AC;IAtHD,4CAsHC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.d.ts" index d0cc559cee9a1a0ec19669892fbe7f75e785d0ed..238f7cf9af2f917778328439f254a0857f7e101c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.d.ts" @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:28cd834a2eed59a01c4333b076539841a842d6e32fb88aad552f50d8f491c67e -size 467 +export interface StringifySettings { + newLineFirst: boolean; + indentFirstObject: boolean; + shouldIndentWithTab: boolean; +} +interface StringifySettingsInternal extends StringifySettings { + indentation: string; + existingProps: string[]; +} +export declare function stringifyObject(obj: unknown, indent: string, stringifyLiteral: (val: unknown) => string, settings: StringifySettingsInternal, depth?: number, consecutiveArrays?: number): string; +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js" index a60ebaabd0fd68d1bf3520d39f7a4b907cbef9a1..f333e1f1d8b70f579c45d7d4309bd90ffc93f72d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js" @@ -1,3 +1,93 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c7242369ee3d701b4bf91388d48ba16938d631519e31448c388f6521388f42d -size 4753 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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 }); + exports.stringifyObject = void 0; + function stringifyObject(obj, indent, stringifyLiteral, settings, depth = 0, consecutiveArrays = 0) { + if (obj !== null && typeof obj === 'object') { + /** + * When we are autocompleting a snippet from a property we need the indent so everything underneath the property + * is properly indented. When we are auto completion from a value we don't want the indent because the cursor + * is already in the correct place + */ + const newIndent = (depth === 0 && settings.shouldIndentWithTab) || depth > 0 ? indent + settings.indentation : ''; + if (Array.isArray(obj)) { + consecutiveArrays += 1; + if (obj.length === 0) { + return ''; + } + let result = ''; + for (let i = 0; i < obj.length; i++) { + let pseudoObj = obj[i]; + if (typeof obj[i] !== 'object') { + result += '\n' + newIndent + '- ' + stringifyLiteral(obj[i]); + continue; + } + if (!Array.isArray(obj[i])) { + pseudoObj = prependToObject(obj[i], consecutiveArrays); + } + result += stringifyObject(pseudoObj, indent, stringifyLiteral, settings, (depth += 1), consecutiveArrays); + } + return result; + } + else { + const keys = Object.keys(obj); + if (keys.length === 0) { + return ''; + } + let result = (depth === 0 && settings.newLineFirst) || depth > 0 ? '\n' : ''; + let isFirstProp = true; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (depth === 0 && settings.existingProps.includes(key)) { + // Don't add existing properties to the YAML + continue; + } + const isObject = typeof obj[key] === 'object'; + const colonDelimiter = isObject ? ':' : ': '; // add space only when value is primitive + const parentArrayCompensation = isObject && /^\s|-/.test(key) ? settings.indentation : ''; // add extra space if parent is an array + const objectIndent = newIndent + parentArrayCompensation; + const lineBreak = isFirstProp ? '' : '\n'; // break line only if it's not the first property + // The first child of an array needs to be treated specially, otherwise indentations will be off + if (depth === 0 && isFirstProp && !settings.indentFirstObject) { + const value = stringifyObject(obj[key], objectIndent, stringifyLiteral, settings, depth + 1, 0); + result += lineBreak + indent + key + colonDelimiter + value; + } + else { + const value = stringifyObject(obj[key], objectIndent, stringifyLiteral, settings, depth + 1, 0); + result += lineBreak + newIndent + key + colonDelimiter + value; + } + isFirstProp = false; + } + return result; + } + } + return stringifyLiteral(obj); + } + exports.stringifyObject = stringifyObject; + function prependToObject(obj, consecutiveArrays) { + const newObj = {}; + for (let i = 0; i < Object.keys(obj).length; i++) { + const key = Object.keys(obj)[i]; + if (i === 0) { + newObj['- '.repeat(consecutiveArrays) + key] = obj[key]; + } + else { + newObj[' '.repeat(consecutiveArrays) + key] = obj[key]; + } + } + return newObj; + } +}); +//# sourceMappingURL=json.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js.map" index 634be473a4755a598e24bad86088fb3e551f8289..6b0f0ef0d5b73cf714258594231c31b443aa2d3c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/json.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4fd011a0b63ddb20e582d7b6fe5155f2dda39b9e5bb5f76b3dcc72e322992df8 -size 3300 +{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/json.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAahG,SAAgB,eAAe,CAC7B,GAAY,EACZ,MAAc,EACd,gBAA0C,EAC1C,QAAmC,EACnC,KAAK,GAAG,CAAC,EACT,iBAAiB,GAAG,CAAC;QAErB,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;YAC3C;;;;eAIG;YACH,MAAM,SAAS,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,QAAQ,CAAC,mBAAmB,CAAC,IAAI,KAAK,GAAG,CAAC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,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;wBAChG,MAAM,IAAI,SAAS,GAAG,SAAS,GAAG,GAAG,GAAG,cAAc,GAAG,KAAK,CAAC;qBAChE;oBAED,WAAW,GAAG,KAAK,CAAC;iBACrB;gBACD,OAAO,MAAM,CAAC;aACf;SACF;QACD,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;IAtED,0CAsEC;IAED,SAAS,eAAe,CAAC,GAA4B,EAAE,iBAAyB;QAC9E,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAChD,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAChC,IAAI,CAAC,KAAK,CAAC,EAAE;gBACX,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;aACzD;iBAAM;gBACL,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;aACzD;SACF;QACD,OAAO,MAAM,CAAC;IAChB,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.d.ts" index a82f2461786f02a7de4a6d5f3b7315b3efcebc44..c2d274fcffc84c89af471848ebb687d55b22c105 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.d.ts" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6346e3a19c3a52d5cd63cd3ca01f4c2888d947f0b9b94d5bfc511c53b28b8ed -size 710 +export declare function equals(one: any, other: any): boolean; +export declare function isNumber(val: unknown): val is number; +export declare function isDefined(val: unknown): val is object | string | number | boolean; +export declare function isBoolean(val: unknown): val is boolean; +export declare function isString(val: unknown): val is string; +/** + * Check that provided value is Iterable + * @param val the value to check + * @returns true if val is iterable, false otherwise + */ +export declare function isIterable(val: unknown): boolean; +/** + * Convert error to string witch should be sended to telemetry. + * @param err any error + */ +export declare function convertErrorToTelemetryMsg(err: unknown): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js" index db39c346a91cca6c7d47202840bc052cfa5162be..7fe5e77fa544131aa9ed91f791d9191dbe1a4c37 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js" @@ -1,3 +1,108 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ea51f1eb651e4c1a551f1da1260a822bb73c3c83aaf4a66d157fb0025331eed -size 3735 +(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) { + /*--------------------------------------------------------------------------------------------- + * 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.convertErrorToTelemetryMsg = exports.isIterable = exports.isString = exports.isBoolean = exports.isDefined = exports.isNumber = exports.equals = void 0; + // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types + function equals(one, other) { + if (one === other) { + return true; + } + if (one === null || one === undefined || other === null || other === undefined) { + return false; + } + if (typeof one !== typeof other) { + return false; + } + if (typeof one !== 'object') { + return false; + } + if (Array.isArray(one) !== Array.isArray(other)) { + return false; + } + let i, key; + if (Array.isArray(one)) { + if (one.length !== other.length) { + return false; + } + for (i = 0; i < one.length; i++) { + if (!equals(one[i], other[i])) { + return false; + } + } + } + else { + const oneKeys = []; + for (key in one) { + oneKeys.push(key); + } + oneKeys.sort(); + const otherKeys = []; + for (key in other) { + otherKeys.push(key); + } + otherKeys.sort(); + if (!equals(oneKeys, otherKeys)) { + return false; + } + for (i = 0; i < oneKeys.length; i++) { + if (!equals(one[oneKeys[i]], other[oneKeys[i]])) { + return false; + } + } + } + return true; + } + exports.equals = equals; + function isNumber(val) { + return typeof val === 'number'; + } + exports.isNumber = isNumber; + // eslint-disable-next-line @typescript-eslint/ban-types + function isDefined(val) { + return typeof val !== 'undefined'; + } + exports.isDefined = isDefined; + function isBoolean(val) { + return typeof val === 'boolean'; + } + exports.isBoolean = isBoolean; + function isString(val) { + return typeof val === 'string'; + } + exports.isString = isString; + /** + * Check that provided value is Iterable + * @param val the value to check + * @returns true if val is iterable, false otherwise + */ + function isIterable(val) { + return Symbol.iterator in Object(val); + } + exports.isIterable = isIterable; + /** + * Convert error to string witch should be sended to telemetry. + * @param err any error + */ + function convertErrorToTelemetryMsg(err) { + if (!err) + return 'null'; + if (err instanceof Error) { + return err.stack ?? err.toString(); + } + return err.toString(); + } + exports.convertErrorToTelemetryMsg = convertErrorToTelemetryMsg; +}); +//# sourceMappingURL=objects.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js.map" index c0c183ab3a474de20f6a8ddb72e7336dbd87145f..1e3968d7e4959c5cab88940d579ab029d3533252 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/objects.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4de24426cddb352d2d7885188ba7f52b1710ec36d8b789446acaec6ed4513d5 -size 2306 +{"version":3,"file":"objects.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/objects.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;oGAGgG;IAChG,YAAY,CAAC;;;IAEb,iHAAiH;IACjH,SAAgB,MAAM,CAAC,GAAQ,EAAE,KAAU;QACzC,IAAI,GAAG,KAAK,KAAK,EAAE;YACjB,OAAO,IAAI,CAAC;SACb;QACD,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;YAC9E,OAAO,KAAK,CAAC;SACd;QACD,IAAI,OAAO,GAAG,KAAK,OAAO,KAAK,EAAE;YAC/B,OAAO,KAAK,CAAC;SACd;QACD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;YAC3B,OAAO,KAAK,CAAC;SACd;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC/C,OAAO,KAAK,CAAC;SACd;QAED,IAAI,CAAS,EAAE,GAAW,CAAC;QAE3B,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACtB,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE;gBAC/B,OAAO,KAAK,CAAC;aACd;YACD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC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AG,KAAK,QAAQ,CAAC;IACjC,CAAC;IAFD,4BAEC;IAED;;;;OAIG;IACH,SAAgB,UAAU,CAAC,GAAY;QACrC,OAAO,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;IAFD,gCAEC;IAED;;;OAGG;IACH,SAAgB,0BAA0B,CAAC,GAAY;QACrD,IAAI,CAAC,GAAG;YAAE,OAAO,MAAM,CAAC;QAExB,IAAI,GAAG,YAAY,KAAK,EAAE;YACxB,OAAO,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;SACpC;QAED,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IARD,gEAQC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.d.ts" index 9ee2ddca2696ddcda54270fab0a082c76aa4043e..366b1f1bc41f16f9cd7e878ef47a446181039b2e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.d.ts" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9efb29be5efc6f2ebbc563e5fc669210f0c5e066912878d2d70430f17ae3d74b -size 425 +import { ErrorCode } from 'vscode-json-languageservice/lib/umd/jsonLanguageTypes'; +export declare const DUPLICATE_KEY_REASON = "duplicate key"; +/** + * An individual YAML diagnostic, + * after formatting. + */ +export interface YAMLDocDiagnostic { + message: string; + location: { + start: number; + end: number; + toLineEnd: boolean; + }; + severity: 1 | 2; + source?: string; + code: ErrorCode; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js" index 694be71321c5b648c3ef3a8f7fe9af2bb5a5e66a..f9adfdd7d5442a3731a0f7bd67ac49129961301e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29c7e0a78fed2cb7356b04e2cfaa5054e2982dfac4e8c5039f7fe52daab15e9b -size 565 +(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 }); + exports.DUPLICATE_KEY_REASON = void 0; + exports.DUPLICATE_KEY_REASON = 'duplicate key'; +}); +//# sourceMappingURL=parseUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js.map" index 2405b025ef736febd12b77365d2f973527f8a73f..3c69d01e11e63608144270d1b98fe084cd23e84d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/parseUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:06a4e67988ff189b987ca9a53da4d93251dce82e36609bf5a91f6ea4dc608568 -size 186 +{"version":3,"file":"parseUtils.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/parseUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;IACa,QAAA,oBAAoB,GAAG,eAAe,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.d.ts" index 654a1c0ddc9b8424a0c4dd90a936ca56889395c3..dd685895339f60a992260b05bfb8b3dbbf99fe2b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d197470c27e31f0ef5d8443d0e3d34391050b2171f153bb058d2f581ce3ddf0d -size 471 +import { WorkspaceFolder, WorkspaceFoldersChangeEvent } from 'vscode-languageserver-protocol'; +import { URI } from 'vscode-uri'; +export declare const isRelativePath: (path: string) => boolean; +export declare const relativeToAbsolutePath: (workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, uri: string) => string; +export declare const workspaceFoldersChanged: (workspaceFolders: WorkspaceFolder[], changedFolders: WorkspaceFoldersChangeEvent) => WorkspaceFolder[]; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js" index 910ad2e7d1fb3b9edaf1d6ac3d94bc42f5aa9dd0..ed44b8adefaa6c98116a8a2fd793ccfff88595e6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b6bdabd27b15db0aba79d51a428ee0a8e1795461032143401aa6a0fc57312f8 -size 2671 +(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", "path", "vscode-uri"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.workspaceFoldersChanged = exports.relativeToAbsolutePath = exports.isRelativePath = void 0; + const path_1 = require("path"); + const vscode_uri_1 = require("vscode-uri"); + const isRelativePath = (path) => { + const relativePathRegex = /^(((\.\.?)|([\w-@. ]+))(\/|\\\\?))*[\w-. ]*\.[\w-]+$/i; + return relativePathRegex.test(path); + }; + exports.isRelativePath = isRelativePath; + const relativeToAbsolutePath = (workspaceFolders, workspaceRoot, uri) => { + // Iterate through all of the workspace root folders + for (const folder of workspaceFolders) { + // If the requested schema URI specifies a workspace root folder + // Convert it into an absolute path with the appropriate root folder path + if (uri.startsWith(folder.name)) { + const pathToFolder = vscode_uri_1.URI.parse(folder.uri).fsPath; + const withoutFolderPrefix = uri.split(path_1.sep); + withoutFolderPrefix.shift(); + return vscode_uri_1.URI.file((0, path_1.join)(pathToFolder, withoutFolderPrefix.join())).toString(); + } + } + // If a root folder was not specified, resolve the relative URI + // Against the location of the workspace file instead + if (workspaceRoot) { + return vscode_uri_1.URI.file((0, path_1.join)(workspaceRoot.fsPath, uri)).toString(); + } + // Fallback in case nothing could be applied + return (0, path_1.normalize)(uri); + }; + exports.relativeToAbsolutePath = relativeToAbsolutePath; + const workspaceFoldersChanged = (workspaceFolders, changedFolders) => { + workspaceFolders = workspaceFolders.filter((e) => { + return !changedFolders.removed.some((f) => { + return f.uri === e.uri; + }); + }); + workspaceFolders = workspaceFolders + .filter((e) => { + return !changedFolders.added.some((f) => { + return f.uri === e.uri; + }); + }) + .concat(changedFolders.added); + return workspaceFolders; + }; + exports.workspaceFoldersChanged = workspaceFoldersChanged; +}); +//# sourceMappingURL=paths.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js.map" index a4f9efd848e3886601ea353c2da22073aa1eeb54..59f1f5f567f6c52adfede5c78cd6bec144dc407f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/paths.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2f8a24a308f14ff33a3436df6414639dd90c3a36fa34335205cd18cedaa86e5 -size 1666 +{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/paths.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,+BAA4C;IAC5C,2CAAiC;IAE1B,MAAM,cAAc,GAAG,CAAC,IAAY,EAAW,EAAE;QACtD,MAAM,iBAAiB,GAAG,uDAAuD,CAAC;QAClF,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,CAAC;IAHW,QAAA,cAAc,kBAGzB;IAEK,MAAM,sBAAsB,GAAG,CAAC,gBAAmC,EAAE,aAAkB,EAAE,GAAW,EAAU,EAAE;QACrH,oDAAoD;QACpD,KAAK,MAAM,MAAM,IAAI,gBAAgB,EAAE;YACrC,gEAAgE;YAChE,yEAAyE;YACzE,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;gBAC/B,MAAM,YAAY,GAAG,gBAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;gBAClD,MAAM,mBAAmB,GAAG,GAAG,CAAC,KAAK,CAAC,UAAG,CAAC,CAAC;gBAC3C,mBAAmB,CAAC,KAAK,EAAE,CAAC;gBAE5B,OAAO,gBAAG,CAAC,IAAI,CAAC,IAAA,WAAI,EAAC,YAAY,EAAE,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;aAC5E;SACF;QAED,+DAA+D;QAC/D,qDAAqD;QACrD,IAAI,aAAa,EAAE;YACjB,OAAO,gBAAG,CAAC,IAAI,CAAC,IAAA,WAAI,EAAC,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;SAC7D;QAED,4CAA4C;QAC5C,OAAO,IAAA,gBAAS,EAAC,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC;IAtBW,QAAA,sBAAsB,0BAsBjC;IAEK,MAAM,uBAAuB,GAAG,CACrC,gBAAmC,EACnC,cAA2C,EACxB,EAAE;QACrB,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YAC/C,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;gBACxC,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC;YACzB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,gBAAgB,GAAG,gBAAgB;aAChC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YACZ,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;gBACtC,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC;YACzB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;aACD,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAChC,OAAO,gBAAgB,CAAC;IAC1B,CAAC,CAAC;IAjBW,QAAA,uBAAuB,2BAiBlC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.d.ts" index b322e914d37416ab7fa47ca4d8768af6cf519adb..e33045a24faba6972d3f854c4e3c7595dffd687b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.d.ts" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6701d3cd7ba8f3691f9c53082cfd41183cf9db03c5a59419200fb23b02cd1055 -size 766 +import { WorkspaceFolder } from 'vscode-languageserver-protocol'; +import { URI } from 'vscode-uri'; +import { Telemetry } from '../telemetry'; +import { JSONSchema } from '../jsonSchema'; +export declare const KUBERNETES_SCHEMA_URL = "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json"; +export declare const JSON_SCHEMASTORE_URL = "https://www.schemastore.org/api/json/catalog.json"; +export declare function checkSchemaURI(workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, uri: string, telemetry: Telemetry): string; +/** + * Collect all urls of sub schemas + * @param schema the root schema + * @returns map url to schema + */ +export declare function getSchemaUrls(schema: JSONSchema): Map; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js" index a18eb20d888a7695b59a1cb470394f41a6ba6085..2d579cc822ca775d07290a054d8976dfee54386d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js" @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db10e9f0033436f0ca6011d8f260d1a13f36b6b5f47126c4afdc8cc7bb375939 -size 2750 +(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", "./objects", "./paths"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSchemaUrls = exports.checkSchemaURI = exports.JSON_SCHEMASTORE_URL = exports.KUBERNETES_SCHEMA_URL = void 0; + const objects_1 = require("./objects"); + const paths_1 = require("./paths"); + exports.KUBERNETES_SCHEMA_URL = 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json'; + exports.JSON_SCHEMASTORE_URL = 'https://www.schemastore.org/api/json/catalog.json'; + function checkSchemaURI(workspaceFolders, workspaceRoot, uri, telemetry) { + if (uri.trim().toLowerCase() === 'kubernetes') { + telemetry.send({ name: 'yaml.schema.configured', properties: { kubernetes: true } }); + return exports.KUBERNETES_SCHEMA_URL; + } + else if ((0, paths_1.isRelativePath)(uri)) { + return (0, paths_1.relativeToAbsolutePath)(workspaceFolders, workspaceRoot, uri); + } + else { + return uri; + } + } + exports.checkSchemaURI = checkSchemaURI; + /** + * Collect all urls of sub schemas + * @param schema the root schema + * @returns map url to schema + */ + function getSchemaUrls(schema) { + const result = new Map(); + if (!schema) { + return result; + } + if (schema.url) { + if (schema.url.startsWith('schemaservice://combinedSchema/')) { + addSchemasForOf(schema, result); + } + else { + result.set(schema.url, schema); + } + } + else { + addSchemasForOf(schema, result); + } + return result; + } + exports.getSchemaUrls = getSchemaUrls; + function addSchemasForOf(schema, result) { + if (schema.allOf) { + addInnerSchemaUrls(schema.allOf, result); + } + if (schema.anyOf) { + addInnerSchemaUrls(schema.anyOf, result); + } + if (schema.oneOf) { + addInnerSchemaUrls(schema.oneOf, result); + } + } + function addInnerSchemaUrls(schemas, result) { + for (const subSchema of schemas) { + if (!(0, objects_1.isBoolean)(subSchema) && subSchema.url && !result.has(subSchema.url)) { + result.set(subSchema.url, subSchema); + } + } + } +}); +//# sourceMappingURL=schemaUrls.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js.map" index 7c44c23a8ed3433171ddc24cdcca4956425d7eea..cd7e49d8e01ce5e78c87e1f4085a7c55c806bae6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUrls.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e99d71390c6de6f18007c28d83a287e2bfe9a5a57f17a08952fec2343f6447e1 -size 1701 +{"version":3,"file":"schemaUrls.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/schemaUrls.ts"],"names":[],"mappings":";;;;;;;;;;;;IAIA,uCAAsC;IACtC,mCAAiE;IAEpD,QAAA,qBAAqB,GAChC,0GAA0G,CAAC;IAChG,QAAA,oBAAoB,GAAG,mDAAmD,CAAC;IAExF,SAAgB,cAAc,CAC5B,gBAAmC,EACnC,aAAkB,EAClB,GAAW,EACX,SAAoB;QAEpB,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,YAAY,EAAE;YAC7C,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACrF,OAAO,6BAAqB,CAAC;SAC9B;aAAM,IAAI,IAAA,sBAAc,EAAC,GAAG,CAAC,EAAE;YAC9B,OAAO,IAAA,8BAAsB,EAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;SACrE;aAAM;YACL,OAAO,GAAG,CAAC;SACZ;IACH,CAAC;IAdD,wCAcC;IAED;;;;OAIG;IACH,SAAgB,aAAa,CAAC,MAAkB;QAC9C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAsB,CAAC;QAC7C,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,MAAM,CAAC;SACf;QAED,IAAI,MAAM,CAAC,GAAG,EAAE;YACd,IAAI,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,iCAAiC,CAAC,EAAE;gBAC5D,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;aACjC;iBAAM;gBACL,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;aAChC;SACF;aAAM;YACL,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SACjC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAhBD,sCAgBC;IAED,SAAS,eAAe,CAAC,MAAkB,EAAE,MAA+B;QAC1E,IAAI,MAAM,CAAC,KAAK,EAAE;YAChB,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC1C;QACD,IAAI,MAAM,CAAC,KAAK,EAAE;YAChB,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC1C;QACD,IAAI,MAAM,CAAC,KAAK,EAAE;YAChB,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC1C;IACH,CAAC;IAED,SAAS,kBAAkB,CAAC,OAAwB,EAAE,MAA+B;QACnF,KAAK,MAAM,SAAS,IAAI,OAAO,EAAE;YAC/B,IAAI,CAAC,IAAA,mBAAS,EAAC,SAAS,CAAC,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;gBACxE,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;aACtC;SACF;IACH,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.d.ts" index b5984057903659df3368909a445e68d60939f5e2..3ea2b0b66dbc9f6a3ce098f1d658cb48e12e459f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.d.ts" @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dda191dd9c115c86f83bd7cb6fe74ae7e47bfd32dd70555c18e2e7dd3f6c9bb9 -size 1128 +import { JSONSchema } from '../jsonSchema'; +export declare function getSchemaTypeName(schema: JSONSchema): string; +/** + * Get type name from reference url + * @param $ref reference to the same file OR to the another component OR to the section in another component: + * `schema-name.schema.json` -> schema-name + * `custom-scheme://shared-schema.json#/definitions/SomeType` -> SomeType + * `custom-scheme://schema-name.schema.json` -> schema-name + * `shared-schema.schema.json#/definitions/SomeType` -> SomeType + * `file:///Users/user/Documents/project/schemas/schema-name.schema.json` -> schema-name + * `#/definitions/SomeType` -> SomeType + * `#/definitions/io.k8s.api.apps.v1.DaemonSetSpec` => io.k8s.api.apps.v1.DaemonSetSpec + * `file:///default_schema_id.yaml` => default_schema_id.yaml + * test: https://regex101.com/r/ZpuXxk/1 + */ +export declare function getSchemaRefTypeTitle($ref: string): string; +export declare function getSchemaTitle(schema: JSONSchema, url: string): string; +export declare function isPrimitiveType(schema: JSONSchema): boolean; +export declare function isAnyOfAllOfOneOfType(schema: JSONSchema): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js" index a73fe0cdf37edb08d36308f0e208398563ec8fbd..75c3340ec7d385074a631fcd66b298a5aee81a02 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js" @@ -1,3 +1,80 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45b818146c95c32c50e592014a872ece0600a9697ab7e2b6310424955eaf7e95 -size 3563 +(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", "path"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isAnyOfAllOfOneOfType = exports.isPrimitiveType = exports.getSchemaTitle = exports.getSchemaRefTypeTitle = exports.getSchemaTypeName = void 0; + const vscode_uri_1 = require("vscode-uri"); + const path = require("path"); + function getSchemaTypeName(schema) { + const closestTitleWithType = schema.type && schema.closestTitle; + if (schema.title) { + return schema.title; + } + if (schema.$id) { + return getSchemaRefTypeTitle(schema.$id); + } + if (schema.$ref || schema._$ref) { + return getSchemaRefTypeTitle(schema.$ref || schema._$ref); + } + return Array.isArray(schema.type) + ? schema.type.join(' | ') + : closestTitleWithType + ? schema.type.concat('(', schema.closestTitle, ')') + : schema.type || schema.closestTitle; //object + } + exports.getSchemaTypeName = getSchemaTypeName; + /** + * Get type name from reference url + * @param $ref reference to the same file OR to the another component OR to the section in another component: + * `schema-name.schema.json` -> schema-name + * `custom-scheme://shared-schema.json#/definitions/SomeType` -> SomeType + * `custom-scheme://schema-name.schema.json` -> schema-name + * `shared-schema.schema.json#/definitions/SomeType` -> SomeType + * `file:///Users/user/Documents/project/schemas/schema-name.schema.json` -> schema-name + * `#/definitions/SomeType` -> SomeType + * `#/definitions/io.k8s.api.apps.v1.DaemonSetSpec` => io.k8s.api.apps.v1.DaemonSetSpec + * `file:///default_schema_id.yaml` => default_schema_id.yaml + * test: https://regex101.com/r/ZpuXxk/1 + */ + function getSchemaRefTypeTitle($ref) { + const match = $ref.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/); + let type = !!match && match[1]; + if (!type) { + type = 'typeNotFound'; + console.error(`$ref (${$ref}) not parsed properly`); + } + return type; + } + exports.getSchemaRefTypeTitle = getSchemaRefTypeTitle; + function getSchemaTitle(schema, url) { + const uri = vscode_uri_1.URI.parse(url); + let baseName = path.basename(uri.fsPath); + if (!path.extname(uri.fsPath)) { + baseName += '.json'; + } + if (Object.getOwnPropertyDescriptor(schema, 'name')) { + return Object.getOwnPropertyDescriptor(schema, 'name').value + ` (${baseName})`; + } + else if (schema.title) { + return schema.description ? schema.title + ' - ' + schema.description + ` (${baseName})` : schema.title + ` (${baseName})`; + } + return baseName; + } + exports.getSchemaTitle = getSchemaTitle; + function isPrimitiveType(schema) { + return schema.type !== 'object' && !isAnyOfAllOfOneOfType(schema); + } + exports.isPrimitiveType = isPrimitiveType; + function isAnyOfAllOfOneOfType(schema) { + return !!(schema.anyOf || schema.allOf || schema.oneOf); + } + exports.isAnyOfAllOfOneOfType = isAnyOfAllOfOneOfType; +}); +//# sourceMappingURL=schemaUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js.map" index 97a36dd5736766c6e234438c6cfd3a9bf58d2efb..6f6e54cb7d540bc28d2048aec5f712dd83aa9d49 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/schemaUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ef42173ba6c5ab23af098a8c6e8677a91d6b770f63cca0ef284553756a87928 -size 2087 +{"version":3,"file":"schemaUtils.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/schemaUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,2CAAiC;IAEjC,6BAA6B;IAE7B,SAAgB,iBAAiB,CAAC,MAAkB;QAClD,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC;QAChE,IAAI,MAAM,CAAC,KAA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QACzC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YAC7B,QAAQ,IAAI,OAAO,CAAC;SACrB;QACD,IAAI,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;YACnD,OAAO,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,GAAG,KAAK,QAAQ,GAAG,CAAC;SACjF;aAAM,IAAI,MAAM,CAAC,KAAK,EAAE;YACvB,OAAO,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC,WAAW,GAAG,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,QAAQ,GAAG,CAAC;SAC5H;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAbD,wCAaC;IAED,SAAgB,eAAe,CAAC,MAAkB;QAChD,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACpE,CAAC;IAFD,0CAEC;IAED,SAAgB,qBAAqB,CAAC,MAAkB;QACtD,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAFD,sDAEC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.d.ts" index d7a3ac77cfdea8518879e387a98512012e06e94f..072d81e5f1d421860aa7b280c4008e3feeec58c7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.d.ts" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e8e14fd875e59c13557aeaec702ed2f8e671581661901bc7f6b3721e7d7ab39 -size 622 +export declare function startsWith(haystack: string, needle: string): boolean; +/** + * Determines if haystack ends with needle. + */ +export declare function endsWith(haystack: string, needle: string): boolean; +export declare function convertSimple2RegExp(pattern: string): RegExp; +export declare function convertSimple2RegExpPattern(pattern: string): string; +export declare function getIndentation(lineContent: string, position: number): number; +export declare function safeCreateUnicodeRegExp(pattern: string): RegExp; +export declare function getFirstNonWhitespaceCharacterAfterOffset(str: string, offset: number): number; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js" index d80d3211bb28a8868f9ce71f45b4e9e999c53006..527e354e495a9b6981bd65e0e11b15f91fea1e35 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js" @@ -1,3 +1,99 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5d1cccdf6c9c80662ddab3fda8e25ab719962754576e81a6783ba0674f118f8 -size 3903 +(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) { + /*--------------------------------------------------------------------------------------------- + * 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.getFirstNonWhitespaceCharacterAfterOffset = exports.safeCreateUnicodeRegExp = exports.getIndentation = exports.convertSimple2RegExpPattern = exports.convertSimple2RegExp = exports.endsWith = exports.startsWith = void 0; + function startsWith(haystack, needle) { + if (haystack.length < needle.length) { + return false; + } + for (let i = 0; i < needle.length; i++) { + if (haystack[i] !== needle[i]) { + return false; + } + } + return true; + } + exports.startsWith = startsWith; + /** + * Determines if haystack ends with needle. + */ + function endsWith(haystack, needle) { + const diff = haystack.length - needle.length; + if (diff > 0) { + return haystack.lastIndexOf(needle) === diff; + } + else if (diff === 0) { + return haystack === needle; + } + else { + return false; + } + } + exports.endsWith = endsWith; + function convertSimple2RegExp(pattern) { + const match = pattern.match(new RegExp('^/(.*?)/([gimy]*)$')); + return match ? convertRegexString2RegExp(match[1], match[2]) : convertGlobalPattern2RegExp(pattern); + } + exports.convertSimple2RegExp = convertSimple2RegExp; + function convertGlobalPattern2RegExp(pattern) { + return new RegExp(pattern.replace(/[-\\{}+?|^$.,[\]()#\s]/g, '\\$&').replace(/[*]/g, '.*') + '$'); + } + function convertRegexString2RegExp(pattern, flag) { + return new RegExp(pattern, flag); + } + function convertSimple2RegExpPattern(pattern) { + return pattern.replace(/[-\\{}+?|^$.,[\]()#\s]/g, '\\$&').replace(/[*]/g, '.*'); + } + exports.convertSimple2RegExpPattern = convertSimple2RegExpPattern; + function getIndentation(lineContent, position) { + if (lineContent.length < position) { + return 0; + } + for (let i = 0; i < position; i++) { + const char = lineContent.charCodeAt(i); + if (char !== 32 /* CharCode.Space */ && char !== 9 /* CharCode.Tab */) { + return i; + } + } + // assuming that current position is indentation + return position; + } + exports.getIndentation = getIndentation; + function safeCreateUnicodeRegExp(pattern) { + // fall back to regular regexp if we cannot create Unicode one + try { + return new RegExp(pattern, 'u'); + } + catch (ignore) { + return new RegExp(pattern); + } + } + exports.safeCreateUnicodeRegExp = safeCreateUnicodeRegExp; + function getFirstNonWhitespaceCharacterAfterOffset(str, offset) { + offset++; + for (let i = offset; i < str.length; i++) { + const char = str.charAt(i); + if (char === ' ' || char === '\t') { + offset++; + } + else { + return offset; + } + } + return offset; + } + exports.getFirstNonWhitespaceCharacterAfterOffset = getFirstNonWhitespaceCharacterAfterOffset; +}); +//# sourceMappingURL=strings.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js.map" index acb0e9e1e8d740cc50fec054718b013a0efd9f65..cb5acca44e5d3703fb99612630cba17e65673704 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/strings.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e465a895244cde452f8e59cbd39afd4f9bbcfb219a81622b4a5a2868725104b -size 2400 +{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/strings.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;oGAGgG;IAChG,YAAY,CAAC;;;IAIb,SAAgB,UAAU,CAAC,QAAgB,EAAE,MAAc;QACzD,IAAI,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE;YACnC,OAAO,KAAK,CAAC;SACd;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE;gBAC7B,OAAO,KAAK,CAAC;aACd;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAZD,gCAYC;IAED;;OAEG;IACH,SAAgB,QAAQ,CAAC,QAAgB,EAAE,MAAc;QACvD,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC7C,IAAI,IAAI,GAAG,CAAC,EAAE;YACZ,OAAO,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;SAC9C;aAAM,IAAI,IAAI,KAAK,CAAC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O,CAAC,CAAC;aACV;SACF;QAED,gDAAgD;QAChD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAdD,wCAcC;IAED,SAAgB,uBAAuB,CAAC,OAAe;QACrD,8DAA8D;QAC9D,IAAI;YACF,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SACjC;QAAC,OAAO,MAAM,EAAE;YACf,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;SAC5B;IACH,CAAC;IAPD,0DAOC;IAED,SAAgB,yCAAyC,CAAC,GAAW,EAAE,MAAc;QACnF,MAAM,EAAE,CAAC;QACT,KAAK,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACxC,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3B,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,EAAE;gBACjC,MAAM,EAAE,CAAC;aACV;iBAAM;gBACL,OAAO,MAAM,CAAC;aACf;SACF;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAXD,8FAWC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.d.ts" index a600d7de2675ca24c786c1d49928bf57aaea2db0..45d5e8cf414e461b4691e6b43396eaf423cb2dee 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.d.ts" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24a8671563a590262456e0079740f279e15e8647dc40245389476eecee7f5eee -size 485 +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { Position, Range } from 'vscode-languageserver-types'; +export declare class TextBuffer { + private doc; + constructor(doc: TextDocument); + getLineCount(): number; + getLineLength(lineNumber: number): number; + getLineContent(lineNumber: number): string; + getLineCharCode(lineNumber: number, index: number): number; + getText(range?: Range): string; + getPosition(offest: number): Position; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js" index e71fc2d447ba5977f3e5954d48c9e9d651d8432a..5a3258807047bed4daba5e238caa469cdabead9b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js" @@ -1,3 +1,59 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:93fb528a59a432694d30ec1ae0713c2ae98f07f921d929611643a8d8b95d8546 -size 2532 +/*--------------------------------------------------------------------------------------------- + * 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"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TextBuffer = void 0; + const vscode_languageserver_types_1 = require("vscode-languageserver-types"); + class TextBuffer { + constructor(doc) { + this.doc = doc; + } + getLineCount() { + return this.doc.lineCount; + } + getLineLength(lineNumber) { + const lineOffsets = this.doc.getLineOffsets(); + if (lineNumber >= lineOffsets.length) { + return this.doc.getText().length; + } + else if (lineNumber < 0) { + return 0; + } + const nextLineOffset = lineNumber + 1 < lineOffsets.length ? lineOffsets[lineNumber + 1] : this.doc.getText().length; + return nextLineOffset - lineOffsets[lineNumber]; + } + getLineContent(lineNumber) { + const lineOffsets = this.doc.getLineOffsets(); + if (lineNumber >= lineOffsets.length) { + return this.doc.getText(); + } + else if (lineNumber < 0) { + return ''; + } + const nextLineOffset = lineNumber + 1 < lineOffsets.length ? lineOffsets[lineNumber + 1] : this.doc.getText().length; + return this.doc.getText().substring(lineOffsets[lineNumber], nextLineOffset); + } + getLineCharCode(lineNumber, index) { + return this.doc.getText(vscode_languageserver_types_1.Range.create(lineNumber - 1, index, lineNumber - 1, index + 1)).charCodeAt(0); + } + getText(range) { + return this.doc.getText(range); + } + getPosition(offest) { + return this.doc.positionAt(offest); + } + } + exports.TextBuffer = TextBuffer; +}); +//# sourceMappingURL=textBuffer.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js.map" index e5b2a661941c494b1988f747e7e52a982ea49759..ddfcf3d20deaa3276a6d78d735e400706213d905 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/utils/textBuffer.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:733548d2822bb91b7f46cdcef63e67240efd9e5924d5450ce268f30a548069bd -size 1668 +{"version":3,"file":"textBuffer.js","sourceRoot":"","sources":["../../../../src/languageservice/utils/textBuffer.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EAA8D;IAM9D,MAAa,UAAU;QACrB,YAAoB,GAAiB;YAAjB,QAAG,GAAH,GAAG,CAAc;QAAG,CAAC;QAEzC,YAAY;YACV,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;QAC5B,CAAC;QAED,aAAa,CAAC,UAAkB;YAC9B,MAAM,WAAW,GAAI,IAAI,CAAC,GAAmC,CAAC,cAAc,EA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AAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACxG,CAAC;QAED,OAAO,CAAC,KAAa;YACnB,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;QAED,WAAW,CAAC,MAAc;YACxB,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACrC,CAAC;KACF;IAzCD,gCAyCC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.d.ts" index 2291bc6c44bb13f15eb9d8aea88b2bfd806211d3..3b84f32e8eb02b97e9e34d6d8cea1fb9addbadb3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.d.ts" @@ -1,3 +1,131 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d4aaf912df0156108eed6894bf5ba2c6b4a404201f3d2d99c9d3fa1a6f149ee -size 5749 +import { CustomSchemaProvider, SchemaAdditions, SchemaDeletions, SchemaDeletionsAll } from './services/yamlSchemaService'; +import { Position, CodeAction, CompletionList, Diagnostic, Hover, SymbolInformation, DocumentSymbol, FoldingRange, TextEdit, DocumentLink, CodeLens, DefinitionLink, SelectionRange } from 'vscode-languageserver-types'; +import { JSONSchema } from './jsonSchema'; +import { DocumentSymbolsContext } from 'vscode-json-languageservice'; +import { ClientCapabilities, CodeActionParams, Connection, DocumentOnTypeFormattingParams, DefinitionParams } from 'vscode-languageserver'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { FoldingRangesContext, SchemaVersions } from './yamlTypes'; +import { Telemetry } from './telemetry'; +import { YamlVersion } from './parser/yamlParser07'; +import { SettingsState } from '../yamlSettings'; +export declare enum SchemaPriority { + SchemaStore = 1, + SchemaAssociation = 2, + Settings = 3 +} +export interface SchemasSettings { + priority?: SchemaPriority; + fileMatch: string[]; + schema?: unknown; + uri: string; + name?: string; + description?: string; + versions?: SchemaVersions; +} +export interface LanguageSettings { + validate?: boolean; + hover?: boolean; + completion?: boolean; + format?: boolean; + isKubernetes?: boolean; + schemas?: SchemasSettings[]; + customTags?: Array; + /** + * Default indentation size + */ + indentation?: string; + /** + * Globally set additionalProperties to false if additionalProperties is not set and if schema.type is object. + * So if its true, no extra properties are allowed inside yaml. + */ + disableAdditionalProperties?: boolean; + /** + * Disable adding not required properties with default values into completion text. + */ + disableDefaultProperties?: boolean; + /** + * If true, the user must select some parent skeleton first before autocompletion starts to suggest the rest of the properties. + * When yaml object is not empty, autocompletion ignores this setting and returns all properties and skeletons. + */ + parentSkeletonSelectedFirst?: boolean; + /** + * Default yaml lang version + */ + yamlVersion?: YamlVersion; + /** + * Control the use of flow mappings. Default is allow. + */ + flowMapping?: 'allow' | 'forbid'; + /** + * Control the use of flow sequences. Default is allow. + */ + flowSequence?: 'allow' | 'forbid'; + /** + * If set enforce alphabetical ordering of keys in mappings. + */ + keyOrdering?: boolean; +} +export interface WorkspaceContextService { + resolveRelativePath(relativePath: string, resource: string): string; +} +/** + * The schema request service is used to fetch schemas. The result should the schema file comment, or, + * in case of an error, a displayable error string + */ +export interface SchemaRequestService { + (uri: string): Promise; +} +export interface SchemaConfiguration { + /** + * The URI of the schema, which is also the identifier of the schema. + */ + uri: string; + /** + * A list of file names that are associated to the schema. The '*' wildcard can be used. For example '*.schema.json', 'package.json' + */ + fileMatch?: string[]; + /** + * The schema for the given URI. + * If no schema is provided, the schema will be fetched with the schema request service (if available). + */ + schema?: JSONSchema; +} +export interface CustomFormatterOptions { + singleQuote?: boolean; + bracketSpacing?: boolean; + proseWrap?: string; + printWidth?: number; + enable?: boolean; +} +export interface LanguageService { + configure(settings: LanguageSettings): void; + registerCustomSchemaProvider(schemaProvider: CustomSchemaProvider): void; + doComplete(document: TextDocument, position: Position, isKubernetes: boolean): Promise; + doValidation(document: TextDocument, isKubernetes: boolean): Promise; + doHover(document: TextDocument, position: Position): Promise; + findDocumentSymbols(document: TextDocument, context: DocumentSymbolsContext): SymbolInformation[]; + findDocumentSymbols2(document: TextDocument, context: DocumentSymbolsContext): DocumentSymbol[]; + findLinks(document: TextDocument): Promise; + resetSchema(uri: string): boolean; + doFormat(document: TextDocument, options: CustomFormatterOptions): TextEdit[]; + doDefinition(document: TextDocument, params: DefinitionParams): DefinitionLink[] | undefined; + doDocumentOnTypeFormatting(document: TextDocument, params: DocumentOnTypeFormattingParams): TextEdit[] | undefined; + addSchema(schemaID: string, schema: JSONSchema): void; + deleteSchema(schemaID: string): void; + modifySchemaContent(schemaAdditions: SchemaAdditions): void; + deleteSchemaContent(schemaDeletions: SchemaDeletions): void; + deleteSchemasWhole(schemaDeletions: SchemaDeletionsAll): void; + getFoldingRanges(document: TextDocument, context: FoldingRangesContext): FoldingRange[] | null; + getSelectionRanges(document: TextDocument, positions: Position[]): SelectionRange[] | undefined; + getCodeAction(document: TextDocument, params: CodeActionParams): CodeAction[] | undefined; + getCodeLens(document: TextDocument): Thenable | CodeLens[] | undefined; + resolveCodeLens(param: CodeLens): Thenable | CodeLens; +} +export declare function getLanguageService(params: { + schemaRequestService: SchemaRequestService; + workspaceContext: WorkspaceContextService; + connection?: Connection; + telemetry?: Telemetry; + yamlSettings?: SettingsState; + clientCapabilities?: ClientCapabilities; +}): LanguageService; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js" index 13113d02ae6aff1e40b705eaa2d3f268bd2f21a4..7695d79105e044e9a6bb155d2c7d80b1202d12ae 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js" @@ -1,3 +1,111 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7e771ea010c73f7d612b8e1772c6295b30d16f29271e25c82660361228d15a7 -size 7035 +/*--------------------------------------------------------------------------------------------- + * 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. + *--------------------------------------------------------------------------------------------*/ +(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", "./services/yamlSchemaService", "./services/documentSymbols", "./services/yamlHover", "./services/yamlValidation", "./services/yamlFormatter", "./services/yamlLinks", "./services/yamlFolding", "./services/yamlCodeActions", "./services/yamlOnTypeFormatting", "./services/yamlCodeLens", "./services/yamlCompletion", "./parser/yaml-documents", "../languageserver/handlers/schemaSelectionHandlers", "./services/yamlDefinition", "./services/yamlSelectionRanges"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getLanguageService = exports.SchemaPriority = void 0; + const yamlSchemaService_1 = require("./services/yamlSchemaService"); + const documentSymbols_1 = require("./services/documentSymbols"); + const yamlHover_1 = require("./services/yamlHover"); + const yamlValidation_1 = require("./services/yamlValidation"); + const yamlFormatter_1 = require("./services/yamlFormatter"); + const yamlLinks_1 = require("./services/yamlLinks"); + const yamlFolding_1 = require("./services/yamlFolding"); + const yamlCodeActions_1 = require("./services/yamlCodeActions"); + const yamlOnTypeFormatting_1 = require("./services/yamlOnTypeFormatting"); + const yamlCodeLens_1 = require("./services/yamlCodeLens"); + const yamlCompletion_1 = require("./services/yamlCompletion"); + const yaml_documents_1 = require("./parser/yaml-documents"); + const schemaSelectionHandlers_1 = require("../languageserver/handlers/schemaSelectionHandlers"); + const yamlDefinition_1 = require("./services/yamlDefinition"); + const yamlSelectionRanges_1 = require("./services/yamlSelectionRanges"); + var SchemaPriority; + (function (SchemaPriority) { + SchemaPriority[SchemaPriority["SchemaStore"] = 1] = "SchemaStore"; + SchemaPriority[SchemaPriority["SchemaAssociation"] = 2] = "SchemaAssociation"; + SchemaPriority[SchemaPriority["Settings"] = 3] = "Settings"; + })(SchemaPriority = exports.SchemaPriority || (exports.SchemaPriority = {})); + function getLanguageService(params) { + const schemaService = new yamlSchemaService_1.YAMLSchemaService(params.schemaRequestService, params.workspaceContext); + const completer = new yamlCompletion_1.YamlCompletion(schemaService, params.clientCapabilities, yaml_documents_1.yamlDocumentsCache, params.telemetry); + const hover = new yamlHover_1.YAMLHover(schemaService, params.telemetry); + const yamlDocumentSymbols = new documentSymbols_1.YAMLDocumentSymbols(schemaService, params.telemetry); + const yamlValidation = new yamlValidation_1.YAMLValidation(schemaService, params.telemetry); + const formatter = new yamlFormatter_1.YAMLFormatter(); + const yamlCodeActions = new yamlCodeActions_1.YamlCodeActions(params.clientCapabilities); + const yamlCodeLens = new yamlCodeLens_1.YamlCodeLens(schemaService, params.telemetry); + const yamlLinks = new yamlLinks_1.YamlLinks(params.telemetry); + const yamlDefinition = new yamlDefinition_1.YamlDefinition(params.telemetry); + new schemaSelectionHandlers_1.JSONSchemaSelection(schemaService, params.yamlSettings, params.connection); + return { + configure: (settings) => { + schemaService.clearExternalSchemas(); + if (settings.schemas) { + schemaService.schemaPriorityMapping = new Map(); + settings.schemas.forEach((settings) => { + const currPriority = settings.priority ? settings.priority : 0; + schemaService.addSchemaPriority(settings.uri, currPriority); + schemaService.registerExternalSchema(settings.uri, settings.fileMatch, settings.schema, settings.name, settings.description, settings.versions); + }); + } + yamlValidation.configure(settings); + hover.configure(settings); + completer.configure(settings); + formatter.configure(settings); + yamlCodeActions.configure(settings); + }, + registerCustomSchemaProvider: (schemaProvider) => { + schemaService.registerCustomSchemaProvider(schemaProvider); + }, + findLinks: yamlLinks.findLinks.bind(yamlLinks), + doComplete: completer.doComplete.bind(completer), + doValidation: yamlValidation.doValidation.bind(yamlValidation), + doHover: hover.doHover.bind(hover), + findDocumentSymbols: yamlDocumentSymbols.findDocumentSymbols.bind(yamlDocumentSymbols), + findDocumentSymbols2: yamlDocumentSymbols.findHierarchicalDocumentSymbols.bind(yamlDocumentSymbols), + doDefinition: yamlDefinition.getDefinition.bind(yamlDefinition), + resetSchema: (uri) => { + return schemaService.onResourceChange(uri); + }, + doFormat: formatter.format.bind(formatter), + doDocumentOnTypeFormatting: yamlOnTypeFormatting_1.doDocumentOnTypeFormatting, + addSchema: (schemaID, schema) => { + return schemaService.saveSchema(schemaID, schema); + }, + deleteSchema: (schemaID) => { + return schemaService.deleteSchema(schemaID); + }, + modifySchemaContent: (schemaAdditions) => { + return schemaService.addContent(schemaAdditions); + }, + deleteSchemaContent: (schemaDeletions) => { + return schemaService.deleteContent(schemaDeletions); + }, + deleteSchemasWhole: (schemaDeletions) => { + return schemaService.deleteSchemas(schemaDeletions); + }, + getFoldingRanges: yamlFolding_1.getFoldingRanges, + getSelectionRanges: yamlSelectionRanges_1.getSelectionRanges, + getCodeAction: (document, params) => { + return yamlCodeActions.getCodeAction(document, params); + }, + getCodeLens: (document) => { + return yamlCodeLens.getCodeLens(document); + }, + resolveCodeLens: (param) => yamlCodeLens.resolveCodeLens(param), + }; + } + exports.getLanguageService = getLanguageService; +}); +//# sourceMappingURL=yamlLanguageService.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js.map" index 843236ce9f40a60a5fd54beaefbb4d6bf4d08c97..d74f49a7a8030177ef085d30f656df21200d7b4a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlLanguageService.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:450465d50d179a8af1a27572fb68d0d833ed42e782dc14c6c1b255a063ff4da6 -size 3641 +{"version":3,"file":"yamlLanguageService.js","sourceRoot":"","sources":["../../../src/languageservice/yamlLanguageService.ts"],"names":[],"mappings":"AAAA;;;;gGAIgG;;;;;;;;;;;;;IAEhG,oEAMsC;IAiBtC,gEAAiE;IACjE,oDAAiD;IACjD,8DAA2D;IAC3D,4DAAyD;IAEzD,oDAAiD;IASjD,wDAA0D;IAE1D,gEAA6D;IAC7D,0EAA6E;IAC7E,0DAAuD;IAGvD,8DAA2D;IAC3D,4DAA6D;IAE7D,gGAAyF;IACzF,8DAA2D;IAC3D,wEAAoE;IAEpE,IAAY,cAIX;IAJD,WAAY,cAAc;QACxB,iEAAe,CAAA;QACf,6EAAqB,CAAA;QACrB,2DAAY,CAAA;IACd,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;IA0HD,SAAgB,kBAAkB,CAAC,MAOlC;QACC,MAAM,aAAa,GAAG,IAAI,qCAAiB,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAClG,MAAM,SAAS,GAAG,IAAI,+BAAc,CAAC,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,mCAAkB,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QACrH,MAAM,KAAK,GAAG,IAAI,qBAAS,CAAC,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QAC7D,MAAM,mBAAmB,GAAG,IAAI,qCAAmB,CAAC,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QACrF,MAAM,cAAc,GAAG,IAAI,+BAAc,CAAC,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QAC3E,MAAM,SAAS,GAAG,IAAI,6BAAa,EAAE,CAAC;QACtC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC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AgC,EAAE,EAAE;gBACxD,OAAO,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;YACtD,CAAC;YACD,kBAAkB,EAAE,CAAC,eAAmC,EAAE,EAAE;gBAC1D,OAAO,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;YACtD,CAAC;YACD,gBAAgB,EAAhB,8BAAgB;YAChB,kBAAkB,EAAlB,wCAAkB;YAClB,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE;gBAClC,OAAO,eAAe,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACzD,CAAC;YACD,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACxB,OAAO,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC5C,CAAC;YACD,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC;SAChE,CAAC;IACJ,CAAC;IArFD,gDAqFC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.d.ts" index 6d9522d05421a0371884999fa6ef66d388d914ef..657fe8d0e3a2c9f5f266de319d6f370efdbb9eae 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.d.ts" @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc2939382060ab53f5f1d26d2f2a93f94c034b762a89bbf4cb8a207cf4505c09 -size 548 +export interface FoldingRangesContext { + /** + * The maximal number of ranges returned. + */ + rangeLimit?: number; + /** + * Called when the result was cropped. + */ + onRangeLimitExceeded?: (uri: string) => void; + /** + * If set, the client signals that it only supports folding complete lines. If set, client will + * ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange. + */ + lineFoldingOnly?: boolean; +} +export declare type SchemaVersions = { + [version: string]: string; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js" index b1610f0d4389bb4133a623cd1bd97329090d8511..422a2488406daad8bde7af2e0bf117bd16ff5f41 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab129d7159d6c99e8f7683d9a5b6e92e91ca681699b212cbae57418ddafe032b -size 812 +/*--------------------------------------------------------------------------------------------- + * 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"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); +}); +//# sourceMappingURL=yamlTypes.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js.map" index 705301677b3260d464cb477cd6f96423c6569939..69cecfa073ebe1411a6476621bec4cce49510a7e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/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/yamlTypes.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f268564cfcb1403afbb58f87ed6830c060b4808787f6de1921ee44042d371c9a -size 145 +{"version":3,"file":"yamlTypes.js","sourceRoot":"","sources":["../../../src/languageservice/yamlTypes.ts"],"names":[],"mappings":"AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.d.ts" index eb9684b36773316b8139f5a1fb6c16c1ace273ea..76ea15fe7de0ace6cf9231d743b64d559aa8d995 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.d.ts" @@ -1,3 +1,63 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f0820b26c5352d7b5b638a2c5724fa32a57170242e122042e76ef2bdfd2acb0 -size 2234 +import { NotificationType, RequestType } from 'vscode-languageserver'; +import { SchemaAdditions, SchemaDeletions } from './languageservice/services/yamlSchemaService'; +import { SchemaConfiguration } from './languageservice/yamlLanguageService'; +import { SchemaVersions } from './languageservice/yamlTypes'; +export declare type ISchemaAssociations = Record; +export interface JSONSchemaDescription { + /** + * Schema URI + */ + uri: string; + /** + * Schema name, from schema store + */ + name?: string; + /** + * Schema description, from schema store + */ + description?: string; +} +export interface JSONSchemaDescriptionExt extends JSONSchemaDescription { + /** + * Is schema used for current document + */ + usedForCurrentFile: boolean; + /** + * Is schema from schema store + */ + fromStore: boolean; + versions?: SchemaVersions; +} +export declare namespace SchemaAssociationNotification { + const type: NotificationType; +} +export declare namespace DynamicCustomSchemaRequestRegistration { + const type: NotificationType; +} +export declare namespace VSCodeContentRequestRegistration { + const type: NotificationType; +} +export declare namespace ResultLimitReachedNotification { + const type: NotificationType; +} +export declare namespace VSCodeContentRequest { + const type: RequestType; +} +export declare namespace CustomSchemaContentRequest { + const type: RequestType; +} +export declare namespace CustomSchemaRequest { + const type: RequestType; +} +export declare namespace ColorSymbolRequest { + const type: RequestType; +} +export declare namespace SchemaModificationNotification { + const type: RequestType; +} +export declare namespace SchemaSelectionRequests { + const type: NotificationType; + const getSchema: RequestType; + const getAllSchemas: RequestType; + const schemaStoreInitialized: NotificationType; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js" index 722f35174fff01d35f95a8b5233451d62ac9abc1..56aaa66f4129e24b36cea2c72a314c0b5c2baf70 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js" @@ -1,3 +1,59 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aebf3b71e7c5029ee9d9aa841b0c370a43eaf8589c38947db7e58507987f8133 -size 4510 +(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"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SchemaSelectionRequests = exports.SchemaModificationNotification = exports.ColorSymbolRequest = exports.CustomSchemaRequest = exports.CustomSchemaContentRequest = exports.VSCodeContentRequest = exports.ResultLimitReachedNotification = exports.VSCodeContentRequestRegistration = exports.DynamicCustomSchemaRequestRegistration = exports.SchemaAssociationNotification = void 0; + /* eslint-disable @typescript-eslint/no-namespace */ + const vscode_languageserver_1 = require("vscode-languageserver"); + var SchemaAssociationNotification; + (function (SchemaAssociationNotification) { + SchemaAssociationNotification.type = new vscode_languageserver_1.NotificationType('json/schemaAssociations'); + })(SchemaAssociationNotification = exports.SchemaAssociationNotification || (exports.SchemaAssociationNotification = {})); + var DynamicCustomSchemaRequestRegistration; + (function (DynamicCustomSchemaRequestRegistration) { + DynamicCustomSchemaRequestRegistration.type = new vscode_languageserver_1.NotificationType('yaml/registerCustomSchemaRequest'); + })(DynamicCustomSchemaRequestRegistration = exports.DynamicCustomSchemaRequestRegistration || (exports.DynamicCustomSchemaRequestRegistration = {})); + var VSCodeContentRequestRegistration; + (function (VSCodeContentRequestRegistration) { + VSCodeContentRequestRegistration.type = new vscode_languageserver_1.NotificationType('yaml/registerContentRequest'); + })(VSCodeContentRequestRegistration = exports.VSCodeContentRequestRegistration || (exports.VSCodeContentRequestRegistration = {})); + var ResultLimitReachedNotification; + (function (ResultLimitReachedNotification) { + ResultLimitReachedNotification.type = new vscode_languageserver_1.NotificationType('yaml/resultLimitReached'); + })(ResultLimitReachedNotification = exports.ResultLimitReachedNotification || (exports.ResultLimitReachedNotification = {})); + var VSCodeContentRequest; + (function (VSCodeContentRequest) { + VSCodeContentRequest.type = new vscode_languageserver_1.RequestType('vscode/content'); + })(VSCodeContentRequest = exports.VSCodeContentRequest || (exports.VSCodeContentRequest = {})); + var CustomSchemaContentRequest; + (function (CustomSchemaContentRequest) { + CustomSchemaContentRequest.type = new vscode_languageserver_1.RequestType('custom/schema/content'); + })(CustomSchemaContentRequest = exports.CustomSchemaContentRequest || (exports.CustomSchemaContentRequest = {})); + var CustomSchemaRequest; + (function (CustomSchemaRequest) { + CustomSchemaRequest.type = new vscode_languageserver_1.RequestType('custom/schema/request'); + })(CustomSchemaRequest = exports.CustomSchemaRequest || (exports.CustomSchemaRequest = {})); + var ColorSymbolRequest; + (function (ColorSymbolRequest) { + ColorSymbolRequest.type = new vscode_languageserver_1.RequestType('json/colorSymbols'); + })(ColorSymbolRequest = exports.ColorSymbolRequest || (exports.ColorSymbolRequest = {})); + var SchemaModificationNotification; + (function (SchemaModificationNotification) { + SchemaModificationNotification.type = new vscode_languageserver_1.RequestType('json/schema/modify'); + })(SchemaModificationNotification = exports.SchemaModificationNotification || (exports.SchemaModificationNotification = {})); + var SchemaSelectionRequests; + (function (SchemaSelectionRequests) { + SchemaSelectionRequests.type = new vscode_languageserver_1.NotificationType('yaml/supportSchemaSelection'); + SchemaSelectionRequests.getSchema = new vscode_languageserver_1.RequestType('yaml/get/jsonSchema'); + SchemaSelectionRequests.getAllSchemas = new vscode_languageserver_1.RequestType('yaml/get/all/jsonSchemas'); + SchemaSelectionRequests.schemaStoreInitialized = new vscode_languageserver_1.NotificationType('yaml/schema/store/initialized'); + })(SchemaSelectionRequests = exports.SchemaSelectionRequests || (exports.SchemaSelectionRequests = {})); +}); +//# sourceMappingURL=requestTypes.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js.map" index 02608f0dd5d2f368f0ab8559af93e87454c1f85c..675b03aa394d0a89040fe4d40bbfec4b29e915b8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/requestTypes.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4beedff11a773e8690851247ff509945047a01d3382ab6b3b491fd746c4a403c -size 1809 +{"version":3,"file":"requestTypes.js","sourceRoot":"","sources":["../../src/requestTypes.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,oDAAoD;IACpD,iEAAsE;IAmCtE,IAAiB,6BAA6B,CAI7C;IAJD,WAAiB,6BAA6B;QAC/B,kCAAI,GAAkE,IAAI,wCAAgB,CACrG,yBAAyB,CAC1B,CAAC;IACJ,CAAC,EAJgB,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAI7C;IAED,IAAiB,sCAAsC,CAEtD;IAFD,WAAiB,sCAAsC;QACxC,2CAAI,GAA8B,IAAI,wCAAgB,CAAC,kCAAkC,CAAC,CAAC;IAC1G,CAAC,EAFgB,sCAAsC,GAAtC,8CAAsC,KAAtC,8CAAsC,QAEtD;IAED,IAAiB,gCAAgC,CAEhD;IAFD,WAAiB,gCAA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B;QACzB,4BAAI,GAA2B,IAAI,wCAAgB,CAAC,6BAA6B,CAAC,CAAC;QACnF,iCAAS,GAA0D,IAAI,mCAAW,CAAC,qBAAqB,CAAC,CAAC;QAC1G,qCAAa,GAA6D,IAAI,mCAAW,CACpG,0BAA0B,CAC3B,CAAC;QACW,8CAAsB,GAA8B,IAAI,wCAAgB,CAAC,+BAA+B,CAAC,CAAC;IACzH,CAAC,EAPgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOvC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js" index d8d9bd51ebd8c89470688b7cf1082214b71a073f..56f6a0f71c0ab939ae80393af8835227bb43497d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js" @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c70c8e8014790ad9809c9378a2d156d847793263103264cd65f236b15983d8ab -size 3644 +(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/node", "vscode-nls", "./languageservice/services/schemaRequestHandler", "./yamlServerInit", "./yamlSettings", "fs", "./languageservice/utils/objects", "./languageserver/telemetry"], factory); + } +})(function (require, exports) { + /*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Copyright (c) Adam Voss. 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 }); + const node_1 = require("vscode-languageserver/node"); + const nls = require("vscode-nls"); + const schemaRequestHandler_1 = require("./languageservice/services/schemaRequestHandler"); + const yamlServerInit_1 = require("./yamlServerInit"); + const yamlSettings_1 = require("./yamlSettings"); + const fs_1 = require("fs"); + const objects_1 = require("./languageservice/utils/objects"); + const telemetry_1 = require("./languageserver/telemetry"); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + nls.config(process.env['VSCODE_NLS_CONFIG']); + // Create a connection for the server. + let connection = null; + if (process.argv.indexOf('--stdio') === -1) { + connection = (0, node_1.createConnection)(node_1.ProposedFeatures.all); + } + else { + connection = (0, node_1.createConnection)(); + } + process.on('uncaughtException', (err) => { + // send all uncaught exception to telemetry with stack traces + connection.console.error((0, objects_1.convertErrorToTelemetryMsg)(err)); + }); + console.log = connection.console.log.bind(connection.console); + console.error = connection.console.error.bind(connection.console); + //vscode-nls calls console.error(null) in some cases, so we put that in info, to predict sending "null" in to telemetry + console.error = (arg) => { + if (arg === null) { + connection.console.info(arg); + } + else { + connection.console.error(arg); + } + }; + const yamlSettings = new yamlSettings_1.SettingsState(); + const fileSystem = { + readFile: async (fsPath, encoding) => { + const b = await fs_1.promises.readFile(fsPath, encoding); + return b.toString(); + }, + }; + /** + * 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 schemaRequestHandlerWrapper = (connection, uri) => { + return (0, schemaRequestHandler_1.schemaRequestHandler)(connection, uri, yamlSettings.workspaceFolders, yamlSettings.workspaceRoot, yamlSettings.useVSCodeContentRequest, fileSystem); + }; + const schemaRequestService = schemaRequestHandlerWrapper.bind(this, connection); + const telemetry = new telemetry_1.TelemetryImpl(connection); + new yamlServerInit_1.YAMLServerInit(connection, yamlSettings, schemaRequestHandler_1.workspaceContext, schemaRequestService, telemetry).start(); +}); +//# sourceMappingURL=server.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js.map" index 524b86b47f6b2ca064317703e5512eec4c3b0883..eb5ccde7e0ca645b0d4a8895f04552a78d58203f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/server.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:083005fe9616ba7cf6eb51b3100be9b17882027b55960e548f17ba9a76715265 -size 1801 +{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;;;oGAKgG;IAChG,YAAY,CAAC;;IAEb,qDAA4F;IAC5F,kCAAkC;IAClC,0FAAyG;IACzG,qDAAkD;IAClD,iDAA+C;IAC/C,2BAAoC;IACpC,6DAA6E;IAC7E,0DAA2D;IAE3D,8DAA8D;IAC9D,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAQ,CAAC,CAAC;IAEpD,sCAAsC;IACtC,IAAI,UAAU,GAAe,IAAI,CAAC;IAElC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE;QAC1C,UAAU,GAAG,IAAA,uBAAgB,EAAC,uBAAgB,CAAC,GAAG,CAAC,CAAC;KACrD;SAAM;QACL,UAAU,GAAG,IAAA,uBAAgB,GAAE,CAAC;KACjC;IAED,OAAO,CAAC,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AAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAChF,MAAM,SAAS,GAAG,IAAI,yBAAa,CAAC,UAAU,CAAC,CAAC;IAEhD,IAAI,+BAAc,CAAC,UAAU,EAAE,YAAY,EAAE,uCAAgB,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js" index c81455b974f30eb9112b47e25d55a9798cdc2894..f69ab7b42a83dd9b7fe6fc9073552aa734063672 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js" @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5778d4dc107daa1f6453a8b3810250f03f22a7cb024ba557b0dca9793934a632 -size 2889 +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports", "vscode-languageserver", "vscode-languageserver/browser", "../languageserver/telemetry", "../languageservice/services/schemaRequestHandler", "../yamlServerInit", "../yamlSettings"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*--------------------------------------------------------------------------------------------- + * 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. + *--------------------------------------------------------------------------------------------*/ + const vscode_languageserver_1 = require("vscode-languageserver"); + const browser_1 = require("vscode-languageserver/browser"); + const telemetry_1 = require("../languageserver/telemetry"); + const schemaRequestHandler_1 = require("../languageservice/services/schemaRequestHandler"); + const yamlServerInit_1 = require("../yamlServerInit"); + const yamlSettings_1 = require("../yamlSettings"); + // eslint-disable-next-line @typescript-eslint/no-namespace + var FSReadFile; + (function (FSReadFile) { + FSReadFile.type = new vscode_languageserver_1.RequestType('fs/readFile'); + })(FSReadFile || (FSReadFile = {})); + const messageReader = new browser_1.BrowserMessageReader(globalThis); + const messageWriter = new browser_1.BrowserMessageWriter(globalThis); + const connection = (0, browser_1.createConnection)(messageReader, messageWriter); + const yamlSettings = new yamlSettings_1.SettingsState(); + const fileSystem = { + readFile: (fsPath) => { + return connection.sendRequest(FSReadFile.type, fsPath); + }, + }; + /** + * 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 schemaRequestHandlerWrapper = (connection, uri) => { + return (0, schemaRequestHandler_1.schemaRequestHandler)(connection, uri, yamlSettings.workspaceFolders, yamlSettings.workspaceRoot, yamlSettings.useVSCodeContentRequest, fileSystem); + }; + const schemaRequestService = schemaRequestHandlerWrapper.bind(this, connection); + const telemetry = new telemetry_1.TelemetryImpl(connection); + new yamlServerInit_1.YAMLServerInit(connection, yamlSettings, schemaRequestHandler_1.workspaceContext, schemaRequestService, telemetry).start(); +}); +//# sourceMappingURL=yamlServerMain.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js.map" index 50d37ab954d89ce85a13f08dba75b8316265f33b..aa8c4210ae4ef360127bb1a8054578c44b2eb4b6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/webworker/yamlServerMain.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:888b04ded73ccc8277ec69781dd4a607b31f67fcd835de28651ee64bdfba0af5 -size 1156 +{"version":3,"file":"yamlServerMain.js","sourceRoot":"","sources":["../../../src/webworker/yamlServerMain.ts"],"names":[],"mappings":";;;;;;;;;;;IAAA;;;;oGAIgG;IAChG,iEAAgE;IAChE,2DAA6G;IAC7G,2DAA4D;IAC5D,2FAA0G;IAC1G,sDAAmD;IACnD,kDAAgD;IAEhD,2DAA2D;IAC3D,IAAU,UAAU,CAEnB;IAFD,WAAU,UAAU;QACL,eAAI,GAAyC,IAAI,mCAAW,CAAC,aAAa,CAAC,CAAC;IAC3F,CAAC,EAFS,UAAU,KAAV,UAAU,QAEnB;IAED,MAAM,aAAa,GAAG,IAAI,8BAAoB,CAAC,UAAU,CAAC,CAAC;IAC3D,MAAM,aAAa,GAAG,IAAI,8BAAoB,CAAC,UAAU,CAAC,CAAC;IAE3D,MAAM,UAAU,GAAG,IAAA,0BAAgB,EAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAElE,MAAM,YAAY,GAAG,IAAI,4BAAa,EAAE,CAAC;IAEzC,MAAM,UAAU,GAAG;QACjB,QAAQ,EAAE,CAAC,MAAc,EAAE,EAAE;YAC3B,OAAO,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACzD,CAAC;KACF,CAAC;IAEF;;;OAGG;IACH,MAAM,2BAA2B,GAAG,CAAC,UAAsB,EAAE,GAAW,EAAmB,EAAE;QAC3F,OAAO,IAAA,2CAAoB,EACzB,UAAU,EACV,GAAG,EACH,YAAY,CAAC,gBAAgB,EAC7B,YAAY,CAAC,aAAa,EAC1B,YAAY,CAAC,uBAAuB,EACpC,UAAU,CACX,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,2BAA2B,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAChF,MAAM,SAAS,GAAG,IAAI,yBAAa,CAAC,UAAU,CAAC,CAAC;IAEhD,IAAI,+BAAc,CAAC,UAAU,EAAE,YAAY,EAAE,uCAAgB,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.d.ts" index 87f7db93dfabbf58a598ee7c4f6110b188ccf822..9a91c4ce7844a8b607eecb4b2fba416f2c4d234f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.d.ts" @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfb702cd1d28247d0a72621df835858be9e7954c0cfec747bc9d111a3d875430 -size 1194 +import { Connection, InitializeParams, InitializeResult } from 'vscode-languageserver'; +import { LanguageService, SchemaRequestService, WorkspaceContextService } from './languageservice/yamlLanguageService'; +import { SettingsState } from './yamlSettings'; +import { LanguageHandlers } from './languageserver/handlers/languageHandlers'; +import { ValidationHandler } from './languageserver/handlers/validationHandlers'; +import { SettingsHandler } from './languageserver/handlers/settingsHandlers'; +import { Telemetry } from './languageservice/telemetry'; +export declare class YAMLServerInit { + private readonly connection; + private yamlSettings; + private workspaceContext; + private schemaRequestService; + private telemetry; + languageService: LanguageService; + languageHandler: LanguageHandlers; + validationHandler: ValidationHandler; + settingsHandler: SettingsHandler; + constructor(connection: Connection, yamlSettings: SettingsState, workspaceContext: WorkspaceContextService, schemaRequestService: SchemaRequestService, telemetry: Telemetry); + connectionInitialized(params: InitializeParams): InitializeResult; + private registerHandlers; + start(): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js" index f3b2f751f0c4d29ec6760e155d4187f9698b8292..c51fd84c3d4267bb97757ffff0fec025ed0dded4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js" @@ -1,3 +1,130 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cb548a52cc4a2afea3bbccb30fe40da1bd6f0e9ade748fcc076b9f6f2f60067e -size 8200 +(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", "./languageservice/yamlLanguageService", "./languageservice/utils/paths", "vscode-uri", "./languageserver/handlers/languageHandlers", "./languageserver/handlers/notificationHandlers", "./languageserver/handlers/requestHandlers", "./languageserver/handlers/validationHandlers", "./languageserver/handlers/settingsHandlers", "./commands", "./languageserver/handlers/workspaceHandlers", "./languageserver/commandExecutor", "./languageservice/services/yamlCommands"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.YAMLServerInit = void 0; + const vscode_languageserver_1 = require("vscode-languageserver"); + const yamlLanguageService_1 = require("./languageservice/yamlLanguageService"); + const paths_1 = require("./languageservice/utils/paths"); + const vscode_uri_1 = require("vscode-uri"); + const languageHandlers_1 = require("./languageserver/handlers/languageHandlers"); + const notificationHandlers_1 = require("./languageserver/handlers/notificationHandlers"); + const requestHandlers_1 = require("./languageserver/handlers/requestHandlers"); + const validationHandlers_1 = require("./languageserver/handlers/validationHandlers"); + const settingsHandlers_1 = require("./languageserver/handlers/settingsHandlers"); + const commands_1 = require("./commands"); + const workspaceHandlers_1 = require("./languageserver/handlers/workspaceHandlers"); + const commandExecutor_1 = require("./languageserver/commandExecutor"); + const yamlCommands_1 = require("./languageservice/services/yamlCommands"); + class YAMLServerInit { + constructor(connection, yamlSettings, workspaceContext, schemaRequestService, telemetry) { + this.connection = connection; + this.yamlSettings = yamlSettings; + this.workspaceContext = workspaceContext; + this.schemaRequestService = schemaRequestService; + this.telemetry = telemetry; + this.yamlSettings.documents.listen(this.connection); + /** + * Run when the client connects to the server after it is activated. + * The server receives the root path(s) of the workspace and the client capabilities. + */ + this.connection.onInitialize((params) => { + return this.connectionInitialized(params); + }); + this.connection.onInitialized(() => { + if (this.yamlSettings.hasWsChangeWatchedFileDynamicRegistration) { + this.connection.workspace.onDidChangeWorkspaceFolders((changedFolders) => { + this.yamlSettings.workspaceFolders = (0, paths_1.workspaceFoldersChanged)(this.yamlSettings.workspaceFolders, changedFolders); + }); + } + // need to call this after connection initialized + this.settingsHandler.registerHandlers(); + this.settingsHandler.pullConfiguration(); + }); + } + // public for test setup + connectionInitialized(params) { + this.yamlSettings.capabilities = params.capabilities; + this.languageService = (0, yamlLanguageService_1.getLanguageService)({ + schemaRequestService: this.schemaRequestService, + workspaceContext: this.workspaceContext, + connection: this.connection, + yamlSettings: this.yamlSettings, + telemetry: this.telemetry, + clientCapabilities: params.capabilities, + }); + // Only try to parse the workspace root if its not null. Otherwise initialize will fail + if (params.rootUri) { + this.yamlSettings.workspaceRoot = vscode_uri_1.URI.parse(params.rootUri); + } + this.yamlSettings.workspaceFolders = params.workspaceFolders || []; + this.yamlSettings.hierarchicalDocumentSymbolSupport = !!(this.yamlSettings.capabilities.textDocument && + this.yamlSettings.capabilities.textDocument.documentSymbol && + this.yamlSettings.capabilities.textDocument.documentSymbol.hierarchicalDocumentSymbolSupport); + this.yamlSettings.clientDynamicRegisterSupport = !!(this.yamlSettings.capabilities.textDocument && + this.yamlSettings.capabilities.textDocument.rangeFormatting && + this.yamlSettings.capabilities.textDocument.rangeFormatting.dynamicRegistration); + this.yamlSettings.hasWorkspaceFolderCapability = + this.yamlSettings.capabilities.workspace && !!this.yamlSettings.capabilities.workspace.workspaceFolders; + this.yamlSettings.hasConfigurationCapability = !!(this.yamlSettings.capabilities.workspace && !!this.yamlSettings.capabilities.workspace.configuration); + this.yamlSettings.hasWsChangeWatchedFileDynamicRegistration = !!(this.yamlSettings.capabilities.workspace && + this.yamlSettings.capabilities.workspace.didChangeWatchedFiles && + this.yamlSettings.capabilities.workspace.didChangeWatchedFiles.dynamicRegistration); + this.registerHandlers(); + (0, yamlCommands_1.registerCommands)(commandExecutor_1.commandExecutor, this.connection); + return { + capabilities: { + textDocumentSync: vscode_languageserver_1.TextDocumentSyncKind.Incremental, + completionProvider: { resolveProvider: false }, + hoverProvider: true, + documentSymbolProvider: true, + documentFormattingProvider: false, + documentOnTypeFormattingProvider: { + firstTriggerCharacter: '\n', + }, + documentRangeFormattingProvider: false, + definitionProvider: true, + documentLinkProvider: {}, + foldingRangeProvider: true, + selectionRangeProvider: true, + codeActionProvider: true, + codeLensProvider: { + resolveProvider: false, + }, + executeCommandProvider: { + commands: Object.keys(commands_1.YamlCommands).map((k) => commands_1.YamlCommands[k]), + }, + workspace: { + workspaceFolders: { + changeNotifications: true, + supported: true, + }, + }, + }, + }; + } + registerHandlers() { + // Register all features that the language server has + this.validationHandler = new validationHandlers_1.ValidationHandler(this.connection, this.languageService, this.yamlSettings); + this.settingsHandler = new settingsHandlers_1.SettingsHandler(this.connection, this.languageService, this.yamlSettings, this.validationHandler, this.telemetry); + // this.settingsHandler.registerHandlers(); + this.languageHandler = new languageHandlers_1.LanguageHandlers(this.connection, this.languageService, this.yamlSettings, this.validationHandler); + this.languageHandler.registerHandlers(); + new notificationHandlers_1.NotificationHandlers(this.connection, this.languageService, this.yamlSettings, this.settingsHandler).registerHandlers(); + new requestHandlers_1.RequestHandlers(this.connection, this.languageService).registerHandlers(); + new workspaceHandlers_1.WorkspaceHandlers(this.connection, commandExecutor_1.commandExecutor).registerHandlers(); + } + start() { + this.connection.listen(); + } + } + exports.YAMLServerInit = YAMLServerInit; +}); +//# sourceMappingURL=yamlServerInit.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js.map" index 412fcf7d5f932799651860539fcbe2ad9ec5b201..111847cdc03ce785918d2447beb01cb545c6f44b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlServerInit.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf7488a011174d3ef776e076f68b4691adfe68d05a94bae2a0fb1a2985133bcb -size 4279 +{"version":3,"file":"yamlServerInit.js","sourceRoot":"","sources":["../../src/yamlServerInit.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,iEAA6G;IAC7G,+EAK+C;IAC/C,yDAAwE;IACxE,2CAAiC;IAEjC,iFAA8E;IAC9E,yFAAsF;IACtF,+EAA4E;IAC5E,qFAAiF;IACjF,iFAA6E;IAC7E,yCAA0C;IAC1C,mFAAgF;IAChF,sEAAmE;IAEnE,0EAA2E;IAE3E,MAAa,cAAc;QAMzB,YACmB,UAAsB,EAC/B,YAA2B,EAC3B,gBAAyC,EACzC,oBAA0C,EAC1C,SAAoB;YAJX,eAAU,GAAV,UAAU,CAAY;YAC/B,iBAAY,GAAZ,YAAY,CAAe;YAC3B,qBAAgB,GAAhB,gBAAgB,CAAyB;YACzC,yBAAoB,GAApB,oBAAoB,CAAsB;YAC1C,cAAS,GAAT,SAAS,CAAW;YAE5B,IAAI,CAAC,YA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,CAAC,iBAAiB,EACtB,IAAI,CAAC,SAAS,CACf,CAAC;YACF,2CAA2C;YAC3C,IAAI,CAAC,eAAe,GAAG,IAAI,mCAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC9H,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,CAAC;YACxC,IAAI,2CAAoB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC;YAC5H,IAAI,iCAAe,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC;YAC9E,IAAI,qCAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,iCAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC;QAC7E,CAAC;QAED,KAAK;YACH,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAC3B,CAAC;KACF;IAlID,wCAkIC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.d.ts" index 84a1b8397f2e01b794c8cd8453fb57e3294aef32..17d022ad8a4d1ef896d931ea067683954e5a366d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.d.ts" @@ -1,3 +1,104 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b677df1694d108309c4e90f1dc9efa3fca4a63ba9d335579764a8c5b47857b0 -size 3488 +/// +import { TextDocuments, Disposable, ClientCapabilities, WorkspaceFolder } from 'vscode-languageserver'; +import { CustomFormatterOptions, SchemaConfiguration } from './languageservice/yamlLanguageService'; +import { ISchemaAssociations } from './requestTypes'; +import { URI } from 'vscode-uri'; +import { JSONSchema } from './languageservice/jsonSchema'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { YamlVersion } from './languageservice/parser/yamlParser07'; +export interface Settings { + yaml: { + format: CustomFormatterOptions; + schemas: JSONSchemaSettings[]; + validate: boolean; + hover: boolean; + completion: boolean; + customTags: Array; + schemaStore: { + url: string; + enable: boolean; + }; + disableDefaultProperties: boolean; + disableAdditionalProperties: boolean; + suggest: { + parentSkeletonSelectedFirst: boolean; + }; + style: { + flowMapping: 'allow' | 'forbid'; + flowSequence: 'allow' | 'forbid'; + }; + keyOrdering: boolean; + maxItemsComputed: number; + yamlVersion: YamlVersion; + }; + http: { + proxy: string; + proxyStrictSSL: boolean; + }; + yamlEditor: { + 'editor.tabSize': number; + 'editor.insertSpaces': boolean; + 'editor.formatOnType': boolean; + }; + vscodeEditor: { + detectIndentation: boolean; + }; + files: { + associations: Map; + }; +} +export interface JSONSchemaSettings { + fileMatch?: string[]; + url?: string; + schema?: JSONSchema; +} +export declare class SettingsState { + yamlConfigurationSettings: JSONSchemaSettings[]; + schemaAssociations: ISchemaAssociations | SchemaConfiguration[] | undefined; + formatterRegistration: Thenable; + specificValidatorPaths: any[]; + schemaConfigurationSettings: any[]; + yamlShouldValidate: boolean; + yamlFormatterSettings: CustomFormatterOptions; + yamlShouldHover: boolean; + yamlShouldCompletion: boolean; + schemaStoreSettings: any[]; + customTags: any[]; + schemaStoreEnabled: boolean; + schemaStoreUrl: string; + indentation: string | undefined; + disableAdditionalProperties: boolean; + disableDefaultProperties: boolean; + suggest: { + parentSkeletonSelectedFirst: boolean; + }; + style: { + flowMapping: 'allow' | 'forbid'; + flowSequence: 'allow' | 'forbid'; + }; + keyOrdering: boolean; + maxItemsComputed: number; + pendingValidationRequests: { + [uri: string]: NodeJS.Timer; + }; + validationDelayMs: number; + documents: TextDocuments | TextDocumentTestManager; + capabilities: ClientCapabilities; + workspaceRoot: URI; + workspaceFolders: WorkspaceFolder[]; + clientDynamicRegisterSupport: boolean; + hierarchicalDocumentSymbolSupport: boolean; + hasWorkspaceFolderCapability: boolean; + hasConfigurationCapability: boolean; + useVSCodeContentRequest: boolean; + yamlVersion: YamlVersion; + useSchemaSelectionRequests: boolean; + hasWsChangeWatchedFileDynamicRegistration: boolean; + fileExtensions: string[]; +} +export declare class TextDocumentTestManager extends TextDocuments { + testTextDocuments: Map; + constructor(); + get(uri: string): TextDocument | undefined; + set(textDocument: TextDocument): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js" index 1b312a0dfbf8b1466509b1ebae3d78cee827b144..4ed55adca162b90aa39eca5ceba6d88f07fd66e5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js" @@ -1,3 +1,80 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f89c4825011b7d9830a5600917efc086b63be1d81287c6093edee4b2031e1b3d -size 3618 +(function (factory) { + if (typeof module === "object" && typeof module.exports === "object") { + var v = factory(require, exports); + if (v !== undefined) module.exports = v; + } + else if (typeof define === "function" && define.amd) { + define(["require", "exports", "vscode-languageserver", "vscode-languageserver-textdocument", "./languageservice/utils/schemaUrls"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TextDocumentTestManager = exports.SettingsState = void 0; + const vscode_languageserver_1 = require("vscode-languageserver"); + const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument"); + const schemaUrls_1 = require("./languageservice/utils/schemaUrls"); + // This class is responsible for handling all the settings + class SettingsState { + constructor() { + this.yamlConfigurationSettings = undefined; + this.schemaAssociations = undefined; + this.formatterRegistration = null; + this.specificValidatorPaths = []; + this.schemaConfigurationSettings = []; + this.yamlShouldValidate = true; + this.yamlFormatterSettings = { + singleQuote: false, + bracketSpacing: true, + proseWrap: 'preserve', + printWidth: 80, + enable: true, + }; + this.yamlShouldHover = true; + this.yamlShouldCompletion = true; + this.schemaStoreSettings = []; + this.customTags = []; + this.schemaStoreEnabled = true; + this.schemaStoreUrl = schemaUrls_1.JSON_SCHEMASTORE_URL; + this.indentation = undefined; + this.disableAdditionalProperties = false; + this.disableDefaultProperties = false; + this.suggest = { + parentSkeletonSelectedFirst: false, + }; + this.keyOrdering = false; + this.maxItemsComputed = 5000; + // File validation helpers + this.pendingValidationRequests = {}; + this.validationDelayMs = 200; + // Create a simple text document manager. The text document manager + // supports full document sync only + this.documents = new vscode_languageserver_1.TextDocuments(vscode_languageserver_textdocument_1.TextDocument); + this.workspaceRoot = null; + this.workspaceFolders = []; + this.clientDynamicRegisterSupport = false; + this.hierarchicalDocumentSymbolSupport = false; + this.hasWorkspaceFolderCapability = false; + this.hasConfigurationCapability = false; + this.useVSCodeContentRequest = false; + this.yamlVersion = '1.2'; + this.useSchemaSelectionRequests = false; + this.hasWsChangeWatchedFileDynamicRegistration = false; + this.fileExtensions = ['.yml', '.yaml']; + } + } + exports.SettingsState = SettingsState; + class TextDocumentTestManager extends vscode_languageserver_1.TextDocuments { + constructor() { + super(vscode_languageserver_textdocument_1.TextDocument); + this.testTextDocuments = new Map(); + } + get(uri) { + return this.testTextDocuments.get(uri); + } + set(textDocument) { + this.testTextDocuments.set(textDocument.uri, textDocument); + } + } + exports.TextDocumentTestManager = TextDocumentTestManager; +}); +//# sourceMappingURL=yamlSettings.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js.map" index e843c0a0e3370d5857ec7250413ee15445c78c62..b67cbee8422197ee4c3b6f560bdfd4286740677d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/yamlSettings.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aade2042a36c989e12b9080bf16a2305c74be5dbfe2587c9c434f65124d4fbb7 -size 1691 +{"version":3,"file":"yamlSettings.js","sourceRoot":"","sources":["../../src/yamlSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,iEAAuG;IAKvG,2FAAkE;IAClE,mEAA0E;IAoD1E,0DAA0D;IAC1D,MAAa,aAAa;QAA1B;YACE,8BAAyB,GAAyB,SAAS,CAAC;YAC5D,uBAAkB,GAA4D,SAAS,CAAC;YACxF,0BAAqB,GAAyB,IAAI,CAAC;YACnD,2BAAsB,GAAG,EAAE,CAAC;YAC5B,gCAA2B,GAAG,EAAE,CAAC;YACjC,uBAAkB,GAAG,IAAI,CAAC;YAC1B,0BAAqB,GAAG;gBACtB,WAAW,EAAE,KAAK;gBAClB,cAAc,EAAE,IAAI;gBACpB,SAAS,EAAE,UAAU;gBACrB,UAAU,EAAE,EAAE;gBACd,MAAM,EAAE,IAAI;aACa,CAAC;YAC5B,oBAAe,GAAG,IAAI,CAAC;YACvB,yBAAoB,GAAG,IAAI,CAAC;YAC5B,wBAAmB,GAAG,EAAE,CAAC;YACzB,eAAU,GAAG,EAAE,CAAC;YAChB,uBAAkB,GAAG,IAAI,CAAC;YAC1B,mBAAc,GAAG,iCAAoB,CAAC;YACtC,gBAAW,GAAuB,SAAS,CAAC;YAC5C,gCAA2B,GAAG,KAAK,CAAC;YACpC,6BAAwB,GAAG,KAAK,CAAC;YACjC,YAAO,GAAG;gBACR,2BAA2B,EAAE,KAAK;aACnC,CAAC;YAKF,gBAAW,GAAG,KAAK,CAAC;YACpB,qBAAgB,GAAG,IAAI,CAAC;YAExB,0BAA0B;YAC1B,8BAAyB,GAAoC,EAAE,CAAC;YAChE,sBAAiB,GAAG,GAAG,CAAC;YAExB,mEAAmE;YACnE,mCAAmC;YACnC,cAAS,GAA0D,IAAI,qCAAa,CAAC,iDAAY,CAAC,CAAC;YAInG,kBAAa,GAAQ,IAAI,CAAC;YAC1B,qBAAgB,GAAsB,EAAE,CAAC;YACzC,iCAA4B,GAAG,KAAK,CAAC;YACrC,sCAAiC,GAAG,KAAK,CAAC;YAC1C,iCAA4B,GAAG,KAAK,CAAC;YACrC,+BAA0B,GAAG,KAAK,CAAC;YACnC,4BAAuB,GAAG,KAAK,CAAC;YAChC,gBAAW,GAAgB,KAAK,CAAC;YACjC,+BAA0B,GAAG,KAAK,CAAC;YACnC,8CAAyC,GAAG,KAAK,CAAC;YAClD,mBAAc,GAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;KAAA;IAtDD,sCAsDC;IAED,MAAa,uBAAwB,SAAQ,qCAA2B;QAGtE;YACE,KAAK,CAAC,iDAAY,CAAC,CAAC;YAHtB,sBAAiB,GAAG,IAAI,GAAG,EAAwB,CAAC;QAIpD,CAAC;QAED,GAAG,CAAC,GAAW;YACb,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACzC,CAAC;QAED,GAAG,CAAC,YAA0B;YAC5B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;QAC7D,CAAC;KACF;IAdD,0DAcC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/CHANGELOG.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/CHANGELOG.md" index 1dc335f337ea669c77b2527583bae59c21549986..b43a083a2f98daed446a16861955c79997ffa1d1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/CHANGELOG.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/CHANGELOG.md" @@ -1,3 +1,72 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce508d6b9a2e11c03f60aa3b9519e4b919ddbfe96e869dbe454dc483d26cd9fa -size 2723 + +3.2.0 2022-08-30 +================= +- update the version of the bundled Javascript files to `es2020`. +- include all `const enum` values in the bundled JavaScript files (`ScanError`, `SyntaxKind`, `ParseErrorCode`). + +3.1.0 2022-07-07 +================== + * added new API `FormattingOptions.keepLines` : It leaves the initial line positions in the formatting. + +3.0.0 2020-11-13 +================== + * fixed API spec for `parseTree`. Can return `undefine` for empty input. + * added new API `FormattingOptions.insertFinalNewline`. + + +2.3.0 2020-07-03 +================== + * new API `ModificationOptions.isArrayInsertion`: If `JSONPath` refers to an index of an array and `isArrayInsertion` is `true`, then `modify` will insert a new item at that location instead of overwriting its contents. + * `ModificationOptions.formattingOptions` is now optional. If not set, newly inserted content will not be formatted. + + +2.2.0 2019-10-25 +================== + * added `ParseOptions.allowEmptyContent`. Default is `false`. + * new API `getNodeType`: Returns the type of a value returned by parse. + * `parse`: Fix issue with empty property name + +2.1.0 2019-03-29 +================== + * `JSONScanner` and `JSONVisitor` return lineNumber / character. + +2.0.0 2018-04-12 +================== + * renamed `Node.columnOffset` to `Node.colonOffset` + * new API `getNodePath`: Gets the JSON path of the given JSON DOM node + * new API `findNodeAtOffset`: Finds the most inner node at the given offset. If `includeRightBound` is set, also finds nodes that end at the given offset. + +1.0.3 2018-03-07 +================== + * provide ems modules + +1.0.2 2018-03-05 +================== + * added the `visit.onComment` API, reported when comments are allowed. + * added the `ParseErrorCode.InvalidCommentToken` enum value, reported when comments are disallowed. + +1.0.1 +================== + * added the `format` API: computes edits to format a JSON document. + * added the `modify` API: computes edits to insert, remove or replace a property or value in a JSON document. + * added the `allyEdits` API: applies edits to a document + +1.0.0 +================== + * remove nls dependency (remove `getParseErrorMessage`) + +0.4.2 / 2017-05-05 +================== + * added `ParseError.offset` & `ParseError.length` + +0.4.1 / 2017-04-02 +================== + * added `ParseOptions.allowTrailingComma` + +0.4.0 / 2017-02-23 +================== + * fix for `getLocation`. Now `getLocation` inside an object will always return a property from inside that property. Can be empty string if the object has no properties or if the offset is before a actual property `{ "a": { | }} will return location ['a', ' ']` + +0.3.0 / 2017-01-17 +================== + * Updating to typescript 2.0 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/LICENSE.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/LICENSE.md" index 28f77a90b0472b57e139eebdb907553e6a2b20ba..1c65de1db32e326f2bd84b036db911248779eaa7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/LICENSE.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/LICENSE.md" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3a24c02d678e5f0711623dcf3ab3f243b273c2633f638a1fa8e35fb7c7f8e4d -size 1092 +The MIT License (MIT) + +Copyright (c) Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, 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 THE +SOFTWARE. diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/README.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/README.md" index 1e491c62ddf66d76f069c52419acec7239982b8a..5fd92d9e9310a6e4ed2309fea25b2be5063ad2e5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/README.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/README.md" @@ -1,3 +1,362 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f3bbe33967c25f1974ac93a4c9c2c2bde59c79da517d27bb575dcbc10a259db -size 14129 +# jsonc-parser +Scanner and parser for JSON with comments. + +[![npm Package](https://img.shields.io/npm/v/jsonc-parser.svg?style=flat-square)](https://www.npmjs.org/package/jsonc-parser) +[![NPM Downloads](https://img.shields.io/npm/dm/jsonc-parser.svg)](https://npmjs.org/package/jsonc-parser) +[![Build Status](https://github.com/microsoft/node-jsonc-parser/workflows/Tests/badge.svg)](https://github.com/microsoft/node-jsonc-parser/workflows/Tests) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) + +Why? +---- +JSONC is JSON with JavaScript style comments. This node module provides a scanner and fault tolerant parser that can process JSONC but is also useful for standard JSON. + - the *scanner* tokenizes the input string into tokens and token offsets + - the *visit* function implements a 'SAX' style parser with callbacks for the encountered properties and values. + - the *parseTree* function computes a hierarchical DOM with offsets representing the encountered properties and values. + - the *parse* function evaluates the JavaScript object represented by JSON string in a fault tolerant fashion. + - the *getLocation* API returns a location object that describes the property or value located at a given offset in a JSON document. + - the *findNodeAtLocation* API finds the node at a given location path in a JSON DOM. + - the *format* API computes edits to format a JSON document. + - the *modify* API computes edits to insert, remove or replace a property or value in a JSON document. + - the *applyEdits* API applies edits to a document. + +Installation +------------ + +``` +npm install --save jsonc-parser +``` + +API +--- + +### Scanner: +```typescript + +/** + * Creates a JSON scanner on the given text. + * If ignoreTrivia is set, whitespaces or comments are ignored. + */ +export function createScanner(text: string, ignoreTrivia: boolean = false): JSONScanner; + +/** + * The scanner object, representing a JSON scanner at a position in the input string. + */ +export interface JSONScanner { + /** + * Sets the scan position to a new offset. A call to 'scan' is needed to get the first token. + */ + setPosition(pos: number): any; + /** + * Read the next token. Returns the token code. + */ + scan(): SyntaxKind; + /** + * Returns the zero-based current scan position, which is after the last read token. + */ + getPosition(): number; + /** + * Returns the last read token. + */ + getToken(): SyntaxKind; + /** + * Returns the last read token value. The value for strings is the decoded string content. For numbers it's of type number, for boolean it's true or false. + */ + getTokenValue(): string; + /** + * The zero-based start offset of the last read token. + */ + getTokenOffset(): number; + /** + * The length of the last read token. + */ + getTokenLength(): number; + /** + * The zero-based start line number of the last read token. + */ + getTokenStartLine(): number; + /** + * The zero-based start character (column) of the last read token. + */ + getTokenStartCharacter(): number; + /** + * An error code of the last scan. + */ + getTokenError(): ScanError; +} +``` + +### Parser: +```typescript + +export interface ParseOptions { + disallowComments?: boolean; + allowTrailingComma?: boolean; + allowEmptyContent?: boolean; +} +/** + * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + * Therefore always check the errors list to find out if the input was valid. + */ +export declare function parse(text: string, errors?: {error: ParseErrorCode;}[], options?: ParseOptions): any; + +/** + * Parses the given text and invokes the visitor functions for each object, array and literal reached. + */ +export declare function visit(text: string, visitor: JSONVisitor, options?: ParseOptions): any; + +/** + * Visitor called by {@linkcode visit} when parsing JSON. + * + * The visitor functions have the following common parameters: + * - `offset`: Global offset within the JSON document, starting at 0 + * - `startLine`: Line number, starting at 0 + * - `startCharacter`: Start character (column) within the current line, starting at 0 + * + * Additionally some functions have a `pathSupplier` parameter which can be used to obtain the + * current `JSONPath` within the document. + */ +export interface JSONVisitor { + /** + * Invoked when an open brace is encountered and an object is started. The offset and length represent the location of the open brace. + */ + onObjectBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + + /** + * Invoked when a property is encountered. The offset and length represent the location of the property name. + * The `JSONPath` created by the `pathSupplier` refers to the enclosing JSON object, it does not include the + * property name yet. + */ + onObjectProperty?: (property: string, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a closing brace is encountered and an object is completed. The offset and length represent the location of the closing brace. + */ + onObjectEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked when an open bracket is encountered. The offset and length represent the location of the open bracket. + */ + onArrayBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a closing bracket is encountered. The offset and length represent the location of the closing bracket. + */ + onArrayEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked when a literal value is encountered. The offset and length represent the location of the literal value. + */ + onLiteralValue?: (value: any, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a comma or colon separator is encountered. The offset and length represent the location of the separator. + */ + onSeparator?: (character: string, offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * When comments are allowed, invoked when a line or block comment is encountered. The offset and length represent the location of the comment. + */ + onComment?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked on an error. + */ + onError?: (error: ParseErrorCode, offset: number, length: number, startLine: number, startCharacter: number) => void; +} + +/** + * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + */ +export declare function parseTree(text: string, errors?: ParseError[], options?: ParseOptions): Node | undefined; + +export declare type NodeType = "object" | "array" | "property" | "string" | "number" | "boolean" | "null"; +export interface Node { + type: NodeType; + value?: any; + offset: number; + length: number; + colonOffset?: number; + parent?: Node; + children?: Node[]; +} + +``` + +### Utilities: +```typescript +/** + * Takes JSON with JavaScript-style comments and remove + * them. Optionally replaces every none-newline character + * of comments with a replaceCharacter + */ +export declare function stripComments(text: string, replaceCh?: string): string; + +/** + * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. + */ +export declare function getLocation(text: string, position: number): Location; + +/** + * A {@linkcode JSONPath} segment. Either a string representing an object property name + * or a number (starting at 0) for array indices. + */ +export declare type Segment = string | number; +export declare type JSONPath = Segment[]; +export interface Location { + /** + * The previous property key or literal value (string, number, boolean or null) or undefined. + */ + previousNode?: Node; + /** + * The path describing the location in the JSON document. The path consists of a sequence strings + * representing an object property or numbers for array indices. + */ + path: JSONPath; + /** + * Matches the locations path against a pattern consisting of strings (for properties) and numbers (for array indices). + * '*' will match a single segment, of any property name or index. + * '**' will match a sequence of segments or no segment, of any property name or index. + */ + matches: (patterns: JSONPath) => boolean; + /** + * If set, the location's offset is at a property key. + */ + isAtPropertyKey: boolean; +} + +/** + * Finds the node at the given path in a JSON DOM. + */ +export function findNodeAtLocation(root: Node, path: JSONPath): Node | undefined; + +/** + * Finds the most inner node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. + */ +export function findNodeAtOffset(root: Node, offset: number, includeRightBound?: boolean) : Node | undefined; + +/** + * Gets the JSON path of the given JSON DOM node + */ +export function getNodePath(node: Node): JSONPath; + +/** + * Evaluates the JavaScript object of the given JSON DOM node + */ +export function getNodeValue(node: Node): any; + +/** + * Computes the edit operations needed to format a JSON document. + * + * @param documentText The input text + * @param range The range to format or `undefined` to format the full content + * @param options The formatting options + * @returns The edit operations describing the formatting changes to the original document following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export function format(documentText: string, range: Range, options: FormattingOptions): EditResult; + +/** + * Computes the edit operations needed to modify a value in the JSON document. + * + * @param documentText The input text + * @param path The path of the value to change. The path represents either to the document root, a property or an array item. + * If the path points to an non-existing property or item, it will be created. + * @param value The new value for the specified property or item. If the value is undefined, + * the property or item will be removed. + * @param options Options + * @returns The edit operations describing the changes to the original document, following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export function modify(text: string, path: JSONPath, value: any, options: ModificationOptions): EditResult; + +/** + * Applies edits to an input string. + * @param text The input text + * @param edits Edit operations following the format described in {@linkcode EditResult}. + * @returns The text with the applied edits. + * @throws An error if the edit operations are not well-formed as described in {@linkcode EditResult}. + */ +export function applyEdits(text: string, edits: EditResult): string; + +/** + * An edit result describes a textual edit operation. It is the result of a {@linkcode format} and {@linkcode modify} operation. + * It consist of one or more edits describing insertions, replacements or removals of text segments. + * * The offsets of the edits refer to the original state of the document. + * * No two edits change or remove the same range of text in the original document. + * * Multiple edits can have the same offset if they are multiple inserts, or an insert followed by a remove or replace. + * * The order in the array defines which edit is applied first. + * To apply an edit result use {@linkcode applyEdits}. + * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data. + */ +export type EditResult = Edit[]; + +/** + * Represents a text modification + */ +export interface Edit { + /** + * The start offset of the modification. + */ + offset: number; + /** + * The length of the modification. Must not be negative. Empty length represents an *insert*. + */ + length: number; + /** + * The new content. Empty content represents a *remove*. + */ + content: string; +} + +/** + * A text range in the document +*/ +export interface Range { + /** + * The start offset of the range. + */ + offset: number; + /** + * The length of the range. Must not be negative. + */ + length: number; +} + +/** + * Options used by {@linkcode format} when computing the formatting edit operations + */ +export interface FormattingOptions { + /** + * If indentation is based on spaces (`insertSpaces` = true), then what is the number of spaces that make an indent? + */ + tabSize: number; + /** + * Is indentation based on spaces? + */ + insertSpaces: boolean; + /** + * The default 'end of line' character + */ + eol: string; +} + +/** + * Options used by {@linkcode modify} when computing the modification edit operations + */ +export interface ModificationOptions { + /** + * Formatting options. If undefined, the newly inserted code will be inserted unformatted. + */ + formattingOptions?: FormattingOptions; + /** + * Default false. If `JSONPath` refers to an index of an array and `isArrayInsertion` is `true`, then + * {@linkcode modify} will insert a new item at that location instead of overwriting its contents. + */ + isArrayInsertion?: boolean; + /** + * Optional function to define the insertion index given an existing list of properties. + */ + getInsertionIndex?: (properties: string[]) => number; +} +``` + + +License +------- + +(MIT License) + +Copyright 2018, Microsoft diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/SECURITY.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/SECURITY.md" index f5f6a3f8ada07060363bde77a27e754b69f75b67..f7b89984f0fb5dd204028bc525e19eefc0859f4f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/SECURITY.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/SECURITY.md" @@ -1,3 +1,41 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:830e94b83c3b6f45ceee5609de6249b2125927f95532e68427f09c99eed5e663 -size 2780 + + +## Security + +Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). + +If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below. + +## Reporting Security Issues + +**Please do not report security vulnerabilities through public GitHub issues.** + +Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). + +If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). + +You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). + +Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: + + * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) + * Full paths of source file(s) related to the manifestation of the issue + * The location of the affected source code (tag/branch/commit or direct URL) + * Any special configuration required to reproduce the issue + * Step-by-step instructions to reproduce the issue + * Proof-of-concept or exploit code (if possible) + * Impact of the issue, including how an attacker might exploit the issue + +This information will help us triage your report more quickly. + +If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. + +## Preferred Languages + +We prefer all communications to be in English. + +## Policy + +Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). + + \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/edit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/edit.js" index f3f4e9bcb10dd2e021843f78fe5a83c91c1e5311..4114d525b7fa2db6824ee4c3351c58aa4c6a4876 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/edit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/edit.js" @@ -1,3 +1,185 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e7bf98e740f560026df079056d3b0f5f34628124a8d34e2765fb101dde12911 -size 8613 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +'use strict'; +import { format, isEOL } from './format'; +import { parseTree, findNodeAtLocation } from './parser'; +export function removeProperty(text, path, options) { + return setProperty(text, path, void 0, options); +} +export function setProperty(text, originalPath, value, options) { + const path = originalPath.slice(); + const errors = []; + const root = parseTree(text, errors); + let parent = void 0; + let lastSegment = void 0; + while (path.length > 0) { + lastSegment = path.pop(); + parent = findNodeAtLocation(root, path); + if (parent === void 0 && value !== void 0) { + if (typeof lastSegment === 'string') { + value = { [lastSegment]: value }; + } + else { + value = [value]; + } + } + else { + break; + } + } + if (!parent) { + // empty document + if (value === void 0) { // delete + throw new Error('Can not delete in empty document'); + } + return withFormatting(text, { offset: root ? root.offset : 0, length: root ? root.length : 0, content: JSON.stringify(value) }, options); + } + else if (parent.type === 'object' && typeof lastSegment === 'string' && Array.isArray(parent.children)) { + const existing = findNodeAtLocation(parent, [lastSegment]); + if (existing !== void 0) { + if (value === void 0) { // delete + if (!existing.parent) { + throw new Error('Malformed AST'); + } + const propertyIndex = parent.children.indexOf(existing.parent); + let removeBegin; + let removeEnd = existing.parent.offset + existing.parent.length; + if (propertyIndex > 0) { + // remove the comma of the previous node + let previous = parent.children[propertyIndex - 1]; + removeBegin = previous.offset + previous.length; + } + else { + removeBegin = parent.offset + 1; + if (parent.children.length > 1) { + // remove the comma of the next node + let next = parent.children[1]; + removeEnd = next.offset; + } + } + return withFormatting(text, { offset: removeBegin, length: removeEnd - removeBegin, content: '' }, options); + } + else { + // set value of existing property + return withFormatting(text, { offset: existing.offset, length: existing.length, content: JSON.stringify(value) }, options); + } + } + else { + if (value === void 0) { // delete + return []; // property does not exist, nothing to do + } + const newProperty = `${JSON.stringify(lastSegment)}: ${JSON.stringify(value)}`; + const index = options.getInsertionIndex ? options.getInsertionIndex(parent.children.map(p => p.children[0].value)) : parent.children.length; + let edit; + if (index > 0) { + let previous = parent.children[index - 1]; + edit = { offset: previous.offset + previous.length, length: 0, content: ',' + newProperty }; + } + else if (parent.children.length === 0) { + edit = { offset: parent.offset + 1, length: 0, content: newProperty }; + } + else { + edit = { offset: parent.offset + 1, length: 0, content: newProperty + ',' }; + } + return withFormatting(text, edit, options); + } + } + else if (parent.type === 'array' && typeof lastSegment === 'number' && Array.isArray(parent.children)) { + const insertIndex = lastSegment; + if (insertIndex === -1) { + // Insert + const newProperty = `${JSON.stringify(value)}`; + let edit; + if (parent.children.length === 0) { + edit = { offset: parent.offset + 1, length: 0, content: newProperty }; + } + else { + const previous = parent.children[parent.children.length - 1]; + edit = { offset: previous.offset + previous.length, length: 0, content: ',' + newProperty }; + } + return withFormatting(text, edit, options); + } + else if (value === void 0 && parent.children.length >= 0) { + // Removal + const removalIndex = lastSegment; + const toRemove = parent.children[removalIndex]; + let edit; + if (parent.children.length === 1) { + // only item + edit = { offset: parent.offset + 1, length: parent.length - 2, content: '' }; + } + else if (parent.children.length - 1 === removalIndex) { + // last item + let previous = parent.children[removalIndex - 1]; + let offset = previous.offset + previous.length; + let parentEndOffset = parent.offset + parent.length; + edit = { offset, length: parentEndOffset - 2 - offset, content: '' }; + } + else { + edit = { offset: toRemove.offset, length: parent.children[removalIndex + 1].offset - toRemove.offset, content: '' }; + } + return withFormatting(text, edit, options); + } + else if (value !== void 0) { + let edit; + const newProperty = `${JSON.stringify(value)}`; + if (!options.isArrayInsertion && parent.children.length > lastSegment) { + const toModify = parent.children[lastSegment]; + edit = { offset: toModify.offset, length: toModify.length, content: newProperty }; + } + else if (parent.children.length === 0 || lastSegment === 0) { + edit = { offset: parent.offset + 1, length: 0, content: parent.children.length === 0 ? newProperty : newProperty + ',' }; + } + else { + const index = lastSegment > parent.children.length ? parent.children.length : lastSegment; + const previous = parent.children[index - 1]; + edit = { offset: previous.offset + previous.length, length: 0, content: ',' + newProperty }; + } + return withFormatting(text, edit, options); + } + else { + throw new Error(`Can not ${value === void 0 ? 'remove' : (options.isArrayInsertion ? 'insert' : 'modify')} Array index ${insertIndex} as length is not sufficient`); + } + } + else { + throw new Error(`Can not add ${typeof lastSegment !== 'number' ? 'index' : 'property'} to parent of type ${parent.type}`); + } +} +function withFormatting(text, edit, options) { + if (!options.formattingOptions) { + return [edit]; + } + // apply the edit + let newText = applyEdit(text, edit); + // format the new text + let begin = edit.offset; + let end = edit.offset + edit.content.length; + if (edit.length === 0 || edit.content.length === 0) { // insert or remove + while (begin > 0 && !isEOL(newText, begin - 1)) { + begin--; + } + while (end < newText.length && !isEOL(newText, end)) { + end++; + } + } + const edits = format(newText, { offset: begin, length: end - begin }, { ...options.formattingOptions, keepLines: false }); + // apply the formatting edits and track the begin and end offsets of the changes + for (let i = edits.length - 1; i >= 0; i--) { + const edit = edits[i]; + newText = applyEdit(newText, edit); + begin = Math.min(begin, edit.offset); + end = Math.max(end, edit.offset + edit.length); + end += edit.content.length - edit.length; + } + // create a single edit with all changes + const editLength = text.length - (newText.length - end) - begin; + return [{ offset: begin, length: editLength, content: newText.substring(begin, end) }]; +} +export function applyEdit(text, edit) { + return text.substring(0, edit.offset) + edit.content + text.substring(edit.offset + edit.length); +} +export function isWS(text, offset) { + return '\r\n \t'.indexOf(text.charAt(offset)) !== -1; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/format.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/format.js" index bca40f2e9cd177c860c7fb84564dfae6d11c261a..8663a1f385b08ddb8d2cc32bd3fc793b6751737c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/format.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/format.js" @@ -1,3 +1,261 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e57dee56700a844b18dea11548f9ba42b17bc857bde5bcd39554af06ca95bb1f -size 11098 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +'use strict'; +import { createScanner } from './scanner'; +import { cachedSpaces, cachedBreakLinesWithSpaces, supportedEols } from './string-intern'; +export function format(documentText, range, options) { + let initialIndentLevel; + let formatText; + let formatTextStart; + let rangeStart; + let rangeEnd; + if (range) { + rangeStart = range.offset; + rangeEnd = rangeStart + range.length; + formatTextStart = rangeStart; + while (formatTextStart > 0 && !isEOL(documentText, formatTextStart - 1)) { + formatTextStart--; + } + let endOffset = rangeEnd; + while (endOffset < documentText.length && !isEOL(documentText, endOffset)) { + endOffset++; + } + formatText = documentText.substring(formatTextStart, endOffset); + initialIndentLevel = computeIndentLevel(formatText, options); + } + else { + formatText = documentText; + initialIndentLevel = 0; + formatTextStart = 0; + rangeStart = 0; + rangeEnd = documentText.length; + } + const eol = getEOL(options, documentText); + const eolFastPathSupported = supportedEols.includes(eol); + let numberLineBreaks = 0; + let indentLevel = 0; + let indentValue; + if (options.insertSpaces) { + indentValue = cachedSpaces[options.tabSize || 4] ?? repeat(cachedSpaces[1], options.tabSize || 4); + } + else { + indentValue = '\t'; + } + const indentType = indentValue === '\t' ? '\t' : ' '; + let scanner = createScanner(formatText, false); + let hasError = false; + function newLinesAndIndent() { + if (numberLineBreaks > 1) { + return repeat(eol, numberLineBreaks) + repeat(indentValue, initialIndentLevel + indentLevel); + } + const amountOfSpaces = indentValue.length * (initialIndentLevel + indentLevel); + if (!eolFastPathSupported || amountOfSpaces > cachedBreakLinesWithSpaces[indentType][eol].length) { + return eol + repeat(indentValue, initialIndentLevel + indentLevel); + } + if (amountOfSpaces <= 0) { + return eol; + } + return cachedBreakLinesWithSpaces[indentType][eol][amountOfSpaces]; + } + function scanNext() { + let token = scanner.scan(); + numberLineBreaks = 0; + while (token === 15 /* SyntaxKind.Trivia */ || token === 14 /* SyntaxKind.LineBreakTrivia */) { + if (token === 14 /* SyntaxKind.LineBreakTrivia */ && options.keepLines) { + numberLineBreaks += 1; + } + else if (token === 14 /* SyntaxKind.LineBreakTrivia */) { + numberLineBreaks = 1; + } + token = scanner.scan(); + } + hasError = token === 16 /* SyntaxKind.Unknown */ || scanner.getTokenError() !== 0 /* ScanError.None */; + return token; + } + const editOperations = []; + function addEdit(text, startOffset, endOffset) { + if (!hasError && (!range || (startOffset < rangeEnd && endOffset > rangeStart)) && documentText.substring(startOffset, endOffset) !== text) { + editOperations.push({ offset: startOffset, length: endOffset - startOffset, content: text }); + } + } + let firstToken = scanNext(); + if (options.keepLines && numberLineBreaks > 0) { + addEdit(repeat(eol, numberLineBreaks), 0, 0); + } + if (firstToken !== 17 /* SyntaxKind.EOF */) { + let firstTokenStart = scanner.getTokenOffset() + formatTextStart; + let initialIndent = (indentValue.length * initialIndentLevel < 20) && options.insertSpaces + ? cachedSpaces[indentValue.length * initialIndentLevel] + : repeat(indentValue, initialIndentLevel); + addEdit(initialIndent, formatTextStart, firstTokenStart); + } + while (firstToken !== 17 /* SyntaxKind.EOF */) { + let firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart; + let secondToken = scanNext(); + let replaceContent = ''; + let needsLineBreak = false; + while (numberLineBreaks === 0 && (secondToken === 12 /* SyntaxKind.LineCommentTrivia */ || secondToken === 13 /* SyntaxKind.BlockCommentTrivia */)) { + let commentTokenStart = scanner.getTokenOffset() + formatTextStart; + addEdit(cachedSpaces[1], firstTokenEnd, commentTokenStart); + firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart; + needsLineBreak = secondToken === 12 /* SyntaxKind.LineCommentTrivia */; + replaceContent = needsLineBreak ? newLinesAndIndent() : ''; + secondToken = scanNext(); + } + if (secondToken === 2 /* SyntaxKind.CloseBraceToken */) { + if (firstToken !== 1 /* SyntaxKind.OpenBraceToken */) { + indentLevel--; + } + ; + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines && firstToken !== 1 /* SyntaxKind.OpenBraceToken */) { + replaceContent = newLinesAndIndent(); + } + else if (options.keepLines) { + replaceContent = cachedSpaces[1]; + } + } + else if (secondToken === 4 /* SyntaxKind.CloseBracketToken */) { + if (firstToken !== 3 /* SyntaxKind.OpenBracketToken */) { + indentLevel--; + } + ; + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines && firstToken !== 3 /* SyntaxKind.OpenBracketToken */) { + replaceContent = newLinesAndIndent(); + } + else if (options.keepLines) { + replaceContent = cachedSpaces[1]; + } + } + else { + switch (firstToken) { + case 3 /* SyntaxKind.OpenBracketToken */: + case 1 /* SyntaxKind.OpenBraceToken */: + indentLevel++; + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) { + replaceContent = newLinesAndIndent(); + } + else { + replaceContent = cachedSpaces[1]; + } + break; + case 5 /* SyntaxKind.CommaToken */: + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) { + replaceContent = newLinesAndIndent(); + } + else { + replaceContent = cachedSpaces[1]; + } + break; + case 12 /* SyntaxKind.LineCommentTrivia */: + replaceContent = newLinesAndIndent(); + break; + case 13 /* SyntaxKind.BlockCommentTrivia */: + if (numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else if (!needsLineBreak) { + replaceContent = cachedSpaces[1]; + } + break; + case 6 /* SyntaxKind.ColonToken */: + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else if (!needsLineBreak) { + replaceContent = cachedSpaces[1]; + } + break; + case 10 /* SyntaxKind.StringLiteral */: + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else if (secondToken === 6 /* SyntaxKind.ColonToken */ && !needsLineBreak) { + replaceContent = ''; + } + break; + case 7 /* SyntaxKind.NullKeyword */: + case 8 /* SyntaxKind.TrueKeyword */: + case 9 /* SyntaxKind.FalseKeyword */: + case 11 /* SyntaxKind.NumericLiteral */: + case 2 /* SyntaxKind.CloseBraceToken */: + case 4 /* SyntaxKind.CloseBracketToken */: + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else { + if ((secondToken === 12 /* SyntaxKind.LineCommentTrivia */ || secondToken === 13 /* SyntaxKind.BlockCommentTrivia */) && !needsLineBreak) { + replaceContent = cachedSpaces[1]; + } + else if (secondToken !== 5 /* SyntaxKind.CommaToken */ && secondToken !== 17 /* SyntaxKind.EOF */) { + hasError = true; + } + } + break; + case 16 /* SyntaxKind.Unknown */: + hasError = true; + break; + } + if (numberLineBreaks > 0 && (secondToken === 12 /* SyntaxKind.LineCommentTrivia */ || secondToken === 13 /* SyntaxKind.BlockCommentTrivia */)) { + replaceContent = newLinesAndIndent(); + } + } + if (secondToken === 17 /* SyntaxKind.EOF */) { + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else { + replaceContent = options.insertFinalNewline ? eol : ''; + } + } + const secondTokenStart = scanner.getTokenOffset() + formatTextStart; + addEdit(replaceContent, firstTokenEnd, secondTokenStart); + firstToken = secondToken; + } + return editOperations; +} +function repeat(s, count) { + let result = ''; + for (let i = 0; i < count; i++) { + result += s; + } + return result; +} +function computeIndentLevel(content, options) { + let i = 0; + let nChars = 0; + const tabSize = options.tabSize || 4; + while (i < content.length) { + let ch = content.charAt(i); + if (ch === cachedSpaces[1]) { + nChars++; + } + else if (ch === '\t') { + nChars += tabSize; + } + else { + break; + } + i++; + } + return Math.floor(nChars / tabSize); +} +function getEOL(options, text) { + for (let i = 0; i < text.length; i++) { + const ch = text.charAt(i); + if (ch === '\r') { + if (i + 1 < text.length && text.charAt(i + 1) === '\n') { + return '\r\n'; + } + return '\r'; + } + else if (ch === '\n') { + return '\n'; + } + } + return (options && options.eol) || '\n'; +} +export function isEOL(text, offset) { + return '\r\n'.indexOf(text.charAt(offset)) !== -1; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/parser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/parser.js" index a2e12bf8460a91fa1af7170f654333edfa340fd8..ea1ac2ed37bf0b4a90d9405066c0a9040a040dff 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/parser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/parser.js" @@ -1,3 +1,632 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd3807c61549999adfec191a4131c71f628284e63c85e8dad2b642f283e64ba5 -size 24708 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +'use strict'; +import { createScanner } from './scanner'; +var ParseOptions; +(function (ParseOptions) { + ParseOptions.DEFAULT = { + allowTrailingComma: false + }; +})(ParseOptions || (ParseOptions = {})); +/** + * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. + */ +export function getLocation(text, position) { + const segments = []; // strings or numbers + const earlyReturnException = new Object(); + let previousNode = undefined; + const previousNodeInst = { + value: {}, + offset: 0, + length: 0, + type: 'object', + parent: undefined + }; + let isAtPropertyKey = false; + function setPreviousNode(value, offset, length, type) { + previousNodeInst.value = value; + previousNodeInst.offset = offset; + previousNodeInst.length = length; + previousNodeInst.type = type; + previousNodeInst.colonOffset = undefined; + previousNode = previousNodeInst; + } + try { + visit(text, { + onObjectBegin: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + isAtPropertyKey = position > offset; + segments.push(''); // push a placeholder (will be replaced) + }, + onObjectProperty: (name, offset, length) => { + if (position < offset) { + throw earlyReturnException; + } + setPreviousNode(name, offset, length, 'property'); + segments[segments.length - 1] = name; + if (position <= offset + length) { + throw earlyReturnException; + } + }, + onObjectEnd: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + segments.pop(); + }, + onArrayBegin: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + segments.push(0); + }, + onArrayEnd: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + segments.pop(); + }, + onLiteralValue: (value, offset, length) => { + if (position < offset) { + throw earlyReturnException; + } + setPreviousNode(value, offset, length, getNodeType(value)); + if (position <= offset + length) { + throw earlyReturnException; + } + }, + onSeparator: (sep, offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + if (sep === ':' && previousNode && previousNode.type === 'property') { + previousNode.colonOffset = offset; + isAtPropertyKey = false; + previousNode = undefined; + } + else if (sep === ',') { + const last = segments[segments.length - 1]; + if (typeof last === 'number') { + segments[segments.length - 1] = last + 1; + } + else { + isAtPropertyKey = true; + segments[segments.length - 1] = ''; + } + previousNode = undefined; + } + } + }); + } + catch (e) { + if (e !== earlyReturnException) { + throw e; + } + } + return { + path: segments, + previousNode, + isAtPropertyKey, + matches: (pattern) => { + let k = 0; + for (let i = 0; k < pattern.length && i < segments.length; i++) { + if (pattern[k] === segments[i] || pattern[k] === '*') { + k++; + } + else if (pattern[k] !== '**') { + return false; + } + } + return k === pattern.length; + } + }; +} +/** + * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + * Therefore always check the errors list to find out if the input was valid. + */ +export function parse(text, errors = [], options = ParseOptions.DEFAULT) { + let currentProperty = null; + let currentParent = []; + const previousParents = []; + function onValue(value) { + if (Array.isArray(currentParent)) { + currentParent.push(value); + } + else if (currentProperty !== null) { + currentParent[currentProperty] = value; + } + } + const visitor = { + onObjectBegin: () => { + const object = {}; + onValue(object); + previousParents.push(currentParent); + currentParent = object; + currentProperty = null; + }, + onObjectProperty: (name) => { + currentProperty = name; + }, + onObjectEnd: () => { + currentParent = previousParents.pop(); + }, + onArrayBegin: () => { + const array = []; + onValue(array); + previousParents.push(currentParent); + currentParent = array; + currentProperty = null; + }, + onArrayEnd: () => { + currentParent = previousParents.pop(); + }, + onLiteralValue: onValue, + onError: (error, offset, length) => { + errors.push({ error, offset, length }); + } + }; + visit(text, visitor, options); + return currentParent[0]; +} +/** + * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + */ +export function parseTree(text, errors = [], options = ParseOptions.DEFAULT) { + let currentParent = { type: 'array', offset: -1, length: -1, children: [], parent: undefined }; // artificial root + function ensurePropertyComplete(endOffset) { + if (currentParent.type === 'property') { + currentParent.length = endOffset - currentParent.offset; + currentParent = currentParent.parent; + } + } + function onValue(valueNode) { + currentParent.children.push(valueNode); + return valueNode; + } + const visitor = { + onObjectBegin: (offset) => { + currentParent = onValue({ type: 'object', offset, length: -1, parent: currentParent, children: [] }); + }, + onObjectProperty: (name, offset, length) => { + currentParent = onValue({ type: 'property', offset, length: -1, parent: currentParent, children: [] }); + currentParent.children.push({ type: 'string', value: name, offset, length, parent: currentParent }); + }, + onObjectEnd: (offset, length) => { + ensurePropertyComplete(offset + length); // in case of a missing value for a property: make sure property is complete + currentParent.length = offset + length - currentParent.offset; + currentParent = currentParent.parent; + ensurePropertyComplete(offset + length); + }, + onArrayBegin: (offset, length) => { + currentParent = onValue({ type: 'array', offset, length: -1, parent: currentParent, children: [] }); + }, + onArrayEnd: (offset, length) => { + currentParent.length = offset + length - currentParent.offset; + currentParent = currentParent.parent; + ensurePropertyComplete(offset + length); + }, + onLiteralValue: (value, offset, length) => { + onValue({ type: getNodeType(value), offset, length, parent: currentParent, value }); + ensurePropertyComplete(offset + length); + }, + onSeparator: (sep, offset, length) => { + if (currentParent.type === 'property') { + if (sep === ':') { + currentParent.colonOffset = offset; + } + else if (sep === ',') { + ensurePropertyComplete(offset); + } + } + }, + onError: (error, offset, length) => { + errors.push({ error, offset, length }); + } + }; + visit(text, visitor, options); + const result = currentParent.children[0]; + if (result) { + delete result.parent; + } + return result; +} +/** + * Finds the node at the given path in a JSON DOM. + */ +export function findNodeAtLocation(root, path) { + if (!root) { + return undefined; + } + let node = root; + for (let segment of path) { + if (typeof segment === 'string') { + if (node.type !== 'object' || !Array.isArray(node.children)) { + return undefined; + } + let found = false; + for (const propertyNode of node.children) { + if (Array.isArray(propertyNode.children) && propertyNode.children[0].value === segment && propertyNode.children.length === 2) { + node = propertyNode.children[1]; + found = true; + break; + } + } + if (!found) { + return undefined; + } + } + else { + const index = segment; + if (node.type !== 'array' || index < 0 || !Array.isArray(node.children) || index >= node.children.length) { + return undefined; + } + node = node.children[index]; + } + } + return node; +} +/** + * Gets the JSON path of the given JSON DOM node + */ +export function getNodePath(node) { + if (!node.parent || !node.parent.children) { + return []; + } + const path = getNodePath(node.parent); + if (node.parent.type === 'property') { + const key = node.parent.children[0].value; + path.push(key); + } + else if (node.parent.type === 'array') { + const index = node.parent.children.indexOf(node); + if (index !== -1) { + path.push(index); + } + } + return path; +} +/** + * Evaluates the JavaScript object of the given JSON DOM node + */ +export function getNodeValue(node) { + switch (node.type) { + case 'array': + return node.children.map(getNodeValue); + case 'object': + const obj = Object.create(null); + for (let prop of node.children) { + const valueNode = prop.children[1]; + if (valueNode) { + obj[prop.children[0].value] = getNodeValue(valueNode); + } + } + return obj; + case 'null': + case 'string': + case 'number': + case 'boolean': + return node.value; + default: + return undefined; + } +} +export function contains(node, offset, includeRightBound = false) { + return (offset >= node.offset && offset < (node.offset + node.length)) || includeRightBound && (offset === (node.offset + node.length)); +} +/** + * Finds the most inner node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. + */ +export function findNodeAtOffset(node, offset, includeRightBound = false) { + if (contains(node, offset, includeRightBound)) { + const children = node.children; + if (Array.isArray(children)) { + for (let i = 0; i < children.length && children[i].offset <= offset; i++) { + const item = findNodeAtOffset(children[i], offset, includeRightBound); + if (item) { + return item; + } + } + } + return node; + } + return undefined; +} +/** + * Parses the given text and invokes the visitor functions for each object, array and literal reached. + */ +export function visit(text, visitor, options = ParseOptions.DEFAULT) { + const _scanner = createScanner(text, false); + // Important: Only pass copies of this to visitor functions to prevent accidental modification, and + // to not affect visitor functions which stored a reference to a previous JSONPath + const _jsonPath = []; + function toNoArgVisit(visitFunction) { + return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true; + } + function toNoArgVisitWithPath(visitFunction) { + return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true; + } + function toOneArgVisit(visitFunction) { + return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true; + } + function toOneArgVisitWithPath(visitFunction) { + return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true; + } + const onObjectBegin = toNoArgVisitWithPath(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toNoArgVisit(visitor.onObjectEnd), onArrayBegin = toNoArgVisitWithPath(visitor.onArrayBegin), onArrayEnd = toNoArgVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError); + const disallowComments = options && options.disallowComments; + const allowTrailingComma = options && options.allowTrailingComma; + function scanNext() { + while (true) { + const token = _scanner.scan(); + switch (_scanner.getTokenError()) { + case 4 /* ScanError.InvalidUnicode */: + handleError(14 /* ParseErrorCode.InvalidUnicode */); + break; + case 5 /* ScanError.InvalidEscapeCharacter */: + handleError(15 /* ParseErrorCode.InvalidEscapeCharacter */); + break; + case 3 /* ScanError.UnexpectedEndOfNumber */: + handleError(13 /* ParseErrorCode.UnexpectedEndOfNumber */); + break; + case 1 /* ScanError.UnexpectedEndOfComment */: + if (!disallowComments) { + handleError(11 /* ParseErrorCode.UnexpectedEndOfComment */); + } + break; + case 2 /* ScanError.UnexpectedEndOfString */: + handleError(12 /* ParseErrorCode.UnexpectedEndOfString */); + break; + case 6 /* ScanError.InvalidCharacter */: + handleError(16 /* ParseErrorCode.InvalidCharacter */); + break; + } + switch (token) { + case 12 /* SyntaxKind.LineCommentTrivia */: + case 13 /* SyntaxKind.BlockCommentTrivia */: + if (disallowComments) { + handleError(10 /* ParseErrorCode.InvalidCommentToken */); + } + else { + onComment(); + } + break; + case 16 /* SyntaxKind.Unknown */: + handleError(1 /* ParseErrorCode.InvalidSymbol */); + break; + case 15 /* SyntaxKind.Trivia */: + case 14 /* SyntaxKind.LineBreakTrivia */: + break; + default: + return token; + } + } + } + function handleError(error, skipUntilAfter = [], skipUntil = []) { + onError(error); + if (skipUntilAfter.length + skipUntil.length > 0) { + let token = _scanner.getToken(); + while (token !== 17 /* SyntaxKind.EOF */) { + if (skipUntilAfter.indexOf(token) !== -1) { + scanNext(); + break; + } + else if (skipUntil.indexOf(token) !== -1) { + break; + } + token = scanNext(); + } + } + } + function parseString(isValue) { + const value = _scanner.getTokenValue(); + if (isValue) { + onLiteralValue(value); + } + else { + onObjectProperty(value); + // add property name afterwards + _jsonPath.push(value); + } + scanNext(); + return true; + } + function parseLiteral() { + switch (_scanner.getToken()) { + case 11 /* SyntaxKind.NumericLiteral */: + const tokenValue = _scanner.getTokenValue(); + let value = Number(tokenValue); + if (isNaN(value)) { + handleError(2 /* ParseErrorCode.InvalidNumberFormat */); + value = 0; + } + onLiteralValue(value); + break; + case 7 /* SyntaxKind.NullKeyword */: + onLiteralValue(null); + break; + case 8 /* SyntaxKind.TrueKeyword */: + onLiteralValue(true); + break; + case 9 /* SyntaxKind.FalseKeyword */: + onLiteralValue(false); + break; + default: + return false; + } + scanNext(); + return true; + } + function parseProperty() { + if (_scanner.getToken() !== 10 /* SyntaxKind.StringLiteral */) { + handleError(3 /* ParseErrorCode.PropertyNameExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + return false; + } + parseString(false); + if (_scanner.getToken() === 6 /* SyntaxKind.ColonToken */) { + onSeparator(':'); + scanNext(); // consume colon + if (!parseValue()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + } + } + else { + handleError(5 /* ParseErrorCode.ColonExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + } + _jsonPath.pop(); // remove processed property name + return true; + } + function parseObject() { + onObjectBegin(); + scanNext(); // consume open brace + let needsComma = false; + while (_scanner.getToken() !== 2 /* SyntaxKind.CloseBraceToken */ && _scanner.getToken() !== 17 /* SyntaxKind.EOF */) { + if (_scanner.getToken() === 5 /* SyntaxKind.CommaToken */) { + if (!needsComma) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + } + onSeparator(','); + scanNext(); // consume comma + if (_scanner.getToken() === 2 /* SyntaxKind.CloseBraceToken */ && allowTrailingComma) { + break; + } + } + else if (needsComma) { + handleError(6 /* ParseErrorCode.CommaExpected */, [], []); + } + if (!parseProperty()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + } + needsComma = true; + } + onObjectEnd(); + if (_scanner.getToken() !== 2 /* SyntaxKind.CloseBraceToken */) { + handleError(7 /* ParseErrorCode.CloseBraceExpected */, [2 /* SyntaxKind.CloseBraceToken */], []); + } + else { + scanNext(); // consume close brace + } + return true; + } + function parseArray() { + onArrayBegin(); + scanNext(); // consume open bracket + let isFirstElement = true; + let needsComma = false; + while (_scanner.getToken() !== 4 /* SyntaxKind.CloseBracketToken */ && _scanner.getToken() !== 17 /* SyntaxKind.EOF */) { + if (_scanner.getToken() === 5 /* SyntaxKind.CommaToken */) { + if (!needsComma) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + } + onSeparator(','); + scanNext(); // consume comma + if (_scanner.getToken() === 4 /* SyntaxKind.CloseBracketToken */ && allowTrailingComma) { + break; + } + } + else if (needsComma) { + handleError(6 /* ParseErrorCode.CommaExpected */, [], []); + } + if (isFirstElement) { + _jsonPath.push(0); + isFirstElement = false; + } + else { + _jsonPath[_jsonPath.length - 1]++; + } + if (!parseValue()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], [4 /* SyntaxKind.CloseBracketToken */, 5 /* SyntaxKind.CommaToken */]); + } + needsComma = true; + } + onArrayEnd(); + if (!isFirstElement) { + _jsonPath.pop(); // remove array index + } + if (_scanner.getToken() !== 4 /* SyntaxKind.CloseBracketToken */) { + handleError(8 /* ParseErrorCode.CloseBracketExpected */, [4 /* SyntaxKind.CloseBracketToken */], []); + } + else { + scanNext(); // consume close bracket + } + return true; + } + function parseValue() { + switch (_scanner.getToken()) { + case 3 /* SyntaxKind.OpenBracketToken */: + return parseArray(); + case 1 /* SyntaxKind.OpenBraceToken */: + return parseObject(); + case 10 /* SyntaxKind.StringLiteral */: + return parseString(true); + default: + return parseLiteral(); + } + } + scanNext(); + if (_scanner.getToken() === 17 /* SyntaxKind.EOF */) { + if (options.allowEmptyContent) { + return true; + } + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + return false; + } + if (!parseValue()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + return false; + } + if (_scanner.getToken() !== 17 /* SyntaxKind.EOF */) { + handleError(9 /* ParseErrorCode.EndOfFileExpected */, [], []); + } + return true; +} +/** + * Takes JSON with JavaScript-style comments and remove + * them. Optionally replaces every none-newline character + * of comments with a replaceCharacter + */ +export function stripComments(text, replaceCh) { + let _scanner = createScanner(text), parts = [], kind, offset = 0, pos; + do { + pos = _scanner.getPosition(); + kind = _scanner.scan(); + switch (kind) { + case 12 /* SyntaxKind.LineCommentTrivia */: + case 13 /* SyntaxKind.BlockCommentTrivia */: + case 17 /* SyntaxKind.EOF */: + if (offset !== pos) { + parts.push(text.substring(offset, pos)); + } + if (replaceCh !== undefined) { + parts.push(_scanner.getTokenValue().replace(/[^\r\n]/g, replaceCh)); + } + offset = _scanner.getPosition(); + break; + } + } while (kind !== 17 /* SyntaxKind.EOF */); + return parts.join(''); +} +export function getNodeType(value) { + switch (typeof value) { + case 'boolean': return 'boolean'; + case 'number': return 'number'; + case 'string': return 'string'; + case 'object': { + if (!value) { + return 'null'; + } + else if (Array.isArray(value)) { + return 'array'; + } + return 'object'; + } + default: return 'null'; + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/scanner.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/scanner.js" index b78f2f3853661418a9ba60609997bfe30ffef9d8..e84942c122b7bca38dddd177a519d7a17ad4fcef 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/scanner.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/scanner.js" @@ -1,3 +1,443 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e737e1774f87ca88d85d73e3bafff688b78cac06b81c53b96c54da8b3ca86cd9 -size 19188 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +'use strict'; +/** + * Creates a JSON scanner on the given text. + * If ignoreTrivia is set, whitespaces or comments are ignored. + */ +export function createScanner(text, ignoreTrivia = false) { + const len = text.length; + let pos = 0, value = '', tokenOffset = 0, token = 16 /* SyntaxKind.Unknown */, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0 /* ScanError.None */; + function scanHexDigits(count, exact) { + let digits = 0; + let value = 0; + while (digits < count || !exact) { + let ch = text.charCodeAt(pos); + if (ch >= 48 /* CharacterCodes._0 */ && ch <= 57 /* CharacterCodes._9 */) { + value = value * 16 + ch - 48 /* CharacterCodes._0 */; + } + else if (ch >= 65 /* CharacterCodes.A */ && ch <= 70 /* CharacterCodes.F */) { + value = value * 16 + ch - 65 /* CharacterCodes.A */ + 10; + } + else if (ch >= 97 /* CharacterCodes.a */ && ch <= 102 /* CharacterCodes.f */) { + value = value * 16 + ch - 97 /* CharacterCodes.a */ + 10; + } + else { + break; + } + pos++; + digits++; + } + if (digits < count) { + value = -1; + } + return value; + } + function setPosition(newPosition) { + pos = newPosition; + value = ''; + tokenOffset = 0; + token = 16 /* SyntaxKind.Unknown */; + scanError = 0 /* ScanError.None */; + } + function scanNumber() { + let start = pos; + if (text.charCodeAt(pos) === 48 /* CharacterCodes._0 */) { + pos++; + } + else { + pos++; + while (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + } + } + if (pos < text.length && text.charCodeAt(pos) === 46 /* CharacterCodes.dot */) { + pos++; + if (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + while (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + } + } + else { + scanError = 3 /* ScanError.UnexpectedEndOfNumber */; + return text.substring(start, pos); + } + } + let end = pos; + if (pos < text.length && (text.charCodeAt(pos) === 69 /* CharacterCodes.E */ || text.charCodeAt(pos) === 101 /* CharacterCodes.e */)) { + pos++; + if (pos < text.length && text.charCodeAt(pos) === 43 /* CharacterCodes.plus */ || text.charCodeAt(pos) === 45 /* CharacterCodes.minus */) { + pos++; + } + if (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + while (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + } + end = pos; + } + else { + scanError = 3 /* ScanError.UnexpectedEndOfNumber */; + } + } + return text.substring(start, end); + } + function scanString() { + let result = '', start = pos; + while (true) { + if (pos >= len) { + result += text.substring(start, pos); + scanError = 2 /* ScanError.UnexpectedEndOfString */; + break; + } + const ch = text.charCodeAt(pos); + if (ch === 34 /* CharacterCodes.doubleQuote */) { + result += text.substring(start, pos); + pos++; + break; + } + if (ch === 92 /* CharacterCodes.backslash */) { + result += text.substring(start, pos); + pos++; + if (pos >= len) { + scanError = 2 /* ScanError.UnexpectedEndOfString */; + break; + } + const ch2 = text.charCodeAt(pos++); + switch (ch2) { + case 34 /* CharacterCodes.doubleQuote */: + result += '\"'; + break; + case 92 /* CharacterCodes.backslash */: + result += '\\'; + break; + case 47 /* CharacterCodes.slash */: + result += '/'; + break; + case 98 /* CharacterCodes.b */: + result += '\b'; + break; + case 102 /* CharacterCodes.f */: + result += '\f'; + break; + case 110 /* CharacterCodes.n */: + result += '\n'; + break; + case 114 /* CharacterCodes.r */: + result += '\r'; + break; + case 116 /* CharacterCodes.t */: + result += '\t'; + break; + case 117 /* CharacterCodes.u */: + const ch3 = scanHexDigits(4, true); + if (ch3 >= 0) { + result += String.fromCharCode(ch3); + } + else { + scanError = 4 /* ScanError.InvalidUnicode */; + } + break; + default: + scanError = 5 /* ScanError.InvalidEscapeCharacter */; + } + start = pos; + continue; + } + if (ch >= 0 && ch <= 0x1f) { + if (isLineBreak(ch)) { + result += text.substring(start, pos); + scanError = 2 /* ScanError.UnexpectedEndOfString */; + break; + } + else { + scanError = 6 /* ScanError.InvalidCharacter */; + // mark as error but continue with string + } + } + pos++; + } + return result; + } + function scanNext() { + value = ''; + scanError = 0 /* ScanError.None */; + tokenOffset = pos; + lineStartOffset = lineNumber; + prevTokenLineStartOffset = tokenLineStartOffset; + if (pos >= len) { + // at the end + tokenOffset = len; + return token = 17 /* SyntaxKind.EOF */; + } + let code = text.charCodeAt(pos); + // trivia: whitespace + if (isWhiteSpace(code)) { + do { + pos++; + value += String.fromCharCode(code); + code = text.charCodeAt(pos); + } while (isWhiteSpace(code)); + return token = 15 /* SyntaxKind.Trivia */; + } + // trivia: newlines + if (isLineBreak(code)) { + pos++; + value += String.fromCharCode(code); + if (code === 13 /* CharacterCodes.carriageReturn */ && text.charCodeAt(pos) === 10 /* CharacterCodes.lineFeed */) { + pos++; + value += '\n'; + } + lineNumber++; + tokenLineStartOffset = pos; + return token = 14 /* SyntaxKind.LineBreakTrivia */; + } + switch (code) { + // tokens: []{}:, + case 123 /* CharacterCodes.openBrace */: + pos++; + return token = 1 /* SyntaxKind.OpenBraceToken */; + case 125 /* CharacterCodes.closeBrace */: + pos++; + return token = 2 /* SyntaxKind.CloseBraceToken */; + case 91 /* CharacterCodes.openBracket */: + pos++; + return token = 3 /* SyntaxKind.OpenBracketToken */; + case 93 /* CharacterCodes.closeBracket */: + pos++; + return token = 4 /* SyntaxKind.CloseBracketToken */; + case 58 /* CharacterCodes.colon */: + pos++; + return token = 6 /* SyntaxKind.ColonToken */; + case 44 /* CharacterCodes.comma */: + pos++; + return token = 5 /* SyntaxKind.CommaToken */; + // strings + case 34 /* CharacterCodes.doubleQuote */: + pos++; + value = scanString(); + return token = 10 /* SyntaxKind.StringLiteral */; + // comments + case 47 /* CharacterCodes.slash */: + const start = pos - 1; + // Single-line comment + if (text.charCodeAt(pos + 1) === 47 /* CharacterCodes.slash */) { + pos += 2; + while (pos < len) { + if (isLineBreak(text.charCodeAt(pos))) { + break; + } + pos++; + } + value = text.substring(start, pos); + return token = 12 /* SyntaxKind.LineCommentTrivia */; + } + // Multi-line comment + if (text.charCodeAt(pos + 1) === 42 /* CharacterCodes.asterisk */) { + pos += 2; + const safeLength = len - 1; // For lookahead. + let commentClosed = false; + while (pos < safeLength) { + const ch = text.charCodeAt(pos); + if (ch === 42 /* CharacterCodes.asterisk */ && text.charCodeAt(pos + 1) === 47 /* CharacterCodes.slash */) { + pos += 2; + commentClosed = true; + break; + } + pos++; + if (isLineBreak(ch)) { + if (ch === 13 /* CharacterCodes.carriageReturn */ && text.charCodeAt(pos) === 10 /* CharacterCodes.lineFeed */) { + pos++; + } + lineNumber++; + tokenLineStartOffset = pos; + } + } + if (!commentClosed) { + pos++; + scanError = 1 /* ScanError.UnexpectedEndOfComment */; + } + value = text.substring(start, pos); + return token = 13 /* SyntaxKind.BlockCommentTrivia */; + } + // just a single slash + value += String.fromCharCode(code); + pos++; + return token = 16 /* SyntaxKind.Unknown */; + // numbers + case 45 /* CharacterCodes.minus */: + value += String.fromCharCode(code); + pos++; + if (pos === len || !isDigit(text.charCodeAt(pos))) { + return token = 16 /* SyntaxKind.Unknown */; + } + // found a minus, followed by a number so + // we fall through to proceed with scanning + // numbers + case 48 /* CharacterCodes._0 */: + case 49 /* CharacterCodes._1 */: + case 50 /* CharacterCodes._2 */: + case 51 /* CharacterCodes._3 */: + case 52 /* CharacterCodes._4 */: + case 53 /* CharacterCodes._5 */: + case 54 /* CharacterCodes._6 */: + case 55 /* CharacterCodes._7 */: + case 56 /* CharacterCodes._8 */: + case 57 /* CharacterCodes._9 */: + value += scanNumber(); + return token = 11 /* SyntaxKind.NumericLiteral */; + // literals and unknown symbols + default: + // is a literal? Read the full word. + while (pos < len && isUnknownContentCharacter(code)) { + pos++; + code = text.charCodeAt(pos); + } + if (tokenOffset !== pos) { + value = text.substring(tokenOffset, pos); + // keywords: true, false, null + switch (value) { + case 'true': return token = 8 /* SyntaxKind.TrueKeyword */; + case 'false': return token = 9 /* SyntaxKind.FalseKeyword */; + case 'null': return token = 7 /* SyntaxKind.NullKeyword */; + } + return token = 16 /* SyntaxKind.Unknown */; + } + // some + value += String.fromCharCode(code); + pos++; + return token = 16 /* SyntaxKind.Unknown */; + } + } + function isUnknownContentCharacter(code) { + if (isWhiteSpace(code) || isLineBreak(code)) { + return false; + } + switch (code) { + case 125 /* CharacterCodes.closeBrace */: + case 93 /* CharacterCodes.closeBracket */: + case 123 /* CharacterCodes.openBrace */: + case 91 /* CharacterCodes.openBracket */: + case 34 /* CharacterCodes.doubleQuote */: + case 58 /* CharacterCodes.colon */: + case 44 /* CharacterCodes.comma */: + case 47 /* CharacterCodes.slash */: + return false; + } + return true; + } + function scanNextNonTrivia() { + let result; + do { + result = scanNext(); + } while (result >= 12 /* SyntaxKind.LineCommentTrivia */ && result <= 15 /* SyntaxKind.Trivia */); + return result; + } + return { + setPosition: setPosition, + getPosition: () => pos, + scan: ignoreTrivia ? scanNextNonTrivia : scanNext, + getToken: () => token, + getTokenValue: () => value, + getTokenOffset: () => tokenOffset, + getTokenLength: () => pos - tokenOffset, + getTokenStartLine: () => lineStartOffset, + getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset, + getTokenError: () => scanError, + }; +} +function isWhiteSpace(ch) { + return ch === 32 /* CharacterCodes.space */ || ch === 9 /* CharacterCodes.tab */; +} +function isLineBreak(ch) { + return ch === 10 /* CharacterCodes.lineFeed */ || ch === 13 /* CharacterCodes.carriageReturn */; +} +function isDigit(ch) { + return ch >= 48 /* CharacterCodes._0 */ && ch <= 57 /* CharacterCodes._9 */; +} +var CharacterCodes; +(function (CharacterCodes) { + CharacterCodes[CharacterCodes["lineFeed"] = 10] = "lineFeed"; + CharacterCodes[CharacterCodes["carriageReturn"] = 13] = "carriageReturn"; + CharacterCodes[CharacterCodes["space"] = 32] = "space"; + CharacterCodes[CharacterCodes["_0"] = 48] = "_0"; + CharacterCodes[CharacterCodes["_1"] = 49] = "_1"; + CharacterCodes[CharacterCodes["_2"] = 50] = "_2"; + CharacterCodes[CharacterCodes["_3"] = 51] = "_3"; + CharacterCodes[CharacterCodes["_4"] = 52] = "_4"; + CharacterCodes[CharacterCodes["_5"] = 53] = "_5"; + CharacterCodes[CharacterCodes["_6"] = 54] = "_6"; + CharacterCodes[CharacterCodes["_7"] = 55] = "_7"; + CharacterCodes[CharacterCodes["_8"] = 56] = "_8"; + CharacterCodes[CharacterCodes["_9"] = 57] = "_9"; + CharacterCodes[CharacterCodes["a"] = 97] = "a"; + CharacterCodes[CharacterCodes["b"] = 98] = "b"; + CharacterCodes[CharacterCodes["c"] = 99] = "c"; + CharacterCodes[CharacterCodes["d"] = 100] = "d"; + CharacterCodes[CharacterCodes["e"] = 101] = "e"; + CharacterCodes[CharacterCodes["f"] = 102] = "f"; + CharacterCodes[CharacterCodes["g"] = 103] = "g"; + CharacterCodes[CharacterCodes["h"] = 104] = "h"; + CharacterCodes[CharacterCodes["i"] = 105] = "i"; + CharacterCodes[CharacterCodes["j"] = 106] = "j"; + CharacterCodes[CharacterCodes["k"] = 107] = "k"; + CharacterCodes[CharacterCodes["l"] = 108] = "l"; + CharacterCodes[CharacterCodes["m"] = 109] = "m"; + CharacterCodes[CharacterCodes["n"] = 110] = "n"; + CharacterCodes[CharacterCodes["o"] = 111] = "o"; + CharacterCodes[CharacterCodes["p"] = 112] = "p"; + CharacterCodes[CharacterCodes["q"] = 113] = "q"; + CharacterCodes[CharacterCodes["r"] = 114] = "r"; + CharacterCodes[CharacterCodes["s"] = 115] = "s"; + CharacterCodes[CharacterCodes["t"] = 116] = "t"; + CharacterCodes[CharacterCodes["u"] = 117] = "u"; + CharacterCodes[CharacterCodes["v"] = 118] = "v"; + CharacterCodes[CharacterCodes["w"] = 119] = "w"; + CharacterCodes[CharacterCodes["x"] = 120] = "x"; + CharacterCodes[CharacterCodes["y"] = 121] = "y"; + CharacterCodes[CharacterCodes["z"] = 122] = "z"; + CharacterCodes[CharacterCodes["A"] = 65] = "A"; + CharacterCodes[CharacterCodes["B"] = 66] = "B"; + CharacterCodes[CharacterCodes["C"] = 67] = "C"; + CharacterCodes[CharacterCodes["D"] = 68] = "D"; + CharacterCodes[CharacterCodes["E"] = 69] = "E"; + CharacterCodes[CharacterCodes["F"] = 70] = "F"; + CharacterCodes[CharacterCodes["G"] = 71] = "G"; + CharacterCodes[CharacterCodes["H"] = 72] = "H"; + CharacterCodes[CharacterCodes["I"] = 73] = "I"; + CharacterCodes[CharacterCodes["J"] = 74] = "J"; + CharacterCodes[CharacterCodes["K"] = 75] = "K"; + CharacterCodes[CharacterCodes["L"] = 76] = "L"; + CharacterCodes[CharacterCodes["M"] = 77] = "M"; + CharacterCodes[CharacterCodes["N"] = 78] = "N"; + CharacterCodes[CharacterCodes["O"] = 79] = "O"; + CharacterCodes[CharacterCodes["P"] = 80] = "P"; + CharacterCodes[CharacterCodes["Q"] = 81] = "Q"; + CharacterCodes[CharacterCodes["R"] = 82] = "R"; + CharacterCodes[CharacterCodes["S"] = 83] = "S"; + CharacterCodes[CharacterCodes["T"] = 84] = "T"; + CharacterCodes[CharacterCodes["U"] = 85] = "U"; + CharacterCodes[CharacterCodes["V"] = 86] = "V"; + CharacterCodes[CharacterCodes["W"] = 87] = "W"; + CharacterCodes[CharacterCodes["X"] = 88] = "X"; + CharacterCodes[CharacterCodes["Y"] = 89] = "Y"; + CharacterCodes[CharacterCodes["Z"] = 90] = "Z"; + CharacterCodes[CharacterCodes["asterisk"] = 42] = "asterisk"; + CharacterCodes[CharacterCodes["backslash"] = 92] = "backslash"; + CharacterCodes[CharacterCodes["closeBrace"] = 125] = "closeBrace"; + CharacterCodes[CharacterCodes["closeBracket"] = 93] = "closeBracket"; + CharacterCodes[CharacterCodes["colon"] = 58] = "colon"; + CharacterCodes[CharacterCodes["comma"] = 44] = "comma"; + CharacterCodes[CharacterCodes["dot"] = 46] = "dot"; + CharacterCodes[CharacterCodes["doubleQuote"] = 34] = "doubleQuote"; + CharacterCodes[CharacterCodes["minus"] = 45] = "minus"; + CharacterCodes[CharacterCodes["openBrace"] = 123] = "openBrace"; + CharacterCodes[CharacterCodes["openBracket"] = 91] = "openBracket"; + CharacterCodes[CharacterCodes["plus"] = 43] = "plus"; + CharacterCodes[CharacterCodes["slash"] = 47] = "slash"; + CharacterCodes[CharacterCodes["formFeed"] = 12] = "formFeed"; + CharacterCodes[CharacterCodes["tab"] = 9] = "tab"; +})(CharacterCodes || (CharacterCodes = {})); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/string-intern.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/string-intern.js" index 6e06bd79d5eb95196cba4cdd945aa6091b0212ba..2794e2b39325539833035e7a140de17df8b28e93 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/string-intern.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/impl/string-intern.js" @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a0aad3f56c3e0728812c7584568c0ff200bce1ca58cf40e946f01fdb54c5752 -size 1034 +export const cachedSpaces = new Array(20).fill(0).map((_, index) => { + return ' '.repeat(index); +}); +const maxCachedValues = 200; +export const cachedBreakLinesWithSpaces = { + ' ': { + '\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\n' + ' '.repeat(index); + }), + '\r': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r' + ' '.repeat(index); + }), + '\r\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r\n' + ' '.repeat(index); + }), + }, + '\t': { + '\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\n' + '\t'.repeat(index); + }), + '\r': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r' + '\t'.repeat(index); + }), + '\r\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r\n' + '\t'.repeat(index); + }), + } +}; +export const supportedEols = ['\n', '\r', '\r\n']; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.d.ts" index 694be0bd6eeee1b89b92cc30b8110de6532fb4d9..7312a36d4f48d03e354ba9c4e45fc28947d33894 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.d.ts" @@ -1,3 +1,349 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d82dad8d8a312706a9bc240c805088fef713bc71eaa622e55970e251b6c1a0f -size 14314 +/** + * Creates a JSON scanner on the given text. + * If ignoreTrivia is set, whitespaces or comments are ignored. + */ +export declare const createScanner: (text: string, ignoreTrivia?: boolean) => JSONScanner; +export declare const enum ScanError { + None = 0, + UnexpectedEndOfComment = 1, + UnexpectedEndOfString = 2, + UnexpectedEndOfNumber = 3, + InvalidUnicode = 4, + InvalidEscapeCharacter = 5, + InvalidCharacter = 6 +} +export declare const enum SyntaxKind { + OpenBraceToken = 1, + CloseBraceToken = 2, + OpenBracketToken = 3, + CloseBracketToken = 4, + CommaToken = 5, + ColonToken = 6, + NullKeyword = 7, + TrueKeyword = 8, + FalseKeyword = 9, + StringLiteral = 10, + NumericLiteral = 11, + LineCommentTrivia = 12, + BlockCommentTrivia = 13, + LineBreakTrivia = 14, + Trivia = 15, + Unknown = 16, + EOF = 17 +} +/** + * The scanner object, representing a JSON scanner at a position in the input string. + */ +export interface JSONScanner { + /** + * Sets the scan position to a new offset. A call to 'scan' is needed to get the first token. + */ + setPosition(pos: number): void; + /** + * Read the next token. Returns the token code. + */ + scan(): SyntaxKind; + /** + * Returns the zero-based current scan position, which is after the last read token. + */ + getPosition(): number; + /** + * Returns the last read token. + */ + getToken(): SyntaxKind; + /** + * Returns the last read token value. The value for strings is the decoded string content. For numbers it's of type number, for boolean it's true or false. + */ + getTokenValue(): string; + /** + * The zero-based start offset of the last read token. + */ + getTokenOffset(): number; + /** + * The length of the last read token. + */ + getTokenLength(): number; + /** + * The zero-based start line number of the last read token. + */ + getTokenStartLine(): number; + /** + * The zero-based start character (column) of the last read token. + */ + getTokenStartCharacter(): number; + /** + * An error code of the last scan. + */ + getTokenError(): ScanError; +} +/** + * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. + */ +export declare const getLocation: (text: string, position: number) => Location; +/** + * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + * Therefore, always check the errors list to find out if the input was valid. + */ +export declare const parse: (text: string, errors?: ParseError[], options?: ParseOptions) => any; +/** + * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + */ +export declare const parseTree: (text: string, errors?: ParseError[], options?: ParseOptions) => Node | undefined; +/** + * Finds the node at the given path in a JSON DOM. + */ +export declare const findNodeAtLocation: (root: Node, path: JSONPath) => Node | undefined; +/** + * Finds the innermost node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. + */ +export declare const findNodeAtOffset: (root: Node, offset: number, includeRightBound?: boolean) => Node | undefined; +/** + * Gets the JSON path of the given JSON DOM node + */ +export declare const getNodePath: (node: Node) => JSONPath; +/** + * Evaluates the JavaScript object of the given JSON DOM node + */ +export declare const getNodeValue: (node: Node) => any; +/** + * Parses the given text and invokes the visitor functions for each object, array and literal reached. + */ +export declare const visit: (text: string, visitor: JSONVisitor, options?: ParseOptions) => any; +/** + * Takes JSON with JavaScript-style comments and remove + * them. Optionally replaces every none-newline character + * of comments with a replaceCharacter + */ +export declare const stripComments: (text: string, replaceCh?: string) => string; +export interface ParseError { + error: ParseErrorCode; + offset: number; + length: number; +} +export declare const enum ParseErrorCode { + InvalidSymbol = 1, + InvalidNumberFormat = 2, + PropertyNameExpected = 3, + ValueExpected = 4, + ColonExpected = 5, + CommaExpected = 6, + CloseBraceExpected = 7, + CloseBracketExpected = 8, + EndOfFileExpected = 9, + InvalidCommentToken = 10, + UnexpectedEndOfComment = 11, + UnexpectedEndOfString = 12, + UnexpectedEndOfNumber = 13, + InvalidUnicode = 14, + InvalidEscapeCharacter = 15, + InvalidCharacter = 16 +} +export declare function printParseErrorCode(code: ParseErrorCode): "InvalidSymbol" | "InvalidNumberFormat" | "PropertyNameExpected" | "ValueExpected" | "ColonExpected" | "CommaExpected" | "CloseBraceExpected" | "CloseBracketExpected" | "EndOfFileExpected" | "InvalidCommentToken" | "UnexpectedEndOfComment" | "UnexpectedEndOfString" | "UnexpectedEndOfNumber" | "InvalidUnicode" | "InvalidEscapeCharacter" | "InvalidCharacter" | ""; +export type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null'; +export interface Node { + readonly type: NodeType; + readonly value?: any; + readonly offset: number; + readonly length: number; + readonly colonOffset?: number; + readonly parent?: Node; + readonly children?: Node[]; +} +/** + * A {@linkcode JSONPath} segment. Either a string representing an object property name + * or a number (starting at 0) for array indices. + */ +export type Segment = string | number; +export type JSONPath = Segment[]; +export interface Location { + /** + * The previous property key or literal value (string, number, boolean or null) or undefined. + */ + previousNode?: Node; + /** + * The path describing the location in the JSON document. The path consists of a sequence of strings + * representing an object property or numbers for array indices. + */ + path: JSONPath; + /** + * Matches the locations path against a pattern consisting of strings (for properties) and numbers (for array indices). + * '*' will match a single segment of any property name or index. + * '**' will match a sequence of segments of any property name or index, or no segment. + */ + matches: (patterns: JSONPath) => boolean; + /** + * If set, the location's offset is at a property key. + */ + isAtPropertyKey: boolean; +} +export interface ParseOptions { + disallowComments?: boolean; + allowTrailingComma?: boolean; + allowEmptyContent?: boolean; +} +/** + * Visitor called by {@linkcode visit} when parsing JSON. + * + * The visitor functions have the following common parameters: + * - `offset`: Global offset within the JSON document, starting at 0 + * - `startLine`: Line number, starting at 0 + * - `startCharacter`: Start character (column) within the current line, starting at 0 + * + * Additionally some functions have a `pathSupplier` parameter which can be used to obtain the + * current `JSONPath` within the document. + */ +export interface JSONVisitor { + /** + * Invoked when an open brace is encountered and an object is started. The offset and length represent the location of the open brace. + */ + onObjectBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a property is encountered. The offset and length represent the location of the property name. + * The `JSONPath` created by the `pathSupplier` refers to the enclosing JSON object, it does not include the + * property name yet. + */ + onObjectProperty?: (property: string, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a closing brace is encountered and an object is completed. The offset and length represent the location of the closing brace. + */ + onObjectEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked when an open bracket is encountered. The offset and length represent the location of the open bracket. + */ + onArrayBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a closing bracket is encountered. The offset and length represent the location of the closing bracket. + */ + onArrayEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked when a literal value is encountered. The offset and length represent the location of the literal value. + */ + onLiteralValue?: (value: any, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a comma or colon separator is encountered. The offset and length represent the location of the separator. + */ + onSeparator?: (character: string, offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * When comments are allowed, invoked when a line or block comment is encountered. The offset and length represent the location of the comment. + */ + onComment?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked on an error. + */ + onError?: (error: ParseErrorCode, offset: number, length: number, startLine: number, startCharacter: number) => void; +} +/** + * An edit result describes a textual edit operation. It is the result of a {@linkcode format} and {@linkcode modify} operation. + * It consist of one or more edits describing insertions, replacements or removals of text segments. + * * The offsets of the edits refer to the original state of the document. + * * No two edits change or remove the same range of text in the original document. + * * Multiple edits can have the same offset if they are multiple inserts, or an insert followed by a remove or replace. + * * The order in the array defines which edit is applied first. + * To apply an edit result use {@linkcode applyEdits}. + * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data. + */ +export type EditResult = Edit[]; +/** + * Represents a text modification + */ +export interface Edit { + /** + * The start offset of the modification. + */ + offset: number; + /** + * The length of the modification. Must not be negative. Empty length represents an *insert*. + */ + length: number; + /** + * The new content. Empty content represents a *remove*. + */ + content: string; +} +/** + * A text range in the document +*/ +export interface Range { + /** + * The start offset of the range. + */ + offset: number; + /** + * The length of the range. Must not be negative. + */ + length: number; +} +/** + * Options used by {@linkcode format} when computing the formatting edit operations + */ +export interface FormattingOptions { + /** + * If indentation is based on spaces (`insertSpaces` = true), the number of spaces that make an indent. + */ + tabSize?: number; + /** + * Is indentation based on spaces? + */ + insertSpaces?: boolean; + /** + * The default 'end of line' character. If not set, '\n' is used as default. + */ + eol?: string; + /** + * If set, will add a new line at the end of the document. + */ + insertFinalNewline?: boolean; + /** + * If true, will keep line positions as is in the formatting + */ + keepLines?: boolean; +} +/** + * Computes the edit operations needed to format a JSON document. + * + * @param documentText The input text + * @param range The range to format or `undefined` to format the full content + * @param options The formatting options + * @returns The edit operations describing the formatting changes to the original document following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export declare function format(documentText: string, range: Range | undefined, options: FormattingOptions): EditResult; +/** + * Options used by {@linkcode modify} when computing the modification edit operations + */ +export interface ModificationOptions { + /** + * Formatting options. If undefined, the newly inserted code will be inserted unformatted. + */ + formattingOptions?: FormattingOptions; + /** + * Default false. If `JSONPath` refers to an index of an array and `isArrayInsertion` is `true`, then + * {@linkcode modify} will insert a new item at that location instead of overwriting its contents. + */ + isArrayInsertion?: boolean; + /** + * Optional function to define the insertion index given an existing list of properties. + */ + getInsertionIndex?: (properties: string[]) => number; +} +/** + * Computes the edit operations needed to modify a value in the JSON document. + * + * @param documentText The input text + * @param path The path of the value to change. The path represents either to the document root, a property or an array item. + * If the path points to an non-existing property or item, it will be created. + * @param value The new value for the specified property or item. If the value is undefined, + * the property or item will be removed. + * @param options Options + * @returns The edit operations describing the changes to the original document, following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export declare function modify(text: string, path: JSONPath, value: any, options: ModificationOptions): EditResult; +/** + * Applies edits to an input string. + * @param text The input text + * @param edits Edit operations following the format described in {@linkcode EditResult}. + * @returns The text with the applied edits. + * @throws An error if the edit operations are not well-formed as described in {@linkcode EditResult}. + */ +export declare function applyEdits(text: string, edits: EditResult): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.js" index ce40a7adf761593eaad62916aba502af75574067..18e3cb7168b5cc4401a25bcace1f8af379c408d5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/esm/main.js" @@ -1,3 +1,178 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72ff182105e158a1505ca3ecbf3f30359abb138a3980edaef1db7f4010ffb7dc -size 9363 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +'use strict'; +import * as formatter from './impl/format'; +import * as edit from './impl/edit'; +import * as scanner from './impl/scanner'; +import * as parser from './impl/parser'; +/** + * Creates a JSON scanner on the given text. + * If ignoreTrivia is set, whitespaces or comments are ignored. + */ +export const createScanner = scanner.createScanner; +export var ScanError; +(function (ScanError) { + ScanError[ScanError["None"] = 0] = "None"; + ScanError[ScanError["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment"; + ScanError[ScanError["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString"; + ScanError[ScanError["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber"; + ScanError[ScanError["InvalidUnicode"] = 4] = "InvalidUnicode"; + ScanError[ScanError["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter"; + ScanError[ScanError["InvalidCharacter"] = 6] = "InvalidCharacter"; +})(ScanError || (ScanError = {})); +export var SyntaxKind; +(function (SyntaxKind) { + SyntaxKind[SyntaxKind["OpenBraceToken"] = 1] = "OpenBraceToken"; + SyntaxKind[SyntaxKind["CloseBraceToken"] = 2] = "CloseBraceToken"; + SyntaxKind[SyntaxKind["OpenBracketToken"] = 3] = "OpenBracketToken"; + SyntaxKind[SyntaxKind["CloseBracketToken"] = 4] = "CloseBracketToken"; + SyntaxKind[SyntaxKind["CommaToken"] = 5] = "CommaToken"; + SyntaxKind[SyntaxKind["ColonToken"] = 6] = "ColonToken"; + SyntaxKind[SyntaxKind["NullKeyword"] = 7] = "NullKeyword"; + SyntaxKind[SyntaxKind["TrueKeyword"] = 8] = "TrueKeyword"; + SyntaxKind[SyntaxKind["FalseKeyword"] = 9] = "FalseKeyword"; + SyntaxKind[SyntaxKind["StringLiteral"] = 10] = "StringLiteral"; + SyntaxKind[SyntaxKind["NumericLiteral"] = 11] = "NumericLiteral"; + SyntaxKind[SyntaxKind["LineCommentTrivia"] = 12] = "LineCommentTrivia"; + SyntaxKind[SyntaxKind["BlockCommentTrivia"] = 13] = "BlockCommentTrivia"; + SyntaxKind[SyntaxKind["LineBreakTrivia"] = 14] = "LineBreakTrivia"; + SyntaxKind[SyntaxKind["Trivia"] = 15] = "Trivia"; + SyntaxKind[SyntaxKind["Unknown"] = 16] = "Unknown"; + SyntaxKind[SyntaxKind["EOF"] = 17] = "EOF"; +})(SyntaxKind || (SyntaxKind = {})); +/** + * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. + */ +export const getLocation = parser.getLocation; +/** + * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + * Therefore, always check the errors list to find out if the input was valid. + */ +export const parse = parser.parse; +/** + * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + */ +export const parseTree = parser.parseTree; +/** + * Finds the node at the given path in a JSON DOM. + */ +export const findNodeAtLocation = parser.findNodeAtLocation; +/** + * Finds the innermost node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. + */ +export const findNodeAtOffset = parser.findNodeAtOffset; +/** + * Gets the JSON path of the given JSON DOM node + */ +export const getNodePath = parser.getNodePath; +/** + * Evaluates the JavaScript object of the given JSON DOM node + */ +export const getNodeValue = parser.getNodeValue; +/** + * Parses the given text and invokes the visitor functions for each object, array and literal reached. + */ +export const visit = parser.visit; +/** + * Takes JSON with JavaScript-style comments and remove + * them. Optionally replaces every none-newline character + * of comments with a replaceCharacter + */ +export const stripComments = parser.stripComments; +export var ParseErrorCode; +(function (ParseErrorCode) { + ParseErrorCode[ParseErrorCode["InvalidSymbol"] = 1] = "InvalidSymbol"; + ParseErrorCode[ParseErrorCode["InvalidNumberFormat"] = 2] = "InvalidNumberFormat"; + ParseErrorCode[ParseErrorCode["PropertyNameExpected"] = 3] = "PropertyNameExpected"; + ParseErrorCode[ParseErrorCode["ValueExpected"] = 4] = "ValueExpected"; + ParseErrorCode[ParseErrorCode["ColonExpected"] = 5] = "ColonExpected"; + ParseErrorCode[ParseErrorCode["CommaExpected"] = 6] = "CommaExpected"; + ParseErrorCode[ParseErrorCode["CloseBraceExpected"] = 7] = "CloseBraceExpected"; + ParseErrorCode[ParseErrorCode["CloseBracketExpected"] = 8] = "CloseBracketExpected"; + ParseErrorCode[ParseErrorCode["EndOfFileExpected"] = 9] = "EndOfFileExpected"; + ParseErrorCode[ParseErrorCode["InvalidCommentToken"] = 10] = "InvalidCommentToken"; + ParseErrorCode[ParseErrorCode["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment"; + ParseErrorCode[ParseErrorCode["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString"; + ParseErrorCode[ParseErrorCode["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber"; + ParseErrorCode[ParseErrorCode["InvalidUnicode"] = 14] = "InvalidUnicode"; + ParseErrorCode[ParseErrorCode["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter"; + ParseErrorCode[ParseErrorCode["InvalidCharacter"] = 16] = "InvalidCharacter"; +})(ParseErrorCode || (ParseErrorCode = {})); +export function printParseErrorCode(code) { + switch (code) { + case 1 /* ParseErrorCode.InvalidSymbol */: return 'InvalidSymbol'; + case 2 /* ParseErrorCode.InvalidNumberFormat */: return 'InvalidNumberFormat'; + case 3 /* ParseErrorCode.PropertyNameExpected */: return 'PropertyNameExpected'; + case 4 /* ParseErrorCode.ValueExpected */: return 'ValueExpected'; + case 5 /* ParseErrorCode.ColonExpected */: return 'ColonExpected'; + case 6 /* ParseErrorCode.CommaExpected */: return 'CommaExpected'; + case 7 /* ParseErrorCode.CloseBraceExpected */: return 'CloseBraceExpected'; + case 8 /* ParseErrorCode.CloseBracketExpected */: return 'CloseBracketExpected'; + case 9 /* ParseErrorCode.EndOfFileExpected */: return 'EndOfFileExpected'; + case 10 /* ParseErrorCode.InvalidCommentToken */: return 'InvalidCommentToken'; + case 11 /* ParseErrorCode.UnexpectedEndOfComment */: return 'UnexpectedEndOfComment'; + case 12 /* ParseErrorCode.UnexpectedEndOfString */: return 'UnexpectedEndOfString'; + case 13 /* ParseErrorCode.UnexpectedEndOfNumber */: return 'UnexpectedEndOfNumber'; + case 14 /* ParseErrorCode.InvalidUnicode */: return 'InvalidUnicode'; + case 15 /* ParseErrorCode.InvalidEscapeCharacter */: return 'InvalidEscapeCharacter'; + case 16 /* ParseErrorCode.InvalidCharacter */: return 'InvalidCharacter'; + } + return ''; +} +/** + * Computes the edit operations needed to format a JSON document. + * + * @param documentText The input text + * @param range The range to format or `undefined` to format the full content + * @param options The formatting options + * @returns The edit operations describing the formatting changes to the original document following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export function format(documentText, range, options) { + return formatter.format(documentText, range, options); +} +/** + * Computes the edit operations needed to modify a value in the JSON document. + * + * @param documentText The input text + * @param path The path of the value to change. The path represents either to the document root, a property or an array item. + * If the path points to an non-existing property or item, it will be created. + * @param value The new value for the specified property or item. If the value is undefined, + * the property or item will be removed. + * @param options Options + * @returns The edit operations describing the changes to the original document, following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export function modify(text, path, value, options) { + return edit.setProperty(text, path, value, options); +} +/** + * Applies edits to an input string. + * @param text The input text + * @param edits Edit operations following the format described in {@linkcode EditResult}. + * @returns The text with the applied edits. + * @throws An error if the edit operations are not well-formed as described in {@linkcode EditResult}. + */ +export function applyEdits(text, edits) { + let sortedEdits = edits.slice(0).sort((a, b) => { + const diff = a.offset - b.offset; + if (diff === 0) { + return a.length - b.length; + } + return diff; + }); + let lastModifiedOffset = text.length; + for (let i = sortedEdits.length - 1; i >= 0; i--) { + let e = sortedEdits[i]; + if (e.offset + e.length <= lastModifiedOffset) { + text = edit.applyEdit(text, e); + } + else { + throw new Error('Overlapping edit'); + } + lastModifiedOffset = e.offset; + } + return text; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/edit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/edit.js" index 90bb5ec12296eddad590023d9d177066bdd7afa6..f9aeefef667d8a725dba6954d5831bdc5ff145f8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/edit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/edit.js" @@ -1,3 +1,201 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ecd115039cf7a478f223e4a9649170c7f5e8fd8016df1b267723b57553f9483 -size 10061 +(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", "./format", "./parser"], factory); + } +})(function (require, exports) { + /*--------------------------------------------------------------------------------------------- + * 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.isWS = exports.applyEdit = exports.setProperty = exports.removeProperty = void 0; + const format_1 = require("./format"); + const parser_1 = require("./parser"); + function removeProperty(text, path, options) { + return setProperty(text, path, void 0, options); + } + exports.removeProperty = removeProperty; + function setProperty(text, originalPath, value, options) { + const path = originalPath.slice(); + const errors = []; + const root = (0, parser_1.parseTree)(text, errors); + let parent = void 0; + let lastSegment = void 0; + while (path.length > 0) { + lastSegment = path.pop(); + parent = (0, parser_1.findNodeAtLocation)(root, path); + if (parent === void 0 && value !== void 0) { + if (typeof lastSegment === 'string') { + value = { [lastSegment]: value }; + } + else { + value = [value]; + } + } + else { + break; + } + } + if (!parent) { + // empty document + if (value === void 0) { // delete + throw new Error('Can not delete in empty document'); + } + return withFormatting(text, { offset: root ? root.offset : 0, length: root ? root.length : 0, content: JSON.stringify(value) }, options); + } + else if (parent.type === 'object' && typeof lastSegment === 'string' && Array.isArray(parent.children)) { + const existing = (0, parser_1.findNodeAtLocation)(parent, [lastSegment]); + if (existing !== void 0) { + if (value === void 0) { // delete + if (!existing.parent) { + throw new Error('Malformed AST'); + } + const propertyIndex = parent.children.indexOf(existing.parent); + let removeBegin; + let removeEnd = existing.parent.offset + existing.parent.length; + if (propertyIndex > 0) { + // remove the comma of the previous node + let previous = parent.children[propertyIndex - 1]; + removeBegin = previous.offset + previous.length; + } + else { + removeBegin = parent.offset + 1; + if (parent.children.length > 1) { + // remove the comma of the next node + let next = parent.children[1]; + removeEnd = next.offset; + } + } + return withFormatting(text, { offset: removeBegin, length: removeEnd - removeBegin, content: '' }, options); + } + else { + // set value of existing property + return withFormatting(text, { offset: existing.offset, length: existing.length, content: JSON.stringify(value) }, options); + } + } + else { + if (value === void 0) { // delete + return []; // property does not exist, nothing to do + } + const newProperty = `${JSON.stringify(lastSegment)}: ${JSON.stringify(value)}`; + const index = options.getInsertionIndex ? options.getInsertionIndex(parent.children.map(p => p.children[0].value)) : parent.children.length; + let edit; + if (index > 0) { + let previous = parent.children[index - 1]; + edit = { offset: previous.offset + previous.length, length: 0, content: ',' + newProperty }; + } + else if (parent.children.length === 0) { + edit = { offset: parent.offset + 1, length: 0, content: newProperty }; + } + else { + edit = { offset: parent.offset + 1, length: 0, content: newProperty + ',' }; + } + return withFormatting(text, edit, options); + } + } + else if (parent.type === 'array' && typeof lastSegment === 'number' && Array.isArray(parent.children)) { + const insertIndex = lastSegment; + if (insertIndex === -1) { + // Insert + const newProperty = `${JSON.stringify(value)}`; + let edit; + if (parent.children.length === 0) { + edit = { offset: parent.offset + 1, length: 0, content: newProperty }; + } + else { + const previous = parent.children[parent.children.length - 1]; + edit = { offset: previous.offset + previous.length, length: 0, content: ',' + newProperty }; + } + return withFormatting(text, edit, options); + } + else if (value === void 0 && parent.children.length >= 0) { + // Removal + const removalIndex = lastSegment; + const toRemove = parent.children[removalIndex]; + let edit; + if (parent.children.length === 1) { + // only item + edit = { offset: parent.offset + 1, length: parent.length - 2, content: '' }; + } + else if (parent.children.length - 1 === removalIndex) { + // last item + let previous = parent.children[removalIndex - 1]; + let offset = previous.offset + previous.length; + let parentEndOffset = parent.offset + parent.length; + edit = { offset, length: parentEndOffset - 2 - offset, content: '' }; + } + else { + edit = { offset: toRemove.offset, length: parent.children[removalIndex + 1].offset - toRemove.offset, content: '' }; + } + return withFormatting(text, edit, options); + } + else if (value !== void 0) { + let edit; + const newProperty = `${JSON.stringify(value)}`; + if (!options.isArrayInsertion && parent.children.length > lastSegment) { + const toModify = parent.children[lastSegment]; + edit = { offset: toModify.offset, length: toModify.length, content: newProperty }; + } + else if (parent.children.length === 0 || lastSegment === 0) { + edit = { offset: parent.offset + 1, length: 0, content: parent.children.length === 0 ? newProperty : newProperty + ',' }; + } + else { + const index = lastSegment > parent.children.length ? parent.children.length : lastSegment; + const previous = parent.children[index - 1]; + edit = { offset: previous.offset + previous.length, length: 0, content: ',' + newProperty }; + } + return withFormatting(text, edit, options); + } + else { + throw new Error(`Can not ${value === void 0 ? 'remove' : (options.isArrayInsertion ? 'insert' : 'modify')} Array index ${insertIndex} as length is not sufficient`); + } + } + else { + throw new Error(`Can not add ${typeof lastSegment !== 'number' ? 'index' : 'property'} to parent of type ${parent.type}`); + } + } + exports.setProperty = setProperty; + function withFormatting(text, edit, options) { + if (!options.formattingOptions) { + return [edit]; + } + // apply the edit + let newText = applyEdit(text, edit); + // format the new text + let begin = edit.offset; + let end = edit.offset + edit.content.length; + if (edit.length === 0 || edit.content.length === 0) { // insert or remove + while (begin > 0 && !(0, format_1.isEOL)(newText, begin - 1)) { + begin--; + } + while (end < newText.length && !(0, format_1.isEOL)(newText, end)) { + end++; + } + } + const edits = (0, format_1.format)(newText, { offset: begin, length: end - begin }, { ...options.formattingOptions, keepLines: false }); + // apply the formatting edits and track the begin and end offsets of the changes + for (let i = edits.length - 1; i >= 0; i--) { + const edit = edits[i]; + newText = applyEdit(newText, edit); + begin = Math.min(begin, edit.offset); + end = Math.max(end, edit.offset + edit.length); + end += edit.content.length - edit.length; + } + // create a single edit with all changes + const editLength = text.length - (newText.length - end) - begin; + return [{ offset: begin, length: editLength, content: newText.substring(begin, end) }]; + } + function applyEdit(text, edit) { + return text.substring(0, edit.offset) + edit.content + text.substring(edit.offset + edit.length); + } + exports.applyEdit = applyEdit; + function isWS(text, offset) { + return '\r\n \t'.indexOf(text.charAt(offset)) !== -1; + } + exports.isWS = isWS; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/format.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/format.js" index 7671aa9b5e75e3efe70b4d3a7c78b5c50db8fbdb..2b9f2bc54a9ad4ad38a99bbaab4da57f89d40f3d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/format.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/format.js" @@ -1,3 +1,275 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f9e468e436bf1014a4395b1ac70374edb918739ba90b19e6e6a22ca0214564a9 -size 12888 +(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", "./scanner", "./string-intern"], factory); + } +})(function (require, exports) { + /*--------------------------------------------------------------------------------------------- + * 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.isEOL = exports.format = void 0; + const scanner_1 = require("./scanner"); + const string_intern_1 = require("./string-intern"); + function format(documentText, range, options) { + let initialIndentLevel; + let formatText; + let formatTextStart; + let rangeStart; + let rangeEnd; + if (range) { + rangeStart = range.offset; + rangeEnd = rangeStart + range.length; + formatTextStart = rangeStart; + while (formatTextStart > 0 && !isEOL(documentText, formatTextStart - 1)) { + formatTextStart--; + } + let endOffset = rangeEnd; + while (endOffset < documentText.length && !isEOL(documentText, endOffset)) { + endOffset++; + } + formatText = documentText.substring(formatTextStart, endOffset); + initialIndentLevel = computeIndentLevel(formatText, options); + } + else { + formatText = documentText; + initialIndentLevel = 0; + formatTextStart = 0; + rangeStart = 0; + rangeEnd = documentText.length; + } + const eol = getEOL(options, documentText); + const eolFastPathSupported = string_intern_1.supportedEols.includes(eol); + let numberLineBreaks = 0; + let indentLevel = 0; + let indentValue; + if (options.insertSpaces) { + indentValue = string_intern_1.cachedSpaces[options.tabSize || 4] ?? repeat(string_intern_1.cachedSpaces[1], options.tabSize || 4); + } + else { + indentValue = '\t'; + } + const indentType = indentValue === '\t' ? '\t' : ' '; + let scanner = (0, scanner_1.createScanner)(formatText, false); + let hasError = false; + function newLinesAndIndent() { + if (numberLineBreaks > 1) { + return repeat(eol, numberLineBreaks) + repeat(indentValue, initialIndentLevel + indentLevel); + } + const amountOfSpaces = indentValue.length * (initialIndentLevel + indentLevel); + if (!eolFastPathSupported || amountOfSpaces > string_intern_1.cachedBreakLinesWithSpaces[indentType][eol].length) { + return eol + repeat(indentValue, initialIndentLevel + indentLevel); + } + if (amountOfSpaces <= 0) { + return eol; + } + return string_intern_1.cachedBreakLinesWithSpaces[indentType][eol][amountOfSpaces]; + } + function scanNext() { + let token = scanner.scan(); + numberLineBreaks = 0; + while (token === 15 /* SyntaxKind.Trivia */ || token === 14 /* SyntaxKind.LineBreakTrivia */) { + if (token === 14 /* SyntaxKind.LineBreakTrivia */ && options.keepLines) { + numberLineBreaks += 1; + } + else if (token === 14 /* SyntaxKind.LineBreakTrivia */) { + numberLineBreaks = 1; + } + token = scanner.scan(); + } + hasError = token === 16 /* SyntaxKind.Unknown */ || scanner.getTokenError() !== 0 /* ScanError.None */; + return token; + } + const editOperations = []; + function addEdit(text, startOffset, endOffset) { + if (!hasError && (!range || (startOffset < rangeEnd && endOffset > rangeStart)) && documentText.substring(startOffset, endOffset) !== text) { + editOperations.push({ offset: startOffset, length: endOffset - startOffset, content: text }); + } + } + let firstToken = scanNext(); + if (options.keepLines && numberLineBreaks > 0) { + addEdit(repeat(eol, numberLineBreaks), 0, 0); + } + if (firstToken !== 17 /* SyntaxKind.EOF */) { + let firstTokenStart = scanner.getTokenOffset() + formatTextStart; + let initialIndent = (indentValue.length * initialIndentLevel < 20) && options.insertSpaces + ? string_intern_1.cachedSpaces[indentValue.length * initialIndentLevel] + : repeat(indentValue, initialIndentLevel); + addEdit(initialIndent, formatTextStart, firstTokenStart); + } + while (firstToken !== 17 /* SyntaxKind.EOF */) { + let firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart; + let secondToken = scanNext(); + let replaceContent = ''; + let needsLineBreak = false; + while (numberLineBreaks === 0 && (secondToken === 12 /* SyntaxKind.LineCommentTrivia */ || secondToken === 13 /* SyntaxKind.BlockCommentTrivia */)) { + let commentTokenStart = scanner.getTokenOffset() + formatTextStart; + addEdit(string_intern_1.cachedSpaces[1], firstTokenEnd, commentTokenStart); + firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart; + needsLineBreak = secondToken === 12 /* SyntaxKind.LineCommentTrivia */; + replaceContent = needsLineBreak ? newLinesAndIndent() : ''; + secondToken = scanNext(); + } + if (secondToken === 2 /* SyntaxKind.CloseBraceToken */) { + if (firstToken !== 1 /* SyntaxKind.OpenBraceToken */) { + indentLevel--; + } + ; + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines && firstToken !== 1 /* SyntaxKind.OpenBraceToken */) { + replaceContent = newLinesAndIndent(); + } + else if (options.keepLines) { + replaceContent = string_intern_1.cachedSpaces[1]; + } + } + else if (secondToken === 4 /* SyntaxKind.CloseBracketToken */) { + if (firstToken !== 3 /* SyntaxKind.OpenBracketToken */) { + indentLevel--; + } + ; + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines && firstToken !== 3 /* SyntaxKind.OpenBracketToken */) { + replaceContent = newLinesAndIndent(); + } + else if (options.keepLines) { + replaceContent = string_intern_1.cachedSpaces[1]; + } + } + else { + switch (firstToken) { + case 3 /* SyntaxKind.OpenBracketToken */: + case 1 /* SyntaxKind.OpenBraceToken */: + indentLevel++; + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) { + replaceContent = newLinesAndIndent(); + } + else { + replaceContent = string_intern_1.cachedSpaces[1]; + } + break; + case 5 /* SyntaxKind.CommaToken */: + if (options.keepLines && numberLineBreaks > 0 || !options.keepLines) { + replaceContent = newLinesAndIndent(); + } + else { + replaceContent = string_intern_1.cachedSpaces[1]; + } + break; + case 12 /* SyntaxKind.LineCommentTrivia */: + replaceContent = newLinesAndIndent(); + break; + case 13 /* SyntaxKind.BlockCommentTrivia */: + if (numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else if (!needsLineBreak) { + replaceContent = string_intern_1.cachedSpaces[1]; + } + break; + case 6 /* SyntaxKind.ColonToken */: + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else if (!needsLineBreak) { + replaceContent = string_intern_1.cachedSpaces[1]; + } + break; + case 10 /* SyntaxKind.StringLiteral */: + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else if (secondToken === 6 /* SyntaxKind.ColonToken */ && !needsLineBreak) { + replaceContent = ''; + } + break; + case 7 /* SyntaxKind.NullKeyword */: + case 8 /* SyntaxKind.TrueKeyword */: + case 9 /* SyntaxKind.FalseKeyword */: + case 11 /* SyntaxKind.NumericLiteral */: + case 2 /* SyntaxKind.CloseBraceToken */: + case 4 /* SyntaxKind.CloseBracketToken */: + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else { + if ((secondToken === 12 /* SyntaxKind.LineCommentTrivia */ || secondToken === 13 /* SyntaxKind.BlockCommentTrivia */) && !needsLineBreak) { + replaceContent = string_intern_1.cachedSpaces[1]; + } + else if (secondToken !== 5 /* SyntaxKind.CommaToken */ && secondToken !== 17 /* SyntaxKind.EOF */) { + hasError = true; + } + } + break; + case 16 /* SyntaxKind.Unknown */: + hasError = true; + break; + } + if (numberLineBreaks > 0 && (secondToken === 12 /* SyntaxKind.LineCommentTrivia */ || secondToken === 13 /* SyntaxKind.BlockCommentTrivia */)) { + replaceContent = newLinesAndIndent(); + } + } + if (secondToken === 17 /* SyntaxKind.EOF */) { + if (options.keepLines && numberLineBreaks > 0) { + replaceContent = newLinesAndIndent(); + } + else { + replaceContent = options.insertFinalNewline ? eol : ''; + } + } + const secondTokenStart = scanner.getTokenOffset() + formatTextStart; + addEdit(replaceContent, firstTokenEnd, secondTokenStart); + firstToken = secondToken; + } + return editOperations; + } + exports.format = format; + function repeat(s, count) { + let result = ''; + for (let i = 0; i < count; i++) { + result += s; + } + return result; + } + function computeIndentLevel(content, options) { + let i = 0; + let nChars = 0; + const tabSize = options.tabSize || 4; + while (i < content.length) { + let ch = content.charAt(i); + if (ch === string_intern_1.cachedSpaces[1]) { + nChars++; + } + else if (ch === '\t') { + nChars += tabSize; + } + else { + break; + } + i++; + } + return Math.floor(nChars / tabSize); + } + function getEOL(options, text) { + for (let i = 0; i < text.length; i++) { + const ch = text.charAt(i); + if (ch === '\r') { + if (i + 1 < text.length && text.charAt(i + 1) === '\n') { + return '\r\n'; + } + return '\r'; + } + else if (ch === '\n') { + return '\n'; + } + } + return (options && options.eol) || '\n'; + } + function isEOL(text, offset) { + return '\r\n'.indexOf(text.charAt(offset)) !== -1; + } + exports.isEOL = isEOL; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/parser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/parser.js" index 5019fb7434dcd5565d7d41968c29e20229863462..211e1d1c14885aedc6fd3b966d5a24790beaf908 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/parser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/parser.js" @@ -1,3 +1,655 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c75be447c5ebcd16b212ae7089b1d2438f037c709c6b1784d22c25b8a35fde48 -size 28290 +(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", "./scanner"], factory); + } +})(function (require, exports) { + /*--------------------------------------------------------------------------------------------- + * 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.getNodeType = exports.stripComments = exports.visit = exports.findNodeAtOffset = exports.contains = exports.getNodeValue = exports.getNodePath = exports.findNodeAtLocation = exports.parseTree = exports.parse = exports.getLocation = void 0; + const scanner_1 = require("./scanner"); + var ParseOptions; + (function (ParseOptions) { + ParseOptions.DEFAULT = { + allowTrailingComma: false + }; + })(ParseOptions || (ParseOptions = {})); + /** + * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. + */ + function getLocation(text, position) { + const segments = []; // strings or numbers + const earlyReturnException = new Object(); + let previousNode = undefined; + const previousNodeInst = { + value: {}, + offset: 0, + length: 0, + type: 'object', + parent: undefined + }; + let isAtPropertyKey = false; + function setPreviousNode(value, offset, length, type) { + previousNodeInst.value = value; + previousNodeInst.offset = offset; + previousNodeInst.length = length; + previousNodeInst.type = type; + previousNodeInst.colonOffset = undefined; + previousNode = previousNodeInst; + } + try { + visit(text, { + onObjectBegin: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + isAtPropertyKey = position > offset; + segments.push(''); // push a placeholder (will be replaced) + }, + onObjectProperty: (name, offset, length) => { + if (position < offset) { + throw earlyReturnException; + } + setPreviousNode(name, offset, length, 'property'); + segments[segments.length - 1] = name; + if (position <= offset + length) { + throw earlyReturnException; + } + }, + onObjectEnd: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + segments.pop(); + }, + onArrayBegin: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + segments.push(0); + }, + onArrayEnd: (offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + previousNode = undefined; + segments.pop(); + }, + onLiteralValue: (value, offset, length) => { + if (position < offset) { + throw earlyReturnException; + } + setPreviousNode(value, offset, length, getNodeType(value)); + if (position <= offset + length) { + throw earlyReturnException; + } + }, + onSeparator: (sep, offset, length) => { + if (position <= offset) { + throw earlyReturnException; + } + if (sep === ':' && previousNode && previousNode.type === 'property') { + previousNode.colonOffset = offset; + isAtPropertyKey = false; + previousNode = undefined; + } + else if (sep === ',') { + const last = segments[segments.length - 1]; + if (typeof last === 'number') { + segments[segments.length - 1] = last + 1; + } + else { + isAtPropertyKey = true; + segments[segments.length - 1] = ''; + } + previousNode = undefined; + } + } + }); + } + catch (e) { + if (e !== earlyReturnException) { + throw e; + } + } + return { + path: segments, + previousNode, + isAtPropertyKey, + matches: (pattern) => { + let k = 0; + for (let i = 0; k < pattern.length && i < segments.length; i++) { + if (pattern[k] === segments[i] || pattern[k] === '*') { + k++; + } + else if (pattern[k] !== '**') { + return false; + } + } + return k === pattern.length; + } + }; + } + exports.getLocation = getLocation; + /** + * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + * Therefore always check the errors list to find out if the input was valid. + */ + function parse(text, errors = [], options = ParseOptions.DEFAULT) { + let currentProperty = null; + let currentParent = []; + const previousParents = []; + function onValue(value) { + if (Array.isArray(currentParent)) { + currentParent.push(value); + } + else if (currentProperty !== null) { + currentParent[currentProperty] = value; + } + } + const visitor = { + onObjectBegin: () => { + const object = {}; + onValue(object); + previousParents.push(currentParent); + currentParent = object; + currentProperty = null; + }, + onObjectProperty: (name) => { + currentProperty = name; + }, + onObjectEnd: () => { + currentParent = previousParents.pop(); + }, + onArrayBegin: () => { + const array = []; + onValue(array); + previousParents.push(currentParent); + currentParent = array; + currentProperty = null; + }, + onArrayEnd: () => { + currentParent = previousParents.pop(); + }, + onLiteralValue: onValue, + onError: (error, offset, length) => { + errors.push({ error, offset, length }); + } + }; + visit(text, visitor, options); + return currentParent[0]; + } + exports.parse = parse; + /** + * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + */ + function parseTree(text, errors = [], options = ParseOptions.DEFAULT) { + let currentParent = { type: 'array', offset: -1, length: -1, children: [], parent: undefined }; // artificial root + function ensurePropertyComplete(endOffset) { + if (currentParent.type === 'property') { + currentParent.length = endOffset - currentParent.offset; + currentParent = currentParent.parent; + } + } + function onValue(valueNode) { + currentParent.children.push(valueNode); + return valueNode; + } + const visitor = { + onObjectBegin: (offset) => { + currentParent = onValue({ type: 'object', offset, length: -1, parent: currentParent, children: [] }); + }, + onObjectProperty: (name, offset, length) => { + currentParent = onValue({ type: 'property', offset, length: -1, parent: currentParent, children: [] }); + currentParent.children.push({ type: 'string', value: name, offset, length, parent: currentParent }); + }, + onObjectEnd: (offset, length) => { + ensurePropertyComplete(offset + length); // in case of a missing value for a property: make sure property is complete + currentParent.length = offset + length - currentParent.offset; + currentParent = currentParent.parent; + ensurePropertyComplete(offset + length); + }, + onArrayBegin: (offset, length) => { + currentParent = onValue({ type: 'array', offset, length: -1, parent: currentParent, children: [] }); + }, + onArrayEnd: (offset, length) => { + currentParent.length = offset + length - currentParent.offset; + currentParent = currentParent.parent; + ensurePropertyComplete(offset + length); + }, + onLiteralValue: (value, offset, length) => { + onValue({ type: getNodeType(value), offset, length, parent: currentParent, value }); + ensurePropertyComplete(offset + length); + }, + onSeparator: (sep, offset, length) => { + if (currentParent.type === 'property') { + if (sep === ':') { + currentParent.colonOffset = offset; + } + else if (sep === ',') { + ensurePropertyComplete(offset); + } + } + }, + onError: (error, offset, length) => { + errors.push({ error, offset, length }); + } + }; + visit(text, visitor, options); + const result = currentParent.children[0]; + if (result) { + delete result.parent; + } + return result; + } + exports.parseTree = parseTree; + /** + * Finds the node at the given path in a JSON DOM. + */ + function findNodeAtLocation(root, path) { + if (!root) { + return undefined; + } + let node = root; + for (let segment of path) { + if (typeof segment === 'string') { + if (node.type !== 'object' || !Array.isArray(node.children)) { + return undefined; + } + let found = false; + for (const propertyNode of node.children) { + if (Array.isArray(propertyNode.children) && propertyNode.children[0].value === segment && propertyNode.children.length === 2) { + node = propertyNode.children[1]; + found = true; + break; + } + } + if (!found) { + return undefined; + } + } + else { + const index = segment; + if (node.type !== 'array' || index < 0 || !Array.isArray(node.children) || index >= node.children.length) { + return undefined; + } + node = node.children[index]; + } + } + return node; + } + exports.findNodeAtLocation = findNodeAtLocation; + /** + * Gets the JSON path of the given JSON DOM node + */ + function getNodePath(node) { + if (!node.parent || !node.parent.children) { + return []; + } + const path = getNodePath(node.parent); + if (node.parent.type === 'property') { + const key = node.parent.children[0].value; + path.push(key); + } + else if (node.parent.type === 'array') { + const index = node.parent.children.indexOf(node); + if (index !== -1) { + path.push(index); + } + } + return path; + } + exports.getNodePath = getNodePath; + /** + * Evaluates the JavaScript object of the given JSON DOM node + */ + function getNodeValue(node) { + switch (node.type) { + case 'array': + return node.children.map(getNodeValue); + case 'object': + const obj = Object.create(null); + for (let prop of node.children) { + const valueNode = prop.children[1]; + if (valueNode) { + obj[prop.children[0].value] = getNodeValue(valueNode); + } + } + return obj; + case 'null': + case 'string': + case 'number': + case 'boolean': + return node.value; + default: + return undefined; + } + } + exports.getNodeValue = getNodeValue; + function contains(node, offset, includeRightBound = false) { + return (offset >= node.offset && offset < (node.offset + node.length)) || includeRightBound && (offset === (node.offset + node.length)); + } + exports.contains = contains; + /** + * Finds the most inner node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. + */ + function findNodeAtOffset(node, offset, includeRightBound = false) { + if (contains(node, offset, includeRightBound)) { + const children = node.children; + if (Array.isArray(children)) { + for (let i = 0; i < children.length && children[i].offset <= offset; i++) { + const item = findNodeAtOffset(children[i], offset, includeRightBound); + if (item) { + return item; + } + } + } + return node; + } + return undefined; + } + exports.findNodeAtOffset = findNodeAtOffset; + /** + * Parses the given text and invokes the visitor functions for each object, array and literal reached. + */ + function visit(text, visitor, options = ParseOptions.DEFAULT) { + const _scanner = (0, scanner_1.createScanner)(text, false); + // Important: Only pass copies of this to visitor functions to prevent accidental modification, and + // to not affect visitor functions which stored a reference to a previous JSONPath + const _jsonPath = []; + function toNoArgVisit(visitFunction) { + return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true; + } + function toNoArgVisitWithPath(visitFunction) { + return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true; + } + function toOneArgVisit(visitFunction) { + return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true; + } + function toOneArgVisitWithPath(visitFunction) { + return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true; + } + const onObjectBegin = toNoArgVisitWithPath(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toNoArgVisit(visitor.onObjectEnd), onArrayBegin = toNoArgVisitWithPath(visitor.onArrayBegin), onArrayEnd = toNoArgVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError); + const disallowComments = options && options.disallowComments; + const allowTrailingComma = options && options.allowTrailingComma; + function scanNext() { + while (true) { + const token = _scanner.scan(); + switch (_scanner.getTokenError()) { + case 4 /* ScanError.InvalidUnicode */: + handleError(14 /* ParseErrorCode.InvalidUnicode */); + break; + case 5 /* ScanError.InvalidEscapeCharacter */: + handleError(15 /* ParseErrorCode.InvalidEscapeCharacter */); + break; + case 3 /* ScanError.UnexpectedEndOfNumber */: + handleError(13 /* ParseErrorCode.UnexpectedEndOfNumber */); + break; + case 1 /* ScanError.UnexpectedEndOfComment */: + if (!disallowComments) { + handleError(11 /* ParseErrorCode.UnexpectedEndOfComment */); + } + break; + case 2 /* ScanError.UnexpectedEndOfString */: + handleError(12 /* ParseErrorCode.UnexpectedEndOfString */); + break; + case 6 /* ScanError.InvalidCharacter */: + handleError(16 /* ParseErrorCode.InvalidCharacter */); + break; + } + switch (token) { + case 12 /* SyntaxKind.LineCommentTrivia */: + case 13 /* SyntaxKind.BlockCommentTrivia */: + if (disallowComments) { + handleError(10 /* ParseErrorCode.InvalidCommentToken */); + } + else { + onComment(); + } + break; + case 16 /* SyntaxKind.Unknown */: + handleError(1 /* ParseErrorCode.InvalidSymbol */); + break; + case 15 /* SyntaxKind.Trivia */: + case 14 /* SyntaxKind.LineBreakTrivia */: + break; + default: + return token; + } + } + } + function handleError(error, skipUntilAfter = [], skipUntil = []) { + onError(error); + if (skipUntilAfter.length + skipUntil.length > 0) { + let token = _scanner.getToken(); + while (token !== 17 /* SyntaxKind.EOF */) { + if (skipUntilAfter.indexOf(token) !== -1) { + scanNext(); + break; + } + else if (skipUntil.indexOf(token) !== -1) { + break; + } + token = scanNext(); + } + } + } + function parseString(isValue) { + const value = _scanner.getTokenValue(); + if (isValue) { + onLiteralValue(value); + } + else { + onObjectProperty(value); + // add property name afterwards + _jsonPath.push(value); + } + scanNext(); + return true; + } + function parseLiteral() { + switch (_scanner.getToken()) { + case 11 /* SyntaxKind.NumericLiteral */: + const tokenValue = _scanner.getTokenValue(); + let value = Number(tokenValue); + if (isNaN(value)) { + handleError(2 /* ParseErrorCode.InvalidNumberFormat */); + value = 0; + } + onLiteralValue(value); + break; + case 7 /* SyntaxKind.NullKeyword */: + onLiteralValue(null); + break; + case 8 /* SyntaxKind.TrueKeyword */: + onLiteralValue(true); + break; + case 9 /* SyntaxKind.FalseKeyword */: + onLiteralValue(false); + break; + default: + return false; + } + scanNext(); + return true; + } + function parseProperty() { + if (_scanner.getToken() !== 10 /* SyntaxKind.StringLiteral */) { + handleError(3 /* ParseErrorCode.PropertyNameExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + return false; + } + parseString(false); + if (_scanner.getToken() === 6 /* SyntaxKind.ColonToken */) { + onSeparator(':'); + scanNext(); // consume colon + if (!parseValue()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + } + } + else { + handleError(5 /* ParseErrorCode.ColonExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + } + _jsonPath.pop(); // remove processed property name + return true; + } + function parseObject() { + onObjectBegin(); + scanNext(); // consume open brace + let needsComma = false; + while (_scanner.getToken() !== 2 /* SyntaxKind.CloseBraceToken */ && _scanner.getToken() !== 17 /* SyntaxKind.EOF */) { + if (_scanner.getToken() === 5 /* SyntaxKind.CommaToken */) { + if (!needsComma) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + } + onSeparator(','); + scanNext(); // consume comma + if (_scanner.getToken() === 2 /* SyntaxKind.CloseBraceToken */ && allowTrailingComma) { + break; + } + } + else if (needsComma) { + handleError(6 /* ParseErrorCode.CommaExpected */, [], []); + } + if (!parseProperty()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], [2 /* SyntaxKind.CloseBraceToken */, 5 /* SyntaxKind.CommaToken */]); + } + needsComma = true; + } + onObjectEnd(); + if (_scanner.getToken() !== 2 /* SyntaxKind.CloseBraceToken */) { + handleError(7 /* ParseErrorCode.CloseBraceExpected */, [2 /* SyntaxKind.CloseBraceToken */], []); + } + else { + scanNext(); // consume close brace + } + return true; + } + function parseArray() { + onArrayBegin(); + scanNext(); // consume open bracket + let isFirstElement = true; + let needsComma = false; + while (_scanner.getToken() !== 4 /* SyntaxKind.CloseBracketToken */ && _scanner.getToken() !== 17 /* SyntaxKind.EOF */) { + if (_scanner.getToken() === 5 /* SyntaxKind.CommaToken */) { + if (!needsComma) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + } + onSeparator(','); + scanNext(); // consume comma + if (_scanner.getToken() === 4 /* SyntaxKind.CloseBracketToken */ && allowTrailingComma) { + break; + } + } + else if (needsComma) { + handleError(6 /* ParseErrorCode.CommaExpected */, [], []); + } + if (isFirstElement) { + _jsonPath.push(0); + isFirstElement = false; + } + else { + _jsonPath[_jsonPath.length - 1]++; + } + if (!parseValue()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], [4 /* SyntaxKind.CloseBracketToken */, 5 /* SyntaxKind.CommaToken */]); + } + needsComma = true; + } + onArrayEnd(); + if (!isFirstElement) { + _jsonPath.pop(); // remove array index + } + if (_scanner.getToken() !== 4 /* SyntaxKind.CloseBracketToken */) { + handleError(8 /* ParseErrorCode.CloseBracketExpected */, [4 /* SyntaxKind.CloseBracketToken */], []); + } + else { + scanNext(); // consume close bracket + } + return true; + } + function parseValue() { + switch (_scanner.getToken()) { + case 3 /* SyntaxKind.OpenBracketToken */: + return parseArray(); + case 1 /* SyntaxKind.OpenBraceToken */: + return parseObject(); + case 10 /* SyntaxKind.StringLiteral */: + return parseString(true); + default: + return parseLiteral(); + } + } + scanNext(); + if (_scanner.getToken() === 17 /* SyntaxKind.EOF */) { + if (options.allowEmptyContent) { + return true; + } + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + return false; + } + if (!parseValue()) { + handleError(4 /* ParseErrorCode.ValueExpected */, [], []); + return false; + } + if (_scanner.getToken() !== 17 /* SyntaxKind.EOF */) { + handleError(9 /* ParseErrorCode.EndOfFileExpected */, [], []); + } + return true; + } + exports.visit = visit; + /** + * Takes JSON with JavaScript-style comments and remove + * them. Optionally replaces every none-newline character + * of comments with a replaceCharacter + */ + function stripComments(text, replaceCh) { + let _scanner = (0, scanner_1.createScanner)(text), parts = [], kind, offset = 0, pos; + do { + pos = _scanner.getPosition(); + kind = _scanner.scan(); + switch (kind) { + case 12 /* SyntaxKind.LineCommentTrivia */: + case 13 /* SyntaxKind.BlockCommentTrivia */: + case 17 /* SyntaxKind.EOF */: + if (offset !== pos) { + parts.push(text.substring(offset, pos)); + } + if (replaceCh !== undefined) { + parts.push(_scanner.getTokenValue().replace(/[^\r\n]/g, replaceCh)); + } + offset = _scanner.getPosition(); + break; + } + } while (kind !== 17 /* SyntaxKind.EOF */); + return parts.join(''); + } + exports.stripComments = stripComments; + function getNodeType(value) { + switch (typeof value) { + case 'boolean': return 'boolean'; + case 'number': return 'number'; + case 'string': return 'string'; + case 'object': { + if (!value) { + return 'null'; + } + else if (Array.isArray(value)) { + return 'array'; + } + return 'object'; + } + default: return 'null'; + } + } + exports.getNodeType = getNodeType; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/scanner.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/scanner.js" index ee8812ab387f52ccee79be540acdad491be9f9ce..ebca65f49cc2507b2ca0f8cd784dfdf414896dd7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/scanner.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/scanner.js" @@ -1,3 +1,456 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:581d82c4f1aa84b0605369c01f414fb0164ee462e03daa298cb960076a2a9e82 -size 21446 +(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) { + /*--------------------------------------------------------------------------------------------- + * 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.createScanner = void 0; + /** + * Creates a JSON scanner on the given text. + * If ignoreTrivia is set, whitespaces or comments are ignored. + */ + function createScanner(text, ignoreTrivia = false) { + const len = text.length; + let pos = 0, value = '', tokenOffset = 0, token = 16 /* SyntaxKind.Unknown */, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0 /* ScanError.None */; + function scanHexDigits(count, exact) { + let digits = 0; + let value = 0; + while (digits < count || !exact) { + let ch = text.charCodeAt(pos); + if (ch >= 48 /* CharacterCodes._0 */ && ch <= 57 /* CharacterCodes._9 */) { + value = value * 16 + ch - 48 /* CharacterCodes._0 */; + } + else if (ch >= 65 /* CharacterCodes.A */ && ch <= 70 /* CharacterCodes.F */) { + value = value * 16 + ch - 65 /* CharacterCodes.A */ + 10; + } + else if (ch >= 97 /* CharacterCodes.a */ && ch <= 102 /* CharacterCodes.f */) { + value = value * 16 + ch - 97 /* CharacterCodes.a */ + 10; + } + else { + break; + } + pos++; + digits++; + } + if (digits < count) { + value = -1; + } + return value; + } + function setPosition(newPosition) { + pos = newPosition; + value = ''; + tokenOffset = 0; + token = 16 /* SyntaxKind.Unknown */; + scanError = 0 /* ScanError.None */; + } + function scanNumber() { + let start = pos; + if (text.charCodeAt(pos) === 48 /* CharacterCodes._0 */) { + pos++; + } + else { + pos++; + while (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + } + } + if (pos < text.length && text.charCodeAt(pos) === 46 /* CharacterCodes.dot */) { + pos++; + if (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + while (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + } + } + else { + scanError = 3 /* ScanError.UnexpectedEndOfNumber */; + return text.substring(start, pos); + } + } + let end = pos; + if (pos < text.length && (text.charCodeAt(pos) === 69 /* CharacterCodes.E */ || text.charCodeAt(pos) === 101 /* CharacterCodes.e */)) { + pos++; + if (pos < text.length && text.charCodeAt(pos) === 43 /* CharacterCodes.plus */ || text.charCodeAt(pos) === 45 /* CharacterCodes.minus */) { + pos++; + } + if (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + while (pos < text.length && isDigit(text.charCodeAt(pos))) { + pos++; + } + end = pos; + } + else { + scanError = 3 /* ScanError.UnexpectedEndOfNumber */; + } + } + return text.substring(start, end); + } + function scanString() { + let result = '', start = pos; + while (true) { + if (pos >= len) { + result += text.substring(start, pos); + scanError = 2 /* ScanError.UnexpectedEndOfString */; + break; + } + const ch = text.charCodeAt(pos); + if (ch === 34 /* CharacterCodes.doubleQuote */) { + result += text.substring(start, pos); + pos++; + break; + } + if (ch === 92 /* CharacterCodes.backslash */) { + result += text.substring(start, pos); + pos++; + if (pos >= len) { + scanError = 2 /* ScanError.UnexpectedEndOfString */; + break; + } + const ch2 = text.charCodeAt(pos++); + switch (ch2) { + case 34 /* CharacterCodes.doubleQuote */: + result += '\"'; + break; + case 92 /* CharacterCodes.backslash */: + result += '\\'; + break; + case 47 /* CharacterCodes.slash */: + result += '/'; + break; + case 98 /* CharacterCodes.b */: + result += '\b'; + break; + case 102 /* CharacterCodes.f */: + result += '\f'; + break; + case 110 /* CharacterCodes.n */: + result += '\n'; + break; + case 114 /* CharacterCodes.r */: + result += '\r'; + break; + case 116 /* CharacterCodes.t */: + result += '\t'; + break; + case 117 /* CharacterCodes.u */: + const ch3 = scanHexDigits(4, true); + if (ch3 >= 0) { + result += String.fromCharCode(ch3); + } + else { + scanError = 4 /* ScanError.InvalidUnicode */; + } + break; + default: + scanError = 5 /* ScanError.InvalidEscapeCharacter */; + } + start = pos; + continue; + } + if (ch >= 0 && ch <= 0x1f) { + if (isLineBreak(ch)) { + result += text.substring(start, pos); + scanError = 2 /* ScanError.UnexpectedEndOfString */; + break; + } + else { + scanError = 6 /* ScanError.InvalidCharacter */; + // mark as error but continue with string + } + } + pos++; + } + return result; + } + function scanNext() { + value = ''; + scanError = 0 /* ScanError.None */; + tokenOffset = pos; + lineStartOffset = lineNumber; + prevTokenLineStartOffset = tokenLineStartOffset; + if (pos >= len) { + // at the end + tokenOffset = len; + return token = 17 /* SyntaxKind.EOF */; + } + let code = text.charCodeAt(pos); + // trivia: whitespace + if (isWhiteSpace(code)) { + do { + pos++; + value += String.fromCharCode(code); + code = text.charCodeAt(pos); + } while (isWhiteSpace(code)); + return token = 15 /* SyntaxKind.Trivia */; + } + // trivia: newlines + if (isLineBreak(code)) { + pos++; + value += String.fromCharCode(code); + if (code === 13 /* CharacterCodes.carriageReturn */ && text.charCodeAt(pos) === 10 /* CharacterCodes.lineFeed */) { + pos++; + value += '\n'; + } + lineNumber++; + tokenLineStartOffset = pos; + return token = 14 /* SyntaxKind.LineBreakTrivia */; + } + switch (code) { + // tokens: []{}:, + case 123 /* CharacterCodes.openBrace */: + pos++; + return token = 1 /* SyntaxKind.OpenBraceToken */; + case 125 /* CharacterCodes.closeBrace */: + pos++; + return token = 2 /* SyntaxKind.CloseBraceToken */; + case 91 /* CharacterCodes.openBracket */: + pos++; + return token = 3 /* SyntaxKind.OpenBracketToken */; + case 93 /* CharacterCodes.closeBracket */: + pos++; + return token = 4 /* SyntaxKind.CloseBracketToken */; + case 58 /* CharacterCodes.colon */: + pos++; + return token = 6 /* SyntaxKind.ColonToken */; + case 44 /* CharacterCodes.comma */: + pos++; + return token = 5 /* SyntaxKind.CommaToken */; + // strings + case 34 /* CharacterCodes.doubleQuote */: + pos++; + value = scanString(); + return token = 10 /* SyntaxKind.StringLiteral */; + // comments + case 47 /* CharacterCodes.slash */: + const start = pos - 1; + // Single-line comment + if (text.charCodeAt(pos + 1) === 47 /* CharacterCodes.slash */) { + pos += 2; + while (pos < len) { + if (isLineBreak(text.charCodeAt(pos))) { + break; + } + pos++; + } + value = text.substring(start, pos); + return token = 12 /* SyntaxKind.LineCommentTrivia */; + } + // Multi-line comment + if (text.charCodeAt(pos + 1) === 42 /* CharacterCodes.asterisk */) { + pos += 2; + const safeLength = len - 1; // For lookahead. + let commentClosed = false; + while (pos < safeLength) { + const ch = text.charCodeAt(pos); + if (ch === 42 /* CharacterCodes.asterisk */ && text.charCodeAt(pos + 1) === 47 /* CharacterCodes.slash */) { + pos += 2; + commentClosed = true; + break; + } + pos++; + if (isLineBreak(ch)) { + if (ch === 13 /* CharacterCodes.carriageReturn */ && text.charCodeAt(pos) === 10 /* CharacterCodes.lineFeed */) { + pos++; + } + lineNumber++; + tokenLineStartOffset = pos; + } + } + if (!commentClosed) { + pos++; + scanError = 1 /* ScanError.UnexpectedEndOfComment */; + } + value = text.substring(start, pos); + return token = 13 /* SyntaxKind.BlockCommentTrivia */; + } + // just a single slash + value += String.fromCharCode(code); + pos++; + return token = 16 /* SyntaxKind.Unknown */; + // numbers + case 45 /* CharacterCodes.minus */: + value += String.fromCharCode(code); + pos++; + if (pos === len || !isDigit(text.charCodeAt(pos))) { + return token = 16 /* SyntaxKind.Unknown */; + } + // found a minus, followed by a number so + // we fall through to proceed with scanning + // numbers + case 48 /* CharacterCodes._0 */: + case 49 /* CharacterCodes._1 */: + case 50 /* CharacterCodes._2 */: + case 51 /* CharacterCodes._3 */: + case 52 /* CharacterCodes._4 */: + case 53 /* CharacterCodes._5 */: + case 54 /* CharacterCodes._6 */: + case 55 /* CharacterCodes._7 */: + case 56 /* CharacterCodes._8 */: + case 57 /* CharacterCodes._9 */: + value += scanNumber(); + return token = 11 /* SyntaxKind.NumericLiteral */; + // literals and unknown symbols + default: + // is a literal? Read the full word. + while (pos < len && isUnknownContentCharacter(code)) { + pos++; + code = text.charCodeAt(pos); + } + if (tokenOffset !== pos) { + value = text.substring(tokenOffset, pos); + // keywords: true, false, null + switch (value) { + case 'true': return token = 8 /* SyntaxKind.TrueKeyword */; + case 'false': return token = 9 /* SyntaxKind.FalseKeyword */; + case 'null': return token = 7 /* SyntaxKind.NullKeyword */; + } + return token = 16 /* SyntaxKind.Unknown */; + } + // some + value += String.fromCharCode(code); + pos++; + return token = 16 /* SyntaxKind.Unknown */; + } + } + function isUnknownContentCharacter(code) { + if (isWhiteSpace(code) || isLineBreak(code)) { + return false; + } + switch (code) { + case 125 /* CharacterCodes.closeBrace */: + case 93 /* CharacterCodes.closeBracket */: + case 123 /* CharacterCodes.openBrace */: + case 91 /* CharacterCodes.openBracket */: + case 34 /* CharacterCodes.doubleQuote */: + case 58 /* CharacterCodes.colon */: + case 44 /* CharacterCodes.comma */: + case 47 /* CharacterCodes.slash */: + return false; + } + return true; + } + function scanNextNonTrivia() { + let result; + do { + result = scanNext(); + } while (result >= 12 /* SyntaxKind.LineCommentTrivia */ && result <= 15 /* SyntaxKind.Trivia */); + return result; + } + return { + setPosition: setPosition, + getPosition: () => pos, + scan: ignoreTrivia ? scanNextNonTrivia : scanNext, + getToken: () => token, + getTokenValue: () => value, + getTokenOffset: () => tokenOffset, + getTokenLength: () => pos - tokenOffset, + getTokenStartLine: () => lineStartOffset, + getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset, + getTokenError: () => scanError, + }; + } + exports.createScanner = createScanner; + function isWhiteSpace(ch) { + return ch === 32 /* CharacterCodes.space */ || ch === 9 /* CharacterCodes.tab */; + } + function isLineBreak(ch) { + return ch === 10 /* CharacterCodes.lineFeed */ || ch === 13 /* CharacterCodes.carriageReturn */; + } + function isDigit(ch) { + return ch >= 48 /* CharacterCodes._0 */ && ch <= 57 /* CharacterCodes._9 */; + } + var CharacterCodes; + (function (CharacterCodes) { + CharacterCodes[CharacterCodes["lineFeed"] = 10] = "lineFeed"; + CharacterCodes[CharacterCodes["carriageReturn"] = 13] = "carriageReturn"; + CharacterCodes[CharacterCodes["space"] = 32] = "space"; + CharacterCodes[CharacterCodes["_0"] = 48] = "_0"; + CharacterCodes[CharacterCodes["_1"] = 49] = "_1"; + CharacterCodes[CharacterCodes["_2"] = 50] = "_2"; + CharacterCodes[CharacterCodes["_3"] = 51] = "_3"; + CharacterCodes[CharacterCodes["_4"] = 52] = "_4"; + CharacterCodes[CharacterCodes["_5"] = 53] = "_5"; + CharacterCodes[CharacterCodes["_6"] = 54] = "_6"; + CharacterCodes[CharacterCodes["_7"] = 55] = "_7"; + CharacterCodes[CharacterCodes["_8"] = 56] = "_8"; + CharacterCodes[CharacterCodes["_9"] = 57] = "_9"; + CharacterCodes[CharacterCodes["a"] = 97] = "a"; + CharacterCodes[CharacterCodes["b"] = 98] = "b"; + CharacterCodes[CharacterCodes["c"] = 99] = "c"; + CharacterCodes[CharacterCodes["d"] = 100] = "d"; + CharacterCodes[CharacterCodes["e"] = 101] = "e"; + CharacterCodes[CharacterCodes["f"] = 102] = "f"; + CharacterCodes[CharacterCodes["g"] = 103] = "g"; + CharacterCodes[CharacterCodes["h"] = 104] = "h"; + CharacterCodes[CharacterCodes["i"] = 105] = "i"; + CharacterCodes[CharacterCodes["j"] = 106] = "j"; + CharacterCodes[CharacterCodes["k"] = 107] = "k"; + CharacterCodes[CharacterCodes["l"] = 108] = "l"; + CharacterCodes[CharacterCodes["m"] = 109] = "m"; + CharacterCodes[CharacterCodes["n"] = 110] = "n"; + CharacterCodes[CharacterCodes["o"] = 111] = "o"; + CharacterCodes[CharacterCodes["p"] = 112] = "p"; + CharacterCodes[CharacterCodes["q"] = 113] = "q"; + CharacterCodes[CharacterCodes["r"] = 114] = "r"; + CharacterCodes[CharacterCodes["s"] = 115] = "s"; + CharacterCodes[CharacterCodes["t"] = 116] = "t"; + CharacterCodes[CharacterCodes["u"] = 117] = "u"; + CharacterCodes[CharacterCodes["v"] = 118] = "v"; + CharacterCodes[CharacterCodes["w"] = 119] = "w"; + CharacterCodes[CharacterCodes["x"] = 120] = "x"; + CharacterCodes[CharacterCodes["y"] = 121] = "y"; + CharacterCodes[CharacterCodes["z"] = 122] = "z"; + CharacterCodes[CharacterCodes["A"] = 65] = "A"; + CharacterCodes[CharacterCodes["B"] = 66] = "B"; + CharacterCodes[CharacterCodes["C"] = 67] = "C"; + CharacterCodes[CharacterCodes["D"] = 68] = "D"; + CharacterCodes[CharacterCodes["E"] = 69] = "E"; + CharacterCodes[CharacterCodes["F"] = 70] = "F"; + CharacterCodes[CharacterCodes["G"] = 71] = "G"; + CharacterCodes[CharacterCodes["H"] = 72] = "H"; + CharacterCodes[CharacterCodes["I"] = 73] = "I"; + CharacterCodes[CharacterCodes["J"] = 74] = "J"; + CharacterCodes[CharacterCodes["K"] = 75] = "K"; + CharacterCodes[CharacterCodes["L"] = 76] = "L"; + CharacterCodes[CharacterCodes["M"] = 77] = "M"; + CharacterCodes[CharacterCodes["N"] = 78] = "N"; + CharacterCodes[CharacterCodes["O"] = 79] = "O"; + CharacterCodes[CharacterCodes["P"] = 80] = "P"; + CharacterCodes[CharacterCodes["Q"] = 81] = "Q"; + CharacterCodes[CharacterCodes["R"] = 82] = "R"; + CharacterCodes[CharacterCodes["S"] = 83] = "S"; + CharacterCodes[CharacterCodes["T"] = 84] = "T"; + CharacterCodes[CharacterCodes["U"] = 85] = "U"; + CharacterCodes[CharacterCodes["V"] = 86] = "V"; + CharacterCodes[CharacterCodes["W"] = 87] = "W"; + CharacterCodes[CharacterCodes["X"] = 88] = "X"; + CharacterCodes[CharacterCodes["Y"] = 89] = "Y"; + CharacterCodes[CharacterCodes["Z"] = 90] = "Z"; + CharacterCodes[CharacterCodes["asterisk"] = 42] = "asterisk"; + CharacterCodes[CharacterCodes["backslash"] = 92] = "backslash"; + CharacterCodes[CharacterCodes["closeBrace"] = 125] = "closeBrace"; + CharacterCodes[CharacterCodes["closeBracket"] = 93] = "closeBracket"; + CharacterCodes[CharacterCodes["colon"] = 58] = "colon"; + CharacterCodes[CharacterCodes["comma"] = 44] = "comma"; + CharacterCodes[CharacterCodes["dot"] = 46] = "dot"; + CharacterCodes[CharacterCodes["doubleQuote"] = 34] = "doubleQuote"; + CharacterCodes[CharacterCodes["minus"] = 45] = "minus"; + CharacterCodes[CharacterCodes["openBrace"] = 123] = "openBrace"; + CharacterCodes[CharacterCodes["openBracket"] = 91] = "openBracket"; + CharacterCodes[CharacterCodes["plus"] = 43] = "plus"; + CharacterCodes[CharacterCodes["slash"] = 47] = "slash"; + CharacterCodes[CharacterCodes["formFeed"] = 12] = "formFeed"; + CharacterCodes[CharacterCodes["tab"] = 9] = "tab"; + })(CharacterCodes || (CharacterCodes = {})); +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/string-intern.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/string-intern.js" index 791e444caf9ffd0f9692f552ace6f33faba10e92..177f2d72734a7fdad28df179e9d00e32bf17657c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/string-intern.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/impl/string-intern.js" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e590d27909a7c132382fbf9b8c4668054ab425734c1e0789753063356826c30f -size 1663 +(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 }); + exports.supportedEols = exports.cachedBreakLinesWithSpaces = exports.cachedSpaces = void 0; + exports.cachedSpaces = new Array(20).fill(0).map((_, index) => { + return ' '.repeat(index); + }); + const maxCachedValues = 200; + exports.cachedBreakLinesWithSpaces = { + ' ': { + '\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\n' + ' '.repeat(index); + }), + '\r': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r' + ' '.repeat(index); + }), + '\r\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r\n' + ' '.repeat(index); + }), + }, + '\t': { + '\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\n' + '\t'.repeat(index); + }), + '\r': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r' + '\t'.repeat(index); + }), + '\r\n': new Array(maxCachedValues).fill(0).map((_, index) => { + return '\r\n' + '\t'.repeat(index); + }), + } + }; + exports.supportedEols = ['\n', '\r', '\r\n']; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.d.ts" index 694be0bd6eeee1b89b92cc30b8110de6532fb4d9..7312a36d4f48d03e354ba9c4e45fc28947d33894 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.d.ts" @@ -1,3 +1,349 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d82dad8d8a312706a9bc240c805088fef713bc71eaa622e55970e251b6c1a0f -size 14314 +/** + * Creates a JSON scanner on the given text. + * If ignoreTrivia is set, whitespaces or comments are ignored. + */ +export declare const createScanner: (text: string, ignoreTrivia?: boolean) => JSONScanner; +export declare const enum ScanError { + None = 0, + UnexpectedEndOfComment = 1, + UnexpectedEndOfString = 2, + UnexpectedEndOfNumber = 3, + InvalidUnicode = 4, + InvalidEscapeCharacter = 5, + InvalidCharacter = 6 +} +export declare const enum SyntaxKind { + OpenBraceToken = 1, + CloseBraceToken = 2, + OpenBracketToken = 3, + CloseBracketToken = 4, + CommaToken = 5, + ColonToken = 6, + NullKeyword = 7, + TrueKeyword = 8, + FalseKeyword = 9, + StringLiteral = 10, + NumericLiteral = 11, + LineCommentTrivia = 12, + BlockCommentTrivia = 13, + LineBreakTrivia = 14, + Trivia = 15, + Unknown = 16, + EOF = 17 +} +/** + * The scanner object, representing a JSON scanner at a position in the input string. + */ +export interface JSONScanner { + /** + * Sets the scan position to a new offset. A call to 'scan' is needed to get the first token. + */ + setPosition(pos: number): void; + /** + * Read the next token. Returns the token code. + */ + scan(): SyntaxKind; + /** + * Returns the zero-based current scan position, which is after the last read token. + */ + getPosition(): number; + /** + * Returns the last read token. + */ + getToken(): SyntaxKind; + /** + * Returns the last read token value. The value for strings is the decoded string content. For numbers it's of type number, for boolean it's true or false. + */ + getTokenValue(): string; + /** + * The zero-based start offset of the last read token. + */ + getTokenOffset(): number; + /** + * The length of the last read token. + */ + getTokenLength(): number; + /** + * The zero-based start line number of the last read token. + */ + getTokenStartLine(): number; + /** + * The zero-based start character (column) of the last read token. + */ + getTokenStartCharacter(): number; + /** + * An error code of the last scan. + */ + getTokenError(): ScanError; +} +/** + * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. + */ +export declare const getLocation: (text: string, position: number) => Location; +/** + * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + * Therefore, always check the errors list to find out if the input was valid. + */ +export declare const parse: (text: string, errors?: ParseError[], options?: ParseOptions) => any; +/** + * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + */ +export declare const parseTree: (text: string, errors?: ParseError[], options?: ParseOptions) => Node | undefined; +/** + * Finds the node at the given path in a JSON DOM. + */ +export declare const findNodeAtLocation: (root: Node, path: JSONPath) => Node | undefined; +/** + * Finds the innermost node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. + */ +export declare const findNodeAtOffset: (root: Node, offset: number, includeRightBound?: boolean) => Node | undefined; +/** + * Gets the JSON path of the given JSON DOM node + */ +export declare const getNodePath: (node: Node) => JSONPath; +/** + * Evaluates the JavaScript object of the given JSON DOM node + */ +export declare const getNodeValue: (node: Node) => any; +/** + * Parses the given text and invokes the visitor functions for each object, array and literal reached. + */ +export declare const visit: (text: string, visitor: JSONVisitor, options?: ParseOptions) => any; +/** + * Takes JSON with JavaScript-style comments and remove + * them. Optionally replaces every none-newline character + * of comments with a replaceCharacter + */ +export declare const stripComments: (text: string, replaceCh?: string) => string; +export interface ParseError { + error: ParseErrorCode; + offset: number; + length: number; +} +export declare const enum ParseErrorCode { + InvalidSymbol = 1, + InvalidNumberFormat = 2, + PropertyNameExpected = 3, + ValueExpected = 4, + ColonExpected = 5, + CommaExpected = 6, + CloseBraceExpected = 7, + CloseBracketExpected = 8, + EndOfFileExpected = 9, + InvalidCommentToken = 10, + UnexpectedEndOfComment = 11, + UnexpectedEndOfString = 12, + UnexpectedEndOfNumber = 13, + InvalidUnicode = 14, + InvalidEscapeCharacter = 15, + InvalidCharacter = 16 +} +export declare function printParseErrorCode(code: ParseErrorCode): "InvalidSymbol" | "InvalidNumberFormat" | "PropertyNameExpected" | "ValueExpected" | "ColonExpected" | "CommaExpected" | "CloseBraceExpected" | "CloseBracketExpected" | "EndOfFileExpected" | "InvalidCommentToken" | "UnexpectedEndOfComment" | "UnexpectedEndOfString" | "UnexpectedEndOfNumber" | "InvalidUnicode" | "InvalidEscapeCharacter" | "InvalidCharacter" | ""; +export type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null'; +export interface Node { + readonly type: NodeType; + readonly value?: any; + readonly offset: number; + readonly length: number; + readonly colonOffset?: number; + readonly parent?: Node; + readonly children?: Node[]; +} +/** + * A {@linkcode JSONPath} segment. Either a string representing an object property name + * or a number (starting at 0) for array indices. + */ +export type Segment = string | number; +export type JSONPath = Segment[]; +export interface Location { + /** + * The previous property key or literal value (string, number, boolean or null) or undefined. + */ + previousNode?: Node; + /** + * The path describing the location in the JSON document. The path consists of a sequence of strings + * representing an object property or numbers for array indices. + */ + path: JSONPath; + /** + * Matches the locations path against a pattern consisting of strings (for properties) and numbers (for array indices). + * '*' will match a single segment of any property name or index. + * '**' will match a sequence of segments of any property name or index, or no segment. + */ + matches: (patterns: JSONPath) => boolean; + /** + * If set, the location's offset is at a property key. + */ + isAtPropertyKey: boolean; +} +export interface ParseOptions { + disallowComments?: boolean; + allowTrailingComma?: boolean; + allowEmptyContent?: boolean; +} +/** + * Visitor called by {@linkcode visit} when parsing JSON. + * + * The visitor functions have the following common parameters: + * - `offset`: Global offset within the JSON document, starting at 0 + * - `startLine`: Line number, starting at 0 + * - `startCharacter`: Start character (column) within the current line, starting at 0 + * + * Additionally some functions have a `pathSupplier` parameter which can be used to obtain the + * current `JSONPath` within the document. + */ +export interface JSONVisitor { + /** + * Invoked when an open brace is encountered and an object is started. The offset and length represent the location of the open brace. + */ + onObjectBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a property is encountered. The offset and length represent the location of the property name. + * The `JSONPath` created by the `pathSupplier` refers to the enclosing JSON object, it does not include the + * property name yet. + */ + onObjectProperty?: (property: string, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a closing brace is encountered and an object is completed. The offset and length represent the location of the closing brace. + */ + onObjectEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked when an open bracket is encountered. The offset and length represent the location of the open bracket. + */ + onArrayBegin?: (offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a closing bracket is encountered. The offset and length represent the location of the closing bracket. + */ + onArrayEnd?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked when a literal value is encountered. The offset and length represent the location of the literal value. + */ + onLiteralValue?: (value: any, offset: number, length: number, startLine: number, startCharacter: number, pathSupplier: () => JSONPath) => void; + /** + * Invoked when a comma or colon separator is encountered. The offset and length represent the location of the separator. + */ + onSeparator?: (character: string, offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * When comments are allowed, invoked when a line or block comment is encountered. The offset and length represent the location of the comment. + */ + onComment?: (offset: number, length: number, startLine: number, startCharacter: number) => void; + /** + * Invoked on an error. + */ + onError?: (error: ParseErrorCode, offset: number, length: number, startLine: number, startCharacter: number) => void; +} +/** + * An edit result describes a textual edit operation. It is the result of a {@linkcode format} and {@linkcode modify} operation. + * It consist of one or more edits describing insertions, replacements or removals of text segments. + * * The offsets of the edits refer to the original state of the document. + * * No two edits change or remove the same range of text in the original document. + * * Multiple edits can have the same offset if they are multiple inserts, or an insert followed by a remove or replace. + * * The order in the array defines which edit is applied first. + * To apply an edit result use {@linkcode applyEdits}. + * In general multiple EditResults must not be concatenated because they might impact each other, producing incorrect or malformed JSON data. + */ +export type EditResult = Edit[]; +/** + * Represents a text modification + */ +export interface Edit { + /** + * The start offset of the modification. + */ + offset: number; + /** + * The length of the modification. Must not be negative. Empty length represents an *insert*. + */ + length: number; + /** + * The new content. Empty content represents a *remove*. + */ + content: string; +} +/** + * A text range in the document +*/ +export interface Range { + /** + * The start offset of the range. + */ + offset: number; + /** + * The length of the range. Must not be negative. + */ + length: number; +} +/** + * Options used by {@linkcode format} when computing the formatting edit operations + */ +export interface FormattingOptions { + /** + * If indentation is based on spaces (`insertSpaces` = true), the number of spaces that make an indent. + */ + tabSize?: number; + /** + * Is indentation based on spaces? + */ + insertSpaces?: boolean; + /** + * The default 'end of line' character. If not set, '\n' is used as default. + */ + eol?: string; + /** + * If set, will add a new line at the end of the document. + */ + insertFinalNewline?: boolean; + /** + * If true, will keep line positions as is in the formatting + */ + keepLines?: boolean; +} +/** + * Computes the edit operations needed to format a JSON document. + * + * @param documentText The input text + * @param range The range to format or `undefined` to format the full content + * @param options The formatting options + * @returns The edit operations describing the formatting changes to the original document following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export declare function format(documentText: string, range: Range | undefined, options: FormattingOptions): EditResult; +/** + * Options used by {@linkcode modify} when computing the modification edit operations + */ +export interface ModificationOptions { + /** + * Formatting options. If undefined, the newly inserted code will be inserted unformatted. + */ + formattingOptions?: FormattingOptions; + /** + * Default false. If `JSONPath` refers to an index of an array and `isArrayInsertion` is `true`, then + * {@linkcode modify} will insert a new item at that location instead of overwriting its contents. + */ + isArrayInsertion?: boolean; + /** + * Optional function to define the insertion index given an existing list of properties. + */ + getInsertionIndex?: (properties: string[]) => number; +} +/** + * Computes the edit operations needed to modify a value in the JSON document. + * + * @param documentText The input text + * @param path The path of the value to change. The path represents either to the document root, a property or an array item. + * If the path points to an non-existing property or item, it will be created. + * @param value The new value for the specified property or item. If the value is undefined, + * the property or item will be removed. + * @param options Options + * @returns The edit operations describing the changes to the original document, following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ +export declare function modify(text: string, path: JSONPath, value: any, options: ModificationOptions): EditResult; +/** + * Applies edits to an input string. + * @param text The input text + * @param edits Edit operations following the format described in {@linkcode EditResult}. + * @returns The text with the applied edits. + * @throws An error if the edit operations are not well-formed as described in {@linkcode EditResult}. + */ +export declare function applyEdits(text: string, edits: EditResult): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.js" index 94fc7a3ebbf516e6325b93cbfdf9599da4e8757d..2ed744665430578caebcb12053150fbf4d7e76da 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/lib/umd/main.js" @@ -1,3 +1,194 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6dc132e2e792a9616688ff93d10dd671c1fbcfa3301d76bff3e81193d049337d -size 11059 +(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", "./impl/format", "./impl/edit", "./impl/scanner", "./impl/parser"], factory); + } +})(function (require, exports) { + /*--------------------------------------------------------------------------------------------- + * 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.applyEdits = exports.modify = exports.format = exports.printParseErrorCode = exports.ParseErrorCode = exports.stripComments = exports.visit = exports.getNodeValue = exports.getNodePath = exports.findNodeAtOffset = exports.findNodeAtLocation = exports.parseTree = exports.parse = exports.getLocation = exports.SyntaxKind = exports.ScanError = exports.createScanner = void 0; + const formatter = require("./impl/format"); + const edit = require("./impl/edit"); + const scanner = require("./impl/scanner"); + const parser = require("./impl/parser"); + /** + * Creates a JSON scanner on the given text. + * If ignoreTrivia is set, whitespaces or comments are ignored. + */ + exports.createScanner = scanner.createScanner; + var ScanError; + (function (ScanError) { + ScanError[ScanError["None"] = 0] = "None"; + ScanError[ScanError["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment"; + ScanError[ScanError["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString"; + ScanError[ScanError["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber"; + ScanError[ScanError["InvalidUnicode"] = 4] = "InvalidUnicode"; + ScanError[ScanError["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter"; + ScanError[ScanError["InvalidCharacter"] = 6] = "InvalidCharacter"; + })(ScanError || (exports.ScanError = ScanError = {})); + var SyntaxKind; + (function (SyntaxKind) { + SyntaxKind[SyntaxKind["OpenBraceToken"] = 1] = "OpenBraceToken"; + SyntaxKind[SyntaxKind["CloseBraceToken"] = 2] = "CloseBraceToken"; + SyntaxKind[SyntaxKind["OpenBracketToken"] = 3] = "OpenBracketToken"; + SyntaxKind[SyntaxKind["CloseBracketToken"] = 4] = "CloseBracketToken"; + SyntaxKind[SyntaxKind["CommaToken"] = 5] = "CommaToken"; + SyntaxKind[SyntaxKind["ColonToken"] = 6] = "ColonToken"; + SyntaxKind[SyntaxKind["NullKeyword"] = 7] = "NullKeyword"; + SyntaxKind[SyntaxKind["TrueKeyword"] = 8] = "TrueKeyword"; + SyntaxKind[SyntaxKind["FalseKeyword"] = 9] = "FalseKeyword"; + SyntaxKind[SyntaxKind["StringLiteral"] = 10] = "StringLiteral"; + SyntaxKind[SyntaxKind["NumericLiteral"] = 11] = "NumericLiteral"; + SyntaxKind[SyntaxKind["LineCommentTrivia"] = 12] = "LineCommentTrivia"; + SyntaxKind[SyntaxKind["BlockCommentTrivia"] = 13] = "BlockCommentTrivia"; + SyntaxKind[SyntaxKind["LineBreakTrivia"] = 14] = "LineBreakTrivia"; + SyntaxKind[SyntaxKind["Trivia"] = 15] = "Trivia"; + SyntaxKind[SyntaxKind["Unknown"] = 16] = "Unknown"; + SyntaxKind[SyntaxKind["EOF"] = 17] = "EOF"; + })(SyntaxKind || (exports.SyntaxKind = SyntaxKind = {})); + /** + * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index. + */ + exports.getLocation = parser.getLocation; + /** + * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + * Therefore, always check the errors list to find out if the input was valid. + */ + exports.parse = parser.parse; + /** + * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. + */ + exports.parseTree = parser.parseTree; + /** + * Finds the node at the given path in a JSON DOM. + */ + exports.findNodeAtLocation = parser.findNodeAtLocation; + /** + * Finds the innermost node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset. + */ + exports.findNodeAtOffset = parser.findNodeAtOffset; + /** + * Gets the JSON path of the given JSON DOM node + */ + exports.getNodePath = parser.getNodePath; + /** + * Evaluates the JavaScript object of the given JSON DOM node + */ + exports.getNodeValue = parser.getNodeValue; + /** + * Parses the given text and invokes the visitor functions for each object, array and literal reached. + */ + exports.visit = parser.visit; + /** + * Takes JSON with JavaScript-style comments and remove + * them. Optionally replaces every none-newline character + * of comments with a replaceCharacter + */ + exports.stripComments = parser.stripComments; + var ParseErrorCode; + (function (ParseErrorCode) { + ParseErrorCode[ParseErrorCode["InvalidSymbol"] = 1] = "InvalidSymbol"; + ParseErrorCode[ParseErrorCode["InvalidNumberFormat"] = 2] = "InvalidNumberFormat"; + ParseErrorCode[ParseErrorCode["PropertyNameExpected"] = 3] = "PropertyNameExpected"; + ParseErrorCode[ParseErrorCode["ValueExpected"] = 4] = "ValueExpected"; + ParseErrorCode[ParseErrorCode["ColonExpected"] = 5] = "ColonExpected"; + ParseErrorCode[ParseErrorCode["CommaExpected"] = 6] = "CommaExpected"; + ParseErrorCode[ParseErrorCode["CloseBraceExpected"] = 7] = "CloseBraceExpected"; + ParseErrorCode[ParseErrorCode["CloseBracketExpected"] = 8] = "CloseBracketExpected"; + ParseErrorCode[ParseErrorCode["EndOfFileExpected"] = 9] = "EndOfFileExpected"; + ParseErrorCode[ParseErrorCode["InvalidCommentToken"] = 10] = "InvalidCommentToken"; + ParseErrorCode[ParseErrorCode["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment"; + ParseErrorCode[ParseErrorCode["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString"; + ParseErrorCode[ParseErrorCode["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber"; + ParseErrorCode[ParseErrorCode["InvalidUnicode"] = 14] = "InvalidUnicode"; + ParseErrorCode[ParseErrorCode["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter"; + ParseErrorCode[ParseErrorCode["InvalidCharacter"] = 16] = "InvalidCharacter"; + })(ParseErrorCode || (exports.ParseErrorCode = ParseErrorCode = {})); + function printParseErrorCode(code) { + switch (code) { + case 1 /* ParseErrorCode.InvalidSymbol */: return 'InvalidSymbol'; + case 2 /* ParseErrorCode.InvalidNumberFormat */: return 'InvalidNumberFormat'; + case 3 /* ParseErrorCode.PropertyNameExpected */: return 'PropertyNameExpected'; + case 4 /* ParseErrorCode.ValueExpected */: return 'ValueExpected'; + case 5 /* ParseErrorCode.ColonExpected */: return 'ColonExpected'; + case 6 /* ParseErrorCode.CommaExpected */: return 'CommaExpected'; + case 7 /* ParseErrorCode.CloseBraceExpected */: return 'CloseBraceExpected'; + case 8 /* ParseErrorCode.CloseBracketExpected */: return 'CloseBracketExpected'; + case 9 /* ParseErrorCode.EndOfFileExpected */: return 'EndOfFileExpected'; + case 10 /* ParseErrorCode.InvalidCommentToken */: return 'InvalidCommentToken'; + case 11 /* ParseErrorCode.UnexpectedEndOfComment */: return 'UnexpectedEndOfComment'; + case 12 /* ParseErrorCode.UnexpectedEndOfString */: return 'UnexpectedEndOfString'; + case 13 /* ParseErrorCode.UnexpectedEndOfNumber */: return 'UnexpectedEndOfNumber'; + case 14 /* ParseErrorCode.InvalidUnicode */: return 'InvalidUnicode'; + case 15 /* ParseErrorCode.InvalidEscapeCharacter */: return 'InvalidEscapeCharacter'; + case 16 /* ParseErrorCode.InvalidCharacter */: return 'InvalidCharacter'; + } + return ''; + } + exports.printParseErrorCode = printParseErrorCode; + /** + * Computes the edit operations needed to format a JSON document. + * + * @param documentText The input text + * @param range The range to format or `undefined` to format the full content + * @param options The formatting options + * @returns The edit operations describing the formatting changes to the original document following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ + function format(documentText, range, options) { + return formatter.format(documentText, range, options); + } + exports.format = format; + /** + * Computes the edit operations needed to modify a value in the JSON document. + * + * @param documentText The input text + * @param path The path of the value to change. The path represents either to the document root, a property or an array item. + * If the path points to an non-existing property or item, it will be created. + * @param value The new value for the specified property or item. If the value is undefined, + * the property or item will be removed. + * @param options Options + * @returns The edit operations describing the changes to the original document, following the format described in {@linkcode EditResult}. + * To apply the edit operations to the input, use {@linkcode applyEdits}. + */ + function modify(text, path, value, options) { + return edit.setProperty(text, path, value, options); + } + exports.modify = modify; + /** + * Applies edits to an input string. + * @param text The input text + * @param edits Edit operations following the format described in {@linkcode EditResult}. + * @returns The text with the applied edits. + * @throws An error if the edit operations are not well-formed as described in {@linkcode EditResult}. + */ + function applyEdits(text, edits) { + let sortedEdits = edits.slice(0).sort((a, b) => { + const diff = a.offset - b.offset; + if (diff === 0) { + return a.length - b.length; + } + return diff; + }); + let lastModifiedOffset = text.length; + for (let i = sortedEdits.length - 1; i >= 0; i--) { + let e = sortedEdits[i]; + if (e.offset + e.length <= lastModifiedOffset) { + text = edit.applyEdit(text, e); + } + else { + throw new Error('Overlapping edit'); + } + lastModifiedOffset = e.offset; + } + return text; + } + exports.applyEdits = applyEdits; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/package.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/package.json" index 895928e60f0e511895647af5e4468007463932b6..da7a76b27709ed983d4c62c132e278b0da791872 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/package.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/jsonc-parser/package.json" @@ -1,3 +1,37 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6442d10a23718191adbedd34448552cea97a8ff9c67ee71292a9e1ab5d9a140d -size 1180 +{ + "name": "jsonc-parser", + "version": "3.2.1", + "description": "Scanner and parser for JSON with comments.", + "main": "./lib/umd/main.js", + "typings": "./lib/umd/main.d.ts", + "module": "./lib/esm/main.js", + "author": "Microsoft Corporation", + "repository": { + "type": "git", + "url": "https://github.com/microsoft/node-jsonc-parser" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/microsoft/node-jsonc-parser/issues" + }, + "devDependencies": { + "mocha": "^10.2.0", + "typescript": "^5.3.3", + "@types/node": "^16.x", + "@types/mocha": "^10.0.6", + "@typescript-eslint/eslint-plugin": "^6.19.1", + "@typescript-eslint/parser": "^6.19.1", + "eslint": "^8.56.0", + "rimraf": "^5.0.5" + }, + "scripts": { + "prepack": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs", + "compile": "tsc -p ./src && npm run lint", + "compile-esm": "tsc -p ./src/tsconfig.esm.json", + "remove-sourcemap-refs": "node ./build/remove-sourcemap-refs.js", + "clean": "rimraf lib", + "watch": "tsc -w -p ./src", + "test": "npm run compile && mocha ./lib/umd/test", + "lint": "eslint src/**/*.ts" + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/CHANGELOG.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/CHANGELOG.md" index 01027493ca6ebd3d9bb3a164c325879e20db0eae..a5a070c23ce0e3d9839d99f27fd8f145e8077eb7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/CHANGELOG.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/CHANGELOG.md" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b2af9ad9049e7be023378bb4f2de4d8aadf027c895731ff160edeb40a6f0d5a -size 614 + +0.5.0 / 2021-07-12 +================== +* support binary content (XHRResponse.body) +* updated to http-proxy-agent@4.0.1, https-proxy-agent@5.0.0 +* webpacked, stripping out debug and dependencies +* tests + +0.4.0 / 2020-06-17 +================== +* support for browser ('browser' in package.json) + +0.3.0 / 2020-02-28 +================== +* Add XHRResponse.headers + +0.2.5 / 2019-11-30 +================== +* update https-proxy-agent + +0.2.2 / 2017-12-21 +================== + * Error handling for gzip errors + * Update http-proxy-agent & https-proxy-agent + +0.2.1 / 2017-05-16 +================== + * Support for gzip & deflate diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/LICENSE.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/LICENSE.md" index 28f77a90b0472b57e139eebdb907553e6a2b20ba..1c65de1db32e326f2bd84b036db911248779eaa7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/LICENSE.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/LICENSE.md" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3a24c02d678e5f0711623dcf3ab3f243b273c2633f638a1fa8e35fb7c7f8e4d -size 1092 +The MIT License (MIT) + +Copyright (c) Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, 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 THE +SOFTWARE. diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/README.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/README.md" index 5a0e351abf40ebc68e495f5d591c8caefb74ac6a..a87613c9f643b0dc1e02bce39ed345549036ee93 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/README.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/README.md" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9a2500e6877c77c92fcab63fae8f282ae9e84f327f16ad96ba6dea0592b98022 -size 1034 +# request-light + + +[![npm Package](https://img.shields.io/npm/v/request-light.svg?style=flat-square)](https://www.npmjs.org/package/request-light) +[![NPM Downloads](https://img.shields.io/npm/dm/request-light.svg)](https://npmjs.org/package/request-light) +[![Build Status](https://github.com/microsoft/node-request-light/workflows/Tests/badge.svg)](https://github.com/microsoft/node-request-light/workflows/Tests) + +A lightweight request library intended to be used by VSCode extensions. +- NodeJS and browser main entry points +- proxy support: Use `configure` or `HTTP_PROXY` and `HTTPS_PROXY` env variables to configure the HTTP proxy addresses. + +```ts +import { xhr, XHRResponse, getErrorStatusDescription } from 'request-light'; + +const headers = { 'Accept-Encoding': 'gzip, deflate' }; +return xhr({ url: url, followRedirects: 5, headers }).then(response => { + return response.responseText; +}, (error: XHRResponse) => { + throw new Error(error.responseText || getErrorStatusDescription(error.status) || error.toString()); +}); +``` diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/api.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/api.d.ts" index 1cac08bc8de1d752c094575d322fee6e3d0d9610..b680ffc9e7bf45ced81b240235005395f9e12bc9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/api.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/api.d.ts" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6486f836f71e651ba4bf76e3c6dd18ec2ae0276607e6018ff0299291b0425c2d -size 1350 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +export interface XHROptions { + type?: string; + url: string; + user?: string; + password?: string; + headers?: Headers; + timeout?: number; + data?: string; + strictSSL?: boolean; + followRedirects?: number; + agent?: HttpProxyAgent | HttpsProxyAgent; +} + +export interface XHRResponse { + readonly responseText: string; + readonly body: Uint8Array; + readonly status: number; + readonly headers: Headers; +} + +export interface XHRRequest { + (options: XHROptions): Promise +} + +export interface XHRConfigure { + (proxyUrl: string | undefined, strictSSL: boolean): void; +} + +export type HttpProxyAgent = import('http-proxy-agent').HttpProxyAgent; + +export type HttpsProxyAgent = import('https-proxy-agent').HttpsProxyAgent; + +export type Headers = { [header: string]: string | string[] | undefined }; + +export declare const configure: XHRConfigure; +export declare const xhr: XHRRequest; + +export declare function getErrorStatusDescription(status: number): string; \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/browser/main.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/browser/main.js" index f170dc52cb32c47000795ab54c9538052c6b737a..65cafaf0bfa4bfc79f87ca4ec95cf7415db6efe3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/browser/main.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/browser/main.js" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f8b3525788117195986e06669a37cef5ba4b4ab7529a93cfd076b254823cc282 -size 959 +(()=>{"use strict";var e={};(()=>{var r=e;Object.defineProperty(r,"__esModule",{value:!0}),r.getErrorStatusDescription=r.xhr=r.configure=void 0,r.configure=(e,r)=>{},r.xhr=async e=>{const r=new Headers;if(e.headers)for(const t in e.headers){const s=e.headers[t];Array.isArray(s)?s.forEach((e=>r.set(t,e))):r.set(t,s)}e.user&&e.password&&r.set("Authorization","Basic "+btoa(e.user+":"+e.password));const t={method:e.type,redirect:e.followRedirects>0?"follow":"manual",mode:"cors",headers:r};e.data&&(t.body=e.data);const s=new Request(e.url,t),o=await fetch(s),a={};o.headers.forEach(((e,r)=>{a[r]=e}));const n=await o.arrayBuffer();return new class{constructor(){this.status=o.status,this.headers=a}get responseText(){return(new TextDecoder).decode(n)}get body(){return new Uint8Array(n)}}},r.getErrorStatusDescription=function(e){return String(e)}})();var r=exports;for(var t in e)r[t]=e[t];e.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})(); \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/node/main.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/node/main.js" index d34ec202400969b8946208f22c927a918577815d..1ec11d985cee628aca8d06a966938fb19c26fdf4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/node/main.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/lib/node/main.js" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c38dcb67d9842332d1f776c2678ce770485a227c42f39a0026e79c2b5e4c22b -size 23820 +(()=>{var e={46:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,{signal:r}={}){return new Promise(((o,n)=>{function s(){null==r||r.removeEventListener("abort",s),e.removeListener(t,a),e.removeListener("error",u)}function a(...e){s(),o(e)}function u(e){s(),n(e)}null==r||r.addEventListener("abort",s),e.on(t,a),e.on("error",u)}))}},54:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const n=r(361),s=o(r(374)),a=o(r(304)),u=s.default("agent-base");function i(){const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some((e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:")))}function c(e,t){return new c.Agent(e,t)}!function(e){class t extends n.EventEmitter{constructor(e,t){super();let r=t;"function"==typeof e?this.callback=e:e&&(r=e),this.timeout=null,r&&"number"==typeof r.timeout&&(this.timeout=r.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:i()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:i()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const r=Object.assign({},t);"boolean"!=typeof r.secureEndpoint&&(r.secureEndpoint=i()),null==r.host&&(r.host="localhost"),null==r.port&&(r.port=r.secureEndpoint?443:80),null==r.protocol&&(r.protocol=r.secureEndpoint?"https:":"http:"),r.host&&r.path&&delete r.path,delete r.agent,delete r.hostname,delete r._defaultAgent,delete r.defaultPort,delete r.createConnection,e._last=!0,e.shouldKeepAlive=!1;let o=!1,n=null;const s=r.timeout||this.timeout,c=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},l=()=>{n=null,o=!0;const e=new Error(`A "socket" was not created for HTTP request before ${s}ms`);e.code="ETIMEOUT",c(e)},d=e=>{o||(null!==n&&(clearTimeout(n),n=null),c(e))},f=t=>{if(o)return;if(null!=n&&(clearTimeout(n),n=null),s=t,Boolean(s)&&"function"==typeof s.addRequest)return u("Callback returned another Agent instance %o",t.constructor.name),void t.addRequest(e,r);var s;if(t)return t.once("free",(()=>{this.freeSocket(t,r)})),void e.onSocket(t);const a=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);c(a)};if("function"==typeof this.callback){this.promisifiedCallback||(this.callback.length>=3?(u("Converting legacy callback function to promise"),this.promisifiedCallback=a.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof s&&s>0&&(n=setTimeout(l,s)),"port"in r&&"number"!=typeof r.port&&(r.port=Number(r.port));try{u("Resolving socket for %o request: %o",r.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,r)).then(f,d)}catch(e){Promise.reject(e).catch(d)}}else c(new Error("`callback` is not defined"))}freeSocket(e,t){u("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){u("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype}(c||(c={})),e.exports=c},304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,r){return new Promise(((o,n)=>{e.call(this,t,r,((e,t)=>{e?n(e):o(t)}))}))}}},370:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,s){function a(e){try{i(o.next(e))}catch(e){s(e)}}function u(e){try{i(o.throw(e))}catch(e){s(e)}}function i(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}i((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(r(808)),a=n(r(404)),u=n(r(310)),i=n(r(374)),c=n(r(46)),l=r(54),d=(0,i.default)("http-proxy-agent");class f extends l.Agent{constructor(e){let t;if(t="string"==typeof e?u.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");d("Creating new HttpProxyAgent instance: %o",t),super(t);const r=Object.assign({},t);var o;this.secureProxy=t.secureProxy||"string"==typeof(o=r.protocol)&&/^https:?$/i.test(o),r.host=r.hostname||r.host,"string"==typeof r.port&&(r.port=parseInt(r.port,10)),!r.port&&r.host&&(r.port=this.secureProxy?443:80),r.host&&r.path&&(delete r.path,delete r.pathname),this.proxy=r}callback(e,t){return o(this,void 0,void 0,(function*(){const{proxy:r,secureProxy:o}=this,n=u.default.parse(e.path);let i;if(n.protocol||(n.protocol="http:"),n.hostname||(n.hostname=t.hostname||t.host||null),null==n.port&&(t.port,1)&&(n.port=String(t.port)),"80"===n.port&&(n.port=""),e.path=u.default.format(n),r.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(r.auth).toString("base64")}`),o?(d("Creating `tls.Socket`: %o",r),i=a.default.connect(r)):(d("Creating `net.Socket`: %o",r),i=s.default.connect(r)),e._header){let t,r;d("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(d("Patching connection write() output buffer with updated header"),t=e.output[0],r=t.indexOf("\r\n\r\n")+4,e.output[0]=e._header+t.substring(r),d("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(d("Patching connection write() output buffer with updated header"),t=e.outputData[0].data,r=t.indexOf("\r\n\r\n")+4,e.outputData[0].data=e._header+t.substring(r),d("Output buffer: %o",e.outputData[0].data))}return yield(0,c.default)(i,"connect"),i}))}}t.default=f},201:function(e,t,r){"use strict";const o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(370));function n(e){return new o.default(e)}!function(e){e.HttpProxyAgent=o.default,e.prototype=o.default.prototype}(n||(n={})),e.exports=n},146:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,s){function a(e){try{i(o.next(e))}catch(e){s(e)}}function u(e){try{i(o.throw(e))}catch(e){s(e)}}function i(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}i((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(r(808)),a=n(r(404)),u=n(r(310)),i=n(r(491)),c=n(r(374)),l=r(54),d=n(r(829)),f=c.default("https-proxy-agent:agent");class p extends l.Agent{constructor(e){let t;if(t="string"==typeof e?u.default.parse(e):e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");f("creating new HttpsProxyAgent instance: %o",t),super(t);const r=Object.assign({},t);var o;this.secureProxy=t.secureProxy||"string"==typeof(o=r.protocol)&&/^https:?$/i.test(o),r.host=r.hostname||r.host,"string"==typeof r.port&&(r.port=parseInt(r.port,10)),!r.port&&r.host&&(r.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in r)&&(r.ALPNProtocols=["http 1.1"]),r.host&&r.path&&(delete r.path,delete r.pathname),this.proxy=r}callback(e,t){return o(this,void 0,void 0,(function*(){const{proxy:r,secureProxy:o}=this;let n;o?(f("Creating `tls.Socket`: %o",r),n=a.default.connect(r)):(f("Creating `net.Socket`: %o",r),n=s.default.connect(r));const u=Object.assign({},r.headers);let c=`CONNECT ${t.host}:${t.port} HTTP/1.1\r\n`;r.auth&&(u["Proxy-Authorization"]=`Basic ${Buffer.from(r.auth).toString("base64")}`);let{host:l,port:p,secureEndpoint:g}=t;(function(e,t){return Boolean(!t&&80===e||t&&443===e)})(p,g)||(l+=`:${p}`),u.Host=l,u.Connection="close";for(const e of Object.keys(u))c+=`${e}: ${u[e]}\r\n`;const v=d.default(n);n.write(`${c}\r\n`);const{statusCode:m,buffered:y}=yield v;if(200===m){if(e.once("socket",h),t.secureEndpoint){const e=t.servername||t.host;if(!e)throw new Error('Could not determine "servername"');return f("Upgrading socket connection to TLS"),a.default.connect(Object.assign(Object.assign({},function(e,...t){const r={};let o;for(o in e)t.includes(o)||(r[o]=e[o]);return r}(t,"host","hostname","path","port")),{socket:n,servername:e}))}return n}n.destroy();const b=new s.default.Socket;return b.readable=!0,e.once("socket",(e=>{f("replaying proxy buffer for failed request"),i.default(e.listenerCount("data")>0),e.push(y),e.push(null)})),b}))}}function h(e){e.resume()}t.default=p},18:function(e,t,r){"use strict";const o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(146));function n(e){return new o.default(e)}!function(e){e.HttpsProxyAgent=o.default,e.prototype=o.default.prototype}(n||(n={})),e.exports=n},829:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r(374)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise(((t,r)=>{let o=0;const s=[];function a(){const r=e.read();r?function(e){s.push(e),o+=e.length;const r=Buffer.concat(s,o);if(-1===r.indexOf("\r\n\r\n"))return n("have not received end of HTTP headers yet..."),void a();const u=r.toString("ascii",0,r.indexOf("\r\n")),i=+u.split(" ")[1];n("got proxy server response: %o",u),t({statusCode:i,buffered:r})}(r):e.once("readable",a)}function u(e){n("onclose had error %o",e)}function i(){n("onend")}e.on("error",(function t(o){e.removeListener("end",i),e.removeListener("error",t),e.removeListener("close",u),e.removeListener("readable",a),n("onerror %o",o),r(o)})),e.on("close",u),e.on("end",i),a()}))}},539:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=300&&o.statusCode<400&&e.followRedirects&&e.followRedirects>0&&o.headers.location){var s=o.headers.location;s.startsWith("/")&&(s=(0,n.format)({protocol:u.protocol,hostname:u.hostname,port:u.port,pathname:s})),r(g(function(e){for(var t=[],r=1;r=100&&i<200||204===i||304===i))){var h={flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH};if("gzip"===p){var g=u.createGunzip(h);c.pipe(g),l=g}else if("deflate"===p){var v=u.createInflate(h);c.pipe(v),l=v}}var m=[];l.on("data",(function(e){return m.push(e)})),l.on("end",(function(){if(!d){if(d=!0,e.followRedirects>0&&(c.statusCode>=300&&c.statusCode<=303||307===c.statusCode)){var r=c.headers.location;if(r.startsWith("/")){var a=(0,n.parse)(e.url);r=(0,n.format)({protocol:a.protocol,hostname:a.hostname,port:a.port,pathname:r})}if(r){var u={type:e.type,url:r,user:e.user,password:e.password,headers:e.headers,timeout:e.timeout,followRedirects:e.followRedirects-1,data:e.data};return void(0,t.xhr)(u).then(o,s)}}var i=Buffer.concat(m),l={responseText:i.toString(),body:i,status:c.statusCode,headers:c.headers||{}};c.statusCode>=200&&c.statusCode<300||1223===c.statusCode?o(l):s(l)}})),l.on("error",(function(t){var r={responseText:f("error","Unable to access {0}. Error: {1}",e.url,t.message),body:Buffer.concat(m),status:500,headers:{}};d=!0,s(r)}))}))}),(function(t){var r;return r=e.agent?f("error.cannot.connect.proxy","Unable to connect to {0} through a proxy. Error: {1}",e.url,t.message):f("error.cannot.connect","Unable to connect to {0}. Error: {1}",e.url,t.message),Promise.reject({responseText:r,body:Buffer.concat([]),status:404,headers:{}})}))},t.getErrorStatusDescription=function(e){if(!(e<400))switch(e){case 400:return f("status.400","Bad request. The request cannot be fulfilled due to bad syntax.");case 401:return f("status.401","Unauthorized. The server is refusing to respond.");case 403:return f("status.403","Forbidden. The server is refusing to respond.");case 404:return f("status.404","Not Found. The requested location could not be found.");case 405:return f("status.405","Method not allowed. A request was made using a request method not supported by that location.");case 406:return f("status.406","Not Acceptable. The server can only generate a response that is not accepted by the client.");case 407:return f("status.407","Proxy Authentication Required. The client must first authenticate itself with the proxy.");case 408:return f("status.408","Request Timeout. The server timed out waiting for the request.");case 409:return f("status.409","Conflict. The request could not be completed because of a conflict in the request.");case 410:return f("status.410","Gone. The requested page is no longer available.");case 411:return f("status.411",'Length Required. The "Content-Length" is not defined.');case 412:return f("status.412","Precondition Failed. The precondition given in the request evaluated to false by the server.");case 413:return f("status.413","Request Entity Too Large. The server will not accept the request, because the request entity is too large.");case 414:return f("status.414","Request-URI Too Long. The server will not accept the request, because the URL is too long.");case 415:return f("status.415","Unsupported Media Type. The server will not accept the request, because the media type is not supported.");case 500:return f("status.500","Internal Server Error.");case 501:return f("status.501","Not Implemented. The server either does not recognize the request method, or it lacks the ability to fulfill the request.");case 503:return f("status.503","Service Unavailable. The server is currently unavailable (overloaded or down).");default:return f("status.416","HTTP status code {0}",e)}}},800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var o,n,s,a=r(926);function u(e){return void 0!==e}function i(e,r){return t.isPseudo&&(e="ïĵğ"+e.replace(/[aouei]/g,"$&$&")+"ïĵ½"),0===r.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var o=t[0],n=r[o],s=e;return"string"==typeof n?s=n:"number"!=typeof n&&"boolean"!=typeof n&&null!=n||(s=String(n)),s}))}(s=t.MessageFormat||(t.MessageFormat={})).file="file",s.bundle="bundle",s.both="both",(n=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",n.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&u(t.key)&&u(t.comment)}}(o||(o={})),t.isDefined=u,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=i,t.localize=function(e,t){for(var r=[],o=2;o{"use strict";var r;function o(){if(void 0===r)throw new Error("No runtime abstraction layer installed");return r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");r=e}}(o||(o={})),t.default=o},472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=void 0;var o=r(17),n=r(147),s=r(926),a=r(800),u=r(800);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return u.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return u.BundleFormat}});var i,c,l=Object.prototype.toString;function d(e){return"[object Number]"===l.call(e)}function f(e){return"[object String]"===l.call(e)}function p(e){return JSON.parse(n.readFileSync(e,"utf8"))}function h(e){return function(t,r){for(var o=[],n=2;n=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):a.format(e[t],o):f(r)?(console.warn("Message "+r+" didn't get externalized correctly."),a.format(r,o)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function g(e,t){return i[e]=t,t}function v(e){try{return function(e){var t=p(o.join(e,"nls.metadata.json")),r=Object.create(null);for(var n in t){var s=t[n];r[n]=s.messages}return r}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function m(e,t){var r;if(!0===c.languagePackSupport&&void 0!==c.cacheRoot&&void 0!==c.languagePackId&&void 0!==c.translationsConfigFile&&void 0!==c.translationsConfig)try{r=function(e,t){var r,s,a,u=o.join(c.cacheRoot,e.id+"-"+e.hash+".json"),i=!1,l=!1;try{return r=JSON.parse(n.readFileSync(u,{encoding:"utf8",flag:"r"})),s=u,a=new Date,n.utimes(s,a,a,(function(){})),r}catch(e){if("ENOENT"===e.code)l=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),n.unlink(u,(function(e){e&&console.error("Deleting corrupted bundle "+u+" failed.")})),i=!0}}if(r=function(e,t){var r=c.translationsConfig[e.id];if(r){var n=p(r).contents,s=p(o.join(t,"nls.metadata.json")),a=Object.create(null);for(var u in s){var i=s[u],l=n[e.outDir+"/"+u];if(l){for(var d=[],h=0;h0?t.substring(0,s):void 0}if(void 0===t&&(r=o.join(e,"nls.bundle.json"),n.existsSync(r)))return r}(t);if(s)try{return p(s)}catch(e){console.log("Loading in the box message bundle failed.",e)}r=v(t)}return r}function y(e){if(!e)return a.localize;var t=o.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),c.messageFormat===a.MessageFormat.both||c.messageFormat===a.MessageFormat.bundle){var r=function(e){for(var t,r=o.dirname(e);t=o.join(r,"nls.metadata.header.json"),!n.existsSync(t);){var s=o.dirname(r);if(s===r){t=void 0;break}r=s}return t}(e);if(r){var s=o.dirname(r),u=i[s];if(void 0===u)try{var l=JSON.parse(n.readFileSync(r,"utf8"));try{var d=m(l,s);u=g(s,d?{header:l,nlsBundle:d}:null)}catch(e){console.error("Failed to load nls bundle",e),u=g(s,null)}}catch(e){console.error("Failed to read header file",e),u=g(s,null)}if(u){var f=e.substr(s.length+1).replace(/\\/g,"/"),v=u.nlsBundle[f];return void 0===v?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):h(v)}}}if(c.messageFormat===a.MessageFormat.both||c.messageFormat===a.MessageFormat.file)try{var y=p(function(e){var t;if(c.cacheLanguageResolution&&t)t=t;else{if(a.isPseudo||!c.language)t=".nls.json";else for(var r=c.language;r;){var o=".nls."+r+".json";if(n.existsSync(e+o)){t=o;break}var s=r.lastIndexOf("-");s>0?r=r.substring(0,s):(t=".nls.json",r=null)}c.cacheLanguageResolution&&(t=t)}return e+t}(e));return Array.isArray(y)?h(y):a.isDefined(y.messages)&&a.isDefined(y.keys)?h(y.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}function b(e){return e&&(f(e.locale)&&(c.locale=e.locale.toLowerCase(),c.language=c.locale,i=Object.create(null)),void 0!==e.messageFormat&&(c.messageFormat=e.messageFormat),e.bundleFormat===a.BundleFormat.standalone&&!0===c.languagePackSupport&&(c.languagePackSupport=!1)),a.setPseudo("pseudo"===c.locale),y}!function(){if(c={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:a.MessageFormat.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var r=e.availableLanguages["*"];f(r)&&(t=r)}if(f(e.locale)&&(c.locale=e.locale.toLowerCase()),void 0===t?c.language=c.locale:"en"!==t&&(c.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(c.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(c.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(c.languagePackId=e._languagePackId),f(e._translationsConfigFile)){c.translationsConfigFile=e._translationsConfigFile;try{c.translationsConfig=p(c.translationsConfigFile)}catch(t){if(e._corruptedFile){var s=o.dirname(e._corruptedFile);n.exists(s,(function(t){t&&n.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}a.setPseudo("pseudo"===c.locale),i=Object.create(null)}(),t.loadMessageBundle=y,t.config=b,s.default.install(Object.freeze({loadMessageBundle:y,config:b}))},374:(e,t)=>{function r(){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r}},491:e=>{"use strict";e.exports=require("assert")},361:e=>{"use strict";e.exports=require("events")},147:e=>{"use strict";e.exports=require("fs")},685:e=>{"use strict";e.exports=require("http")},687:e=>{"use strict";e.exports=require("https")},808:e=>{"use strict";e.exports=require("net")},17:e=>{"use strict";e.exports=require("path")},404:e=>{"use strict";e.exports=require("tls")},310:e=>{"use strict";e.exports=require("url")},796:e=>{"use strict";e.exports=require("zlib")}},t={},r=function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}(539),o=exports;for(var n in r)o[n]=r[n];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})(); \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/package.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/package.json" index 259cea9c976e821ab1cb3ec3c994a433778b7a49..8299ae0ca21a96613fb9b01b122011f4bd7325f6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/package.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/request-light/package.json" @@ -1,3 +1,41 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45b0f9315b768a140405fc0fac1157bd392d5972f37ca73fdc3929872f8c509c -size 1247 +{ + "name": "request-light", + "version": "0.5.8", + "description": "Lightweight request library. Promise based, with proxy support.", + "main": "./lib/node/main.js", + "browser": { + "./lib/node/main.js": "./lib/browser/main.js" + }, + "typings": "./api", + "author": "Microsoft Corporation", + "repository": { + "type": "git", + "url": "https://github.com/microsoft/node-request-light" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/microsoft/node-request-light/issues" + }, + "devDependencies": { + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "vscode-nls": "^5.0.0", + "typescript": "^4.5.4", + "@types/node": "13.7.6", + "rimraf": "^3.0.2", + "ts-loader": "^9.2.6", + "webpack": "^5.65.0", + "webpack-cli": "^4.9.1", + "ava": "^4.0.0", + "proxy": "^1.0.2" + }, + "scripts": { + "compile": "webpack", + "watch": "webpack --watch", + "package": "webpack --mode production --devtool hidden-source-map", + "prepublishOnly": "npm run clean && npm run package && tsc -p ./src/test/ && ava ./lib/test/test.js", + "clean": "rimraf lib", + "postversion": "git push && git push --tags", + "test": "npm run compile && tsc -p ./src/test/ && ava ./lib/test/test.js" + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/CHANGELOG.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/CHANGELOG.md" index 89f682f134611838969559cee50a2e90dadc4195..28c68605347ed19b8f7818444cd4c55e40f55af3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/CHANGELOG.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/CHANGELOG.md" @@ -1,3 +1,133 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ceceb07ff417cd0b1affd63e9ce561417db12ee6010ff1184f74ea271b20d5c -size 5642 + +4.1.6 / 2021-07-16 +================ + * Replace minimatch with glob-to-regexp + +4.1.0 / 2021-04-24 +================ + * `SchemaConfiguration.fileMatch` now supports glob patterns (e.g. /foo/**/bar.json') + +4.0.0 / 2020-12-14 +================ + * Update to `vscode-languageserver-types@3.16` + * Removed deprecated `findColorSymbols` + +3.11.0 / 2020-11-30 +================ + * new API `FormattingOptions.insertFinalNewline` + +3.10.0 / 2020-11-03 +================ + * new API `findLinks` return links for local `$ref` links. Replaces `findDefinition` which no longer returns results ( kept for API compatibility) + +3.9.0 / 2020-09-28 +================= + * new API `DocumentLanguageSettings.schemaValidation`. The severity of problems from schema validation. If set to 'ignore', schema validation will be skipped. If not set, 'warning' is used. + * new API `DocumentLanguageSettings.schemaRequest`. The severity of problems that occurred while resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used. + +3.8.0 / 2020-08-02 +================= + * new API `LanguageService.getMatchingSchemas`. Matches a document against its schema and list all AST nodes along with the matching sub schemas. + +3.7.0 / 2020-06-04 +================== + * New API `JSONSchema.suggestSortText` to set the sort order of completion proposals (VS Code specific JSON schema extension) + +3.6.0 / 2020-04-27 +================== + * New API `findDefinition` to find a definition of a `$ref` link + +3.5.0 / 2020-02-20 +================== + * Support for exclusive file pattern starting with '!'. A file match consists of an array of patterns. A match succeeds when there is at least one pattern matching and last matching pattern does not start with '!'. + +3.4.4 / 2019-11-04 +================== + * Using `vscode-languageserver-textdocument` for TextDocument + +3.4.0 / 2019-10-28 +================== + * Added `DocumentSymbolsContext` and `ColorInformationContext` with `resultLimit` and `onResultLimitExceeded`. `onResultLimitExceeded` is called when the result was cropped. + * Added commit characters for completion proposals (if supported by ClientCapabilities) + * Warn when using draft-03 or draft-08 schemas + +3.3.4 / 2019-09-20 +================== + * Renamed `schema.allowsTrailingCommas` -> `schema.allowTrailingCommas` + +3.3.3 / 2019-08-29 +================== + * Schemas can configure whether comments and/or trailing commas are permitted. + +3.3.0 / 2019-06-12 +================== + * New API `LanguageService.getSelectionRanges` to get semantic selection ranges. + * Manage schema dependencies so that `resetSchema` also resets schemas that depend on the schema. + +3.2.0 / 2018-09-27 +================== + * New API `LanguageServiceParams.ClientCapabilities` to define what LSP capabilities the client supports. + * For the best experiences, clients should always use `LanguageServiceParams.ClientCapabilities.LATEST`, which has all the latest LSP capabilities enabled. + * `LanguageServiceParams.ClientCapabilities` can allow `MarkupKind.Markdown` as valid documentationFormat (used by completions if schemas use `markdownDescription` or `markdownEnumDescriptions`). + * Snippets can now provide the description also in markdown format. + * Bundled draft-07-schema with descriptions. + * Propose `examples` in code completions. + +3.1.5 / 2018-08-14 +================== + * support for JSON schema draft-07 + * New API `LanguageService.findDocumentSymbols2` to get document symbols as `DocumentSymbol[]` + +3.1.2 / 2018-07-25 +================== + * New API `LanguageService.getFoldingRanges` + * doValidation can also be used with a given schema + +3.1.0 / 2018-04-09 +================== + * new APIs: `newJSONDocument` to create a JSON document from a custom AST + * new API types: ObjectASTNode, PropertyASTNode, ArrayASTNode, StringASTNode, NumberASTNode, BooleanASTNode, NullASTNode that allow creating a custom AST + +3.0.9 / 2018-03-07 +================== + * Provide ems modules in lib/esm + +3.0.2 / 2017-01-27 +================== + * Added document specific validation parameters: `DocumentLanguageSettings` + * API to define the severity of reported comments and trailing commas (`DocumentLanguageSettings.comments`, `DocumentLanguageSettings.trailingCommas`) + +3.0.0 / 2017-01-11 +================== + * Changed parameters of API `LanguageService.getColorPresentations` to separate color and range +. +2.0.19 / 2017-09-21 +=================== + * New API `LanguageService.getColorPresentations` returning presentations for a given color. + * New API type `ColorPresentation` added. + +2.0.15 / 2017-08-28 +=================== + * New API `LanguageService.findDocumentColors` returning the location and value of all colors in a document. + * New API types `ColorInformation` and `Color` added. + * Deprecated `LanguageService.findColorSymbols`. Use `LanguageService.findDocumentColors` instead. + +2.0.8 / 2017-04-25 +================== + * error code for CommentsNotAllowed + +2.0.5 / 2017-03-27 +================== + * Add new API findColorSymbols that returns all color values in a JSON document. To mark a value as a color, specify `"format": "color"` in the schema. + +2.0.4 / 2017-02-27 +================== + * Support for custom schema property 'patternErrorMessage'. The message is used as error message if the object is of type string and has a 'pattern' property that does not match the object to validate. + +2.0.1 / 2017-02-21 +================== + * Fixes for formatting content with errors + +2.0.0 / 2017-02-17 +================== + * Updating to [language server type 3.0](https://github.com/Microsoft/vscode-languageserver-node/tree/master/types) API diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/LICENSE.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/LICENSE.md" index 997570a75c8d0cc4002de3a19bfc25f8bc695f85..cf2521acbd403ac77c077fdd71b671aca7910a25 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/LICENSE.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/LICENSE.md" @@ -1,3 +1,47 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4742836d395a83a45d2278d9b738824d68abb1a03b81d567210a6cbc3e686e12 -size 2490 +The MIT License (MIT) + +Copyright (c) Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, 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 THE +SOFTWARE. + +Glob matching is based on code from https://github.com/fitzgen/glob-to-regexp + +Copyright (c) 2013, Nick Fitzgerald + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list +of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this list +of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, +OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/README.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/README.md" index 3849dd090fbb04daa43bdc9fa32776f37b562fc0..02c0c6d2dc368a6f11e5c200c647bfe96a4990ec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/README.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/README.md" @@ -1,3 +1,65 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fce11399b6d7d2bd4b3801175d4f9057f0b8882976a99ccbfab12552f278ba89 -size 3431 +# vscode-json-languageservice + +JSON language service extracted from VSCode to be reused, e.g in the Monaco editor. + +[![npm Package](https://img.shields.io/npm/v/vscode-json-languageservice.svg?style=flat-square)](https://www.npmjs.org/package/vscode-json-languageservice) +[![NPM Downloads](https://img.shields.io/npm/dm/vscode-json-languageservice.svg)](https://npmjs.org/package/vscode-json-languageservice) +[![Build Status](https://travis-ci.org/Microsoft/vscode-json-languageservice.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-json-languageservice) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) + +## Why? + +The _vscode-json-languageservice_ contains the language smarts behind the JSON editing experience of Visual Studio Code +and the Monaco editor. + +- _doValidation_ analyses an input string and returns syntax and lint errors. +- _doComplete_ provides completion proposals for a given location. +- _doResolve_ resolves a completion proposals. +- _doHover_ provides a hover text for a given location. +- _findDocumentSymbols_ provides all symbols in the given document. +- _findDocumentColors_ provides all color symbols in the given document. +- _getColorPresentations_ returns available color formats for a color symbol. +- _format_ formats the code at the given range. +- _getFoldingRanges_ gets folding ranges for the given document. +- _getSelectionRanges_ gets selection ranges for a given location. +- _getMatchingSchemas_ matches a document against its schema and returns all AST nodes along with the matching sub schemas. +- _parseJSONDocument_ creates a JSON document from source code. +- _newJSONDocument_ creates a JSON document from an AST. + +For the complete API see [jsonLanguageService.ts](./src/jsonLanguageService.ts) and [jsonLanguageTypes.ts](./src/jsonLanguageTypes.ts) + +## Installation + + npm install --save vscode-json-languageservice + +## Sample usage + +See [sample.ts](./src/example/sample.ts) for an example on how to use the JSON language service. + +To run the sample use `yarn sample` + +## Development + + git clone https://github.com/microsoft/vscode-json-languageservice + cd vscode-json-languageservice + yarn + +Use `yarn test` to compile and run tests + + +### How can I run and debug the service? + +- open the folder in VSCode. +- set breakpoints, e.g. in `jsonCompletion.ts` +- run the Unit tests from the run viewlet and wait until a breakpoint is hit: + ![image](https://user-images.githubusercontent.com/6461412/94239202-bdad4e80-ff11-11ea-99c3-cb9dbeb1c0b2.png) + +### How can I run and debug the service inside an instance of VSCode? + +- run VSCode out of sources setup as described here: https://github.com/Microsoft/vscode/wiki/How-to-Contribute +- use `yarn link vscode-json-languageservice` in `vscode/extensions/json-language-features/server` to run VSCode with the latest changes from `vscode-json-languageservice` +- run VSCode out of source (`vscode/scripts/code.sh|bat`) and open a `.json` file +- in VSCode window that is open on the `vscode-json-languageservice` sources, run command `Debug: Attach to Node process` and pick the `code-oss` process with the `json-language-features` path + ![image](https://user-images.githubusercontent.com/6461412/94242925-061b3b00-ff17-11ea-8c17-8da15268f1a1.png) +- set breakpoints, e.g. in `jsonCompletion.ts` +- in the instance run from sources, invoke code completion in the `.json` file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.d.ts" index 1107a3d386d39c8c9df93bebd1e699a87a13d87e..f075b2e9c5827b67ff07509dec8afd4393863dfa 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.d.ts" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5217ca5c5e094fa32f60e1e7ab53d48fe80f51419da2e86473e90d29c6834427 -size 969 +import { Thenable, MarkedString, CompletionItem } from './jsonLanguageService'; +export interface JSONWorkerContribution { + getInfoContribution(uri: string, location: JSONPath): Thenable; + collectPropertyCompletions(uri: string, location: JSONPath, currentWord: string, addValue: boolean, isLast: boolean, result: CompletionsCollector): Thenable; + collectValueCompletions(uri: string, location: JSONPath, propertyKey: string, result: CompletionsCollector): Thenable; + collectDefaultCompletions(uri: string, result: CompletionsCollector): Thenable; + resolveCompletion?(item: CompletionItem): Thenable; +} +export declare type Segment = string | number; +export declare type JSONPath = Segment[]; +export interface CompletionsCollector { + add(suggestion: CompletionItem): void; + error(message: string): void; + log(message: string): void; + setAsIncomplete(): void; + getNumberOfProposals(): number; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.js" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonContributions.js" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.d.ts" index 298cdd944c4bc1b25088365ca43d452ffff6b91c..e73706f4204e7731ac940dc4b8be824840362c5d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.d.ts" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b134f5b6f5afaa8ec4331438fbf9393ebecc012182e60496ea279deb1ed4525 -size 2647 +import { Thenable, ASTNode, Color, ColorInformation, ColorPresentation, LanguageServiceParams, LanguageSettings, DocumentLanguageSettings, FoldingRange, JSONSchema, SelectionRange, FoldingRangesContext, DocumentSymbolsContext, ColorInformationContext as DocumentColorsContext, TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, FormattingOptions, DocumentSymbol, DefinitionLink, MatchingSchema } from './jsonLanguageTypes'; +import { DocumentLink } from 'vscode-languageserver-types'; +export declare type JSONDocument = { + root: ASTNode | undefined; + getNodeFromOffset(offset: number, includeRightBound?: boolean): ASTNode | undefined; +}; +export * from './jsonLanguageTypes'; +export interface LanguageService { + configure(settings: LanguageSettings): void; + doValidation(document: TextDocument, jsonDocument: JSONDocument, documentSettings?: DocumentLanguageSettings, schema?: JSONSchema): Thenable; + parseJSONDocument(document: TextDocument): JSONDocument; + newJSONDocument(rootNode: ASTNode, syntaxDiagnostics?: Diagnostic[]): JSONDocument; + resetSchema(uri: string): boolean; + getMatchingSchemas(document: TextDocument, jsonDocument: JSONDocument, schema?: JSONSchema): Thenable; + doResolve(item: CompletionItem): Thenable; + doComplete(document: TextDocument, position: Position, doc: JSONDocument): Thenable; + findDocumentSymbols(document: TextDocument, doc: JSONDocument, context?: DocumentSymbolsContext): SymbolInformation[]; + findDocumentSymbols2(document: TextDocument, doc: JSONDocument, context?: DocumentSymbolsContext): DocumentSymbol[]; + findDocumentColors(document: TextDocument, doc: JSONDocument, context?: DocumentColorsContext): Thenable; + getColorPresentations(document: TextDocument, doc: JSONDocument, color: Color, range: Range): ColorPresentation[]; + doHover(document: TextDocument, position: Position, doc: JSONDocument): Thenable; + format(document: TextDocument, range: Range, options: FormattingOptions): TextEdit[]; + getFoldingRanges(document: TextDocument, context?: FoldingRangesContext): FoldingRange[]; + getSelectionRanges(document: TextDocument, positions: Position[], doc: JSONDocument): SelectionRange[]; + findDefinition(document: TextDocument, position: Position, doc: JSONDocument): Thenable; + findLinks(document: TextDocument, doc: JSONDocument): Thenable; +} +export declare function getLanguageService(params: LanguageServiceParams): LanguageService; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.js" index 91fb7b1ac75396978f3c4930af10d31f434bc40e..7008636830d99462ee727c6c8555f4dde8034dda 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.js" @@ -1,3 +1,65 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e456bda181c2f973f7688d55683be6d624d139fd6243ac86a69b9caa8fa88399 -size 4145 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import { JSONCompletion } from './services/jsonCompletion'; +import { JSONHover } from './services/jsonHover'; +import { JSONValidation } from './services/jsonValidation'; +import { JSONDocumentSymbols } from './services/jsonDocumentSymbols'; +import { parse as parseJSON, newJSONDocument } from './parser/jsonParser'; +import { schemaContributions } from './services/configuration'; +import { JSONSchemaService } from './services/jsonSchemaService'; +import { getFoldingRanges } from './services/jsonFolding'; +import { getSelectionRanges } from './services/jsonSelectionRanges'; +import { format as formatJSON } from 'jsonc-parser'; +import { Range, TextEdit } from './jsonLanguageTypes'; +import { findLinks } from './services/jsonLinks'; +export * from './jsonLanguageTypes'; +export function getLanguageService(params) { + var promise = params.promiseConstructor || Promise; + var jsonSchemaService = new JSONSchemaService(params.schemaRequestService, params.workspaceContext, promise); + jsonSchemaService.setSchemaContributions(schemaContributions); + var jsonCompletion = new JSONCompletion(jsonSchemaService, params.contributions, promise, params.clientCapabilities); + var jsonHover = new JSONHover(jsonSchemaService, params.contributions, promise); + var jsonDocumentSymbols = new JSONDocumentSymbols(jsonSchemaService); + var jsonValidation = new JSONValidation(jsonSchemaService, promise); + return { + configure: function (settings) { + jsonSchemaService.clearExternalSchemas(); + if (settings.schemas) { + settings.schemas.forEach(function (settings) { + jsonSchemaService.registerExternalSchema(settings.uri, settings.fileMatch, settings.schema); + }); + } + jsonValidation.configure(settings); + }, + resetSchema: function (uri) { return jsonSchemaService.onResourceChange(uri); }, + doValidation: jsonValidation.doValidation.bind(jsonValidation), + parseJSONDocument: function (document) { return parseJSON(document, { collectComments: true }); }, + newJSONDocument: function (root, diagnostics) { return newJSONDocument(root, diagnostics); }, + getMatchingSchemas: jsonSchemaService.getMatchingSchemas.bind(jsonSchemaService), + doResolve: jsonCompletion.doResolve.bind(jsonCompletion), + doComplete: jsonCompletion.doComplete.bind(jsonCompletion), + findDocumentSymbols: jsonDocumentSymbols.findDocumentSymbols.bind(jsonDocumentSymbols), + findDocumentSymbols2: jsonDocumentSymbols.findDocumentSymbols2.bind(jsonDocumentSymbols), + findDocumentColors: jsonDocumentSymbols.findDocumentColors.bind(jsonDocumentSymbols), + getColorPresentations: jsonDocumentSymbols.getColorPresentations.bind(jsonDocumentSymbols), + doHover: jsonHover.doHover.bind(jsonHover), + getFoldingRanges: getFoldingRanges, + getSelectionRanges: getSelectionRanges, + findDefinition: function () { return Promise.resolve([]); }, + findLinks: findLinks, + format: function (d, r, o) { + var range = undefined; + if (r) { + var offset = d.offsetAt(r.start); + var length = d.offsetAt(r.end) - offset; + range = { offset: offset, length: length }; + } + var options = { tabSize: o ? o.tabSize : 4, insertSpaces: (o === null || o === void 0 ? void 0 : o.insertSpaces) === true, insertFinalNewline: (o === null || o === void 0 ? void 0 : o.insertFinalNewline) === true, eol: '\n' }; + return formatJSON(d.getText(), range, options).map(function (e) { + return TextEdit.replace(Range.create(d.positionAt(e.offset), d.positionAt(e.offset + e.length)), e.content); + }); + } + }; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.d.ts" index 3e8355dea8565df4e8702947093bec4097af6d66..5300c90f781b95d8412fd022a656e1ed13e1e3d0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.d.ts" @@ -1,3 +1,275 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:103beae831c78a92b13f67cd37b23935d309605a78e241739a171ee728e242ab -size 11186 +import { JSONWorkerContribution, JSONPath, Segment, CompletionsCollector } from './jsonContributions'; +import { JSONSchema } from './jsonSchema'; +import { Range, Position, DocumentUri, MarkupContent, MarkupKind, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, FormattingOptions as LSPFormattingOptions, DefinitionLink, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind } from 'vscode-languageserver-types'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +export { TextDocument, Range, Position, DocumentUri, MarkupContent, MarkupKind, JSONSchema, JSONWorkerContribution, JSONPath, Segment, CompletionsCollector, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, DefinitionLink, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind }; +/** + * Error codes used by diagnostics + */ +export declare enum ErrorCode { + Undefined = 0, + EnumValueMismatch = 1, + Deprecated = 2, + UnexpectedEndOfComment = 257, + UnexpectedEndOfString = 258, + UnexpectedEndOfNumber = 259, + InvalidUnicode = 260, + InvalidEscapeCharacter = 261, + InvalidCharacter = 262, + PropertyExpected = 513, + CommaExpected = 514, + ColonExpected = 515, + ValueExpected = 516, + CommaOrCloseBacketExpected = 517, + CommaOrCloseBraceExpected = 518, + TrailingComma = 519, + DuplicateKey = 520, + CommentNotPermitted = 521, + SchemaResolveError = 768 +} +export declare type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode; +export interface BaseASTNode { + readonly type: 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null'; + readonly parent?: ASTNode; + readonly offset: number; + readonly length: number; + readonly children?: ASTNode[]; + readonly value?: string | boolean | number | null; +} +export interface ObjectASTNode extends BaseASTNode { + readonly type: 'object'; + readonly properties: PropertyASTNode[]; + readonly children: ASTNode[]; +} +export interface PropertyASTNode extends BaseASTNode { + readonly type: 'property'; + readonly keyNode: StringASTNode; + readonly valueNode?: ASTNode; + readonly colonOffset?: number; + readonly children: ASTNode[]; +} +export interface ArrayASTNode extends BaseASTNode { + readonly type: 'array'; + readonly items: ASTNode[]; + readonly children: ASTNode[]; +} +export interface StringASTNode extends BaseASTNode { + readonly type: 'string'; + readonly value: string; +} +export interface NumberASTNode extends BaseASTNode { + readonly type: 'number'; + readonly value: number; + readonly isInteger: boolean; +} +export interface BooleanASTNode extends BaseASTNode { + readonly type: 'boolean'; + readonly value: boolean; +} +export interface NullASTNode extends BaseASTNode { + readonly type: 'null'; + readonly value: null; +} +export interface MatchingSchema { + node: ASTNode; + schema: JSONSchema; +} +export interface LanguageSettings { + /** + * If set, the validator will return syntax and semantic errors. + */ + validate?: boolean; + /** + * Defines whether comments are allowed or not. If set to false, comments will be reported as errors. + * DocumentLanguageSettings.allowComments will override this setting. + */ + allowComments?: boolean; + /** + * A list of known schemas and/or associations of schemas to file names. + */ + schemas?: SchemaConfiguration[]; +} +export declare type SeverityLevel = 'error' | 'warning' | 'ignore'; +export interface DocumentLanguageSettings { + /** + * The severity of reported comments. If not set, 'LanguageSettings.allowComments' defines whether comments are ignored or reported as errors. + */ + comments?: SeverityLevel; + /** + * The severity of reported trailing commas. If not set, trailing commas will be reported as errors. + */ + trailingCommas?: SeverityLevel; + /** + * The severity of problems from schema validation. If set to 'ignore', schema validation will be skipped. If not set, 'warning' is used. + */ + schemaValidation?: SeverityLevel; + /** + * The severity of problems that occurred when resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used. + */ + schemaRequest?: SeverityLevel; +} +export interface SchemaConfiguration { + /** + * The URI of the schema, which is also the identifier of the schema. + */ + uri: string; + /** + * A list of glob patterns that describe for which file URIs the JSON schema will be used. + * '*' and '**' wildcards are supported. Exclusion patterns start with '!'. + * For example '*.schema.json', 'package.json', '!foo*.schema.json', 'foo/**\/BADRESP.json'. + * A match succeeds when there is at least one pattern matching and last matching pattern does not start with '!'. + */ + fileMatch?: string[]; + /** + * The schema for the given URI. + * If no schema is provided, the schema will be fetched with the schema request service (if available). + */ + schema?: JSONSchema; +} +export interface WorkspaceContextService { + resolveRelativePath(relativePath: string, resource: string): string; +} +/** + * The schema request service is used to fetch schemas. If successful, returns a resolved promise with the content of the schema. + * In case of an error, returns a rejected promise with a displayable error string. + */ +export interface SchemaRequestService { + (uri: string): Thenable; +} +export interface PromiseConstructor { + /** + * Creates a new Promise. + * @param executor A callback used to initialize the promise. This callback is passed two arguments: + * a resolve callback used resolve the promise with a value or the result of another promise, + * and a reject callback used to reject the promise with a provided reason or error. + */ + new (executor: (resolve: (value?: T | Thenable) => void, reject: (reason?: any) => void) => void): Thenable; + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all(values: Array>): Thenable; + /** + * Creates a new rejected promise for the provided reason. + * @param reason The reason the promise was rejected. + * @returns A new rejected Promise. + */ + reject(reason: any): Thenable; + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + resolve(value: T | Thenable): Thenable; +} +export interface Thenable { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: (value: R) => TResult | Thenable, onrejected?: (reason: any) => TResult | Thenable): Thenable; + then(onfulfilled?: (value: R) => TResult | Thenable, onrejected?: (reason: any) => void): Thenable; +} +export interface LanguageServiceParams { + /** + * The schema request service is used to fetch schemas from a URI. The provider returns the schema file content, or, + * in case of an error, a displayable error string + */ + schemaRequestService?: SchemaRequestService; + /** + * The workspace context is used to resolve relative paths for relative schema references. + */ + workspaceContext?: WorkspaceContextService; + /** + * An optional set of completion and hover participants. + */ + contributions?: JSONWorkerContribution[]; + /** + * A promise constructor. If not set, the ES5 Promise will be used. + */ + promiseConstructor?: PromiseConstructor; + /** + * Describes the LSP capabilities the client supports. + */ + clientCapabilities?: ClientCapabilities; +} +/** + * Describes what LSP capabilities the client supports + */ +export interface ClientCapabilities { + /** + * The text document client capabilities + */ + textDocument?: { + /** + * Capabilities specific to completions. + */ + completion?: { + /** + * The client supports the following `CompletionItem` specific + * capabilities. + */ + completionItem?: { + /** + * Client supports the follow content formats for the documentation + * property. The order describes the preferred format of the client. + */ + documentationFormat?: MarkupKind[]; + /** + * The client supports commit characters on a completion item. + */ + commitCharactersSupport?: boolean; + }; + }; + /** + * Capabilities specific to hovers. + */ + hover?: { + /** + * Client supports the follow content formats for the content + * property. The order describes the preferred format of the client. + */ + contentFormat?: MarkupKind[]; + }; + }; +} +export declare namespace ClientCapabilities { + const LATEST: ClientCapabilities; +} +export interface FoldingRangesContext { + /** + * The maximal number of ranges returned. + */ + rangeLimit?: number; + /** + * Called when the result was cropped. + */ + onRangeLimitExceeded?: (uri: string) => void; +} +export interface DocumentSymbolsContext { + /** + * The maximal number of document symbols returned. + */ + resultLimit?: number; + /** + * Called when the result was cropped. + */ + onResultLimitExceeded?: (uri: string) => void; +} +export interface ColorInformationContext { + /** + * The maximal number of color informations returned. + */ + resultLimit?: number; + /** + * Called when the result was cropped. + */ + onResultLimitExceeded?: (uri: string) => void; +} +export interface FormattingOptions extends LSPFormattingOptions { + insertFinalNewline?: boolean; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js" index c0fd6754a9502d5c437540b30162da630249a9bd..a07786168f3548651436137fd99d88dcc79e2bba 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js" @@ -1,3 +1,45 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7aa35e807f2a02312133481f95eddbd385735ad5326f58f380c15b33a3c2fe50 -size 3493 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import { Range, Position, MarkupContent, MarkupKind, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind } from 'vscode-languageserver-types'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +export { TextDocument, Range, Position, MarkupContent, MarkupKind, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind }; +/** + * Error codes used by diagnostics + */ +export var ErrorCode; +(function (ErrorCode) { + ErrorCode[ErrorCode["Undefined"] = 0] = "Undefined"; + ErrorCode[ErrorCode["EnumValueMismatch"] = 1] = "EnumValueMismatch"; + ErrorCode[ErrorCode["Deprecated"] = 2] = "Deprecated"; + ErrorCode[ErrorCode["UnexpectedEndOfComment"] = 257] = "UnexpectedEndOfComment"; + ErrorCode[ErrorCode["UnexpectedEndOfString"] = 258] = "UnexpectedEndOfString"; + ErrorCode[ErrorCode["UnexpectedEndOfNumber"] = 259] = "UnexpectedEndOfNumber"; + ErrorCode[ErrorCode["InvalidUnicode"] = 260] = "InvalidUnicode"; + ErrorCode[ErrorCode["InvalidEscapeCharacter"] = 261] = "InvalidEscapeCharacter"; + ErrorCode[ErrorCode["InvalidCharacter"] = 262] = "InvalidCharacter"; + ErrorCode[ErrorCode["PropertyExpected"] = 513] = "PropertyExpected"; + ErrorCode[ErrorCode["CommaExpected"] = 514] = "CommaExpected"; + ErrorCode[ErrorCode["ColonExpected"] = 515] = "ColonExpected"; + ErrorCode[ErrorCode["ValueExpected"] = 516] = "ValueExpected"; + ErrorCode[ErrorCode["CommaOrCloseBacketExpected"] = 517] = "CommaOrCloseBacketExpected"; + ErrorCode[ErrorCode["CommaOrCloseBraceExpected"] = 518] = "CommaOrCloseBraceExpected"; + ErrorCode[ErrorCode["TrailingComma"] = 519] = "TrailingComma"; + ErrorCode[ErrorCode["DuplicateKey"] = 520] = "DuplicateKey"; + ErrorCode[ErrorCode["CommentNotPermitted"] = 521] = "CommentNotPermitted"; + ErrorCode[ErrorCode["SchemaResolveError"] = 768] = "SchemaResolveError"; +})(ErrorCode || (ErrorCode = {})); +export var ClientCapabilities; +(function (ClientCapabilities) { + ClientCapabilities.LATEST = { + textDocument: { + completion: { + completionItem: { + documentationFormat: [MarkupKind.Markdown, MarkupKind.PlainText], + commitCharactersSupport: true + } + } + } + }; +})(ClientCapabilities || (ClientCapabilities = {})); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.d.ts" index bd9448c89b6dd301790653ba0dd1e83b902ef073..9fd9de7d149a4d422234a0594b46c01bf9b1198e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.d.ts" @@ -1,3 +1,70 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e02ae29730ed9bcae2d8c2fbd8878aa0b6e6cf86e172c1aa7e152efd30db6db3 -size 1912 +export declare type JSONSchemaRef = JSONSchema | boolean; +export interface JSONSchema { + id?: string; + $id?: string; + $schema?: string; + type?: string | string[]; + title?: string; + default?: any; + definitions?: { + [name: string]: JSONSchema; + }; + description?: string; + properties?: JSONSchemaMap; + patternProperties?: JSONSchemaMap; + additionalProperties?: boolean | JSONSchemaRef; + minProperties?: number; + maxProperties?: number; + dependencies?: JSONSchemaMap | { + [prop: string]: string[]; + }; + items?: JSONSchemaRef | JSONSchemaRef[]; + minItems?: number; + maxItems?: number; + uniqueItems?: boolean; + additionalItems?: boolean | JSONSchemaRef; + pattern?: string; + minLength?: number; + maxLength?: number; + minimum?: number; + maximum?: number; + exclusiveMinimum?: boolean | number; + exclusiveMaximum?: boolean | number; + multipleOf?: number; + required?: string[]; + $ref?: string; + anyOf?: JSONSchemaRef[]; + allOf?: JSONSchemaRef[]; + oneOf?: JSONSchemaRef[]; + not?: JSONSchemaRef; + enum?: any[]; + format?: string; + const?: any; + contains?: JSONSchemaRef; + propertyNames?: JSONSchemaRef; + examples?: any[]; + $comment?: string; + if?: JSONSchemaRef; + then?: JSONSchemaRef; + else?: JSONSchemaRef; + defaultSnippets?: { + label?: string; + description?: string; + markdownDescription?: string; + body?: any; + bodyText?: string; + }[]; + errorMessage?: string; + patternErrorMessage?: string; + deprecationMessage?: string; + enumDescriptions?: string[]; + markdownEnumDescriptions?: string[]; + markdownDescription?: string; + doNotSuggest?: boolean; + suggestSortText?: string; + allowComments?: boolean; + allowTrailingCommas?: boolean; +} +export interface JSONSchemaMap { + [name: string]: JSONSchemaRef; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.js" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/jsonSchema.js" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/parser/jsonParser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/parser/jsonParser.js" index a49cdb2bf9ea51bf468788a17fa68f74923584f6..1bff787c9c71e7f82e0cc4ea951e2d09108905cb 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/parser/jsonParser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/parser/jsonParser.js" @@ -1,3 +1,1212 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6041d68abcbb48fca1b57c2c91818d66f712930160065a794e5afdf49057f6d5 -size 57463 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +import * as Json from 'jsonc-parser'; +import { isNumber, equals, isBoolean, isString, isDefined } from '../utils/objects'; +import { extendedRegExp } from '../utils/strings'; +import { ErrorCode, Diagnostic, DiagnosticSeverity, Range } from '../jsonLanguageTypes'; +import * as nls from 'vscode-nls'; +var localize = nls.loadMessageBundle(); +var formats = { + 'color-hex': { errorMessage: localize('colorHexFormatWarning', 'Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.'), pattern: /^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/ }, + 'date-time': { errorMessage: localize('dateTimeFormatWarning', 'String is not a RFC3339 date-time.'), pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i }, + 'date': { errorMessage: localize('dateFormatWarning', 'String is not a RFC3339 date.'), pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i }, + 'time': { errorMessage: localize('timeFormatWarning', 'String is not a RFC3339 time.'), pattern: /^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i }, + 'email': { errorMessage: localize('emailFormatWarning', 'String is not an e-mail address.'), pattern: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ } +}; +var ASTNodeImpl = /** @class */ (function () { + function ASTNodeImpl(parent, offset, length) { + if (length === void 0) { length = 0; } + this.offset = offset; + this.length = length; + this.parent = parent; + } + Object.defineProperty(ASTNodeImpl.prototype, "children", { + get: function () { + return []; + }, + enumerable: false, + configurable: true + }); + ASTNodeImpl.prototype.toString = function () { + return 'type: ' + this.type + ' (' + this.offset + '/' + this.length + ')' + (this.parent ? ' parent: {' + this.parent.toString() + '}' : ''); + }; + return ASTNodeImpl; +}()); +export { ASTNodeImpl }; +var NullASTNodeImpl = /** @class */ (function (_super) { + __extends(NullASTNodeImpl, _super); + function NullASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'null'; + _this.value = null; + return _this; + } + return NullASTNodeImpl; +}(ASTNodeImpl)); +export { NullASTNodeImpl }; +var BooleanASTNodeImpl = /** @class */ (function (_super) { + __extends(BooleanASTNodeImpl, _super); + function BooleanASTNodeImpl(parent, boolValue, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'boolean'; + _this.value = boolValue; + return _this; + } + return BooleanASTNodeImpl; +}(ASTNodeImpl)); +export { BooleanASTNodeImpl }; +var ArrayASTNodeImpl = /** @class */ (function (_super) { + __extends(ArrayASTNodeImpl, _super); + function ArrayASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'array'; + _this.items = []; + return _this; + } + Object.defineProperty(ArrayASTNodeImpl.prototype, "children", { + get: function () { + return this.items; + }, + enumerable: false, + configurable: true + }); + return ArrayASTNodeImpl; +}(ASTNodeImpl)); +export { ArrayASTNodeImpl }; +var NumberASTNodeImpl = /** @class */ (function (_super) { + __extends(NumberASTNodeImpl, _super); + function NumberASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'number'; + _this.isInteger = true; + _this.value = Number.NaN; + return _this; + } + return NumberASTNodeImpl; +}(ASTNodeImpl)); +export { NumberASTNodeImpl }; +var StringASTNodeImpl = /** @class */ (function (_super) { + __extends(StringASTNodeImpl, _super); + function StringASTNodeImpl(parent, offset, length) { + var _this = _super.call(this, parent, offset, length) || this; + _this.type = 'string'; + _this.value = ''; + return _this; + } + return StringASTNodeImpl; +}(ASTNodeImpl)); +export { StringASTNodeImpl }; +var PropertyASTNodeImpl = /** @class */ (function (_super) { + __extends(PropertyASTNodeImpl, _super); + function PropertyASTNodeImpl(parent, offset, keyNode) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'property'; + _this.colonOffset = -1; + _this.keyNode = keyNode; + return _this; + } + Object.defineProperty(PropertyASTNodeImpl.prototype, "children", { + get: function () { + return this.valueNode ? [this.keyNode, this.valueNode] : [this.keyNode]; + }, + enumerable: false, + configurable: true + }); + return PropertyASTNodeImpl; +}(ASTNodeImpl)); +export { PropertyASTNodeImpl }; +var ObjectASTNodeImpl = /** @class */ (function (_super) { + __extends(ObjectASTNodeImpl, _super); + function ObjectASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'object'; + _this.properties = []; + return _this; + } + Object.defineProperty(ObjectASTNodeImpl.prototype, "children", { + get: function () { + return this.properties; + }, + enumerable: false, + configurable: true + }); + return ObjectASTNodeImpl; +}(ASTNodeImpl)); +export { ObjectASTNodeImpl }; +export function asSchema(schema) { + if (isBoolean(schema)) { + return schema ? {} : { "not": {} }; + } + return schema; +} +export var EnumMatch; +(function (EnumMatch) { + EnumMatch[EnumMatch["Key"] = 0] = "Key"; + EnumMatch[EnumMatch["Enum"] = 1] = "Enum"; +})(EnumMatch || (EnumMatch = {})); +var SchemaCollector = /** @class */ (function () { + function SchemaCollector(focusOffset, exclude) { + if (focusOffset === void 0) { focusOffset = -1; } + this.focusOffset = focusOffset; + this.exclude = exclude; + this.schemas = []; + } + SchemaCollector.prototype.add = function (schema) { + this.schemas.push(schema); + }; + SchemaCollector.prototype.merge = function (other) { + Array.prototype.push.apply(this.schemas, other.schemas); + }; + SchemaCollector.prototype.include = function (node) { + return (this.focusOffset === -1 || contains(node, this.focusOffset)) && (node !== this.exclude); + }; + SchemaCollector.prototype.newSub = function () { + return new SchemaCollector(-1, this.exclude); + }; + return SchemaCollector; +}()); +var NoOpSchemaCollector = /** @class */ (function () { + function NoOpSchemaCollector() { + } + Object.defineProperty(NoOpSchemaCollector.prototype, "schemas", { + get: function () { return []; }, + enumerable: false, + configurable: true + }); + NoOpSchemaCollector.prototype.add = function (schema) { }; + NoOpSchemaCollector.prototype.merge = function (other) { }; + NoOpSchemaCollector.prototype.include = function (node) { return true; }; + NoOpSchemaCollector.prototype.newSub = function () { return this; }; + NoOpSchemaCollector.instance = new NoOpSchemaCollector(); + return NoOpSchemaCollector; +}()); +var ValidationResult = /** @class */ (function () { + function ValidationResult() { + this.problems = []; + this.propertiesMatches = 0; + this.propertiesValueMatches = 0; + this.primaryValueMatches = 0; + this.enumValueMatch = false; + this.enumValues = undefined; + } + ValidationResult.prototype.hasProblems = function () { + return !!this.problems.length; + }; + ValidationResult.prototype.mergeAll = function (validationResults) { + for (var _i = 0, validationResults_1 = validationResults; _i < validationResults_1.length; _i++) { + var validationResult = validationResults_1[_i]; + this.merge(validationResult); + } + }; + ValidationResult.prototype.merge = function (validationResult) { + this.problems = this.problems.concat(validationResult.problems); + }; + ValidationResult.prototype.mergeEnumValues = function (validationResult) { + if (!this.enumValueMatch && !validationResult.enumValueMatch && this.enumValues && validationResult.enumValues) { + this.enumValues = this.enumValues.concat(validationResult.enumValues); + for (var _i = 0, _a = this.problems; _i < _a.length; _i++) { + var error = _a[_i]; + if (error.code === ErrorCode.EnumValueMismatch) { + error.message = localize('enumWarning', 'Value is not accepted. Valid values: {0}.', this.enumValues.map(function (v) { return JSON.stringify(v); }).join(', ')); + } + } + } + }; + ValidationResult.prototype.mergePropertyMatch = function (propertyValidationResult) { + this.merge(propertyValidationResult); + this.propertiesMatches++; + if (propertyValidationResult.enumValueMatch || !propertyValidationResult.hasProblems() && propertyValidationResult.propertiesMatches) { + this.propertiesValueMatches++; + } + if (propertyValidationResult.enumValueMatch && propertyValidationResult.enumValues && propertyValidationResult.enumValues.length === 1) { + this.primaryValueMatches++; + } + }; + ValidationResult.prototype.compare = function (other) { + var hasProblems = this.hasProblems(); + if (hasProblems !== other.hasProblems()) { + return hasProblems ? -1 : 1; + } + if (this.enumValueMatch !== other.enumValueMatch) { + return other.enumValueMatch ? -1 : 1; + } + if (this.primaryValueMatches !== other.primaryValueMatches) { + return this.primaryValueMatches - other.primaryValueMatches; + } + if (this.propertiesValueMatches !== other.propertiesValueMatches) { + return this.propertiesValueMatches - other.propertiesValueMatches; + } + return this.propertiesMatches - other.propertiesMatches; + }; + return ValidationResult; +}()); +export { ValidationResult }; +export function newJSONDocument(root, diagnostics) { + if (diagnostics === void 0) { diagnostics = []; } + return new JSONDocument(root, diagnostics, []); +} +export function getNodeValue(node) { + return Json.getNodeValue(node); +} +export function getNodePath(node) { + return Json.getNodePath(node); +} +export function contains(node, offset, includeRightBound) { + if (includeRightBound === void 0) { includeRightBound = false; } + return offset >= node.offset && offset < (node.offset + node.length) || includeRightBound && offset === (node.offset + node.length); +} +var JSONDocument = /** @class */ (function () { + function JSONDocument(root, syntaxErrors, comments) { + if (syntaxErrors === void 0) { syntaxErrors = []; } + if (comments === void 0) { comments = []; } + this.root = root; + this.syntaxErrors = syntaxErrors; + this.comments = comments; + } + JSONDocument.prototype.getNodeFromOffset = function (offset, includeRightBound) { + if (includeRightBound === void 0) { includeRightBound = false; } + if (this.root) { + return Json.findNodeAtOffset(this.root, offset, includeRightBound); + } + return undefined; + }; + JSONDocument.prototype.visit = function (visitor) { + if (this.root) { + var doVisit_1 = function (node) { + var ctn = visitor(node); + var children = node.children; + if (Array.isArray(children)) { + for (var i = 0; i < children.length && ctn; i++) { + ctn = doVisit_1(children[i]); + } + } + return ctn; + }; + doVisit_1(this.root); + } + }; + JSONDocument.prototype.validate = function (textDocument, schema, severity) { + if (severity === void 0) { severity = DiagnosticSeverity.Warning; } + if (this.root && schema) { + var validationResult = new ValidationResult(); + validate(this.root, schema, validationResult, NoOpSchemaCollector.instance); + return validationResult.problems.map(function (p) { + var _a; + var range = Range.create(textDocument.positionAt(p.location.offset), textDocument.positionAt(p.location.offset + p.location.length)); + return Diagnostic.create(range, p.message, (_a = p.severity) !== null && _a !== void 0 ? _a : severity, p.code); + }); + } + return undefined; + }; + JSONDocument.prototype.getMatchingSchemas = function (schema, focusOffset, exclude) { + if (focusOffset === void 0) { focusOffset = -1; } + var matchingSchemas = new SchemaCollector(focusOffset, exclude); + if (this.root && schema) { + validate(this.root, schema, new ValidationResult(), matchingSchemas); + } + return matchingSchemas.schemas; + }; + return JSONDocument; +}()); +export { JSONDocument }; +function validate(n, schema, validationResult, matchingSchemas) { + if (!n || !matchingSchemas.include(n)) { + return; + } + var node = n; + switch (node.type) { + case 'object': + _validateObjectNode(node, schema, validationResult, matchingSchemas); + break; + case 'array': + _validateArrayNode(node, schema, validationResult, matchingSchemas); + break; + case 'string': + _validateStringNode(node, schema, validationResult, matchingSchemas); + break; + case 'number': + _validateNumberNode(node, schema, validationResult, matchingSchemas); + break; + case 'property': + return validate(node.valueNode, schema, validationResult, matchingSchemas); + } + _validateNode(); + matchingSchemas.add({ node: node, schema: schema }); + function _validateNode() { + function matchesType(type) { + return node.type === type || (type === 'integer' && node.type === 'number' && node.isInteger); + } + if (Array.isArray(schema.type)) { + if (!schema.type.some(matchesType)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.errorMessage || localize('typeArrayMismatchWarning', 'Incorrect type. Expected one of {0}.', schema.type.join(', ')) + }); + } + } + else if (schema.type) { + if (!matchesType(schema.type)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.errorMessage || localize('typeMismatchWarning', 'Incorrect type. Expected "{0}".', schema.type) + }); + } + } + if (Array.isArray(schema.allOf)) { + for (var _i = 0, _a = schema.allOf; _i < _a.length; _i++) { + var subSchemaRef = _a[_i]; + validate(node, asSchema(subSchemaRef), validationResult, matchingSchemas); + } + } + var notSchema = asSchema(schema.not); + if (notSchema) { + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, notSchema, subValidationResult, subMatchingSchemas); + if (!subValidationResult.hasProblems()) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('notSchemaWarning', "Matches a schema that is not allowed.") + }); + } + for (var _b = 0, _c = subMatchingSchemas.schemas; _b < _c.length; _b++) { + var ms = _c[_b]; + ms.inverted = !ms.inverted; + matchingSchemas.add(ms); + } + } + var testAlternatives = function (alternatives, maxOneMatch) { + var matches = []; + // remember the best match that is used for error messages + var bestMatch = undefined; + for (var _i = 0, alternatives_1 = alternatives; _i < alternatives_1.length; _i++) { + var subSchemaRef = alternatives_1[_i]; + var subSchema = asSchema(subSchemaRef); + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, subSchema, subValidationResult, subMatchingSchemas); + if (!subValidationResult.hasProblems()) { + matches.push(subSchema); + } + if (!bestMatch) { + bestMatch = { schema: subSchema, validationResult: subValidationResult, matchingSchemas: subMatchingSchemas }; + } + else { + if (!maxOneMatch && !subValidationResult.hasProblems() && !bestMatch.validationResult.hasProblems()) { + // no errors, both are equally good matches + bestMatch.matchingSchemas.merge(subMatchingSchemas); + bestMatch.validationResult.propertiesMatches += subValidationResult.propertiesMatches; + bestMatch.validationResult.propertiesValueMatches += subValidationResult.propertiesValueMatches; + } + else { + var compareResult = subValidationResult.compare(bestMatch.validationResult); + if (compareResult > 0) { + // our node is the best matching so far + bestMatch = { schema: subSchema, validationResult: subValidationResult, matchingSchemas: subMatchingSchemas }; + } + else if (compareResult === 0) { + // there's already a best matching but we are as good + bestMatch.matchingSchemas.merge(subMatchingSchemas); + bestMatch.validationResult.mergeEnumValues(subValidationResult); + } + } + } + } + if (matches.length > 1 && maxOneMatch) { + validationResult.problems.push({ + location: { offset: node.offset, length: 1 }, + message: localize('oneOfWarning', "Matches multiple schemas when only one must validate.") + }); + } + if (bestMatch) { + validationResult.merge(bestMatch.validationResult); + validationResult.propertiesMatches += bestMatch.validationResult.propertiesMatches; + validationResult.propertiesValueMatches += bestMatch.validationResult.propertiesValueMatches; + matchingSchemas.merge(bestMatch.matchingSchemas); + } + return matches.length; + }; + if (Array.isArray(schema.anyOf)) { + testAlternatives(schema.anyOf, false); + } + if (Array.isArray(schema.oneOf)) { + testAlternatives(schema.oneOf, true); + } + var testBranch = function (schema) { + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, asSchema(schema), subValidationResult, subMatchingSchemas); + validationResult.merge(subValidationResult); + validationResult.propertiesMatches += subValidationResult.propertiesMatches; + validationResult.propertiesValueMatches += subValidationResult.propertiesValueMatches; + matchingSchemas.merge(subMatchingSchemas); + }; + var testCondition = function (ifSchema, thenSchema, elseSchema) { + var subSchema = asSchema(ifSchema); + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, subSchema, subValidationResult, subMatchingSchemas); + matchingSchemas.merge(subMatchingSchemas); + if (!subValidationResult.hasProblems()) { + if (thenSchema) { + testBranch(thenSchema); + } + } + else if (elseSchema) { + testBranch(elseSchema); + } + }; + var ifSchema = asSchema(schema.if); + if (ifSchema) { + testCondition(ifSchema, asSchema(schema.then), asSchema(schema.else)); + } + if (Array.isArray(schema.enum)) { + var val = getNodeValue(node); + var enumValueMatch = false; + for (var _d = 0, _e = schema.enum; _d < _e.length; _d++) { + var e = _e[_d]; + if (equals(val, e)) { + enumValueMatch = true; + break; + } + } + validationResult.enumValues = schema.enum; + validationResult.enumValueMatch = enumValueMatch; + if (!enumValueMatch) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + code: ErrorCode.EnumValueMismatch, + message: schema.errorMessage || localize('enumWarning', 'Value is not accepted. Valid values: {0}.', schema.enum.map(function (v) { return JSON.stringify(v); }).join(', ')) + }); + } + } + if (isDefined(schema.const)) { + var val = getNodeValue(node); + if (!equals(val, schema.const)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + code: ErrorCode.EnumValueMismatch, + message: schema.errorMessage || localize('constWarning', 'Value must be {0}.', JSON.stringify(schema.const)) + }); + validationResult.enumValueMatch = false; + } + else { + validationResult.enumValueMatch = true; + } + validationResult.enumValues = [schema.const]; + } + if (schema.deprecationMessage && node.parent) { + validationResult.problems.push({ + location: { offset: node.parent.offset, length: node.parent.length }, + severity: DiagnosticSeverity.Warning, + message: schema.deprecationMessage, + code: ErrorCode.Deprecated + }); + } + } + function _validateNumberNode(node, schema, validationResult, matchingSchemas) { + var val = node.value; + function normalizeFloats(float) { + var _a; + var parts = /^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(float.toString()); + return parts && { + value: Number(parts[1] + (parts[2] || '')), + multiplier: (((_a = parts[2]) === null || _a === void 0 ? void 0 : _a.length) || 0) - (parseInt(parts[3]) || 0) + }; + } + ; + if (isNumber(schema.multipleOf)) { + var remainder = -1; + if (Number.isInteger(schema.multipleOf)) { + remainder = val % schema.multipleOf; + } + else { + var normMultipleOf = normalizeFloats(schema.multipleOf); + var normValue = normalizeFloats(val); + if (normMultipleOf && normValue) { + var multiplier = Math.pow(10, Math.abs(normValue.multiplier - normMultipleOf.multiplier)); + if (normValue.multiplier < normMultipleOf.multiplier) { + normValue.value *= multiplier; + } + else { + normMultipleOf.value *= multiplier; + } + remainder = normValue.value % normMultipleOf.value; + } + } + if (remainder !== 0) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('multipleOfWarning', 'Value is not divisible by {0}.', schema.multipleOf) + }); + } + } + function getExclusiveLimit(limit, exclusive) { + if (isNumber(exclusive)) { + return exclusive; + } + if (isBoolean(exclusive) && exclusive) { + return limit; + } + return undefined; + } + function getLimit(limit, exclusive) { + if (!isBoolean(exclusive) || !exclusive) { + return limit; + } + return undefined; + } + var exclusiveMinimum = getExclusiveLimit(schema.minimum, schema.exclusiveMinimum); + if (isNumber(exclusiveMinimum) && val <= exclusiveMinimum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('exclusiveMinimumWarning', 'Value is below the exclusive minimum of {0}.', exclusiveMinimum) + }); + } + var exclusiveMaximum = getExclusiveLimit(schema.maximum, schema.exclusiveMaximum); + if (isNumber(exclusiveMaximum) && val >= exclusiveMaximum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('exclusiveMaximumWarning', 'Value is above the exclusive maximum of {0}.', exclusiveMaximum) + }); + } + var minimum = getLimit(schema.minimum, schema.exclusiveMinimum); + if (isNumber(minimum) && val < minimum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('minimumWarning', 'Value is below the minimum of {0}.', minimum) + }); + } + var maximum = getLimit(schema.maximum, schema.exclusiveMaximum); + if (isNumber(maximum) && val > maximum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('maximumWarning', 'Value is above the maximum of {0}.', maximum) + }); + } + } + function _validateStringNode(node, schema, validationResult, matchingSchemas) { + if (isNumber(schema.minLength) && node.value.length < schema.minLength) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('minLengthWarning', 'String is shorter than the minimum length of {0}.', schema.minLength) + }); + } + if (isNumber(schema.maxLength) && node.value.length > schema.maxLength) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('maxLengthWarning', 'String is longer than the maximum length of {0}.', schema.maxLength) + }); + } + if (isString(schema.pattern)) { + var regex = extendedRegExp(schema.pattern); + if (!regex.test(node.value)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.patternErrorMessage || schema.errorMessage || localize('patternWarning', 'String does not match the pattern of "{0}".', schema.pattern) + }); + } + } + if (schema.format) { + switch (schema.format) { + case 'uri': + case 'uri-reference': + { + var errorMessage = void 0; + if (!node.value) { + errorMessage = localize('uriEmpty', 'URI expected.'); + } + else { + var match = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(node.value); + if (!match) { + errorMessage = localize('uriMissing', 'URI is expected.'); + } + else if (!match[2] && schema.format === 'uri') { + errorMessage = localize('uriSchemeMissing', 'URI with a scheme is expected.'); + } + } + if (errorMessage) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.patternErrorMessage || schema.errorMessage || localize('uriFormatWarning', 'String is not a URI: {0}', errorMessage) + }); + } + } + break; + case 'color-hex': + case 'date-time': + case 'date': + case 'time': + case 'email': + var format = formats[schema.format]; + if (!node.value || !format.pattern.exec(node.value)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.patternErrorMessage || schema.errorMessage || format.errorMessage + }); + } + default: + } + } + } + function _validateArrayNode(node, schema, validationResult, matchingSchemas) { + if (Array.isArray(schema.items)) { + var subSchemas = schema.items; + for (var index = 0; index < subSchemas.length; index++) { + var subSchemaRef = subSchemas[index]; + var subSchema = asSchema(subSchemaRef); + var itemValidationResult = new ValidationResult(); + var item = node.items[index]; + if (item) { + validate(item, subSchema, itemValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(itemValidationResult); + } + else if (node.items.length >= subSchemas.length) { + validationResult.propertiesValueMatches++; + } + } + if (node.items.length > subSchemas.length) { + if (typeof schema.additionalItems === 'object') { + for (var i = subSchemas.length; i < node.items.length; i++) { + var itemValidationResult = new ValidationResult(); + validate(node.items[i], schema.additionalItems, itemValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(itemValidationResult); + } + } + else if (schema.additionalItems === false) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('additionalItemsWarning', 'Array has too many items according to schema. Expected {0} or fewer.', subSchemas.length) + }); + } + } + } + else { + var itemSchema = asSchema(schema.items); + if (itemSchema) { + for (var _i = 0, _a = node.items; _i < _a.length; _i++) { + var item = _a[_i]; + var itemValidationResult = new ValidationResult(); + validate(item, itemSchema, itemValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(itemValidationResult); + } + } + } + var containsSchema = asSchema(schema.contains); + if (containsSchema) { + var doesContain = node.items.some(function (item) { + var itemValidationResult = new ValidationResult(); + validate(item, containsSchema, itemValidationResult, NoOpSchemaCollector.instance); + return !itemValidationResult.hasProblems(); + }); + if (!doesContain) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.errorMessage || localize('requiredItemMissingWarning', 'Array does not contain required item.') + }); + } + } + if (isNumber(schema.minItems) && node.items.length < schema.minItems) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('minItemsWarning', 'Array has too few items. Expected {0} or more.', schema.minItems) + }); + } + if (isNumber(schema.maxItems) && node.items.length > schema.maxItems) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('maxItemsWarning', 'Array has too many items. Expected {0} or fewer.', schema.maxItems) + }); + } + if (schema.uniqueItems === true) { + var values_1 = getNodeValue(node); + var duplicates = values_1.some(function (value, index) { + return index !== values_1.lastIndexOf(value); + }); + if (duplicates) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('uniqueItemsWarning', 'Array has duplicate items.') + }); + } + } + } + function _validateObjectNode(node, schema, validationResult, matchingSchemas) { + var seenKeys = Object.create(null); + var unprocessedProperties = []; + for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { + var propertyNode = _a[_i]; + var key = propertyNode.keyNode.value; + seenKeys[key] = propertyNode.valueNode; + unprocessedProperties.push(key); + } + if (Array.isArray(schema.required)) { + for (var _b = 0, _c = schema.required; _b < _c.length; _b++) { + var propertyName = _c[_b]; + if (!seenKeys[propertyName]) { + var keyNode = node.parent && node.parent.type === 'property' && node.parent.keyNode; + var location = keyNode ? { offset: keyNode.offset, length: keyNode.length } : { offset: node.offset, length: 1 }; + validationResult.problems.push({ + location: location, + message: localize('MissingRequiredPropWarning', 'Missing property "{0}".', propertyName) + }); + } + } + } + var propertyProcessed = function (prop) { + var index = unprocessedProperties.indexOf(prop); + while (index >= 0) { + unprocessedProperties.splice(index, 1); + index = unprocessedProperties.indexOf(prop); + } + }; + if (schema.properties) { + for (var _d = 0, _e = Object.keys(schema.properties); _d < _e.length; _d++) { + var propertyName = _e[_d]; + propertyProcessed(propertyName); + var propertySchema = schema.properties[propertyName]; + var child = seenKeys[propertyName]; + if (child) { + if (isBoolean(propertySchema)) { + if (!propertySchema) { + var propertyNode = child.parent; + validationResult.problems.push({ + location: { offset: propertyNode.keyNode.offset, length: propertyNode.keyNode.length }, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', 'Property {0} is not allowed.', propertyName) + }); + } + else { + validationResult.propertiesMatches++; + validationResult.propertiesValueMatches++; + } + } + else { + var propertyValidationResult = new ValidationResult(); + validate(child, propertySchema, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + } + if (schema.patternProperties) { + for (var _f = 0, _g = Object.keys(schema.patternProperties); _f < _g.length; _f++) { + var propertyPattern = _g[_f]; + var regex = extendedRegExp(propertyPattern); + for (var _h = 0, _j = unprocessedProperties.slice(0); _h < _j.length; _h++) { + var propertyName = _j[_h]; + if (regex.test(propertyName)) { + propertyProcessed(propertyName); + var child = seenKeys[propertyName]; + if (child) { + var propertySchema = schema.patternProperties[propertyPattern]; + if (isBoolean(propertySchema)) { + if (!propertySchema) { + var propertyNode = child.parent; + validationResult.problems.push({ + location: { offset: propertyNode.keyNode.offset, length: propertyNode.keyNode.length }, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', 'Property {0} is not allowed.', propertyName) + }); + } + else { + validationResult.propertiesMatches++; + validationResult.propertiesValueMatches++; + } + } + else { + var propertyValidationResult = new ValidationResult(); + validate(child, propertySchema, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + } + } + } + if (typeof schema.additionalProperties === 'object') { + for (var _k = 0, unprocessedProperties_1 = unprocessedProperties; _k < unprocessedProperties_1.length; _k++) { + var propertyName = unprocessedProperties_1[_k]; + var child = seenKeys[propertyName]; + if (child) { + var propertyValidationResult = new ValidationResult(); + validate(child, schema.additionalProperties, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + else if (schema.additionalProperties === false) { + if (unprocessedProperties.length > 0) { + for (var _l = 0, unprocessedProperties_2 = unprocessedProperties; _l < unprocessedProperties_2.length; _l++) { + var propertyName = unprocessedProperties_2[_l]; + var child = seenKeys[propertyName]; + if (child) { + var propertyNode = child.parent; + validationResult.problems.push({ + location: { offset: propertyNode.keyNode.offset, length: propertyNode.keyNode.length }, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', 'Property {0} is not allowed.', propertyName) + }); + } + } + } + } + if (isNumber(schema.maxProperties)) { + if (node.properties.length > schema.maxProperties) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('MaxPropWarning', 'Object has more properties than limit of {0}.', schema.maxProperties) + }); + } + } + if (isNumber(schema.minProperties)) { + if (node.properties.length < schema.minProperties) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('MinPropWarning', 'Object has fewer properties than the required number of {0}', schema.minProperties) + }); + } + } + if (schema.dependencies) { + for (var _m = 0, _o = Object.keys(schema.dependencies); _m < _o.length; _m++) { + var key = _o[_m]; + var prop = seenKeys[key]; + if (prop) { + var propertyDep = schema.dependencies[key]; + if (Array.isArray(propertyDep)) { + for (var _p = 0, propertyDep_1 = propertyDep; _p < propertyDep_1.length; _p++) { + var requiredProp = propertyDep_1[_p]; + if (!seenKeys[requiredProp]) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('RequiredDependentPropWarning', 'Object is missing property {0} required by property {1}.', requiredProp, key) + }); + } + else { + validationResult.propertiesValueMatches++; + } + } + } + else { + var propertySchema = asSchema(propertyDep); + if (propertySchema) { + var propertyValidationResult = new ValidationResult(); + validate(node, propertySchema, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + } + } + var propertyNames = asSchema(schema.propertyNames); + if (propertyNames) { + for (var _q = 0, _r = node.properties; _q < _r.length; _q++) { + var f = _r[_q]; + var key = f.keyNode; + if (key) { + validate(key, propertyNames, validationResult, NoOpSchemaCollector.instance); + } + } + } + } +} +export function parse(textDocument, config) { + var problems = []; + var lastProblemOffset = -1; + var text = textDocument.getText(); + var scanner = Json.createScanner(text, false); + var commentRanges = config && config.collectComments ? [] : undefined; + function _scanNext() { + while (true) { + var token_1 = scanner.scan(); + _checkScanError(); + switch (token_1) { + case 12 /* LineCommentTrivia */: + case 13 /* BlockCommentTrivia */: + if (Array.isArray(commentRanges)) { + commentRanges.push(Range.create(textDocument.positionAt(scanner.getTokenOffset()), textDocument.positionAt(scanner.getTokenOffset() + scanner.getTokenLength()))); + } + break; + case 15 /* Trivia */: + case 14 /* LineBreakTrivia */: + break; + default: + return token_1; + } + } + } + function _accept(token) { + if (scanner.getToken() === token) { + _scanNext(); + return true; + } + return false; + } + function _errorAtRange(message, code, startOffset, endOffset, severity) { + if (severity === void 0) { severity = DiagnosticSeverity.Error; } + if (problems.length === 0 || startOffset !== lastProblemOffset) { + var range = Range.create(textDocument.positionAt(startOffset), textDocument.positionAt(endOffset)); + problems.push(Diagnostic.create(range, message, severity, code, textDocument.languageId)); + lastProblemOffset = startOffset; + } + } + function _error(message, code, node, skipUntilAfter, skipUntil) { + if (node === void 0) { node = undefined; } + if (skipUntilAfter === void 0) { skipUntilAfter = []; } + if (skipUntil === void 0) { skipUntil = []; } + var start = scanner.getTokenOffset(); + var end = scanner.getTokenOffset() + scanner.getTokenLength(); + if (start === end && start > 0) { + start--; + while (start > 0 && /\s/.test(text.charAt(start))) { + start--; + } + end = start + 1; + } + _errorAtRange(message, code, start, end); + if (node) { + _finalize(node, false); + } + if (skipUntilAfter.length + skipUntil.length > 0) { + var token_2 = scanner.getToken(); + while (token_2 !== 17 /* EOF */) { + if (skipUntilAfter.indexOf(token_2) !== -1) { + _scanNext(); + break; + } + else if (skipUntil.indexOf(token_2) !== -1) { + break; + } + token_2 = _scanNext(); + } + } + return node; + } + function _checkScanError() { + switch (scanner.getTokenError()) { + case 4 /* InvalidUnicode */: + _error(localize('InvalidUnicode', 'Invalid unicode sequence in string.'), ErrorCode.InvalidUnicode); + return true; + case 5 /* InvalidEscapeCharacter */: + _error(localize('InvalidEscapeCharacter', 'Invalid escape character in string.'), ErrorCode.InvalidEscapeCharacter); + return true; + case 3 /* UnexpectedEndOfNumber */: + _error(localize('UnexpectedEndOfNumber', 'Unexpected end of number.'), ErrorCode.UnexpectedEndOfNumber); + return true; + case 1 /* UnexpectedEndOfComment */: + _error(localize('UnexpectedEndOfComment', 'Unexpected end of comment.'), ErrorCode.UnexpectedEndOfComment); + return true; + case 2 /* UnexpectedEndOfString */: + _error(localize('UnexpectedEndOfString', 'Unexpected end of string.'), ErrorCode.UnexpectedEndOfString); + return true; + case 6 /* InvalidCharacter */: + _error(localize('InvalidCharacter', 'Invalid characters in string. Control characters must be escaped.'), ErrorCode.InvalidCharacter); + return true; + } + return false; + } + function _finalize(node, scanNext) { + node.length = scanner.getTokenOffset() + scanner.getTokenLength() - node.offset; + if (scanNext) { + _scanNext(); + } + return node; + } + function _parseArray(parent) { + if (scanner.getToken() !== 3 /* OpenBracketToken */) { + return undefined; + } + var node = new ArrayASTNodeImpl(parent, scanner.getTokenOffset()); + _scanNext(); // consume OpenBracketToken + var count = 0; + var needsComma = false; + while (scanner.getToken() !== 4 /* CloseBracketToken */ && scanner.getToken() !== 17 /* EOF */) { + if (scanner.getToken() === 5 /* CommaToken */) { + if (!needsComma) { + _error(localize('ValueExpected', 'Value expected'), ErrorCode.ValueExpected); + } + var commaOffset = scanner.getTokenOffset(); + _scanNext(); // consume comma + if (scanner.getToken() === 4 /* CloseBracketToken */) { + if (needsComma) { + _errorAtRange(localize('TrailingComma', 'Trailing comma'), ErrorCode.TrailingComma, commaOffset, commaOffset + 1); + } + continue; + } + } + else if (needsComma) { + _error(localize('ExpectedComma', 'Expected comma'), ErrorCode.CommaExpected); + } + var item = _parseValue(node); + if (!item) { + _error(localize('PropertyExpected', 'Value expected'), ErrorCode.ValueExpected, undefined, [], [4 /* CloseBracketToken */, 5 /* CommaToken */]); + } + else { + node.items.push(item); + } + needsComma = true; + } + if (scanner.getToken() !== 4 /* CloseBracketToken */) { + return _error(localize('ExpectedCloseBracket', 'Expected comma or closing bracket'), ErrorCode.CommaOrCloseBacketExpected, node); + } + return _finalize(node, true); + } + var keyPlaceholder = new StringASTNodeImpl(undefined, 0, 0); + function _parseProperty(parent, keysSeen) { + var node = new PropertyASTNodeImpl(parent, scanner.getTokenOffset(), keyPlaceholder); + var key = _parseString(node); + if (!key) { + if (scanner.getToken() === 16 /* Unknown */) { + // give a more helpful error message + _error(localize('DoubleQuotesExpected', 'Property keys must be doublequoted'), ErrorCode.Undefined); + var keyNode = new StringASTNodeImpl(node, scanner.getTokenOffset(), scanner.getTokenLength()); + keyNode.value = scanner.getTokenValue(); + key = keyNode; + _scanNext(); // consume Unknown + } + else { + return undefined; + } + } + node.keyNode = key; + var seen = keysSeen[key.value]; + if (seen) { + _errorAtRange(localize('DuplicateKeyWarning', "Duplicate object key"), ErrorCode.DuplicateKey, node.keyNode.offset, node.keyNode.offset + node.keyNode.length, DiagnosticSeverity.Warning); + if (typeof seen === 'object') { + _errorAtRange(localize('DuplicateKeyWarning', "Duplicate object key"), ErrorCode.DuplicateKey, seen.keyNode.offset, seen.keyNode.offset + seen.keyNode.length, DiagnosticSeverity.Warning); + } + keysSeen[key.value] = true; // if the same key is duplicate again, avoid duplicate error reporting + } + else { + keysSeen[key.value] = node; + } + if (scanner.getToken() === 6 /* ColonToken */) { + node.colonOffset = scanner.getTokenOffset(); + _scanNext(); // consume ColonToken + } + else { + _error(localize('ColonExpected', 'Colon expected'), ErrorCode.ColonExpected); + if (scanner.getToken() === 10 /* StringLiteral */ && textDocument.positionAt(key.offset + key.length).line < textDocument.positionAt(scanner.getTokenOffset()).line) { + node.length = key.length; + return node; + } + } + var value = _parseValue(node); + if (!value) { + return _error(localize('ValueExpected', 'Value expected'), ErrorCode.ValueExpected, node, [], [2 /* CloseBraceToken */, 5 /* CommaToken */]); + } + node.valueNode = value; + node.length = value.offset + value.length - node.offset; + return node; + } + function _parseObject(parent) { + if (scanner.getToken() !== 1 /* OpenBraceToken */) { + return undefined; + } + var node = new ObjectASTNodeImpl(parent, scanner.getTokenOffset()); + var keysSeen = Object.create(null); + _scanNext(); // consume OpenBraceToken + var needsComma = false; + while (scanner.getToken() !== 2 /* CloseBraceToken */ && scanner.getToken() !== 17 /* EOF */) { + if (scanner.getToken() === 5 /* CommaToken */) { + if (!needsComma) { + _error(localize('PropertyExpected', 'Property expected'), ErrorCode.PropertyExpected); + } + var commaOffset = scanner.getTokenOffset(); + _scanNext(); // consume comma + if (scanner.getToken() === 2 /* CloseBraceToken */) { + if (needsComma) { + _errorAtRange(localize('TrailingComma', 'Trailing comma'), ErrorCode.TrailingComma, commaOffset, commaOffset + 1); + } + continue; + } + } + else if (needsComma) { + _error(localize('ExpectedComma', 'Expected comma'), ErrorCode.CommaExpected); + } + var property = _parseProperty(node, keysSeen); + if (!property) { + _error(localize('PropertyExpected', 'Property expected'), ErrorCode.PropertyExpected, undefined, [], [2 /* CloseBraceToken */, 5 /* CommaToken */]); + } + else { + node.properties.push(property); + } + needsComma = true; + } + if (scanner.getToken() !== 2 /* CloseBraceToken */) { + return _error(localize('ExpectedCloseBrace', 'Expected comma or closing brace'), ErrorCode.CommaOrCloseBraceExpected, node); + } + return _finalize(node, true); + } + function _parseString(parent) { + if (scanner.getToken() !== 10 /* StringLiteral */) { + return undefined; + } + var node = new StringASTNodeImpl(parent, scanner.getTokenOffset()); + node.value = scanner.getTokenValue(); + return _finalize(node, true); + } + function _parseNumber(parent) { + if (scanner.getToken() !== 11 /* NumericLiteral */) { + return undefined; + } + var node = new NumberASTNodeImpl(parent, scanner.getTokenOffset()); + if (scanner.getTokenError() === 0 /* None */) { + var tokenValue = scanner.getTokenValue(); + try { + var numberValue = JSON.parse(tokenValue); + if (!isNumber(numberValue)) { + return _error(localize('InvalidNumberFormat', 'Invalid number format.'), ErrorCode.Undefined, node); + } + node.value = numberValue; + } + catch (e) { + return _error(localize('InvalidNumberFormat', 'Invalid number format.'), ErrorCode.Undefined, node); + } + node.isInteger = tokenValue.indexOf('.') === -1; + } + return _finalize(node, true); + } + function _parseLiteral(parent) { + var node; + switch (scanner.getToken()) { + case 7 /* NullKeyword */: + return _finalize(new NullASTNodeImpl(parent, scanner.getTokenOffset()), true); + case 8 /* TrueKeyword */: + return _finalize(new BooleanASTNodeImpl(parent, true, scanner.getTokenOffset()), true); + case 9 /* FalseKeyword */: + return _finalize(new BooleanASTNodeImpl(parent, false, scanner.getTokenOffset()), true); + default: + return undefined; + } + } + function _parseValue(parent) { + return _parseArray(parent) || _parseObject(parent) || _parseString(parent) || _parseNumber(parent) || _parseLiteral(parent); + } + var _root = undefined; + var token = _scanNext(); + if (token !== 17 /* EOF */) { + _root = _parseValue(_root); + if (!_root) { + _error(localize('Invalid symbol', 'Expected a JSON object, array or literal.'), ErrorCode.Undefined); + } + else if (scanner.getToken() !== 17 /* EOF */) { + _error(localize('End of file expected', 'End of file expected.'), ErrorCode.Undefined); + } + } + return new JSONDocument(_root, problems, commentRanges); +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/configuration.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/configuration.js" index c1de590e18dc42ef1e8d14a965165cc8f1c083ab..e8755acbd328756ab201b7e1f6e79288c015c6fd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/configuration.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/configuration.js" @@ -1,3 +1,528 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d0b392959bd682ab5240fe1f82e2659271e02d03c95d5a6b6a94c644b1c2f45b -size 22684 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import * as nls from 'vscode-nls'; +var localize = nls.loadMessageBundle(); +export var schemaContributions = { + schemaAssociations: [], + schemas: { + // refer to the latest schema + 'http://json-schema.org/schema#': { + $ref: 'http://json-schema.org/draft-07/schema#' + }, + // bundle the schema-schema to include (localized) descriptions + 'http://json-schema.org/draft-04/schema#': { + '$schema': 'http://json-schema.org/draft-04/schema#', + 'definitions': { + 'schemaArray': { + 'type': 'array', + 'minItems': 1, + 'items': { + '$ref': '#' + } + }, + 'positiveInteger': { + 'type': 'integer', + 'minimum': 0 + }, + 'positiveIntegerDefault0': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + }, + { + 'default': 0 + } + ] + }, + 'simpleTypes': { + 'type': 'string', + 'enum': [ + 'array', + 'boolean', + 'integer', + 'null', + 'number', + 'object', + 'string' + ] + }, + 'stringArray': { + 'type': 'array', + 'items': { + 'type': 'string' + }, + 'minItems': 1, + 'uniqueItems': true + } + }, + 'type': 'object', + 'properties': { + 'id': { + 'type': 'string', + 'format': 'uri' + }, + '$schema': { + 'type': 'string', + 'format': 'uri' + }, + 'title': { + 'type': 'string' + }, + 'description': { + 'type': 'string' + }, + 'default': {}, + 'multipleOf': { + 'type': 'number', + 'minimum': 0, + 'exclusiveMinimum': true + }, + 'maximum': { + 'type': 'number' + }, + 'exclusiveMaximum': { + 'type': 'boolean', + 'default': false + }, + 'minimum': { + 'type': 'number' + }, + 'exclusiveMinimum': { + 'type': 'boolean', + 'default': false + }, + 'maxLength': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + } + ] + }, + 'minLength': { + 'allOf': [ + { + '$ref': '#/definitions/positiveIntegerDefault0' + } + ] + }, + 'pattern': { + 'type': 'string', + 'format': 'regex' + }, + 'additionalItems': { + 'anyOf': [ + { + 'type': 'boolean' + }, + { + '$ref': '#' + } + ], + 'default': {} + }, + 'items': { + 'anyOf': [ + { + '$ref': '#' + }, + { + '$ref': '#/definitions/schemaArray' + } + ], + 'default': {} + }, + 'maxItems': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + } + ] + }, + 'minItems': { + 'allOf': [ + { + '$ref': '#/definitions/positiveIntegerDefault0' + } + ] + }, + 'uniqueItems': { + 'type': 'boolean', + 'default': false + }, + 'maxProperties': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + } + ] + }, + 'minProperties': { + 'allOf': [ + { + '$ref': '#/definitions/positiveIntegerDefault0' + } + ] + }, + 'required': { + 'allOf': [ + { + '$ref': '#/definitions/stringArray' + } + ] + }, + 'additionalProperties': { + 'anyOf': [ + { + 'type': 'boolean' + }, + { + '$ref': '#' + } + ], + 'default': {} + }, + 'definitions': { + 'type': 'object', + 'additionalProperties': { + '$ref': '#' + }, + 'default': {} + }, + 'properties': { + 'type': 'object', + 'additionalProperties': { + '$ref': '#' + }, + 'default': {} + }, + 'patternProperties': { + 'type': 'object', + 'additionalProperties': { + '$ref': '#' + }, + 'default': {} + }, + 'dependencies': { + 'type': 'object', + 'additionalProperties': { + 'anyOf': [ + { + '$ref': '#' + }, + { + '$ref': '#/definitions/stringArray' + } + ] + } + }, + 'enum': { + 'type': 'array', + 'minItems': 1, + 'uniqueItems': true + }, + 'type': { + 'anyOf': [ + { + '$ref': '#/definitions/simpleTypes' + }, + { + 'type': 'array', + 'items': { + '$ref': '#/definitions/simpleTypes' + }, + 'minItems': 1, + 'uniqueItems': true + } + ] + }, + 'format': { + 'anyOf': [ + { + 'type': 'string', + 'enum': [ + 'date-time', + 'uri', + 'email', + 'hostname', + 'ipv4', + 'ipv6', + 'regex' + ] + }, + { + 'type': 'string' + } + ] + }, + 'allOf': { + 'allOf': [ + { + '$ref': '#/definitions/schemaArray' + } + ] + }, + 'anyOf': { + 'allOf': [ + { + '$ref': '#/definitions/schemaArray' + } + ] + }, + 'oneOf': { + 'allOf': [ + { + '$ref': '#/definitions/schemaArray' + } + ] + }, + 'not': { + 'allOf': [ + { + '$ref': '#' + } + ] + } + }, + 'dependencies': { + 'exclusiveMaximum': [ + 'maximum' + ], + 'exclusiveMinimum': [ + 'minimum' + ] + }, + 'default': {} + }, + 'http://json-schema.org/draft-07/schema#': { + 'definitions': { + 'schemaArray': { + 'type': 'array', + 'minItems': 1, + 'items': { '$ref': '#' } + }, + 'nonNegativeInteger': { + 'type': 'integer', + 'minimum': 0 + }, + 'nonNegativeIntegerDefault0': { + 'allOf': [ + { '$ref': '#/definitions/nonNegativeInteger' }, + { 'default': 0 } + ] + }, + 'simpleTypes': { + 'enum': [ + 'array', + 'boolean', + 'integer', + 'null', + 'number', + 'object', + 'string' + ] + }, + 'stringArray': { + 'type': 'array', + 'items': { 'type': 'string' }, + 'uniqueItems': true, + 'default': [] + } + }, + 'type': ['object', 'boolean'], + 'properties': { + '$id': { + 'type': 'string', + 'format': 'uri-reference' + }, + '$schema': { + 'type': 'string', + 'format': 'uri' + }, + '$ref': { + 'type': 'string', + 'format': 'uri-reference' + }, + '$comment': { + 'type': 'string' + }, + 'title': { + 'type': 'string' + }, + 'description': { + 'type': 'string' + }, + 'default': true, + 'readOnly': { + 'type': 'boolean', + 'default': false + }, + 'examples': { + 'type': 'array', + 'items': true + }, + 'multipleOf': { + 'type': 'number', + 'exclusiveMinimum': 0 + }, + 'maximum': { + 'type': 'number' + }, + 'exclusiveMaximum': { + 'type': 'number' + }, + 'minimum': { + 'type': 'number' + }, + 'exclusiveMinimum': { + 'type': 'number' + }, + 'maxLength': { '$ref': '#/definitions/nonNegativeInteger' }, + 'minLength': { '$ref': '#/definitions/nonNegativeIntegerDefault0' }, + 'pattern': { + 'type': 'string', + 'format': 'regex' + }, + 'additionalItems': { '$ref': '#' }, + 'items': { + 'anyOf': [ + { '$ref': '#' }, + { '$ref': '#/definitions/schemaArray' } + ], + 'default': true + }, + 'maxItems': { '$ref': '#/definitions/nonNegativeInteger' }, + 'minItems': { '$ref': '#/definitions/nonNegativeIntegerDefault0' }, + 'uniqueItems': { + 'type': 'boolean', + 'default': false + }, + 'contains': { '$ref': '#' }, + 'maxProperties': { '$ref': '#/definitions/nonNegativeInteger' }, + 'minProperties': { '$ref': '#/definitions/nonNegativeIntegerDefault0' }, + 'required': { '$ref': '#/definitions/stringArray' }, + 'additionalProperties': { '$ref': '#' }, + 'definitions': { + 'type': 'object', + 'additionalProperties': { '$ref': '#' }, + 'default': {} + }, + 'properties': { + 'type': 'object', + 'additionalProperties': { '$ref': '#' }, + 'default': {} + }, + 'patternProperties': { + 'type': 'object', + 'additionalProperties': { '$ref': '#' }, + 'propertyNames': { 'format': 'regex' }, + 'default': {} + }, + 'dependencies': { + 'type': 'object', + 'additionalProperties': { + 'anyOf': [ + { '$ref': '#' }, + { '$ref': '#/definitions/stringArray' } + ] + } + }, + 'propertyNames': { '$ref': '#' }, + 'const': true, + 'enum': { + 'type': 'array', + 'items': true, + 'minItems': 1, + 'uniqueItems': true + }, + 'type': { + 'anyOf': [ + { '$ref': '#/definitions/simpleTypes' }, + { + 'type': 'array', + 'items': { '$ref': '#/definitions/simpleTypes' }, + 'minItems': 1, + 'uniqueItems': true + } + ] + }, + 'format': { 'type': 'string' }, + 'contentMediaType': { 'type': 'string' }, + 'contentEncoding': { 'type': 'string' }, + 'if': { '$ref': '#' }, + 'then': { '$ref': '#' }, + 'else': { '$ref': '#' }, + 'allOf': { '$ref': '#/definitions/schemaArray' }, + 'anyOf': { '$ref': '#/definitions/schemaArray' }, + 'oneOf': { '$ref': '#/definitions/schemaArray' }, + 'not': { '$ref': '#' } + }, + 'default': true + } + } +}; +var descriptions = { + id: localize('schema.json.id', "A unique identifier for the schema."), + $schema: localize('schema.json.$schema', "The schema to verify this document against."), + title: localize('schema.json.title', "A descriptive title of the element."), + description: localize('schema.json.description', "A long description of the element. Used in hover menus and suggestions."), + default: localize('schema.json.default', "A default value. Used by suggestions."), + multipleOf: localize('schema.json.multipleOf', "A number that should cleanly divide the current value (i.e. have no remainder)."), + maximum: localize('schema.json.maximum', "The maximum numerical value, inclusive by default."), + exclusiveMaximum: localize('schema.json.exclusiveMaximum', "Makes the maximum property exclusive."), + minimum: localize('schema.json.minimum', "The minimum numerical value, inclusive by default."), + exclusiveMinimum: localize('schema.json.exclusiveMininum', "Makes the minimum property exclusive."), + maxLength: localize('schema.json.maxLength', "The maximum length of a string."), + minLength: localize('schema.json.minLength', "The minimum length of a string."), + pattern: localize('schema.json.pattern', "A regular expression to match the string against. It is not implicitly anchored."), + additionalItems: localize('schema.json.additionalItems', "For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."), + items: localize('schema.json.items', "For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."), + maxItems: localize('schema.json.maxItems', "The maximum number of items that can be inside an array. Inclusive."), + minItems: localize('schema.json.minItems', "The minimum number of items that can be inside an array. Inclusive."), + uniqueItems: localize('schema.json.uniqueItems', "If all of the items in the array must be unique. Defaults to false."), + maxProperties: localize('schema.json.maxProperties', "The maximum number of properties an object can have. Inclusive."), + minProperties: localize('schema.json.minProperties', "The minimum number of properties an object can have. Inclusive."), + required: localize('schema.json.required', "An array of strings that lists the names of all properties required on this object."), + additionalProperties: localize('schema.json.additionalProperties', "Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."), + definitions: localize('schema.json.definitions', "Not used for validation. Place subschemas here that you wish to reference inline with $ref."), + properties: localize('schema.json.properties', "A map of property names to schemas for each property."), + patternProperties: localize('schema.json.patternProperties', "A map of regular expressions on property names to schemas for matching properties."), + dependencies: localize('schema.json.dependencies', "A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."), + enum: localize('schema.json.enum', "The set of literal values that are valid."), + type: localize('schema.json.type', "Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."), + format: localize('schema.json.format', "Describes the format expected for the value."), + allOf: localize('schema.json.allOf', "An array of schemas, all of which must match."), + anyOf: localize('schema.json.anyOf', "An array of schemas, where at least one must match."), + oneOf: localize('schema.json.oneOf', "An array of schemas, exactly one of which must match."), + not: localize('schema.json.not', "A schema which must not match."), + $id: localize('schema.json.$id', "A unique identifier for the schema."), + $ref: localize('schema.json.$ref', "Reference a definition hosted on any location."), + $comment: localize('schema.json.$comment', "Comments from schema authors to readers or maintainers of the schema."), + readOnly: localize('schema.json.readOnly', "Indicates that the value of the instance is managed exclusively by the owning authority."), + examples: localize('schema.json.examples', "Sample JSON values associated with a particular schema, for the purpose of illustrating usage."), + contains: localize('schema.json.contains', "An array instance is valid against \"contains\" if at least one of its elements is valid against the given schema."), + propertyNames: localize('schema.json.propertyNames', "If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."), + const: localize('schema.json.const', "An instance validates successfully against this keyword if its value is equal to the value of the keyword."), + contentMediaType: localize('schema.json.contentMediaType', "Describes the media type of a string property."), + contentEncoding: localize('schema.json.contentEncoding', "Describes the content encoding of a string property."), + if: localize('schema.json.if', "The validation outcome of the \"if\" subschema controls which of the \"then\" or \"else\" keywords are evaluated."), + then: localize('schema.json.then', "The \"if\" subschema is used for validation when the \"if\" subschema succeeds."), + else: localize('schema.json.else', "The \"else\" subschema is used for validation when the \"if\" subschema fails.") +}; +for (var schemaName in schemaContributions.schemas) { + var schema = schemaContributions.schemas[schemaName]; + for (var property in schema.properties) { + var propertyObject = schema.properties[property]; + if (typeof propertyObject === 'boolean') { + propertyObject = schema.properties[property] = {}; + } + var description = descriptions[property]; + if (description) { + propertyObject['description'] = description; + } + else { + console.log(property + ": localize('schema.json." + property + "', \"\")"); + } + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonCompletion.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonCompletion.js" index 48befb982c42cff5ebc4086ad18c3a5742cf340d..c271c21e11b9183849355c7cd750946b0ed621d3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonCompletion.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonCompletion.js" @@ -1,3 +1,934 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:374917df8ad6c8d9906515966ca600ea3e5d311b0c9a99ce39058b4c7e4607c9 -size 45373 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import * as Parser from '../parser/jsonParser'; +import * as Json from 'jsonc-parser'; +import { stringifyObject } from '../utils/json'; +import { endsWith, extendedRegExp } from '../utils/strings'; +import { isDefined } from '../utils/objects'; +import { CompletionItem, CompletionItemKind, Range, TextEdit, InsertTextFormat, MarkupKind } from '../jsonLanguageTypes'; +import * as nls from 'vscode-nls'; +var localize = nls.loadMessageBundle(); +var valueCommitCharacters = [',', '}', ']']; +var propertyCommitCharacters = [':']; +var JSONCompletion = /** @class */ (function () { + function JSONCompletion(schemaService, contributions, promiseConstructor, clientCapabilities) { + if (contributions === void 0) { contributions = []; } + if (promiseConstructor === void 0) { promiseConstructor = Promise; } + if (clientCapabilities === void 0) { clientCapabilities = {}; } + this.schemaService = schemaService; + this.contributions = contributions; + this.promiseConstructor = promiseConstructor; + this.clientCapabilities = clientCapabilities; + } + JSONCompletion.prototype.doResolve = function (item) { + for (var i = this.contributions.length - 1; i >= 0; i--) { + var resolveCompletion = this.contributions[i].resolveCompletion; + if (resolveCompletion) { + var resolver = resolveCompletion(item); + if (resolver) { + return resolver; + } + } + } + return this.promiseConstructor.resolve(item); + }; + JSONCompletion.prototype.doComplete = function (document, position, doc) { + var _this = this; + var result = { + items: [], + isIncomplete: false + }; + var text = document.getText(); + var offset = document.offsetAt(position); + var node = doc.getNodeFromOffset(offset, true); + if (this.isInComment(document, node ? node.offset : 0, offset)) { + return Promise.resolve(result); + } + if (node && (offset === node.offset + node.length) && offset > 0) { + var ch = text[offset - 1]; + if (node.type === 'object' && ch === '}' || node.type === 'array' && ch === ']') { + // after ] or } + node = node.parent; + } + } + var currentWord = this.getCurrentWord(document, offset); + var overwriteRange; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + overwriteRange = Range.create(document.positionAt(node.offset), document.positionAt(node.offset + node.length)); + } + else { + var overwriteStart = offset - currentWord.length; + if (overwriteStart > 0 && text[overwriteStart - 1] === '"') { + overwriteStart--; + } + overwriteRange = Range.create(document.positionAt(overwriteStart), position); + } + var supportsCommitCharacters = false; //this.doesSupportsCommitCharacters(); disabled for now, waiting for new API: https://github.com/microsoft/vscode/issues/42544 + var proposed = {}; + var collector = { + add: function (suggestion) { + var label = suggestion.label; + var existing = proposed[label]; + if (!existing) { + label = label.replace(/[\n]/g, '↵'); + if (label.length > 60) { + var shortendedLabel = label.substr(0, 57).trim() + '...'; + if (!proposed[shortendedLabel]) { + label = shortendedLabel; + } + } + if (overwriteRange && suggestion.insertText !== undefined) { + suggestion.textEdit = TextEdit.replace(overwriteRange, suggestion.insertText); + } + if (supportsCommitCharacters) { + suggestion.commitCharacters = suggestion.kind === CompletionItemKind.Property ? propertyCommitCharacters : valueCommitCharacters; + } + suggestion.label = label; + proposed[label] = suggestion; + result.items.push(suggestion); + } + else { + if (!existing.documentation) { + existing.documentation = suggestion.documentation; + } + if (!existing.detail) { + existing.detail = suggestion.detail; + } + } + }, + setAsIncomplete: function () { + result.isIncomplete = true; + }, + error: function (message) { + console.error(message); + }, + log: function (message) { + console.log(message); + }, + getNumberOfProposals: function () { + return result.items.length; + } + }; + return this.schemaService.getSchemaForResource(document.uri, doc).then(function (schema) { + var collectionPromises = []; + var addValue = true; + var currentKey = ''; + var currentProperty = undefined; + if (node) { + if (node.type === 'string') { + var parent = node.parent; + if (parent && parent.type === 'property' && parent.keyNode === node) { + addValue = !parent.valueNode; + currentProperty = parent; + currentKey = text.substr(node.offset + 1, node.length - 2); + if (parent) { + node = parent.parent; + } + } + } + } + // proposals for properties + if (node && node.type === 'object') { + // don't suggest keys when the cursor is just before the opening curly brace + if (node.offset === offset) { + return result; + } + // don't suggest properties that are already present + var properties = node.properties; + properties.forEach(function (p) { + if (!currentProperty || currentProperty !== p) { + proposed[p.keyNode.value] = CompletionItem.create('__'); + } + }); + var separatorAfter_1 = ''; + if (addValue) { + separatorAfter_1 = _this.evaluateSeparatorAfter(document, document.offsetAt(overwriteRange.end)); + } + if (schema) { + // property proposals with schema + _this.getPropertyCompletions(schema, doc, node, addValue, separatorAfter_1, collector); + } + else { + // property proposals without schema + _this.getSchemaLessPropertyCompletions(doc, node, currentKey, collector); + } + var location_1 = Parser.getNodePath(node); + _this.contributions.forEach(function (contribution) { + var collectPromise = contribution.collectPropertyCompletions(document.uri, location_1, currentWord, addValue, separatorAfter_1 === '', collector); + if (collectPromise) { + collectionPromises.push(collectPromise); + } + }); + if ((!schema && currentWord.length > 0 && text.charAt(offset - currentWord.length - 1) !== '"')) { + collector.add({ + kind: CompletionItemKind.Property, + label: _this.getLabelForValue(currentWord), + insertText: _this.getInsertTextForProperty(currentWord, undefined, false, separatorAfter_1), + insertTextFormat: InsertTextFormat.Snippet, documentation: '', + }); + collector.setAsIncomplete(); + } + } + // proposals for values + var types = {}; + if (schema) { + // value proposals with schema + _this.getValueCompletions(schema, doc, node, offset, document, collector, types); + } + else { + // value proposals without schema + _this.getSchemaLessValueCompletions(doc, node, offset, document, collector); + } + if (_this.contributions.length > 0) { + _this.getContributedValueCompletions(doc, node, offset, document, collector, collectionPromises); + } + return _this.promiseConstructor.all(collectionPromises).then(function () { + if (collector.getNumberOfProposals() === 0) { + var offsetForSeparator = offset; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + offsetForSeparator = node.offset + node.length; + } + var separatorAfter = _this.evaluateSeparatorAfter(document, offsetForSeparator); + _this.addFillerValueCompletions(types, separatorAfter, collector); + } + return result; + }); + }); + }; + JSONCompletion.prototype.getPropertyCompletions = function (schema, doc, node, addValue, separatorAfter, collector) { + var _this = this; + var matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset); + matchingSchemas.forEach(function (s) { + if (s.node === node && !s.inverted) { + var schemaProperties_1 = s.schema.properties; + if (schemaProperties_1) { + Object.keys(schemaProperties_1).forEach(function (key) { + var propertySchema = schemaProperties_1[key]; + if (typeof propertySchema === 'object' && !propertySchema.deprecationMessage && !propertySchema.doNotSuggest) { + var proposal = { + kind: CompletionItemKind.Property, + label: key, + insertText: _this.getInsertTextForProperty(key, propertySchema, addValue, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, + filterText: _this.getFilterTextForValue(key), + documentation: _this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '', + }; + if (propertySchema.suggestSortText !== undefined) { + proposal.sortText = propertySchema.suggestSortText; + } + if (proposal.insertText && endsWith(proposal.insertText, "$1" + separatorAfter)) { + proposal.command = { + title: 'Suggest', + command: 'editor.action.triggerSuggest' + }; + } + collector.add(proposal); + } + }); + } + var schemaPropertyNames_1 = s.schema.propertyNames; + if (typeof schemaPropertyNames_1 === 'object' && !schemaPropertyNames_1.deprecationMessage && !schemaPropertyNames_1.doNotSuggest) { + var propertyNameCompletionItem = function (name, enumDescription) { + if (enumDescription === void 0) { enumDescription = undefined; } + var proposal = { + kind: CompletionItemKind.Property, + label: name, + insertText: _this.getInsertTextForProperty(name, undefined, addValue, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, + filterText: _this.getFilterTextForValue(name), + documentation: enumDescription || _this.fromMarkup(schemaPropertyNames_1.markdownDescription) || schemaPropertyNames_1.description || '', + }; + if (schemaPropertyNames_1.suggestSortText !== undefined) { + proposal.sortText = schemaPropertyNames_1.suggestSortText; + } + if (proposal.insertText && endsWith(proposal.insertText, "$1" + separatorAfter)) { + proposal.command = { + title: 'Suggest', + command: 'editor.action.triggerSuggest' + }; + } + collector.add(proposal); + }; + if (schemaPropertyNames_1.enum) { + for (var i = 0; i < schemaPropertyNames_1.enum.length; i++) { + var enumDescription = undefined; + if (schemaPropertyNames_1.markdownEnumDescriptions && i < schemaPropertyNames_1.markdownEnumDescriptions.length) { + enumDescription = _this.fromMarkup(schemaPropertyNames_1.markdownEnumDescriptions[i]); + } + else if (schemaPropertyNames_1.enumDescriptions && i < schemaPropertyNames_1.enumDescriptions.length) { + enumDescription = schemaPropertyNames_1.enumDescriptions[i]; + } + propertyNameCompletionItem(schemaPropertyNames_1.enum[i], enumDescription); + } + } + if (schemaPropertyNames_1.const) { + propertyNameCompletionItem(schemaPropertyNames_1.const); + } + } + } + }); + }; + JSONCompletion.prototype.getSchemaLessPropertyCompletions = function (doc, node, currentKey, collector) { + var _this = this; + var collectCompletionsForSimilarObject = function (obj) { + obj.properties.forEach(function (p) { + var key = p.keyNode.value; + collector.add({ + kind: CompletionItemKind.Property, + label: key, + insertText: _this.getInsertTextForValue(key, ''), + insertTextFormat: InsertTextFormat.Snippet, + filterText: _this.getFilterTextForValue(key), + documentation: '' + }); + }); + }; + if (node.parent) { + if (node.parent.type === 'property') { + // if the object is a property value, check the tree for other objects that hang under a property of the same name + var parentKey_1 = node.parent.keyNode.value; + doc.visit(function (n) { + if (n.type === 'property' && n !== node.parent && n.keyNode.value === parentKey_1 && n.valueNode && n.valueNode.type === 'object') { + collectCompletionsForSimilarObject(n.valueNode); + } + return true; + }); + } + else if (node.parent.type === 'array') { + // if the object is in an array, use all other array elements as similar objects + node.parent.items.forEach(function (n) { + if (n.type === 'object' && n !== node) { + collectCompletionsForSimilarObject(n); + } + }); + } + } + else if (node.type === 'object') { + collector.add({ + kind: CompletionItemKind.Property, + label: '$schema', + insertText: this.getInsertTextForProperty('$schema', undefined, true, ''), + insertTextFormat: InsertTextFormat.Snippet, documentation: '', + filterText: this.getFilterTextForValue("$schema") + }); + } + }; + JSONCompletion.prototype.getSchemaLessValueCompletions = function (doc, node, offset, document, collector) { + var _this = this; + var offsetForSeparator = offset; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + offsetForSeparator = node.offset + node.length; + node = node.parent; + } + if (!node) { + collector.add({ + kind: this.getSuggestionKind('object'), + label: 'Empty object', + insertText: this.getInsertTextForValue({}, ''), + insertTextFormat: InsertTextFormat.Snippet, + documentation: '' + }); + collector.add({ + kind: this.getSuggestionKind('array'), + label: 'Empty array', + insertText: this.getInsertTextForValue([], ''), + insertTextFormat: InsertTextFormat.Snippet, + documentation: '' + }); + return; + } + var separatorAfter = this.evaluateSeparatorAfter(document, offsetForSeparator); + var collectSuggestionsForValues = function (value) { + if (value.parent && !Parser.contains(value.parent, offset, true)) { + collector.add({ + kind: _this.getSuggestionKind(value.type), + label: _this.getLabelTextForMatchingNode(value, document), + insertText: _this.getInsertTextForMatchingNode(value, document, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, documentation: '' + }); + } + if (value.type === 'boolean') { + _this.addBooleanValueCompletion(!value.value, separatorAfter, collector); + } + }; + if (node.type === 'property') { + if (offset > (node.colonOffset || 0)) { + var valueNode = node.valueNode; + if (valueNode && (offset > (valueNode.offset + valueNode.length) || valueNode.type === 'object' || valueNode.type === 'array')) { + return; + } + // suggest values at the same key + var parentKey_2 = node.keyNode.value; + doc.visit(function (n) { + if (n.type === 'property' && n.keyNode.value === parentKey_2 && n.valueNode) { + collectSuggestionsForValues(n.valueNode); + } + return true; + }); + if (parentKey_2 === '$schema' && node.parent && !node.parent.parent) { + this.addDollarSchemaCompletions(separatorAfter, collector); + } + } + } + if (node.type === 'array') { + if (node.parent && node.parent.type === 'property') { + // suggest items of an array at the same key + var parentKey_3 = node.parent.keyNode.value; + doc.visit(function (n) { + if (n.type === 'property' && n.keyNode.value === parentKey_3 && n.valueNode && n.valueNode.type === 'array') { + n.valueNode.items.forEach(collectSuggestionsForValues); + } + return true; + }); + } + else { + // suggest items in the same array + node.items.forEach(collectSuggestionsForValues); + } + } + }; + JSONCompletion.prototype.getValueCompletions = function (schema, doc, node, offset, document, collector, types) { + var offsetForSeparator = offset; + var parentKey = undefined; + var valueNode = undefined; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + offsetForSeparator = node.offset + node.length; + valueNode = node; + node = node.parent; + } + if (!node) { + this.addSchemaValueCompletions(schema.schema, '', collector, types); + return; + } + if ((node.type === 'property') && offset > (node.colonOffset || 0)) { + var valueNode_1 = node.valueNode; + if (valueNode_1 && offset > (valueNode_1.offset + valueNode_1.length)) { + return; // we are past the value node + } + parentKey = node.keyNode.value; + node = node.parent; + } + if (node && (parentKey !== undefined || node.type === 'array')) { + var separatorAfter = this.evaluateSeparatorAfter(document, offsetForSeparator); + var matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset, valueNode); + for (var _i = 0, matchingSchemas_1 = matchingSchemas; _i < matchingSchemas_1.length; _i++) { + var s = matchingSchemas_1[_i]; + if (s.node === node && !s.inverted && s.schema) { + if (node.type === 'array' && s.schema.items) { + if (Array.isArray(s.schema.items)) { + var index = this.findItemAtOffset(node, document, offset); + if (index < s.schema.items.length) { + this.addSchemaValueCompletions(s.schema.items[index], separatorAfter, collector, types); + } + } + else { + this.addSchemaValueCompletions(s.schema.items, separatorAfter, collector, types); + } + } + if (parentKey !== undefined) { + var propertyMatched = false; + if (s.schema.properties) { + var propertySchema = s.schema.properties[parentKey]; + if (propertySchema) { + propertyMatched = true; + this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types); + } + } + if (s.schema.patternProperties && !propertyMatched) { + for (var _a = 0, _b = Object.keys(s.schema.patternProperties); _a < _b.length; _a++) { + var pattern = _b[_a]; + var regex = extendedRegExp(pattern); + if (regex.test(parentKey)) { + propertyMatched = true; + var propertySchema = s.schema.patternProperties[pattern]; + this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types); + } + } + } + if (s.schema.additionalProperties && !propertyMatched) { + var propertySchema = s.schema.additionalProperties; + this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types); + } + } + } + } + if (parentKey === '$schema' && !node.parent) { + this.addDollarSchemaCompletions(separatorAfter, collector); + } + if (types['boolean']) { + this.addBooleanValueCompletion(true, separatorAfter, collector); + this.addBooleanValueCompletion(false, separatorAfter, collector); + } + if (types['null']) { + this.addNullValueCompletion(separatorAfter, collector); + } + } + }; + JSONCompletion.prototype.getContributedValueCompletions = function (doc, node, offset, document, collector, collectionPromises) { + if (!node) { + this.contributions.forEach(function (contribution) { + var collectPromise = contribution.collectDefaultCompletions(document.uri, collector); + if (collectPromise) { + collectionPromises.push(collectPromise); + } + }); + } + else { + if (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null') { + node = node.parent; + } + if (node && (node.type === 'property') && offset > (node.colonOffset || 0)) { + var parentKey_4 = node.keyNode.value; + var valueNode = node.valueNode; + if ((!valueNode || offset <= (valueNode.offset + valueNode.length)) && node.parent) { + var location_2 = Parser.getNodePath(node.parent); + this.contributions.forEach(function (contribution) { + var collectPromise = contribution.collectValueCompletions(document.uri, location_2, parentKey_4, collector); + if (collectPromise) { + collectionPromises.push(collectPromise); + } + }); + } + } + } + }; + JSONCompletion.prototype.addSchemaValueCompletions = function (schema, separatorAfter, collector, types) { + var _this = this; + if (typeof schema === 'object') { + this.addEnumValueCompletions(schema, separatorAfter, collector); + this.addDefaultValueCompletions(schema, separatorAfter, collector); + this.collectTypes(schema, types); + if (Array.isArray(schema.allOf)) { + schema.allOf.forEach(function (s) { return _this.addSchemaValueCompletions(s, separatorAfter, collector, types); }); + } + if (Array.isArray(schema.anyOf)) { + schema.anyOf.forEach(function (s) { return _this.addSchemaValueCompletions(s, separatorAfter, collector, types); }); + } + if (Array.isArray(schema.oneOf)) { + schema.oneOf.forEach(function (s) { return _this.addSchemaValueCompletions(s, separatorAfter, collector, types); }); + } + } + }; + JSONCompletion.prototype.addDefaultValueCompletions = function (schema, separatorAfter, collector, arrayDepth) { + var _this = this; + if (arrayDepth === void 0) { arrayDepth = 0; } + var hasProposals = false; + if (isDefined(schema.default)) { + var type = schema.type; + var value = schema.default; + for (var i = arrayDepth; i > 0; i--) { + value = [value]; + type = 'array'; + } + collector.add({ + kind: this.getSuggestionKind(type), + label: this.getLabelForValue(value), + insertText: this.getInsertTextForValue(value, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, + detail: localize('json.suggest.default', 'Default value') + }); + hasProposals = true; + } + if (Array.isArray(schema.examples)) { + schema.examples.forEach(function (example) { + var type = schema.type; + var value = example; + for (var i = arrayDepth; i > 0; i--) { + value = [value]; + type = 'array'; + } + collector.add({ + kind: _this.getSuggestionKind(type), + label: _this.getLabelForValue(value), + insertText: _this.getInsertTextForValue(value, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet + }); + hasProposals = true; + }); + } + if (Array.isArray(schema.defaultSnippets)) { + schema.defaultSnippets.forEach(function (s) { + var type = schema.type; + var value = s.body; + var label = s.label; + var insertText; + var filterText; + if (isDefined(value)) { + var type_1 = schema.type; + for (var i = arrayDepth; i > 0; i--) { + value = [value]; + type_1 = 'array'; + } + insertText = _this.getInsertTextForSnippetValue(value, separatorAfter); + filterText = _this.getFilterTextForSnippetValue(value); + label = label || _this.getLabelForSnippetValue(value); + } + else if (typeof s.bodyText === 'string') { + var prefix = '', suffix = '', indent = ''; + for (var i = arrayDepth; i > 0; i--) { + prefix = prefix + indent + '[\n'; + suffix = suffix + '\n' + indent + ']'; + indent += '\t'; + 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 + } + else { + return; + } + collector.add({ + kind: _this.getSuggestionKind(type), + label: label, + documentation: _this.fromMarkup(s.markdownDescription) || s.description, + insertText: insertText, + insertTextFormat: InsertTextFormat.Snippet, + filterText: filterText + }); + hasProposals = true; + }); + } + if (!hasProposals && typeof schema.items === 'object' && !Array.isArray(schema.items) && arrayDepth < 5 /* beware of recursion */) { + this.addDefaultValueCompletions(schema.items, separatorAfter, collector, arrayDepth + 1); + } + }; + JSONCompletion.prototype.addEnumValueCompletions = function (schema, separatorAfter, collector) { + if (isDefined(schema.const)) { + collector.add({ + kind: this.getSuggestionKind(schema.type), + label: this.getLabelForValue(schema.const), + insertText: this.getInsertTextForValue(schema.const, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, + documentation: this.fromMarkup(schema.markdownDescription) || schema.description + }); + } + if (Array.isArray(schema.enum)) { + for (var i = 0, length = schema.enum.length; i < length; i++) { + var enm = schema.enum[i]; + var 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), + insertTextFormat: InsertTextFormat.Snippet, + documentation: documentation + }); + } + } + }; + JSONCompletion.prototype.collectTypes = function (schema, types) { + if (Array.isArray(schema.enum) || isDefined(schema.const)) { + return; + } + var type = schema.type; + if (Array.isArray(type)) { + type.forEach(function (t) { return types[t] = true; }); + } + else if (type) { + types[type] = true; + } + }; + JSONCompletion.prototype.addFillerValueCompletions = function (types, separatorAfter, collector) { + if (types['object']) { + collector.add({ + kind: this.getSuggestionKind('object'), + label: '{}', + insertText: this.getInsertTextForGuessedValue({}, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, + detail: localize('defaults.object', 'New object'), + documentation: '' + }); + } + if (types['array']) { + collector.add({ + kind: this.getSuggestionKind('array'), + label: '[]', + insertText: this.getInsertTextForGuessedValue([], separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, + detail: localize('defaults.array', 'New array'), + documentation: '' + }); + } + }; + JSONCompletion.prototype.addBooleanValueCompletion = function (value, separatorAfter, collector) { + collector.add({ + kind: this.getSuggestionKind('boolean'), + label: value ? 'true' : 'false', + insertText: this.getInsertTextForValue(value, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, + documentation: '' + }); + }; + JSONCompletion.prototype.addNullValueCompletion = function (separatorAfter, collector) { + collector.add({ + kind: this.getSuggestionKind('null'), + label: 'null', + insertText: 'null' + separatorAfter, + insertTextFormat: InsertTextFormat.Snippet, + documentation: '' + }); + }; + JSONCompletion.prototype.addDollarSchemaCompletions = function (separatorAfter, collector) { + var _this = this; + var schemaIds = this.schemaService.getRegisteredSchemaIds(function (schema) { return schema === 'http' || schema === 'https'; }); + schemaIds.forEach(function (schemaId) { return collector.add({ + kind: CompletionItemKind.Module, + label: _this.getLabelForValue(schemaId), + filterText: _this.getFilterTextForValue(schemaId), + insertText: _this.getInsertTextForValue(schemaId, separatorAfter), + insertTextFormat: InsertTextFormat.Snippet, documentation: '' + }); }); + }; + JSONCompletion.prototype.getLabelForValue = function (value) { + return JSON.stringify(value); + }; + JSONCompletion.prototype.getFilterTextForValue = function (value) { + return JSON.stringify(value); + }; + JSONCompletion.prototype.getFilterTextForSnippetValue = function (value) { + return JSON.stringify(value).replace(/\$\{\d+:([^}]+)\}|\$\d+/g, '$1'); + }; + JSONCompletion.prototype.getLabelForSnippetValue = function (value) { + var label = JSON.stringify(value); + return label.replace(/\$\{\d+:([^}]+)\}|\$\d+/g, '$1'); + }; + JSONCompletion.prototype.getInsertTextForPlainText = function (text) { + return text.replace(/[\\\$\}]/g, '\\$&'); // escape $, \ and } + }; + JSONCompletion.prototype.getInsertTextForValue = function (value, separatorAfter) { + var text = JSON.stringify(value, null, '\t'); + if (text === '{}') { + return '{$1}' + separatorAfter; + } + else if (text === '[]') { + return '[$1]' + separatorAfter; + } + return this.getInsertTextForPlainText(text + separatorAfter); + }; + JSONCompletion.prototype.getInsertTextForSnippetValue = function (value, separatorAfter) { + var replacer = function (value) { + if (typeof value === 'string') { + if (value[0] === '^') { + return value.substr(1); + } + } + return JSON.stringify(value); + }; + return stringifyObject(value, '', replacer) + separatorAfter; + }; + JSONCompletion.prototype.getInsertTextForGuessedValue = function (value, separatorAfter) { + switch (typeof value) { + case 'object': + if (value === null) { + return '${1:null}' + separatorAfter; + } + return this.getInsertTextForValue(value, separatorAfter); + case 'string': + var snippetValue = JSON.stringify(value); + snippetValue = snippetValue.substr(1, snippetValue.length - 2); // remove quotes + snippetValue = this.getInsertTextForPlainText(snippetValue); // escape \ and } + return '"${1:' + snippetValue + '}"' + separatorAfter; + case 'number': + case 'boolean': + return '${1:' + JSON.stringify(value) + '}' + separatorAfter; + } + return this.getInsertTextForValue(value, separatorAfter); + }; + JSONCompletion.prototype.getSuggestionKind = function (type) { + if (Array.isArray(type)) { + var array = type; + type = array.length > 0 ? array[0] : undefined; + } + if (!type) { + return CompletionItemKind.Value; + } + switch (type) { + case 'string': return CompletionItemKind.Value; + case 'object': return CompletionItemKind.Module; + case 'property': return CompletionItemKind.Property; + default: return CompletionItemKind.Value; + } + }; + JSONCompletion.prototype.getLabelTextForMatchingNode = function (node, document) { + switch (node.type) { + case 'array': + return '[]'; + case 'object': + return '{}'; + default: + var content = document.getText().substr(node.offset, node.length); + return content; + } + }; + JSONCompletion.prototype.getInsertTextForMatchingNode = function (node, document, separatorAfter) { + switch (node.type) { + case 'array': + return this.getInsertTextForValue([], separatorAfter); + case 'object': + return this.getInsertTextForValue({}, separatorAfter); + default: + var content = document.getText().substr(node.offset, node.length) + separatorAfter; + return this.getInsertTextForPlainText(content); + } + }; + JSONCompletion.prototype.getInsertTextForProperty = function (key, propertySchema, addValue, separatorAfter) { + var propertyText = this.getInsertTextForValue(key, ''); + if (!addValue) { + return propertyText; + } + var resultText = propertyText + ': '; + var value; + var nValueProposals = 0; + if (propertySchema) { + if (Array.isArray(propertySchema.defaultSnippets)) { + if (propertySchema.defaultSnippets.length === 1) { + var body = propertySchema.defaultSnippets[0].body; + if (isDefined(body)) { + value = this.getInsertTextForSnippetValue(body, ''); + } + } + nValueProposals += propertySchema.defaultSnippets.length; + } + if (propertySchema.enum) { + if (!value && propertySchema.enum.length === 1) { + value = this.getInsertTextForGuessedValue(propertySchema.enum[0], ''); + } + nValueProposals += propertySchema.enum.length; + } + if (isDefined(propertySchema.default)) { + if (!value) { + value = this.getInsertTextForGuessedValue(propertySchema.default, ''); + } + nValueProposals++; + } + if (Array.isArray(propertySchema.examples) && propertySchema.examples.length) { + if (!value) { + value = this.getInsertTextForGuessedValue(propertySchema.examples[0], ''); + } + nValueProposals += propertySchema.examples.length; + } + if (nValueProposals === 0) { + var type = Array.isArray(propertySchema.type) ? propertySchema.type[0] : propertySchema.type; + if (!type) { + if (propertySchema.properties) { + type = 'object'; + } + else if (propertySchema.items) { + type = 'array'; + } + } + switch (type) { + case 'boolean': + value = '$1'; + break; + case 'string': + value = '"$1"'; + break; + case 'object': + value = '{$1}'; + break; + case 'array': + value = '[$1]'; + break; + case 'number': + case 'integer': + value = '${1:0}'; + break; + case 'null': + value = '${1:null}'; + break; + default: + return propertyText; + } + } + } + if (!value || nValueProposals > 1) { + value = '$1'; + } + return resultText + value + separatorAfter; + }; + JSONCompletion.prototype.getCurrentWord = function (document, offset) { + var i = offset - 1; + var text = document.getText(); + while (i >= 0 && ' \t\n\r\v":{[,]}'.indexOf(text.charAt(i)) === -1) { + i--; + } + return text.substring(i + 1, offset); + }; + JSONCompletion.prototype.evaluateSeparatorAfter = function (document, offset) { + var scanner = Json.createScanner(document.getText(), true); + scanner.setPosition(offset); + var token = scanner.scan(); + switch (token) { + case 5 /* CommaToken */: + case 2 /* CloseBraceToken */: + case 4 /* CloseBracketToken */: + case 17 /* EOF */: + return ''; + default: + return ','; + } + }; + JSONCompletion.prototype.findItemAtOffset = function (node, document, offset) { + var scanner = Json.createScanner(document.getText(), true); + var children = node.items; + for (var i = children.length - 1; i >= 0; i--) { + var child = children[i]; + if (offset > child.offset + child.length) { + scanner.setPosition(child.offset + child.length); + var token = scanner.scan(); + if (token === 5 /* CommaToken */ && offset >= scanner.getTokenOffset() + scanner.getTokenLength()) { + return i + 1; + } + return i; + } + else if (offset >= child.offset) { + return i; + } + } + return 0; + }; + JSONCompletion.prototype.isInComment = function (document, start, offset) { + var scanner = Json.createScanner(document.getText(), false); + scanner.setPosition(start); + var token = scanner.scan(); + while (token !== 17 /* EOF */ && (scanner.getTokenOffset() + scanner.getTokenLength() < offset)) { + token = scanner.scan(); + } + return (token === 12 /* LineCommentTrivia */ || token === 13 /* BlockCommentTrivia */) && scanner.getTokenOffset() <= offset; + }; + JSONCompletion.prototype.fromMarkup = function (markupString) { + if (markupString && this.doesSupportMarkdown()) { + return { + kind: MarkupKind.Markdown, + value: markupString + }; + } + return undefined; + }; + JSONCompletion.prototype.doesSupportMarkdown = function () { + if (!isDefined(this.supportsMarkdown)) { + var completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion; + this.supportsMarkdown = completion && completion.completionItem && Array.isArray(completion.completionItem.documentationFormat) && completion.completionItem.documentationFormat.indexOf(MarkupKind.Markdown) !== -1; + } + return this.supportsMarkdown; + }; + JSONCompletion.prototype.doesSupportsCommitCharacters = function () { + if (!isDefined(this.supportsCommitCharacters)) { + var completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion; + this.supportsCommitCharacters = completion && completion.completionItem && !!completion.completionItem.commitCharactersSupport; + } + return this.supportsCommitCharacters; + }; + return JSONCompletion; +}()); +export { JSONCompletion }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js" index 86c632d5f7a40d8f8d37766ab4bc7a4a7ce113f0..bf573ef6813bdd0ce2e61e26744f27109d98d4b8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js" @@ -1,3 +1,278 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:525022a83802dd7c048bf5a613f94927739d50c8dc81a1cd3e15dad6a608fa37 -size 13117 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import * as Parser from '../parser/jsonParser'; +import * as Strings from '../utils/strings'; +import { colorFromHex } from '../utils/colors'; +import { Range, TextEdit, SymbolKind, Location } from "../jsonLanguageTypes"; +var JSONDocumentSymbols = /** @class */ (function () { + function JSONDocumentSymbols(schemaService) { + this.schemaService = schemaService; + } + JSONDocumentSymbols.prototype.findDocumentSymbols = function (document, doc, context) { + var _this = this; + if (context === void 0) { context = { resultLimit: Number.MAX_VALUE }; } + var root = doc.root; + if (!root) { + return []; + } + var limit = context.resultLimit || Number.MAX_VALUE; + // special handling for key bindings + var resourceString = document.uri; + if ((resourceString === 'vscode://defaultsettings/keybindings.json') || Strings.endsWith(resourceString.toLowerCase(), '/user/keybindings.json')) { + if (root.type === 'array') { + var result_1 = []; + for (var _i = 0, _a = root.items; _i < _a.length; _i++) { + var item = _a[_i]; + if (item.type === 'object') { + for (var _b = 0, _c = item.properties; _b < _c.length; _b++) { + var property = _c[_b]; + if (property.keyNode.value === 'key' && property.valueNode) { + var location = Location.create(document.uri, getRange(document, item)); + result_1.push({ name: Parser.getNodeValue(property.valueNode), kind: SymbolKind.Function, location: location }); + limit--; + if (limit <= 0) { + if (context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result_1; + } + } + } + } + } + return result_1; + } + } + var toVisit = [ + { node: root, containerName: '' } + ]; + var nextToVisit = 0; + var limitExceeded = false; + var result = []; + var collectOutlineEntries = function (node, containerName) { + if (node.type === 'array') { + node.items.forEach(function (node) { + if (node) { + toVisit.push({ node: node, containerName: containerName }); + } + }); + } + else if (node.type === 'object') { + node.properties.forEach(function (property) { + var valueNode = property.valueNode; + if (valueNode) { + if (limit > 0) { + limit--; + var location = Location.create(document.uri, getRange(document, property)); + var childContainerName = containerName ? containerName + '.' + property.keyNode.value : property.keyNode.value; + result.push({ name: _this.getKeyLabel(property), kind: _this.getSymbolKind(valueNode.type), location: location, containerName: containerName }); + toVisit.push({ node: valueNode, containerName: childContainerName }); + } + else { + limitExceeded = true; + } + } + }); + } + }; + // breath first traversal + while (nextToVisit < toVisit.length) { + var next = toVisit[nextToVisit++]; + collectOutlineEntries(next.node, next.containerName); + } + if (limitExceeded && context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result; + }; + JSONDocumentSymbols.prototype.findDocumentSymbols2 = function (document, doc, context) { + var _this = this; + if (context === void 0) { context = { resultLimit: Number.MAX_VALUE }; } + var root = doc.root; + if (!root) { + return []; + } + var limit = context.resultLimit || Number.MAX_VALUE; + // special handling for key bindings + var resourceString = document.uri; + if ((resourceString === 'vscode://defaultsettings/keybindings.json') || Strings.endsWith(resourceString.toLowerCase(), '/user/keybindings.json')) { + if (root.type === 'array') { + var result_2 = []; + for (var _i = 0, _a = root.items; _i < _a.length; _i++) { + var item = _a[_i]; + if (item.type === 'object') { + for (var _b = 0, _c = item.properties; _b < _c.length; _b++) { + var property = _c[_b]; + if (property.keyNode.value === 'key' && property.valueNode) { + var range = getRange(document, item); + var selectionRange = getRange(document, property.keyNode); + result_2.push({ name: Parser.getNodeValue(property.valueNode), kind: SymbolKind.Function, range: range, selectionRange: selectionRange }); + limit--; + if (limit <= 0) { + if (context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result_2; + } + } + } + } + } + return result_2; + } + } + var result = []; + var toVisit = [ + { node: root, result: result } + ]; + var nextToVisit = 0; + var limitExceeded = false; + var collectOutlineEntries = function (node, result) { + if (node.type === 'array') { + node.items.forEach(function (node, index) { + if (node) { + if (limit > 0) { + limit--; + var range = getRange(document, node); + var selectionRange = range; + var name = String(index); + var symbol = { name: name, kind: _this.getSymbolKind(node.type), range: range, selectionRange: selectionRange, children: [] }; + result.push(symbol); + toVisit.push({ result: symbol.children, node: node }); + } + else { + limitExceeded = true; + } + } + }); + } + else if (node.type === 'object') { + node.properties.forEach(function (property) { + var valueNode = property.valueNode; + if (valueNode) { + if (limit > 0) { + limit--; + var range = getRange(document, property); + var selectionRange = getRange(document, property.keyNode); + var children = []; + var symbol = { name: _this.getKeyLabel(property), kind: _this.getSymbolKind(valueNode.type), range: range, selectionRange: selectionRange, children: children, detail: _this.getDetail(valueNode) }; + result.push(symbol); + toVisit.push({ result: children, node: valueNode }); + } + else { + limitExceeded = true; + } + } + }); + } + }; + // breath first traversal + while (nextToVisit < toVisit.length) { + var next = toVisit[nextToVisit++]; + collectOutlineEntries(next.node, next.result); + } + if (limitExceeded && context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result; + }; + JSONDocumentSymbols.prototype.getSymbolKind = function (nodeType) { + switch (nodeType) { + case 'object': + return SymbolKind.Module; + case 'string': + return SymbolKind.String; + case 'number': + return SymbolKind.Number; + case 'array': + return SymbolKind.Array; + case 'boolean': + return SymbolKind.Boolean; + default: // 'null' + return SymbolKind.Variable; + } + }; + JSONDocumentSymbols.prototype.getKeyLabel = function (property) { + var name = property.keyNode.value; + if (name) { + name = name.replace(/[\n]/g, '↵'); + } + if (name && name.trim()) { + return name; + } + return "\"" + name + "\""; + }; + JSONDocumentSymbols.prototype.getDetail = function (node) { + if (!node) { + return undefined; + } + if (node.type === 'boolean' || node.type === 'number' || node.type === 'null' || node.type === 'string') { + return String(node.value); + } + else { + if (node.type === 'array') { + return node.children.length ? undefined : '[]'; + } + else if (node.type === 'object') { + return node.children.length ? undefined : '{}'; + } + } + return undefined; + }; + JSONDocumentSymbols.prototype.findDocumentColors = function (document, doc, context) { + return this.schemaService.getSchemaForResource(document.uri, doc).then(function (schema) { + var result = []; + if (schema) { + var limit = context && typeof context.resultLimit === 'number' ? context.resultLimit : Number.MAX_VALUE; + var matchingSchemas = doc.getMatchingSchemas(schema.schema); + var visitedNode = {}; + for (var _i = 0, matchingSchemas_1 = matchingSchemas; _i < matchingSchemas_1.length; _i++) { + var s = matchingSchemas_1[_i]; + if (!s.inverted && s.schema && (s.schema.format === 'color' || s.schema.format === 'color-hex') && s.node && s.node.type === 'string') { + var nodeId = String(s.node.offset); + if (!visitedNode[nodeId]) { + var color = colorFromHex(Parser.getNodeValue(s.node)); + if (color) { + var range = getRange(document, s.node); + result.push({ color: color, range: range }); + } + visitedNode[nodeId] = true; + limit--; + if (limit <= 0) { + if (context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(document.uri); + } + return result; + } + } + } + } + } + return result; + }); + }; + JSONDocumentSymbols.prototype.getColorPresentations = function (document, doc, color, range) { + var result = []; + var red256 = Math.round(color.red * 255), green256 = Math.round(color.green * 255), blue256 = Math.round(color.blue * 255); + function toTwoDigitHex(n) { + var r = n.toString(16); + return r.length !== 2 ? '0' + r : r; + } + var label; + if (color.alpha === 1) { + label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256); + } + else { + label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256) + toTwoDigitHex(Math.round(color.alpha * 255)); + } + result.push({ label: label, textEdit: TextEdit.replace(range, JSON.stringify(label)) }); + return result; + }; + return JSONDocumentSymbols; +}()); +export { JSONDocumentSymbols }; +function getRange(document, node) { + return Range.create(document.positionAt(node.offset), document.positionAt(node.offset + node.length)); +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonFolding.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonFolding.js" index ed4f1d40ed995d3c5951157825f46f61ca8fb065..ecd8eac682589a1ab373928bf96af9c1fedf0075 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonFolding.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonFolding.js" @@ -1,3 +1,121 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78571edbef251b4f5ed54ad9341e5254b802670da818d769413ac262c7e8c56a -size 5195 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import { createScanner } from 'jsonc-parser'; +import { FoldingRangeKind, Position } from '../jsonLanguageTypes'; +export function getFoldingRanges(document, context) { + var ranges = []; + var nestingLevels = []; + var stack = []; + var prevStart = -1; + var scanner = createScanner(document.getText(), false); + var token = scanner.scan(); + function addRange(range) { + ranges.push(range); + nestingLevels.push(stack.length); + } + while (token !== 17 /* EOF */) { + switch (token) { + case 1 /* OpenBraceToken */: + case 3 /* OpenBracketToken */: { + var startLine = document.positionAt(scanner.getTokenOffset()).line; + var range = { startLine: startLine, endLine: startLine, kind: token === 1 /* OpenBraceToken */ ? 'object' : 'array' }; + stack.push(range); + break; + } + case 2 /* CloseBraceToken */: + case 4 /* CloseBracketToken */: { + var kind = token === 2 /* CloseBraceToken */ ? 'object' : 'array'; + if (stack.length > 0 && stack[stack.length - 1].kind === kind) { + var range = stack.pop(); + var line = document.positionAt(scanner.getTokenOffset()).line; + if (range && line > range.startLine + 1 && prevStart !== range.startLine) { + range.endLine = line - 1; + addRange(range); + prevStart = range.startLine; + } + } + break; + } + case 13 /* BlockCommentTrivia */: { + var startLine = document.positionAt(scanner.getTokenOffset()).line; + var endLine = document.positionAt(scanner.getTokenOffset() + scanner.getTokenLength()).line; + if (scanner.getTokenError() === 1 /* UnexpectedEndOfComment */ && startLine + 1 < document.lineCount) { + scanner.setPosition(document.offsetAt(Position.create(startLine + 1, 0))); + } + else { + if (startLine < endLine) { + addRange({ startLine: startLine, endLine: endLine, kind: FoldingRangeKind.Comment }); + prevStart = startLine; + } + } + break; + } + case 12 /* LineCommentTrivia */: { + var text = document.getText().substr(scanner.getTokenOffset(), scanner.getTokenLength()); + var m = text.match(/^\/\/\s*#(region\b)|(endregion\b)/); + if (m) { + var line = document.positionAt(scanner.getTokenOffset()).line; + if (m[1]) { // start pattern match + var range = { startLine: line, endLine: line, kind: FoldingRangeKind.Region }; + stack.push(range); + } + else { + var i = stack.length - 1; + while (i >= 0 && stack[i].kind !== FoldingRangeKind.Region) { + i--; + } + if (i >= 0) { + var range = stack[i]; + stack.length = i; + if (line > range.startLine && prevStart !== range.startLine) { + range.endLine = line; + addRange(range); + prevStart = range.startLine; + } + } + } + } + break; + } + } + token = scanner.scan(); + } + var rangeLimit = context && context.rangeLimit; + if (typeof rangeLimit !== 'number' || ranges.length <= rangeLimit) { + return ranges; + } + if (context && context.onRangeLimitExceeded) { + context.onRangeLimitExceeded(document.uri); + } + var counts = []; + for (var _i = 0, nestingLevels_1 = nestingLevels; _i < nestingLevels_1.length; _i++) { + var level = nestingLevels_1[_i]; + if (level < 30) { + counts[level] = (counts[level] || 0) + 1; + } + } + var entries = 0; + var maxLevel = 0; + for (var i = 0; i < counts.length; i++) { + var n = counts[i]; + if (n) { + if (n + entries > rangeLimit) { + maxLevel = i; + break; + } + entries += n; + } + } + var result = []; + for (var i = 0; i < ranges.length; i++) { + var level = nestingLevels[i]; + if (typeof level === 'number') { + if (level < maxLevel || (level === maxLevel && entries++ < rangeLimit)) { + result.push(ranges[i]); + } + } + } + return result; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonHover.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonHover.js" index 01eac7e1fce86665ac43d47119c64cb14bb94108..237c080462da39a3a7389714b074c6442be97e15 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonHover.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonHover.js" @@ -1,3 +1,112 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4fcc35ce3c91564d4afa7a8c1bffbc1ff587bd5d690bee33b779e5ca7b9c4f7 -size 5432 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import * as Parser from '../parser/jsonParser'; +import { Range } from '../jsonLanguageTypes'; +var JSONHover = /** @class */ (function () { + function JSONHover(schemaService, contributions, promiseConstructor) { + if (contributions === void 0) { contributions = []; } + this.schemaService = schemaService; + this.contributions = contributions; + this.promise = promiseConstructor || Promise; + } + JSONHover.prototype.doHover = function (document, position, doc) { + var offset = document.offsetAt(position); + var node = doc.getNodeFromOffset(offset); + if (!node || (node.type === 'object' || node.type === 'array') && offset > node.offset + 1 && offset < node.offset + node.length - 1) { + return this.promise.resolve(null); + } + var hoverRangeNode = node; + // use the property description when hovering over an object key + if (node.type === 'string') { + var parent = node.parent; + if (parent && parent.type === 'property' && parent.keyNode === node) { + node = parent.valueNode; + if (!node) { + return this.promise.resolve(null); + } + } + } + var hoverRange = Range.create(document.positionAt(hoverRangeNode.offset), document.positionAt(hoverRangeNode.offset + hoverRangeNode.length)); + var createHover = function (contents) { + var result = { + contents: contents, + range: hoverRange + }; + return result; + }; + var location = Parser.getNodePath(node); + for (var i = this.contributions.length - 1; i >= 0; i--) { + var contribution = this.contributions[i]; + var promise = contribution.getInfoContribution(document.uri, location); + if (promise) { + return promise.then(function (htmlContent) { return createHover(htmlContent); }); + } + } + return this.schemaService.getSchemaForResource(document.uri, doc).then(function (schema) { + if (schema && node) { + var matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset); + var title_1 = undefined; + var markdownDescription_1 = undefined; + var markdownEnumValueDescription_1 = undefined, enumValue_1 = undefined; + matchingSchemas.every(function (s) { + if (s.node === node && !s.inverted && s.schema) { + title_1 = title_1 || s.schema.title; + markdownDescription_1 = markdownDescription_1 || s.schema.markdownDescription || toMarkdown(s.schema.description); + if (s.schema.enum) { + var idx = s.schema.enum.indexOf(Parser.getNodeValue(node)); + if (s.schema.markdownEnumDescriptions) { + markdownEnumValueDescription_1 = s.schema.markdownEnumDescriptions[idx]; + } + else if (s.schema.enumDescriptions) { + markdownEnumValueDescription_1 = toMarkdown(s.schema.enumDescriptions[idx]); + } + if (markdownEnumValueDescription_1) { + enumValue_1 = s.schema.enum[idx]; + if (typeof enumValue_1 !== 'string') { + enumValue_1 = JSON.stringify(enumValue_1); + } + } + } + } + return true; + }); + var result = ''; + if (title_1) { + result = toMarkdown(title_1); + } + if (markdownDescription_1) { + if (result.length > 0) { + result += "\n\n"; + } + result += markdownDescription_1; + } + if (markdownEnumValueDescription_1) { + if (result.length > 0) { + result += "\n\n"; + } + result += "`" + toMarkdownCodeBlock(enumValue_1) + "`: " + markdownEnumValueDescription_1; + } + return createHover([result]); + } + return null; + }); + }; + return JSONHover; +}()); +export { JSONHover }; +function toMarkdown(plain) { + if (plain) { + var 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; +} +function toMarkdownCodeBlock(content) { + // see https://daringfireball.net/projects/markdown/syntax#precode + if (content.indexOf('`') !== -1) { + return '`` ' + content + ' ``'; + } + return content; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonLinks.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonLinks.js" index 3368dd960655113b09bfb27842d1e01286c02668..60d264951fc12b49273c967e1b7d348696a04ccf 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonLinks.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonLinks.js" @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1668f5bafa7a934a91e2fde63ee1f07213412266a72a71541471ea169f41f70 -size 2607 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import { Range } from '../jsonLanguageTypes'; +export function findLinks(document, doc) { + var links = []; + doc.visit(function (node) { + var _a; + if (node.type === "property" && node.keyNode.value === "$ref" && ((_a = node.valueNode) === null || _a === void 0 ? void 0 : _a.type) === 'string') { + var path = node.valueNode.value; + var targetNode = findTargetNode(doc, path); + if (targetNode) { + var targetPos = document.positionAt(targetNode.offset); + links.push({ + target: document.uri + "#" + (targetPos.line + 1) + "," + (targetPos.character + 1), + range: createRange(document, node.valueNode) + }); + } + } + return true; + }); + return Promise.resolve(links); +} +function createRange(document, node) { + return Range.create(document.positionAt(node.offset + 1), document.positionAt(node.offset + node.length - 1)); +} +function findTargetNode(doc, path) { + var tokens = parseJSONPointer(path); + if (!tokens) { + return null; + } + return findNode(tokens, doc.root); +} +function findNode(pointer, node) { + if (!node) { + return null; + } + if (pointer.length === 0) { + return node; + } + var token = pointer.shift(); + if (node && node.type === 'object') { + var propertyNode = node.properties.find(function (propertyNode) { return propertyNode.keyNode.value === token; }); + if (!propertyNode) { + return null; + } + return findNode(pointer, propertyNode.valueNode); + } + else if (node && node.type === 'array') { + if (token.match(/^(0|[1-9][0-9]*)$/)) { + var index = Number.parseInt(token); + var arrayItem = node.items[index]; + if (!arrayItem) { + return null; + } + return findNode(pointer, arrayItem); + } + } + return null; +} +function parseJSONPointer(path) { + if (path === "#") { + return []; + } + if (path[0] !== '#' || path[1] !== '/') { + return null; + } + return path.substring(2).split(/\//).map(unescape); +} +function unescape(str) { + return str.replace(/~1/g, '/').replace(/~0/g, '~'); +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js" index 0955094bd152bbc600f5b2d174493fb0d3837554..b12f79556a41314118b46e4e0cbda92dcb02db84 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js" @@ -1,3 +1,535 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:55475468273c4cfea7e4df1232e85c1702a837780ac15fd8980f4c117e1063bb -size 23900 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import * as Json from 'jsonc-parser'; +import { URI } from 'vscode-uri'; +import * as Strings from '../utils/strings'; +import * as Parser from '../parser/jsonParser'; +import * as nls from 'vscode-nls'; +import { createRegex } from '../utils/glob'; +var localize = nls.loadMessageBundle(); +var BANG = '!'; +var PATH_SEP = '/'; +var FilePatternAssociation = /** @class */ (function () { + function FilePatternAssociation(pattern, uris) { + this.globWrappers = []; + try { + for (var _i = 0, pattern_1 = pattern; _i < pattern_1.length; _i++) { + var patternString = pattern_1[_i]; + var include = patternString[0] !== BANG; + if (!include) { + patternString = patternString.substring(1); + } + if (patternString.length > 0) { + if (patternString[0] === PATH_SEP) { + patternString = patternString.substring(1); + } + this.globWrappers.push({ + regexp: createRegex('**/' + patternString, { extended: true, globstar: true }), + include: include, + }); + } + } + ; + this.uris = uris; + } + catch (e) { + this.globWrappers.length = 0; + this.uris = []; + } + } + FilePatternAssociation.prototype.matchesPattern = function (fileName) { + var match = false; + for (var _i = 0, _a = this.globWrappers; _i < _a.length; _i++) { + var _b = _a[_i], regexp = _b.regexp, include = _b.include; + if (regexp.test(fileName)) { + match = include; + } + } + return match; + }; + FilePatternAssociation.prototype.getURIs = function () { + return this.uris; + }; + return FilePatternAssociation; +}()); +var SchemaHandle = /** @class */ (function () { + function SchemaHandle(service, url, unresolvedSchemaContent) { + this.service = service; + this.url = url; + this.dependencies = {}; + if (unresolvedSchemaContent) { + this.unresolvedSchema = this.service.promise.resolve(new UnresolvedSchema(unresolvedSchemaContent)); + } + } + SchemaHandle.prototype.getUnresolvedSchema = function () { + if (!this.unresolvedSchema) { + this.unresolvedSchema = this.service.loadSchema(this.url); + } + return this.unresolvedSchema; + }; + SchemaHandle.prototype.getResolvedSchema = function () { + var _this = this; + if (!this.resolvedSchema) { + this.resolvedSchema = this.getUnresolvedSchema().then(function (unresolved) { + return _this.service.resolveSchemaContent(unresolved, _this.url, _this.dependencies); + }); + } + return this.resolvedSchema; + }; + SchemaHandle.prototype.clearSchema = function () { + this.resolvedSchema = undefined; + this.unresolvedSchema = undefined; + this.dependencies = {}; + }; + return SchemaHandle; +}()); +var UnresolvedSchema = /** @class */ (function () { + function UnresolvedSchema(schema, errors) { + if (errors === void 0) { errors = []; } + this.schema = schema; + this.errors = errors; + } + return UnresolvedSchema; +}()); +export { UnresolvedSchema }; +var ResolvedSchema = /** @class */ (function () { + function ResolvedSchema(schema, errors) { + if (errors === void 0) { errors = []; } + this.schema = schema; + this.errors = errors; + } + ResolvedSchema.prototype.getSection = function (path) { + var schemaRef = this.getSectionRecursive(path, this.schema); + if (schemaRef) { + return Parser.asSchema(schemaRef); + } + return undefined; + }; + ResolvedSchema.prototype.getSectionRecursive = function (path, schema) { + if (!schema || typeof schema === 'boolean' || path.length === 0) { + return schema; + } + var next = path.shift(); + if (schema.properties && typeof schema.properties[next]) { + return this.getSectionRecursive(path, schema.properties[next]); + } + else if (schema.patternProperties) { + for (var _i = 0, _a = Object.keys(schema.patternProperties); _i < _a.length; _i++) { + var pattern = _a[_i]; + var regex = Strings.extendedRegExp(pattern); + if (regex.test(next)) { + return this.getSectionRecursive(path, schema.patternProperties[pattern]); + } + } + } + else if (typeof schema.additionalProperties === 'object') { + return this.getSectionRecursive(path, schema.additionalProperties); + } + else if (next.match('[0-9]+')) { + if (Array.isArray(schema.items)) { + var index = parseInt(next, 10); + if (!isNaN(index) && schema.items[index]) { + return this.getSectionRecursive(path, schema.items[index]); + } + } + else if (schema.items) { + return this.getSectionRecursive(path, schema.items); + } + } + return undefined; + }; + return ResolvedSchema; +}()); +export { ResolvedSchema }; +var JSONSchemaService = /** @class */ (function () { + function JSONSchemaService(requestService, contextService, promiseConstructor) { + this.contextService = contextService; + this.requestService = requestService; + this.promiseConstructor = promiseConstructor || Promise; + this.callOnDispose = []; + this.contributionSchemas = {}; + this.contributionAssociations = []; + this.schemasById = {}; + this.filePatternAssociations = []; + this.registeredSchemasIds = {}; + } + JSONSchemaService.prototype.getRegisteredSchemaIds = function (filter) { + return Object.keys(this.registeredSchemasIds).filter(function (id) { + var scheme = URI.parse(id).scheme; + return scheme !== 'schemaservice' && (!filter || filter(scheme)); + }); + }; + Object.defineProperty(JSONSchemaService.prototype, "promise", { + get: function () { + return this.promiseConstructor; + }, + enumerable: false, + configurable: true + }); + JSONSchemaService.prototype.dispose = function () { + while (this.callOnDispose.length > 0) { + this.callOnDispose.pop()(); + } + }; + JSONSchemaService.prototype.onResourceChange = function (uri) { + var _this = this; + // always clear this local cache when a resource changes + this.cachedSchemaForResource = undefined; + var hasChanges = false; + uri = normalizeId(uri); + var toWalk = [uri]; + var all = Object.keys(this.schemasById).map(function (key) { return _this.schemasById[key]; }); + while (toWalk.length) { + var curr = toWalk.pop(); + for (var i = 0; i < all.length; i++) { + var handle = all[i]; + if (handle && (handle.url === curr || handle.dependencies[curr])) { + if (handle.url !== curr) { + toWalk.push(handle.url); + } + handle.clearSchema(); + all[i] = undefined; + hasChanges = true; + } + } + } + return hasChanges; + }; + JSONSchemaService.prototype.setSchemaContributions = function (schemaContributions) { + if (schemaContributions.schemas) { + var schemas = schemaContributions.schemas; + for (var id in schemas) { + var normalizedId = normalizeId(id); + this.contributionSchemas[normalizedId] = this.addSchemaHandle(normalizedId, schemas[id]); + } + } + if (Array.isArray(schemaContributions.schemaAssociations)) { + var schemaAssociations = schemaContributions.schemaAssociations; + for (var _i = 0, schemaAssociations_1 = schemaAssociations; _i < schemaAssociations_1.length; _i++) { + var schemaAssociation = schemaAssociations_1[_i]; + var uris = schemaAssociation.uris.map(normalizeId); + var association = this.addFilePatternAssociation(schemaAssociation.pattern, uris); + this.contributionAssociations.push(association); + } + } + }; + JSONSchemaService.prototype.addSchemaHandle = function (id, unresolvedSchemaContent) { + var schemaHandle = new SchemaHandle(this, id, unresolvedSchemaContent); + this.schemasById[id] = schemaHandle; + return schemaHandle; + }; + JSONSchemaService.prototype.getOrAddSchemaHandle = function (id, unresolvedSchemaContent) { + return this.schemasById[id] || this.addSchemaHandle(id, unresolvedSchemaContent); + }; + JSONSchemaService.prototype.addFilePatternAssociation = function (pattern, uris) { + var fpa = new FilePatternAssociation(pattern, uris); + this.filePatternAssociations.push(fpa); + return fpa; + }; + JSONSchemaService.prototype.registerExternalSchema = function (uri, filePatterns, unresolvedSchemaContent) { + var id = normalizeId(uri); + this.registeredSchemasIds[id] = true; + this.cachedSchemaForResource = undefined; + if (filePatterns) { + this.addFilePatternAssociation(filePatterns, [uri]); + } + return unresolvedSchemaContent ? this.addSchemaHandle(id, unresolvedSchemaContent) : this.getOrAddSchemaHandle(id); + }; + JSONSchemaService.prototype.clearExternalSchemas = function () { + this.schemasById = {}; + this.filePatternAssociations = []; + this.registeredSchemasIds = {}; + this.cachedSchemaForResource = undefined; + for (var id in this.contributionSchemas) { + this.schemasById[id] = this.contributionSchemas[id]; + this.registeredSchemasIds[id] = true; + } + for (var _i = 0, _a = this.contributionAssociations; _i < _a.length; _i++) { + var contributionAssociation = _a[_i]; + this.filePatternAssociations.push(contributionAssociation); + } + }; + JSONSchemaService.prototype.getResolvedSchema = function (schemaId) { + var id = normalizeId(schemaId); + var schemaHandle = this.schemasById[id]; + if (schemaHandle) { + return schemaHandle.getResolvedSchema(); + } + return this.promise.resolve(undefined); + }; + JSONSchemaService.prototype.loadSchema = function (url) { + if (!this.requestService) { + var errorMessage = localize('json.schema.norequestservice', 'Unable to load schema from \'{0}\'. No schema request service available', toDisplayString(url)); + return this.promise.resolve(new UnresolvedSchema({}, [errorMessage])); + } + return this.requestService(url).then(function (content) { + if (!content) { + var errorMessage = localize('json.schema.nocontent', 'Unable to load schema from \'{0}\': No content.', toDisplayString(url)); + return new UnresolvedSchema({}, [errorMessage]); + } + var schemaContent = {}; + var jsonErrors = []; + schemaContent = Json.parse(content, jsonErrors); + var errors = jsonErrors.length ? [localize('json.schema.invalidFormat', 'Unable to parse content from \'{0}\': Parse error at offset {1}.', toDisplayString(url), jsonErrors[0].offset)] : []; + return new UnresolvedSchema(schemaContent, errors); + }, function (error) { + var errorMessage = error.toString(); + var errorSplit = error.toString().split('Error: '); + if (errorSplit.length > 1) { + // more concise error message, URL and context are attached by caller anyways + errorMessage = errorSplit[1]; + } + if (Strings.endsWith(errorMessage, '.')) { + errorMessage = errorMessage.substr(0, errorMessage.length - 1); + } + return new UnresolvedSchema({}, [localize('json.schema.nocontent', 'Unable to load schema from \'{0}\': {1}.', toDisplayString(url), errorMessage)]); + }); + }; + JSONSchemaService.prototype.resolveSchemaContent = function (schemaToResolve, schemaURL, dependencies) { + var _this = this; + var resolveErrors = schemaToResolve.errors.slice(0); + var schema = schemaToResolve.schema; + if (schema.$schema) { + var id = normalizeId(schema.$schema); + if (id === 'http://json-schema.org/draft-03/schema') { + return this.promise.resolve(new ResolvedSchema({}, [localize('json.schema.draft03.notsupported', "Draft-03 schemas are not supported.")])); + } + else if (id === 'https://json-schema.org/draft/2019-09/schema') { + resolveErrors.push(localize('json.schema.draft201909.notsupported', "Draft 2019-09 schemas are not yet fully supported.")); + } + } + var contextService = this.contextService; + var findSection = function (schema, path) { + if (!path) { + return schema; + } + var current = schema; + if (path[0] === '/') { + path = path.substr(1); + } + path.split('/').some(function (part) { + part = part.replace(/~1/g, '/').replace(/~0/g, '~'); + current = current[part]; + return !current; + }); + return current; + }; + var merge = function (target, sourceRoot, sourceURI, refSegment) { + var path = refSegment ? decodeURIComponent(refSegment) : undefined; + var section = findSection(sourceRoot, path); + if (section) { + for (var key in section) { + if (section.hasOwnProperty(key) && !target.hasOwnProperty(key)) { + target[key] = section[key]; + } + } + } + else { + resolveErrors.push(localize('json.schema.invalidref', '$ref \'{0}\' in \'{1}\' can not be resolved.', path, sourceURI)); + } + }; + var resolveExternalLink = function (node, uri, refSegment, parentSchemaURL, parentSchemaDependencies) { + if (contextService && !/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(uri)) { + uri = contextService.resolveRelativePath(uri, parentSchemaURL); + } + uri = normalizeId(uri); + var referencedHandle = _this.getOrAddSchemaHandle(uri); + return referencedHandle.getUnresolvedSchema().then(function (unresolvedSchema) { + parentSchemaDependencies[uri] = true; + if (unresolvedSchema.errors.length) { + var loc = refSegment ? uri + '#' + refSegment : uri; + resolveErrors.push(localize('json.schema.problemloadingref', 'Problems loading reference \'{0}\': {1}', loc, unresolvedSchema.errors[0])); + } + merge(node, unresolvedSchema.schema, uri, refSegment); + return resolveRefs(node, unresolvedSchema.schema, uri, referencedHandle.dependencies); + }); + }; + var resolveRefs = function (node, parentSchema, parentSchemaURL, parentSchemaDependencies) { + if (!node || typeof node !== 'object') { + return Promise.resolve(null); + } + var toWalk = [node]; + var seen = []; + var openPromises = []; + var collectEntries = function () { + var entries = []; + for (var _i = 0; _i < arguments.length; _i++) { + entries[_i] = arguments[_i]; + } + for (var _a = 0, entries_1 = entries; _a < entries_1.length; _a++) { + var entry = entries_1[_a]; + if (typeof entry === 'object') { + toWalk.push(entry); + } + } + }; + var collectMapEntries = function () { + var maps = []; + for (var _i = 0; _i < arguments.length; _i++) { + maps[_i] = arguments[_i]; + } + for (var _a = 0, maps_1 = maps; _a < maps_1.length; _a++) { + var map = maps_1[_a]; + if (typeof map === 'object') { + for (var k in map) { + var key = k; + var entry = map[key]; + if (typeof entry === 'object') { + toWalk.push(entry); + } + } + } + } + }; + var collectArrayEntries = function () { + var arrays = []; + for (var _i = 0; _i < arguments.length; _i++) { + arrays[_i] = arguments[_i]; + } + for (var _a = 0, arrays_1 = arrays; _a < arrays_1.length; _a++) { + var array = arrays_1[_a]; + if (Array.isArray(array)) { + for (var _b = 0, array_1 = array; _b < array_1.length; _b++) { + var entry = array_1[_b]; + if (typeof entry === 'object') { + toWalk.push(entry); + } + } + } + } + }; + var handleRef = function (next) { + var seenRefs = []; + while (next.$ref) { + var ref = next.$ref; + var segments = ref.split('#', 2); + 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 circle + seenRefs.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); + }; + while (toWalk.length) { + var next = toWalk.pop(); + if (seen.indexOf(next) >= 0) { + continue; + } + seen.push(next); + handleRef(next); + } + return _this.promise.all(openPromises); + }; + return resolveRefs(schema, schema, schemaURL, dependencies).then(function (_) { return new ResolvedSchema(schema, resolveErrors); }); + }; + JSONSchemaService.prototype.getSchemaForResource = function (resource, document) { + // first use $schema if present + if (document && document.root && document.root.type === 'object') { + var schemaProperties = document.root.properties.filter(function (p) { return (p.keyNode.value === '$schema') && p.valueNode && p.valueNode.type === 'string'; }); + if (schemaProperties.length > 0) { + var valueNode = schemaProperties[0].valueNode; + if (valueNode && valueNode.type === 'string') { + var schemeId = Parser.getNodeValue(valueNode); + if (schemeId && Strings.startsWith(schemeId, '.') && this.contextService) { + schemeId = this.contextService.resolveRelativePath(schemeId, resource); + } + if (schemeId) { + var id = normalizeId(schemeId); + return this.getOrAddSchemaHandle(id).getResolvedSchema(); + } + } + } + } + if (this.cachedSchemaForResource && this.cachedSchemaForResource.resource === resource) { + return this.cachedSchemaForResource.resolvedSchema; + } + var seen = Object.create(null); + var schemas = []; + var normalizedResource = normalizeResourceForMatching(resource); + for (var _i = 0, _a = this.filePatternAssociations; _i < _a.length; _i++) { + var entry = _a[_i]; + if (entry.matchesPattern(normalizedResource)) { + for (var _b = 0, _c = entry.getURIs(); _b < _c.length; _b++) { + var schemaId = _c[_b]; + if (!seen[schemaId]) { + schemas.push(schemaId); + seen[schemaId] = true; + } + } + } + } + var resolvedSchema = schemas.length > 0 ? this.createCombinedSchema(resource, schemas).getResolvedSchema() : this.promise.resolve(undefined); + this.cachedSchemaForResource = { resource: resource, resolvedSchema: resolvedSchema }; + return resolvedSchema; + }; + JSONSchemaService.prototype.createCombinedSchema = function (resource, schemaIds) { + if (schemaIds.length === 1) { + return this.getOrAddSchemaHandle(schemaIds[0]); + } + else { + var combinedSchemaId = 'schemaservice://combinedSchema/' + encodeURIComponent(resource); + var combinedSchema = { + allOf: schemaIds.map(function (schemaId) { return ({ $ref: schemaId }); }) + }; + return this.addSchemaHandle(combinedSchemaId, combinedSchema); + } + }; + JSONSchemaService.prototype.getMatchingSchemas = function (document, jsonDocument, schema) { + if (schema) { + var id = schema.id || ('schemaservice://untitled/matchingSchemas/' + idCounter++); + return this.resolveSchemaContent(new UnresolvedSchema(schema), id, {}).then(function (resolvedSchema) { + return jsonDocument.getMatchingSchemas(resolvedSchema.schema).filter(function (s) { return !s.inverted; }); + }); + } + return this.getSchemaForResource(document.uri, jsonDocument).then(function (schema) { + if (schema) { + return jsonDocument.getMatchingSchemas(schema.schema).filter(function (s) { return !s.inverted; }); + } + return []; + }); + }; + return JSONSchemaService; +}()); +export { JSONSchemaService }; +var idCounter = 0; +function normalizeId(id) { + // remove trailing '#', normalize drive capitalization + try { + return URI.parse(id).toString(); + } + catch (e) { + return id; + } +} +function normalizeResourceForMatching(resource) { + // remove queries and fragments, normalize drive capitalization + try { + return URI.parse(resource).with({ fragment: null, query: null }).toString(); + } + catch (e) { + return resource; + } +} +function toDisplayString(url) { + try { + var uri = URI.parse(url); + if (uri.scheme === 'file') { + return uri.fsPath; + } + } + catch (e) { + // ignore + } + return url; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js" index afc85b17c96de2d095679399889c59ffc95d9450..16bc1c8430e3111530dc09791d3ed916c199e2ec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js" @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:501a75f6509248c090cf6bbfcd0e6a621909e550b8b7e62dd6749d9901079139 -size 2732 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import { Range, SelectionRange } from '../jsonLanguageTypes'; +import { createScanner } from 'jsonc-parser'; +export function getSelectionRanges(document, positions, doc) { + function getSelectionRange(position) { + var offset = document.offsetAt(position); + var node = doc.getNodeFromOffset(offset, true); + var result = []; + while (node) { + switch (node.type) { + case 'string': + case 'object': + case 'array': + // range without ", [ or { + var cStart = node.offset + 1, cEnd = node.offset + node.length - 1; + if (cStart < cEnd && offset >= cStart && offset <= cEnd) { + result.push(newRange(cStart, cEnd)); + } + result.push(newRange(node.offset, node.offset + node.length)); + break; + case 'number': + case 'boolean': + case 'null': + case 'property': + result.push(newRange(node.offset, node.offset + node.length)); + break; + } + if (node.type === 'property' || node.parent && node.parent.type === 'array') { + var afterCommaOffset = getOffsetAfterNextToken(node.offset + node.length, 5 /* CommaToken */); + if (afterCommaOffset !== -1) { + result.push(newRange(node.offset, afterCommaOffset)); + } + } + node = node.parent; + } + var current = undefined; + for (var index = result.length - 1; index >= 0; index--) { + current = SelectionRange.create(result[index], current); + } + if (!current) { + current = SelectionRange.create(Range.create(position, position)); + } + return current; + } + function newRange(start, end) { + return Range.create(document.positionAt(start), document.positionAt(end)); + } + var scanner = createScanner(document.getText(), true); + function getOffsetAfterNextToken(offset, expectedToken) { + scanner.setPosition(offset); + var token = scanner.scan(); + if (token === expectedToken) { + return scanner.getTokenOffset() + scanner.getTokenLength(); + } + return -1; + } + return positions.map(getSelectionRange); +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonValidation.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonValidation.js" index cc67faf59e5ba97908a4631ba8576a6fbf8b62b9..7c855fa9724cad7302c7a74e2bdf96a7d5837047 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonValidation.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/services/jsonValidation.js" @@ -1,3 +1,146 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a05f6f3a5a16d2059e53cbcd22e091e174b26a913ae83be06b6a9b7a0349678 -size 7245 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +import { UnresolvedSchema } from './jsonSchemaService'; +import { ErrorCode, Diagnostic, DiagnosticSeverity, Range } from '../jsonLanguageTypes'; +import * as nls from 'vscode-nls'; +import { isBoolean } from '../utils/objects'; +var localize = nls.loadMessageBundle(); +var JSONValidation = /** @class */ (function () { + function JSONValidation(jsonSchemaService, promiseConstructor) { + this.jsonSchemaService = jsonSchemaService; + this.promise = promiseConstructor; + this.validationEnabled = true; + } + JSONValidation.prototype.configure = function (raw) { + if (raw) { + this.validationEnabled = raw.validate !== false; + this.commentSeverity = raw.allowComments ? undefined : DiagnosticSeverity.Error; + } + }; + JSONValidation.prototype.doValidation = function (textDocument, jsonDocument, documentSettings, schema) { + var _this = this; + if (!this.validationEnabled) { + return this.promise.resolve([]); + } + var diagnostics = []; + var added = {}; + var addProblem = function (problem) { + // remove duplicated messages + var signature = problem.range.start.line + ' ' + problem.range.start.character + ' ' + problem.message; + if (!added[signature]) { + added[signature] = true; + diagnostics.push(problem); + } + }; + var getDiagnostics = function (schema) { + var trailingCommaSeverity = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.trailingCommas) ? toDiagnosticSeverity(documentSettings.trailingCommas) : DiagnosticSeverity.Error; + var commentSeverity = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.comments) ? toDiagnosticSeverity(documentSettings.comments) : _this.commentSeverity; + var schemaValidation = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.schemaValidation) ? toDiagnosticSeverity(documentSettings.schemaValidation) : DiagnosticSeverity.Warning; + var schemaRequest = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.schemaRequest) ? toDiagnosticSeverity(documentSettings.schemaRequest) : DiagnosticSeverity.Warning; + if (schema) { + if (schema.errors.length && jsonDocument.root && schemaRequest) { + var astRoot = jsonDocument.root; + var property = astRoot.type === 'object' ? astRoot.properties[0] : undefined; + if (property && property.keyNode.value === '$schema') { + var node = property.valueNode || property; + var range = Range.create(textDocument.positionAt(node.offset), textDocument.positionAt(node.offset + node.length)); + addProblem(Diagnostic.create(range, schema.errors[0], schemaRequest, ErrorCode.SchemaResolveError)); + } + else { + var range = Range.create(textDocument.positionAt(astRoot.offset), textDocument.positionAt(astRoot.offset + 1)); + addProblem(Diagnostic.create(range, schema.errors[0], schemaRequest, ErrorCode.SchemaResolveError)); + } + } + else if (schemaValidation) { + var semanticErrors = jsonDocument.validate(textDocument, schema.schema, schemaValidation); + if (semanticErrors) { + semanticErrors.forEach(addProblem); + } + } + if (schemaAllowsComments(schema.schema)) { + commentSeverity = undefined; + } + if (schemaAllowsTrailingCommas(schema.schema)) { + trailingCommaSeverity = undefined; + } + } + for (var _i = 0, _a = jsonDocument.syntaxErrors; _i < _a.length; _i++) { + var p = _a[_i]; + if (p.code === ErrorCode.TrailingComma) { + if (typeof trailingCommaSeverity !== 'number') { + continue; + } + p.severity = trailingCommaSeverity; + } + addProblem(p); + } + if (typeof commentSeverity === 'number') { + var message_1 = localize('InvalidCommentToken', 'Comments are not permitted in JSON.'); + jsonDocument.comments.forEach(function (c) { + addProblem(Diagnostic.create(c, message_1, commentSeverity, ErrorCode.CommentNotPermitted)); + }); + } + return diagnostics; + }; + if (schema) { + var id = schema.id || ('schemaservice://untitled/' + idCounter++); + return this.jsonSchemaService.resolveSchemaContent(new UnresolvedSchema(schema), id, {}).then(function (resolvedSchema) { + return getDiagnostics(resolvedSchema); + }); + } + return this.jsonSchemaService.getSchemaForResource(textDocument.uri, jsonDocument).then(function (schema) { + return getDiagnostics(schema); + }); + }; + return JSONValidation; +}()); +export { JSONValidation }; +var idCounter = 0; +function schemaAllowsComments(schemaRef) { + if (schemaRef && typeof schemaRef === 'object') { + if (isBoolean(schemaRef.allowComments)) { + return schemaRef.allowComments; + } + if (schemaRef.allOf) { + for (var _i = 0, _a = schemaRef.allOf; _i < _a.length; _i++) { + var schema = _a[_i]; + var allow = schemaAllowsComments(schema); + if (isBoolean(allow)) { + return allow; + } + } + } + } + return undefined; +} +function schemaAllowsTrailingCommas(schemaRef) { + if (schemaRef && typeof schemaRef === 'object') { + if (isBoolean(schemaRef.allowTrailingCommas)) { + return schemaRef.allowTrailingCommas; + } + var deprSchemaRef = schemaRef; + if (isBoolean(deprSchemaRef['allowsTrailingCommas'])) { // deprecated + return deprSchemaRef['allowsTrailingCommas']; + } + if (schemaRef.allOf) { + for (var _i = 0, _a = schemaRef.allOf; _i < _a.length; _i++) { + var schema = _a[_i]; + var allow = schemaAllowsTrailingCommas(schema); + if (isBoolean(allow)) { + return allow; + } + } + } + } + return undefined; +} +function toDiagnosticSeverity(severityLevel) { + switch (severityLevel) { + case 'error': return DiagnosticSeverity.Error; + case 'warning': return DiagnosticSeverity.Warning; + case 'ignore': return undefined; + } + return undefined; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/colors.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/colors.js" index eb9aa691266fe0d7394cd46c0a5785d8a29c4d13..44726e65952d3f94140fe49a94754a651662c705 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/colors.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/colors.js" @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d095fd0574e6660abd8273a02a2506a964f494333ba952413025a683f290114 -size 2564 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +var Digit0 = 48; +var Digit9 = 57; +var A = 65; +var a = 97; +var f = 102; +export function hexDigit(charCode) { + if (charCode < Digit0) { + return 0; + } + if (charCode <= Digit9) { + return charCode - Digit0; + } + if (charCode < a) { + charCode += (a - A); + } + if (charCode >= a && charCode <= f) { + return charCode - a + 10; + } + return 0; +} +export function colorFromHex(text) { + if (text[0] !== '#') { + return undefined; + } + switch (text.length) { + case 4: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0, + green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0, + blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0, + alpha: 1 + }; + case 5: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0, + green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0, + blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0, + alpha: (hexDigit(text.charCodeAt(4)) * 0x11) / 255.0, + }; + case 7: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0, + green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0, + blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0, + alpha: 1 + }; + case 9: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0, + green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0, + blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0, + alpha: (hexDigit(text.charCodeAt(7)) * 0x10 + hexDigit(text.charCodeAt(8))) / 255.0 + }; + } + return undefined; +} +export function colorFrom256RGB(red, green, blue, alpha) { + if (alpha === void 0) { alpha = 1.0; } + return { + red: red / 255.0, + green: green / 255.0, + blue: blue / 255.0, + alpha: alpha + }; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/glob.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/glob.js" index eebfac83b9331c67eca4001eb9c105669498e506..5e4029dc0fba033ebaf769fc66616f576c03c196 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/glob.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/glob.js" @@ -1,3 +1,124 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ffd71b66b327c1a81712a1cf855c763b7e678685fa8f4bb2bc0219a8c910275c -size 5012 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Copyright (c) 2013, Nick Fitzgerald + * Licensed under the MIT License. See LICENCE.md in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +export function createRegex(glob, opts) { + if (typeof glob !== 'string') { + throw new TypeError('Expected a string'); + } + var str = String(glob); + // The regexp we are building, as a string. + var reStr = ""; + // Whether we are matching so called "extended" globs (like bash) and should + // support single character matching, matching ranges of characters, group + // matching, etc. + var extended = opts ? !!opts.extended : false; + // When globstar is _false_ (default), '/foo/*' is translated a regexp like + // '^\/foo\/.*$' which will match any string beginning with '/foo/' + // When globstar is _true_, '/foo/*' is translated to regexp like + // '^\/foo\/[^/]*$' which will match any string beginning with '/foo/' BUT + // which does not have a '/' to the right of it. + // E.g. with '/foo/*' these will match: '/foo/bar', '/foo/bar.txt' but + // these will not '/foo/bar/baz', '/foo/bar/baz.txt' + // Lastely, when globstar is _true_, '/foo/**' is equivelant to '/foo/*' when + // globstar is _false_ + var globstar = opts ? !!opts.globstar : false; + // If we are doing extended matching, this boolean is true when we are inside + // a group (eg {*.html,*.js}), and false otherwise. + var inGroup = false; + // RegExp flags (eg "i" ) to pass in to RegExp constructor. + var flags = opts && typeof (opts.flags) === "string" ? opts.flags : ""; + var c; + for (var i = 0, len = str.length; i < len; i++) { + c = str[i]; + switch (c) { + case "/": + case "$": + case "^": + case "+": + case ".": + case "(": + case ")": + case "=": + case "!": + case "|": + reStr += "\\" + c; + break; + case "?": + if (extended) { + reStr += "."; + break; + } + case "[": + case "]": + if (extended) { + reStr += c; + break; + } + case "{": + if (extended) { + inGroup = true; + reStr += "("; + break; + } + case "}": + if (extended) { + inGroup = false; + reStr += ")"; + break; + } + case ",": + if (inGroup) { + reStr += "|"; + break; + } + reStr += "\\" + c; + break; + case "*": + // Move over all consecutive "*"'s. + // Also store the previous and next characters + var prevChar = str[i - 1]; + var starCount = 1; + while (str[i + 1] === "*") { + starCount++; + i++; + } + var nextChar = str[i + 1]; + if (!globstar) { + // globstar is disabled, so treat any number of "*" as one + reStr += ".*"; + } + else { + // globstar is enabled, so determine if this is a globstar segment + var isGlobstar = starCount > 1 // multiple "*"'s + && (prevChar === "/" || prevChar === undefined || prevChar === '{' || prevChar === ',') // from the start of the segment + && (nextChar === "/" || nextChar === undefined || nextChar === ',' || nextChar === '}'); // to the end of the segment + if (isGlobstar) { + if (nextChar === "/") { + i++; // move over the "/" + } + else if (prevChar === '/' && reStr.endsWith('\\/')) { + reStr = reStr.substr(0, reStr.length - 2); + } + // it's a globstar, so match zero or more path segments + reStr += "((?:[^/]*(?:\/|$))*)"; + } + else { + // it's not a globstar, so only match one path segment + reStr += "([^/]*)"; + } + } + break; + default: + reStr += c; + } + } + // When regexp 'g' flag is specified don't + // constrain the regular expression with ^ & $ + if (!flags || !~flags.indexOf('g')) { + reStr = "^" + reStr + "$"; + } + return new RegExp(reStr, flags); +} +; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/json.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/json.js" index 10f7fdad3cf237880dff52233f73200890c47840..a11fd631ed1752ca45fbdcff2c479a9630f7d755 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/json.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/json.js" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1e59ade7a6f7c3bb9d1b27aecebacc8a6209af3ad3261b41dd9fc0546bd723a -size 1641 +/*--------------------------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Licensed under the MIT License. See License.txt in the project root for license information. +*--------------------------------------------------------------------------------------------*/ +export function stringifyObject(obj, indent, stringifyLiteral) { + if (obj !== null && typeof obj === 'object') { + var newIndent = indent + '\t'; + if (Array.isArray(obj)) { + if (obj.length === 0) { + return '[]'; + } + var result = '[\n'; + for (var i = 0; i < obj.length; i++) { + result += newIndent + stringifyObject(obj[i], newIndent, stringifyLiteral); + if (i < obj.length - 1) { + result += ','; + } + result += '\n'; + } + result += indent + ']'; + return result; + } + else { + var keys = Object.keys(obj); + if (keys.length === 0) { + return '{}'; + } + var result = '{\n'; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + result += newIndent + JSON.stringify(key) + ': ' + stringifyObject(obj[key], newIndent, stringifyLiteral); + if (i < keys.length - 1) { + result += ','; + } + result += '\n'; + } + result += indent + '}'; + return result; + } + } + return stringifyLiteral(obj); +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/objects.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/objects.js" index 54803ceeb7c6dacf7423eb41eb972e2259880481..373a44b2964b0443f3e266a6907dab8828215661 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/objects.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/objects.js" @@ -1,3 +1,65 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b9e4321a5dd045d0ded824df7a9d7b65fb87d908b053bb799526c426fca34ae -size 1851 +/*--------------------------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Licensed under the MIT License. See License.txt in the project root for license information. +*--------------------------------------------------------------------------------------------*/ +export function equals(one, other) { + if (one === other) { + return true; + } + if (one === null || one === undefined || other === null || other === undefined) { + return false; + } + if (typeof one !== typeof other) { + return false; + } + if (typeof one !== 'object') { + return false; + } + if ((Array.isArray(one)) !== (Array.isArray(other))) { + return false; + } + var i, key; + if (Array.isArray(one)) { + if (one.length !== other.length) { + return false; + } + for (i = 0; i < one.length; i++) { + if (!equals(one[i], other[i])) { + return false; + } + } + } + else { + var oneKeys = []; + for (key in one) { + oneKeys.push(key); + } + oneKeys.sort(); + var otherKeys = []; + for (key in other) { + otherKeys.push(key); + } + otherKeys.sort(); + if (!equals(oneKeys, otherKeys)) { + return false; + } + for (i = 0; i < oneKeys.length; i++) { + if (!equals(one[oneKeys[i]], other[oneKeys[i]])) { + return false; + } + } + } + return true; +} +export function isNumber(val) { + return typeof val === 'number'; +} +export function isDefined(val) { + return typeof val !== 'undefined'; +} +export function isBoolean(val) { + return typeof val === 'boolean'; +} +export function isString(val) { + return typeof val === 'string'; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/strings.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/strings.js" index 825504af78f4c82072587f3c26dd9e82037edb21..245ef3f6d856bc61188f4260139d51b872389ac7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/strings.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/esm/utils/strings.js" @@ -1,3 +1,52 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eefa602614166c8ec6f65c1e895b984de86be85d0a319e97f9d8d32e4a642990 -size 1524 +/*--------------------------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Licensed under the MIT License. See License.txt in the project root for license information. +*--------------------------------------------------------------------------------------------*/ +export function startsWith(haystack, needle) { + if (haystack.length < needle.length) { + return false; + } + for (var i = 0; i < needle.length; i++) { + if (haystack[i] !== needle[i]) { + return false; + } + } + return true; +} +/** + * Determines if haystack ends with needle. + */ +export function endsWith(haystack, needle) { + var diff = haystack.length - needle.length; + if (diff > 0) { + return haystack.lastIndexOf(needle) === diff; + } + else if (diff === 0) { + return haystack === needle; + } + else { + return false; + } +} +export function convertSimple2RegExpPattern(pattern) { + return pattern.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, '\\$&').replace(/[\*]/g, '.*'); +} +export function repeat(value, count) { + var s = ''; + while (count > 0) { + if ((count & 1) === 1) { + s += value; + } + value += value; + count = count >>> 1; + } + return s; +} +export function extendedRegExp(pattern) { + if (startsWith(pattern, '(?i)')) { + return new RegExp(pattern.substring(4), 'i'); + } + else { + return new RegExp(pattern); + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.d.ts" index 1107a3d386d39c8c9df93bebd1e699a87a13d87e..f075b2e9c5827b67ff07509dec8afd4393863dfa 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.d.ts" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5217ca5c5e094fa32f60e1e7ab53d48fe80f51419da2e86473e90d29c6834427 -size 969 +import { Thenable, MarkedString, CompletionItem } from './jsonLanguageService'; +export interface JSONWorkerContribution { + getInfoContribution(uri: string, location: JSONPath): Thenable; + collectPropertyCompletions(uri: string, location: JSONPath, currentWord: string, addValue: boolean, isLast: boolean, result: CompletionsCollector): Thenable; + collectValueCompletions(uri: string, location: JSONPath, propertyKey: string, result: CompletionsCollector): Thenable; + collectDefaultCompletions(uri: string, result: CompletionsCollector): Thenable; + resolveCompletion?(item: CompletionItem): Thenable; +} +export declare type Segment = string | number; +export declare type JSONPath = Segment[]; +export interface CompletionsCollector { + add(suggestion: CompletionItem): void; + error(message: string): void; + log(message: string): void; + setAsIncomplete(): void; + getNumberOfProposals(): number; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.js" index 5a28595e328da6630501223339a21e1a264d2356..273e12fe0382ec22ef2ad39686c339994dc341e7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonContributions.js" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61b26653537c0151337cb087ccf9b7c77dfc0826b24d159d73474bc09d060720 -size 432 +(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 }); +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.d.ts" index 298cdd944c4bc1b25088365ca43d452ffff6b91c..e73706f4204e7731ac940dc4b8be824840362c5d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.d.ts" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b134f5b6f5afaa8ec4331438fbf9393ebecc012182e60496ea279deb1ed4525 -size 2647 +import { Thenable, ASTNode, Color, ColorInformation, ColorPresentation, LanguageServiceParams, LanguageSettings, DocumentLanguageSettings, FoldingRange, JSONSchema, SelectionRange, FoldingRangesContext, DocumentSymbolsContext, ColorInformationContext as DocumentColorsContext, TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, FormattingOptions, DocumentSymbol, DefinitionLink, MatchingSchema } from './jsonLanguageTypes'; +import { DocumentLink } from 'vscode-languageserver-types'; +export declare type JSONDocument = { + root: ASTNode | undefined; + getNodeFromOffset(offset: number, includeRightBound?: boolean): ASTNode | undefined; +}; +export * from './jsonLanguageTypes'; +export interface LanguageService { + configure(settings: LanguageSettings): void; + doValidation(document: TextDocument, jsonDocument: JSONDocument, documentSettings?: DocumentLanguageSettings, schema?: JSONSchema): Thenable; + parseJSONDocument(document: TextDocument): JSONDocument; + newJSONDocument(rootNode: ASTNode, syntaxDiagnostics?: Diagnostic[]): JSONDocument; + resetSchema(uri: string): boolean; + getMatchingSchemas(document: TextDocument, jsonDocument: JSONDocument, schema?: JSONSchema): Thenable; + doResolve(item: CompletionItem): Thenable; + doComplete(document: TextDocument, position: Position, doc: JSONDocument): Thenable; + findDocumentSymbols(document: TextDocument, doc: JSONDocument, context?: DocumentSymbolsContext): SymbolInformation[]; + findDocumentSymbols2(document: TextDocument, doc: JSONDocument, context?: DocumentSymbolsContext): DocumentSymbol[]; + findDocumentColors(document: TextDocument, doc: JSONDocument, context?: DocumentColorsContext): Thenable; + getColorPresentations(document: TextDocument, doc: JSONDocument, color: Color, range: Range): ColorPresentation[]; + doHover(document: TextDocument, position: Position, doc: JSONDocument): Thenable; + format(document: TextDocument, range: Range, options: FormattingOptions): TextEdit[]; + getFoldingRanges(document: TextDocument, context?: FoldingRangesContext): FoldingRange[]; + getSelectionRanges(document: TextDocument, positions: Position[], doc: JSONDocument): SelectionRange[]; + findDefinition(document: TextDocument, position: Position, doc: JSONDocument): Thenable; + findLinks(document: TextDocument, doc: JSONDocument): Thenable; +} +export declare function getLanguageService(params: LanguageServiceParams): LanguageService; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.js" index fc846110db47337c6b613099f359aadb4eb16fd3..65a82faeedc71ef3a9d177f67c4b0af985063f48 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageService.js" @@ -1,3 +1,89 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:216f762160fe72d4fc48c550be9b0f0a5b1a3f7fc63fc69e008aa4e7c468e4a3 -size 5979 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +(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", "./services/jsonCompletion", "./services/jsonHover", "./services/jsonValidation", "./services/jsonDocumentSymbols", "./parser/jsonParser", "./services/configuration", "./services/jsonSchemaService", "./services/jsonFolding", "./services/jsonSelectionRanges", "jsonc-parser", "./jsonLanguageTypes", "./services/jsonLinks", "./jsonLanguageTypes"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getLanguageService = void 0; + var jsonCompletion_1 = require("./services/jsonCompletion"); + var jsonHover_1 = require("./services/jsonHover"); + var jsonValidation_1 = require("./services/jsonValidation"); + var jsonDocumentSymbols_1 = require("./services/jsonDocumentSymbols"); + var jsonParser_1 = require("./parser/jsonParser"); + var configuration_1 = require("./services/configuration"); + var jsonSchemaService_1 = require("./services/jsonSchemaService"); + var jsonFolding_1 = require("./services/jsonFolding"); + var jsonSelectionRanges_1 = require("./services/jsonSelectionRanges"); + var jsonc_parser_1 = require("jsonc-parser"); + var jsonLanguageTypes_1 = require("./jsonLanguageTypes"); + var jsonLinks_1 = require("./services/jsonLinks"); + __exportStar(require("./jsonLanguageTypes"), exports); + function getLanguageService(params) { + var promise = params.promiseConstructor || Promise; + var jsonSchemaService = new jsonSchemaService_1.JSONSchemaService(params.schemaRequestService, params.workspaceContext, promise); + jsonSchemaService.setSchemaContributions(configuration_1.schemaContributions); + var jsonCompletion = new jsonCompletion_1.JSONCompletion(jsonSchemaService, params.contributions, promise, params.clientCapabilities); + var jsonHover = new jsonHover_1.JSONHover(jsonSchemaService, params.contributions, promise); + var jsonDocumentSymbols = new jsonDocumentSymbols_1.JSONDocumentSymbols(jsonSchemaService); + var jsonValidation = new jsonValidation_1.JSONValidation(jsonSchemaService, promise); + return { + configure: function (settings) { + jsonSchemaService.clearExternalSchemas(); + if (settings.schemas) { + settings.schemas.forEach(function (settings) { + jsonSchemaService.registerExternalSchema(settings.uri, settings.fileMatch, settings.schema); + }); + } + jsonValidation.configure(settings); + }, + resetSchema: function (uri) { return jsonSchemaService.onResourceChange(uri); }, + doValidation: jsonValidation.doValidation.bind(jsonValidation), + parseJSONDocument: function (document) { return jsonParser_1.parse(document, { collectComments: true }); }, + newJSONDocument: function (root, diagnostics) { return jsonParser_1.newJSONDocument(root, diagnostics); }, + getMatchingSchemas: jsonSchemaService.getMatchingSchemas.bind(jsonSchemaService), + doResolve: jsonCompletion.doResolve.bind(jsonCompletion), + doComplete: jsonCompletion.doComplete.bind(jsonCompletion), + findDocumentSymbols: jsonDocumentSymbols.findDocumentSymbols.bind(jsonDocumentSymbols), + findDocumentSymbols2: jsonDocumentSymbols.findDocumentSymbols2.bind(jsonDocumentSymbols), + findDocumentColors: jsonDocumentSymbols.findDocumentColors.bind(jsonDocumentSymbols), + getColorPresentations: jsonDocumentSymbols.getColorPresentations.bind(jsonDocumentSymbols), + doHover: jsonHover.doHover.bind(jsonHover), + getFoldingRanges: jsonFolding_1.getFoldingRanges, + getSelectionRanges: jsonSelectionRanges_1.getSelectionRanges, + findDefinition: function () { return Promise.resolve([]); }, + findLinks: jsonLinks_1.findLinks, + format: function (d, r, o) { + var range = undefined; + if (r) { + var offset = d.offsetAt(r.start); + var length = d.offsetAt(r.end) - offset; + range = { offset: offset, length: length }; + } + var options = { tabSize: o ? o.tabSize : 4, insertSpaces: (o === null || o === void 0 ? void 0 : o.insertSpaces) === true, insertFinalNewline: (o === null || o === void 0 ? void 0 : o.insertFinalNewline) === true, eol: '\n' }; + return jsonc_parser_1.format(d.getText(), range, options).map(function (e) { + return jsonLanguageTypes_1.TextEdit.replace(jsonLanguageTypes_1.Range.create(d.positionAt(e.offset), d.positionAt(e.offset + e.length)), e.content); + }); + } + }; + } + exports.getLanguageService = getLanguageService; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.d.ts" index 3e8355dea8565df4e8702947093bec4097af6d66..5300c90f781b95d8412fd022a656e1ed13e1e3d0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.d.ts" @@ -1,3 +1,275 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:103beae831c78a92b13f67cd37b23935d309605a78e241739a171ee728e242ab -size 11186 +import { JSONWorkerContribution, JSONPath, Segment, CompletionsCollector } from './jsonContributions'; +import { JSONSchema } from './jsonSchema'; +import { Range, Position, DocumentUri, MarkupContent, MarkupKind, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, FormattingOptions as LSPFormattingOptions, DefinitionLink, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind } from 'vscode-languageserver-types'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +export { TextDocument, Range, Position, DocumentUri, MarkupContent, MarkupKind, JSONSchema, JSONWorkerContribution, JSONPath, Segment, CompletionsCollector, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, DefinitionLink, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind }; +/** + * Error codes used by diagnostics + */ +export declare enum ErrorCode { + Undefined = 0, + EnumValueMismatch = 1, + Deprecated = 2, + UnexpectedEndOfComment = 257, + UnexpectedEndOfString = 258, + UnexpectedEndOfNumber = 259, + InvalidUnicode = 260, + InvalidEscapeCharacter = 261, + InvalidCharacter = 262, + PropertyExpected = 513, + CommaExpected = 514, + ColonExpected = 515, + ValueExpected = 516, + CommaOrCloseBacketExpected = 517, + CommaOrCloseBraceExpected = 518, + TrailingComma = 519, + DuplicateKey = 520, + CommentNotPermitted = 521, + SchemaResolveError = 768 +} +export declare type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode; +export interface BaseASTNode { + readonly type: 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null'; + readonly parent?: ASTNode; + readonly offset: number; + readonly length: number; + readonly children?: ASTNode[]; + readonly value?: string | boolean | number | null; +} +export interface ObjectASTNode extends BaseASTNode { + readonly type: 'object'; + readonly properties: PropertyASTNode[]; + readonly children: ASTNode[]; +} +export interface PropertyASTNode extends BaseASTNode { + readonly type: 'property'; + readonly keyNode: StringASTNode; + readonly valueNode?: ASTNode; + readonly colonOffset?: number; + readonly children: ASTNode[]; +} +export interface ArrayASTNode extends BaseASTNode { + readonly type: 'array'; + readonly items: ASTNode[]; + readonly children: ASTNode[]; +} +export interface StringASTNode extends BaseASTNode { + readonly type: 'string'; + readonly value: string; +} +export interface NumberASTNode extends BaseASTNode { + readonly type: 'number'; + readonly value: number; + readonly isInteger: boolean; +} +export interface BooleanASTNode extends BaseASTNode { + readonly type: 'boolean'; + readonly value: boolean; +} +export interface NullASTNode extends BaseASTNode { + readonly type: 'null'; + readonly value: null; +} +export interface MatchingSchema { + node: ASTNode; + schema: JSONSchema; +} +export interface LanguageSettings { + /** + * If set, the validator will return syntax and semantic errors. + */ + validate?: boolean; + /** + * Defines whether comments are allowed or not. If set to false, comments will be reported as errors. + * DocumentLanguageSettings.allowComments will override this setting. + */ + allowComments?: boolean; + /** + * A list of known schemas and/or associations of schemas to file names. + */ + schemas?: SchemaConfiguration[]; +} +export declare type SeverityLevel = 'error' | 'warning' | 'ignore'; +export interface DocumentLanguageSettings { + /** + * The severity of reported comments. If not set, 'LanguageSettings.allowComments' defines whether comments are ignored or reported as errors. + */ + comments?: SeverityLevel; + /** + * The severity of reported trailing commas. If not set, trailing commas will be reported as errors. + */ + trailingCommas?: SeverityLevel; + /** + * The severity of problems from schema validation. If set to 'ignore', schema validation will be skipped. If not set, 'warning' is used. + */ + schemaValidation?: SeverityLevel; + /** + * The severity of problems that occurred when resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used. + */ + schemaRequest?: SeverityLevel; +} +export interface SchemaConfiguration { + /** + * The URI of the schema, which is also the identifier of the schema. + */ + uri: string; + /** + * A list of glob patterns that describe for which file URIs the JSON schema will be used. + * '*' and '**' wildcards are supported. Exclusion patterns start with '!'. + * For example '*.schema.json', 'package.json', '!foo*.schema.json', 'foo/**\/BADRESP.json'. + * A match succeeds when there is at least one pattern matching and last matching pattern does not start with '!'. + */ + fileMatch?: string[]; + /** + * The schema for the given URI. + * If no schema is provided, the schema will be fetched with the schema request service (if available). + */ + schema?: JSONSchema; +} +export interface WorkspaceContextService { + resolveRelativePath(relativePath: string, resource: string): string; +} +/** + * The schema request service is used to fetch schemas. If successful, returns a resolved promise with the content of the schema. + * In case of an error, returns a rejected promise with a displayable error string. + */ +export interface SchemaRequestService { + (uri: string): Thenable; +} +export interface PromiseConstructor { + /** + * Creates a new Promise. + * @param executor A callback used to initialize the promise. This callback is passed two arguments: + * a resolve callback used resolve the promise with a value or the result of another promise, + * and a reject callback used to reject the promise with a provided reason or error. + */ + new (executor: (resolve: (value?: T | Thenable) => void, reject: (reason?: any) => void) => void): Thenable; + /** + * Creates a Promise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any Promise is rejected. + * @param values An array of Promises. + * @returns A new Promise. + */ + all(values: Array>): Thenable; + /** + * Creates a new rejected promise for the provided reason. + * @param reason The reason the promise was rejected. + * @returns A new rejected Promise. + */ + reject(reason: any): Thenable; + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + resolve(value: T | Thenable): Thenable; +} +export interface Thenable { + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: (value: R) => TResult | Thenable, onrejected?: (reason: any) => TResult | Thenable): Thenable; + then(onfulfilled?: (value: R) => TResult | Thenable, onrejected?: (reason: any) => void): Thenable; +} +export interface LanguageServiceParams { + /** + * The schema request service is used to fetch schemas from a URI. The provider returns the schema file content, or, + * in case of an error, a displayable error string + */ + schemaRequestService?: SchemaRequestService; + /** + * The workspace context is used to resolve relative paths for relative schema references. + */ + workspaceContext?: WorkspaceContextService; + /** + * An optional set of completion and hover participants. + */ + contributions?: JSONWorkerContribution[]; + /** + * A promise constructor. If not set, the ES5 Promise will be used. + */ + promiseConstructor?: PromiseConstructor; + /** + * Describes the LSP capabilities the client supports. + */ + clientCapabilities?: ClientCapabilities; +} +/** + * Describes what LSP capabilities the client supports + */ +export interface ClientCapabilities { + /** + * The text document client capabilities + */ + textDocument?: { + /** + * Capabilities specific to completions. + */ + completion?: { + /** + * The client supports the following `CompletionItem` specific + * capabilities. + */ + completionItem?: { + /** + * Client supports the follow content formats for the documentation + * property. The order describes the preferred format of the client. + */ + documentationFormat?: MarkupKind[]; + /** + * The client supports commit characters on a completion item. + */ + commitCharactersSupport?: boolean; + }; + }; + /** + * Capabilities specific to hovers. + */ + hover?: { + /** + * Client supports the follow content formats for the content + * property. The order describes the preferred format of the client. + */ + contentFormat?: MarkupKind[]; + }; + }; +} +export declare namespace ClientCapabilities { + const LATEST: ClientCapabilities; +} +export interface FoldingRangesContext { + /** + * The maximal number of ranges returned. + */ + rangeLimit?: number; + /** + * Called when the result was cropped. + */ + onRangeLimitExceeded?: (uri: string) => void; +} +export interface DocumentSymbolsContext { + /** + * The maximal number of document symbols returned. + */ + resultLimit?: number; + /** + * Called when the result was cropped. + */ + onResultLimitExceeded?: (uri: string) => void; +} +export interface ColorInformationContext { + /** + * The maximal number of color informations returned. + */ + resultLimit?: number; + /** + * Called when the result was cropped. + */ + onResultLimitExceeded?: (uri: string) => void; +} +export interface FormattingOptions extends LSPFormattingOptions { + insertFinalNewline?: boolean; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.js" index ba7366408ac087c88f2665078f32e83492e55140..a0fc0e6c00934cbac3b316cdbf7d5bca786fef34 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonLanguageTypes.js" @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8f3ec73ca0bbfddd228647025ffb70977ad3e6117ed9631c52da17c250abfd16 -size 9406 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "vscode-languageserver-textdocument"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ClientCapabilities = exports.ErrorCode = exports.DocumentHighlightKind = exports.VersionedTextDocumentIdentifier = exports.TextDocumentEdit = exports.CodeActionKind = exports.TextEdit = exports.WorkspaceEdit = exports.DocumentLink = exports.DocumentHighlight = exports.CodeAction = exports.Command = exports.CodeActionContext = exports.MarkedString = exports.Hover = exports.Location = exports.DocumentSymbol = exports.SymbolKind = exports.SymbolInformation = exports.InsertTextFormat = exports.CompletionItemTag = exports.CompletionList = exports.CompletionItemKind = exports.CompletionItem = exports.DiagnosticSeverity = exports.Diagnostic = exports.SelectionRange = exports.FoldingRangeKind = exports.FoldingRange = exports.ColorPresentation = exports.ColorInformation = exports.Color = exports.MarkupKind = exports.MarkupContent = exports.Position = exports.Range = exports.TextDocument = void 0; + var vscode_languageserver_types_1 = require("vscode-languageserver-types"); + Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return vscode_languageserver_types_1.Range; } }); + Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return vscode_languageserver_types_1.Position; } }); + Object.defineProperty(exports, "MarkupContent", { enumerable: true, get: function () { return vscode_languageserver_types_1.MarkupContent; } }); + Object.defineProperty(exports, "MarkupKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.MarkupKind; } }); + Object.defineProperty(exports, "Color", { enumerable: true, get: function () { return vscode_languageserver_types_1.Color; } }); + Object.defineProperty(exports, "ColorInformation", { enumerable: true, get: function () { return vscode_languageserver_types_1.ColorInformation; } }); + Object.defineProperty(exports, "ColorPresentation", { enumerable: true, get: function () { return vscode_languageserver_types_1.ColorPresentation; } }); + Object.defineProperty(exports, "FoldingRange", { enumerable: true, get: function () { return vscode_languageserver_types_1.FoldingRange; } }); + Object.defineProperty(exports, "FoldingRangeKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.FoldingRangeKind; } }); + Object.defineProperty(exports, "SelectionRange", { enumerable: true, get: function () { return vscode_languageserver_types_1.SelectionRange; } }); + Object.defineProperty(exports, "Diagnostic", { enumerable: true, get: function () { return vscode_languageserver_types_1.Diagnostic; } }); + Object.defineProperty(exports, "DiagnosticSeverity", { enumerable: true, get: function () { return vscode_languageserver_types_1.DiagnosticSeverity; } }); + Object.defineProperty(exports, "CompletionItem", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionItem; } }); + Object.defineProperty(exports, "CompletionItemKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionItemKind; } }); + Object.defineProperty(exports, "CompletionList", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionList; } }); + Object.defineProperty(exports, "CompletionItemTag", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionItemTag; } }); + Object.defineProperty(exports, "InsertTextFormat", { enumerable: true, get: function () { return vscode_languageserver_types_1.InsertTextFormat; } }); + Object.defineProperty(exports, "SymbolInformation", { enumerable: true, get: function () { return vscode_languageserver_types_1.SymbolInformation; } }); + Object.defineProperty(exports, "SymbolKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.SymbolKind; } }); + Object.defineProperty(exports, "DocumentSymbol", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentSymbol; } }); + Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return vscode_languageserver_types_1.Location; } }); + Object.defineProperty(exports, "Hover", { enumerable: true, get: function () { return vscode_languageserver_types_1.Hover; } }); + Object.defineProperty(exports, "MarkedString", { enumerable: true, get: function () { return vscode_languageserver_types_1.MarkedString; } }); + Object.defineProperty(exports, "CodeActionContext", { enumerable: true, get: function () { return vscode_languageserver_types_1.CodeActionContext; } }); + Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return vscode_languageserver_types_1.Command; } }); + Object.defineProperty(exports, "CodeAction", { enumerable: true, get: function () { return vscode_languageserver_types_1.CodeAction; } }); + Object.defineProperty(exports, "DocumentHighlight", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentHighlight; } }); + Object.defineProperty(exports, "DocumentLink", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentLink; } }); + Object.defineProperty(exports, "WorkspaceEdit", { enumerable: true, get: function () { return vscode_languageserver_types_1.WorkspaceEdit; } }); + Object.defineProperty(exports, "TextEdit", { enumerable: true, get: function () { return vscode_languageserver_types_1.TextEdit; } }); + Object.defineProperty(exports, "CodeActionKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.CodeActionKind; } }); + Object.defineProperty(exports, "TextDocumentEdit", { enumerable: true, get: function () { return vscode_languageserver_types_1.TextDocumentEdit; } }); + Object.defineProperty(exports, "VersionedTextDocumentIdentifier", { enumerable: true, get: function () { return vscode_languageserver_types_1.VersionedTextDocumentIdentifier; } }); + Object.defineProperty(exports, "DocumentHighlightKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentHighlightKind; } }); + var vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument"); + Object.defineProperty(exports, "TextDocument", { enumerable: true, get: function () { return vscode_languageserver_textdocument_1.TextDocument; } }); + /** + * Error codes used by diagnostics + */ + var ErrorCode; + (function (ErrorCode) { + ErrorCode[ErrorCode["Undefined"] = 0] = "Undefined"; + ErrorCode[ErrorCode["EnumValueMismatch"] = 1] = "EnumValueMismatch"; + ErrorCode[ErrorCode["Deprecated"] = 2] = "Deprecated"; + ErrorCode[ErrorCode["UnexpectedEndOfComment"] = 257] = "UnexpectedEndOfComment"; + ErrorCode[ErrorCode["UnexpectedEndOfString"] = 258] = "UnexpectedEndOfString"; + ErrorCode[ErrorCode["UnexpectedEndOfNumber"] = 259] = "UnexpectedEndOfNumber"; + ErrorCode[ErrorCode["InvalidUnicode"] = 260] = "InvalidUnicode"; + ErrorCode[ErrorCode["InvalidEscapeCharacter"] = 261] = "InvalidEscapeCharacter"; + ErrorCode[ErrorCode["InvalidCharacter"] = 262] = "InvalidCharacter"; + ErrorCode[ErrorCode["PropertyExpected"] = 513] = "PropertyExpected"; + ErrorCode[ErrorCode["CommaExpected"] = 514] = "CommaExpected"; + ErrorCode[ErrorCode["ColonExpected"] = 515] = "ColonExpected"; + ErrorCode[ErrorCode["ValueExpected"] = 516] = "ValueExpected"; + ErrorCode[ErrorCode["CommaOrCloseBacketExpected"] = 517] = "CommaOrCloseBacketExpected"; + ErrorCode[ErrorCode["CommaOrCloseBraceExpected"] = 518] = "CommaOrCloseBraceExpected"; + ErrorCode[ErrorCode["TrailingComma"] = 519] = "TrailingComma"; + ErrorCode[ErrorCode["DuplicateKey"] = 520] = "DuplicateKey"; + ErrorCode[ErrorCode["CommentNotPermitted"] = 521] = "CommentNotPermitted"; + ErrorCode[ErrorCode["SchemaResolveError"] = 768] = "SchemaResolveError"; + })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); + var ClientCapabilities; + (function (ClientCapabilities) { + ClientCapabilities.LATEST = { + textDocument: { + completion: { + completionItem: { + documentationFormat: [vscode_languageserver_types_1.MarkupKind.Markdown, vscode_languageserver_types_1.MarkupKind.PlainText], + commitCharactersSupport: true + } + } + } + }; + })(ClientCapabilities = exports.ClientCapabilities || (exports.ClientCapabilities = {})); +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.d.ts" index bd9448c89b6dd301790653ba0dd1e83b902ef073..9fd9de7d149a4d422234a0594b46c01bf9b1198e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.d.ts" @@ -1,3 +1,70 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e02ae29730ed9bcae2d8c2fbd8878aa0b6e6cf86e172c1aa7e152efd30db6db3 -size 1912 +export declare type JSONSchemaRef = JSONSchema | boolean; +export interface JSONSchema { + id?: string; + $id?: string; + $schema?: string; + type?: string | string[]; + title?: string; + default?: any; + definitions?: { + [name: string]: JSONSchema; + }; + description?: string; + properties?: JSONSchemaMap; + patternProperties?: JSONSchemaMap; + additionalProperties?: boolean | JSONSchemaRef; + minProperties?: number; + maxProperties?: number; + dependencies?: JSONSchemaMap | { + [prop: string]: string[]; + }; + items?: JSONSchemaRef | JSONSchemaRef[]; + minItems?: number; + maxItems?: number; + uniqueItems?: boolean; + additionalItems?: boolean | JSONSchemaRef; + pattern?: string; + minLength?: number; + maxLength?: number; + minimum?: number; + maximum?: number; + exclusiveMinimum?: boolean | number; + exclusiveMaximum?: boolean | number; + multipleOf?: number; + required?: string[]; + $ref?: string; + anyOf?: JSONSchemaRef[]; + allOf?: JSONSchemaRef[]; + oneOf?: JSONSchemaRef[]; + not?: JSONSchemaRef; + enum?: any[]; + format?: string; + const?: any; + contains?: JSONSchemaRef; + propertyNames?: JSONSchemaRef; + examples?: any[]; + $comment?: string; + if?: JSONSchemaRef; + then?: JSONSchemaRef; + else?: JSONSchemaRef; + defaultSnippets?: { + label?: string; + description?: string; + markdownDescription?: string; + body?: any; + bodyText?: string; + }[]; + errorMessage?: string; + patternErrorMessage?: string; + deprecationMessage?: string; + enumDescriptions?: string[]; + markdownEnumDescriptions?: string[]; + markdownDescription?: string; + doNotSuggest?: boolean; + suggestSortText?: string; + allowComments?: boolean; + allowTrailingCommas?: boolean; +} +export interface JSONSchemaMap { + [name: string]: JSONSchemaRef; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.js" index 5a28595e328da6630501223339a21e1a264d2356..273e12fe0382ec22ef2ad39686c339994dc341e7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/jsonSchema.js" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61b26653537c0151337cb087ccf9b7c77dfc0826b24d159d73474bc09d060720 -size 432 +(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 }); +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/parser/jsonParser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/parser/jsonParser.js" index a437ee93b10df3a30a4087407af645da8c2f9ce7..3559402f6be65445a49abad25b12a3aa6c0702b0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/parser/jsonParser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/parser/jsonParser.js" @@ -1,3 +1,1231 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5de026273bd8733a0e71ce3e728811e83963cd72cbd9a9144bd50b490574982 -size 64483 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +(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", "jsonc-parser", "../utils/objects", "../utils/strings", "../jsonLanguageTypes", "vscode-nls"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parse = exports.JSONDocument = exports.contains = exports.getNodePath = exports.getNodeValue = exports.newJSONDocument = exports.ValidationResult = exports.EnumMatch = exports.asSchema = exports.ObjectASTNodeImpl = exports.PropertyASTNodeImpl = exports.StringASTNodeImpl = exports.NumberASTNodeImpl = exports.ArrayASTNodeImpl = exports.BooleanASTNodeImpl = exports.NullASTNodeImpl = exports.ASTNodeImpl = void 0; + var Json = require("jsonc-parser"); + var objects_1 = require("../utils/objects"); + var strings_1 = require("../utils/strings"); + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + var nls = require("vscode-nls"); + var localize = nls.loadMessageBundle(); + var formats = { + 'color-hex': { errorMessage: localize('colorHexFormatWarning', 'Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.'), pattern: /^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/ }, + 'date-time': { errorMessage: localize('dateTimeFormatWarning', 'String is not a RFC3339 date-time.'), pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i }, + 'date': { errorMessage: localize('dateFormatWarning', 'String is not a RFC3339 date.'), pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i }, + 'time': { errorMessage: localize('timeFormatWarning', 'String is not a RFC3339 time.'), pattern: /^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i }, + 'email': { errorMessage: localize('emailFormatWarning', 'String is not an e-mail address.'), pattern: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ } + }; + var ASTNodeImpl = /** @class */ (function () { + function ASTNodeImpl(parent, offset, length) { + if (length === void 0) { length = 0; } + this.offset = offset; + this.length = length; + this.parent = parent; + } + Object.defineProperty(ASTNodeImpl.prototype, "children", { + get: function () { + return []; + }, + enumerable: false, + configurable: true + }); + ASTNodeImpl.prototype.toString = function () { + return 'type: ' + this.type + ' (' + this.offset + '/' + this.length + ')' + (this.parent ? ' parent: {' + this.parent.toString() + '}' : ''); + }; + return ASTNodeImpl; + }()); + exports.ASTNodeImpl = ASTNodeImpl; + var NullASTNodeImpl = /** @class */ (function (_super) { + __extends(NullASTNodeImpl, _super); + function NullASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'null'; + _this.value = null; + return _this; + } + return NullASTNodeImpl; + }(ASTNodeImpl)); + exports.NullASTNodeImpl = NullASTNodeImpl; + var BooleanASTNodeImpl = /** @class */ (function (_super) { + __extends(BooleanASTNodeImpl, _super); + function BooleanASTNodeImpl(parent, boolValue, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'boolean'; + _this.value = boolValue; + return _this; + } + return BooleanASTNodeImpl; + }(ASTNodeImpl)); + exports.BooleanASTNodeImpl = BooleanASTNodeImpl; + var ArrayASTNodeImpl = /** @class */ (function (_super) { + __extends(ArrayASTNodeImpl, _super); + function ArrayASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'array'; + _this.items = []; + return _this; + } + Object.defineProperty(ArrayASTNodeImpl.prototype, "children", { + get: function () { + return this.items; + }, + enumerable: false, + configurable: true + }); + return ArrayASTNodeImpl; + }(ASTNodeImpl)); + exports.ArrayASTNodeImpl = ArrayASTNodeImpl; + var NumberASTNodeImpl = /** @class */ (function (_super) { + __extends(NumberASTNodeImpl, _super); + function NumberASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'number'; + _this.isInteger = true; + _this.value = Number.NaN; + return _this; + } + return NumberASTNodeImpl; + }(ASTNodeImpl)); + exports.NumberASTNodeImpl = NumberASTNodeImpl; + var StringASTNodeImpl = /** @class */ (function (_super) { + __extends(StringASTNodeImpl, _super); + function StringASTNodeImpl(parent, offset, length) { + var _this = _super.call(this, parent, offset, length) || this; + _this.type = 'string'; + _this.value = ''; + return _this; + } + return StringASTNodeImpl; + }(ASTNodeImpl)); + exports.StringASTNodeImpl = StringASTNodeImpl; + var PropertyASTNodeImpl = /** @class */ (function (_super) { + __extends(PropertyASTNodeImpl, _super); + function PropertyASTNodeImpl(parent, offset, keyNode) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'property'; + _this.colonOffset = -1; + _this.keyNode = keyNode; + return _this; + } + Object.defineProperty(PropertyASTNodeImpl.prototype, "children", { + get: function () { + return this.valueNode ? [this.keyNode, this.valueNode] : [this.keyNode]; + }, + enumerable: false, + configurable: true + }); + return PropertyASTNodeImpl; + }(ASTNodeImpl)); + exports.PropertyASTNodeImpl = PropertyASTNodeImpl; + var ObjectASTNodeImpl = /** @class */ (function (_super) { + __extends(ObjectASTNodeImpl, _super); + function ObjectASTNodeImpl(parent, offset) { + var _this = _super.call(this, parent, offset) || this; + _this.type = 'object'; + _this.properties = []; + return _this; + } + Object.defineProperty(ObjectASTNodeImpl.prototype, "children", { + get: function () { + return this.properties; + }, + enumerable: false, + configurable: true + }); + return ObjectASTNodeImpl; + }(ASTNodeImpl)); + exports.ObjectASTNodeImpl = ObjectASTNodeImpl; + function asSchema(schema) { + if (objects_1.isBoolean(schema)) { + return schema ? {} : { "not": {} }; + } + return schema; + } + exports.asSchema = asSchema; + var EnumMatch; + (function (EnumMatch) { + EnumMatch[EnumMatch["Key"] = 0] = "Key"; + EnumMatch[EnumMatch["Enum"] = 1] = "Enum"; + })(EnumMatch = exports.EnumMatch || (exports.EnumMatch = {})); + var SchemaCollector = /** @class */ (function () { + function SchemaCollector(focusOffset, exclude) { + if (focusOffset === void 0) { focusOffset = -1; } + this.focusOffset = focusOffset; + this.exclude = exclude; + this.schemas = []; + } + SchemaCollector.prototype.add = function (schema) { + this.schemas.push(schema); + }; + SchemaCollector.prototype.merge = function (other) { + Array.prototype.push.apply(this.schemas, other.schemas); + }; + SchemaCollector.prototype.include = function (node) { + return (this.focusOffset === -1 || contains(node, this.focusOffset)) && (node !== this.exclude); + }; + SchemaCollector.prototype.newSub = function () { + return new SchemaCollector(-1, this.exclude); + }; + return SchemaCollector; + }()); + var NoOpSchemaCollector = /** @class */ (function () { + function NoOpSchemaCollector() { + } + Object.defineProperty(NoOpSchemaCollector.prototype, "schemas", { + get: function () { return []; }, + enumerable: false, + configurable: true + }); + NoOpSchemaCollector.prototype.add = function (schema) { }; + NoOpSchemaCollector.prototype.merge = function (other) { }; + NoOpSchemaCollector.prototype.include = function (node) { return true; }; + NoOpSchemaCollector.prototype.newSub = function () { return this; }; + NoOpSchemaCollector.instance = new NoOpSchemaCollector(); + return NoOpSchemaCollector; + }()); + var ValidationResult = /** @class */ (function () { + function ValidationResult() { + this.problems = []; + this.propertiesMatches = 0; + this.propertiesValueMatches = 0; + this.primaryValueMatches = 0; + this.enumValueMatch = false; + this.enumValues = undefined; + } + ValidationResult.prototype.hasProblems = function () { + return !!this.problems.length; + }; + ValidationResult.prototype.mergeAll = function (validationResults) { + for (var _i = 0, validationResults_1 = validationResults; _i < validationResults_1.length; _i++) { + var validationResult = validationResults_1[_i]; + this.merge(validationResult); + } + }; + ValidationResult.prototype.merge = function (validationResult) { + this.problems = this.problems.concat(validationResult.problems); + }; + ValidationResult.prototype.mergeEnumValues = function (validationResult) { + if (!this.enumValueMatch && !validationResult.enumValueMatch && this.enumValues && validationResult.enumValues) { + this.enumValues = this.enumValues.concat(validationResult.enumValues); + for (var _i = 0, _a = this.problems; _i < _a.length; _i++) { + var error = _a[_i]; + if (error.code === jsonLanguageTypes_1.ErrorCode.EnumValueMismatch) { + error.message = localize('enumWarning', 'Value is not accepted. Valid values: {0}.', this.enumValues.map(function (v) { return JSON.stringify(v); }).join(', ')); + } + } + } + }; + ValidationResult.prototype.mergePropertyMatch = function (propertyValidationResult) { + this.merge(propertyValidationResult); + this.propertiesMatches++; + if (propertyValidationResult.enumValueMatch || !propertyValidationResult.hasProblems() && propertyValidationResult.propertiesMatches) { + this.propertiesValueMatches++; + } + if (propertyValidationResult.enumValueMatch && propertyValidationResult.enumValues && propertyValidationResult.enumValues.length === 1) { + this.primaryValueMatches++; + } + }; + ValidationResult.prototype.compare = function (other) { + var hasProblems = this.hasProblems(); + if (hasProblems !== other.hasProblems()) { + return hasProblems ? -1 : 1; + } + if (this.enumValueMatch !== other.enumValueMatch) { + return other.enumValueMatch ? -1 : 1; + } + if (this.primaryValueMatches !== other.primaryValueMatches) { + return this.primaryValueMatches - other.primaryValueMatches; + } + if (this.propertiesValueMatches !== other.propertiesValueMatches) { + return this.propertiesValueMatches - other.propertiesValueMatches; + } + return this.propertiesMatches - other.propertiesMatches; + }; + return ValidationResult; + }()); + exports.ValidationResult = ValidationResult; + function newJSONDocument(root, diagnostics) { + if (diagnostics === void 0) { diagnostics = []; } + return new JSONDocument(root, diagnostics, []); + } + exports.newJSONDocument = newJSONDocument; + function getNodeValue(node) { + return Json.getNodeValue(node); + } + exports.getNodeValue = getNodeValue; + function getNodePath(node) { + return Json.getNodePath(node); + } + exports.getNodePath = getNodePath; + function contains(node, offset, includeRightBound) { + if (includeRightBound === void 0) { includeRightBound = false; } + return offset >= node.offset && offset < (node.offset + node.length) || includeRightBound && offset === (node.offset + node.length); + } + exports.contains = contains; + var JSONDocument = /** @class */ (function () { + function JSONDocument(root, syntaxErrors, comments) { + if (syntaxErrors === void 0) { syntaxErrors = []; } + if (comments === void 0) { comments = []; } + this.root = root; + this.syntaxErrors = syntaxErrors; + this.comments = comments; + } + JSONDocument.prototype.getNodeFromOffset = function (offset, includeRightBound) { + if (includeRightBound === void 0) { includeRightBound = false; } + if (this.root) { + return Json.findNodeAtOffset(this.root, offset, includeRightBound); + } + return undefined; + }; + JSONDocument.prototype.visit = function (visitor) { + if (this.root) { + var doVisit_1 = function (node) { + var ctn = visitor(node); + var children = node.children; + if (Array.isArray(children)) { + for (var i = 0; i < children.length && ctn; i++) { + ctn = doVisit_1(children[i]); + } + } + return ctn; + }; + doVisit_1(this.root); + } + }; + JSONDocument.prototype.validate = function (textDocument, schema, severity) { + if (severity === void 0) { severity = jsonLanguageTypes_1.DiagnosticSeverity.Warning; } + if (this.root && schema) { + var validationResult = new ValidationResult(); + validate(this.root, schema, validationResult, NoOpSchemaCollector.instance); + return validationResult.problems.map(function (p) { + var _a; + var range = jsonLanguageTypes_1.Range.create(textDocument.positionAt(p.location.offset), textDocument.positionAt(p.location.offset + p.location.length)); + return jsonLanguageTypes_1.Diagnostic.create(range, p.message, (_a = p.severity) !== null && _a !== void 0 ? _a : severity, p.code); + }); + } + return undefined; + }; + JSONDocument.prototype.getMatchingSchemas = function (schema, focusOffset, exclude) { + if (focusOffset === void 0) { focusOffset = -1; } + var matchingSchemas = new SchemaCollector(focusOffset, exclude); + if (this.root && schema) { + validate(this.root, schema, new ValidationResult(), matchingSchemas); + } + return matchingSchemas.schemas; + }; + return JSONDocument; + }()); + exports.JSONDocument = JSONDocument; + function validate(n, schema, validationResult, matchingSchemas) { + if (!n || !matchingSchemas.include(n)) { + return; + } + var node = n; + switch (node.type) { + case 'object': + _validateObjectNode(node, schema, validationResult, matchingSchemas); + break; + case 'array': + _validateArrayNode(node, schema, validationResult, matchingSchemas); + break; + case 'string': + _validateStringNode(node, schema, validationResult, matchingSchemas); + break; + case 'number': + _validateNumberNode(node, schema, validationResult, matchingSchemas); + break; + case 'property': + return validate(node.valueNode, schema, validationResult, matchingSchemas); + } + _validateNode(); + matchingSchemas.add({ node: node, schema: schema }); + function _validateNode() { + function matchesType(type) { + return node.type === type || (type === 'integer' && node.type === 'number' && node.isInteger); + } + if (Array.isArray(schema.type)) { + if (!schema.type.some(matchesType)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.errorMessage || localize('typeArrayMismatchWarning', 'Incorrect type. Expected one of {0}.', schema.type.join(', ')) + }); + } + } + else if (schema.type) { + if (!matchesType(schema.type)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.errorMessage || localize('typeMismatchWarning', 'Incorrect type. Expected "{0}".', schema.type) + }); + } + } + if (Array.isArray(schema.allOf)) { + for (var _i = 0, _a = schema.allOf; _i < _a.length; _i++) { + var subSchemaRef = _a[_i]; + validate(node, asSchema(subSchemaRef), validationResult, matchingSchemas); + } + } + var notSchema = asSchema(schema.not); + if (notSchema) { + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, notSchema, subValidationResult, subMatchingSchemas); + if (!subValidationResult.hasProblems()) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('notSchemaWarning', "Matches a schema that is not allowed.") + }); + } + for (var _b = 0, _c = subMatchingSchemas.schemas; _b < _c.length; _b++) { + var ms = _c[_b]; + ms.inverted = !ms.inverted; + matchingSchemas.add(ms); + } + } + var testAlternatives = function (alternatives, maxOneMatch) { + var matches = []; + // remember the best match that is used for error messages + var bestMatch = undefined; + for (var _i = 0, alternatives_1 = alternatives; _i < alternatives_1.length; _i++) { + var subSchemaRef = alternatives_1[_i]; + var subSchema = asSchema(subSchemaRef); + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, subSchema, subValidationResult, subMatchingSchemas); + if (!subValidationResult.hasProblems()) { + matches.push(subSchema); + } + if (!bestMatch) { + bestMatch = { schema: subSchema, validationResult: subValidationResult, matchingSchemas: subMatchingSchemas }; + } + else { + if (!maxOneMatch && !subValidationResult.hasProblems() && !bestMatch.validationResult.hasProblems()) { + // no errors, both are equally good matches + bestMatch.matchingSchemas.merge(subMatchingSchemas); + bestMatch.validationResult.propertiesMatches += subValidationResult.propertiesMatches; + bestMatch.validationResult.propertiesValueMatches += subValidationResult.propertiesValueMatches; + } + else { + var compareResult = subValidationResult.compare(bestMatch.validationResult); + if (compareResult > 0) { + // our node is the best matching so far + bestMatch = { schema: subSchema, validationResult: subValidationResult, matchingSchemas: subMatchingSchemas }; + } + else if (compareResult === 0) { + // there's already a best matching but we are as good + bestMatch.matchingSchemas.merge(subMatchingSchemas); + bestMatch.validationResult.mergeEnumValues(subValidationResult); + } + } + } + } + if (matches.length > 1 && maxOneMatch) { + validationResult.problems.push({ + location: { offset: node.offset, length: 1 }, + message: localize('oneOfWarning', "Matches multiple schemas when only one must validate.") + }); + } + if (bestMatch) { + validationResult.merge(bestMatch.validationResult); + validationResult.propertiesMatches += bestMatch.validationResult.propertiesMatches; + validationResult.propertiesValueMatches += bestMatch.validationResult.propertiesValueMatches; + matchingSchemas.merge(bestMatch.matchingSchemas); + } + return matches.length; + }; + if (Array.isArray(schema.anyOf)) { + testAlternatives(schema.anyOf, false); + } + if (Array.isArray(schema.oneOf)) { + testAlternatives(schema.oneOf, true); + } + var testBranch = function (schema) { + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, asSchema(schema), subValidationResult, subMatchingSchemas); + validationResult.merge(subValidationResult); + validationResult.propertiesMatches += subValidationResult.propertiesMatches; + validationResult.propertiesValueMatches += subValidationResult.propertiesValueMatches; + matchingSchemas.merge(subMatchingSchemas); + }; + var testCondition = function (ifSchema, thenSchema, elseSchema) { + var subSchema = asSchema(ifSchema); + var subValidationResult = new ValidationResult(); + var subMatchingSchemas = matchingSchemas.newSub(); + validate(node, subSchema, subValidationResult, subMatchingSchemas); + matchingSchemas.merge(subMatchingSchemas); + if (!subValidationResult.hasProblems()) { + if (thenSchema) { + testBranch(thenSchema); + } + } + else if (elseSchema) { + testBranch(elseSchema); + } + }; + var ifSchema = asSchema(schema.if); + if (ifSchema) { + testCondition(ifSchema, asSchema(schema.then), asSchema(schema.else)); + } + if (Array.isArray(schema.enum)) { + var val = getNodeValue(node); + var enumValueMatch = false; + for (var _d = 0, _e = schema.enum; _d < _e.length; _d++) { + var e = _e[_d]; + if (objects_1.equals(val, e)) { + enumValueMatch = true; + break; + } + } + validationResult.enumValues = schema.enum; + validationResult.enumValueMatch = enumValueMatch; + if (!enumValueMatch) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + code: jsonLanguageTypes_1.ErrorCode.EnumValueMismatch, + message: schema.errorMessage || localize('enumWarning', 'Value is not accepted. Valid values: {0}.', schema.enum.map(function (v) { return JSON.stringify(v); }).join(', ')) + }); + } + } + if (objects_1.isDefined(schema.const)) { + var val = getNodeValue(node); + if (!objects_1.equals(val, schema.const)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + code: jsonLanguageTypes_1.ErrorCode.EnumValueMismatch, + message: schema.errorMessage || localize('constWarning', 'Value must be {0}.', JSON.stringify(schema.const)) + }); + validationResult.enumValueMatch = false; + } + else { + validationResult.enumValueMatch = true; + } + validationResult.enumValues = [schema.const]; + } + if (schema.deprecationMessage && node.parent) { + validationResult.problems.push({ + location: { offset: node.parent.offset, length: node.parent.length }, + severity: jsonLanguageTypes_1.DiagnosticSeverity.Warning, + message: schema.deprecationMessage, + code: jsonLanguageTypes_1.ErrorCode.Deprecated + }); + } + } + function _validateNumberNode(node, schema, validationResult, matchingSchemas) { + var val = node.value; + function normalizeFloats(float) { + var _a; + var parts = /^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(float.toString()); + return parts && { + value: Number(parts[1] + (parts[2] || '')), + multiplier: (((_a = parts[2]) === null || _a === void 0 ? void 0 : _a.length) || 0) - (parseInt(parts[3]) || 0) + }; + } + ; + if (objects_1.isNumber(schema.multipleOf)) { + var remainder = -1; + if (Number.isInteger(schema.multipleOf)) { + remainder = val % schema.multipleOf; + } + else { + var normMultipleOf = normalizeFloats(schema.multipleOf); + var normValue = normalizeFloats(val); + if (normMultipleOf && normValue) { + var multiplier = Math.pow(10, Math.abs(normValue.multiplier - normMultipleOf.multiplier)); + if (normValue.multiplier < normMultipleOf.multiplier) { + normValue.value *= multiplier; + } + else { + normMultipleOf.value *= multiplier; + } + remainder = normValue.value % normMultipleOf.value; + } + } + if (remainder !== 0) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('multipleOfWarning', 'Value is not divisible by {0}.', schema.multipleOf) + }); + } + } + function getExclusiveLimit(limit, exclusive) { + if (objects_1.isNumber(exclusive)) { + return exclusive; + } + if (objects_1.isBoolean(exclusive) && exclusive) { + return limit; + } + return undefined; + } + function getLimit(limit, exclusive) { + if (!objects_1.isBoolean(exclusive) || !exclusive) { + return limit; + } + return undefined; + } + var exclusiveMinimum = getExclusiveLimit(schema.minimum, schema.exclusiveMinimum); + if (objects_1.isNumber(exclusiveMinimum) && val <= exclusiveMinimum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('exclusiveMinimumWarning', 'Value is below the exclusive minimum of {0}.', exclusiveMinimum) + }); + } + var exclusiveMaximum = getExclusiveLimit(schema.maximum, schema.exclusiveMaximum); + if (objects_1.isNumber(exclusiveMaximum) && val >= exclusiveMaximum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('exclusiveMaximumWarning', 'Value is above the exclusive maximum of {0}.', exclusiveMaximum) + }); + } + var minimum = getLimit(schema.minimum, schema.exclusiveMinimum); + if (objects_1.isNumber(minimum) && val < minimum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('minimumWarning', 'Value is below the minimum of {0}.', minimum) + }); + } + var maximum = getLimit(schema.maximum, schema.exclusiveMaximum); + if (objects_1.isNumber(maximum) && val > maximum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('maximumWarning', 'Value is above the maximum of {0}.', maximum) + }); + } + } + function _validateStringNode(node, schema, validationResult, matchingSchemas) { + if (objects_1.isNumber(schema.minLength) && node.value.length < schema.minLength) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('minLengthWarning', 'String is shorter than the minimum length of {0}.', schema.minLength) + }); + } + if (objects_1.isNumber(schema.maxLength) && node.value.length > schema.maxLength) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('maxLengthWarning', 'String is longer than the maximum length of {0}.', schema.maxLength) + }); + } + if (objects_1.isString(schema.pattern)) { + var regex = strings_1.extendedRegExp(schema.pattern); + if (!regex.test(node.value)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.patternErrorMessage || schema.errorMessage || localize('patternWarning', 'String does not match the pattern of "{0}".', schema.pattern) + }); + } + } + if (schema.format) { + switch (schema.format) { + case 'uri': + case 'uri-reference': + { + var errorMessage = void 0; + if (!node.value) { + errorMessage = localize('uriEmpty', 'URI expected.'); + } + else { + var match = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(node.value); + if (!match) { + errorMessage = localize('uriMissing', 'URI is expected.'); + } + else if (!match[2] && schema.format === 'uri') { + errorMessage = localize('uriSchemeMissing', 'URI with a scheme is expected.'); + } + } + if (errorMessage) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.patternErrorMessage || schema.errorMessage || localize('uriFormatWarning', 'String is not a URI: {0}', errorMessage) + }); + } + } + break; + case 'color-hex': + case 'date-time': + case 'date': + case 'time': + case 'email': + var format = formats[schema.format]; + if (!node.value || !format.pattern.exec(node.value)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.patternErrorMessage || schema.errorMessage || format.errorMessage + }); + } + default: + } + } + } + function _validateArrayNode(node, schema, validationResult, matchingSchemas) { + if (Array.isArray(schema.items)) { + var subSchemas = schema.items; + for (var index = 0; index < subSchemas.length; index++) { + var subSchemaRef = subSchemas[index]; + var subSchema = asSchema(subSchemaRef); + var itemValidationResult = new ValidationResult(); + var item = node.items[index]; + if (item) { + validate(item, subSchema, itemValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(itemValidationResult); + } + else if (node.items.length >= subSchemas.length) { + validationResult.propertiesValueMatches++; + } + } + if (node.items.length > subSchemas.length) { + if (typeof schema.additionalItems === 'object') { + for (var i = subSchemas.length; i < node.items.length; i++) { + var itemValidationResult = new ValidationResult(); + validate(node.items[i], schema.additionalItems, itemValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(itemValidationResult); + } + } + else if (schema.additionalItems === false) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('additionalItemsWarning', 'Array has too many items according to schema. Expected {0} or fewer.', subSchemas.length) + }); + } + } + } + else { + var itemSchema = asSchema(schema.items); + if (itemSchema) { + for (var _i = 0, _a = node.items; _i < _a.length; _i++) { + var item = _a[_i]; + var itemValidationResult = new ValidationResult(); + validate(item, itemSchema, itemValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(itemValidationResult); + } + } + } + var containsSchema = asSchema(schema.contains); + if (containsSchema) { + var doesContain = node.items.some(function (item) { + var itemValidationResult = new ValidationResult(); + validate(item, containsSchema, itemValidationResult, NoOpSchemaCollector.instance); + return !itemValidationResult.hasProblems(); + }); + if (!doesContain) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: schema.errorMessage || localize('requiredItemMissingWarning', 'Array does not contain required item.') + }); + } + } + if (objects_1.isNumber(schema.minItems) && node.items.length < schema.minItems) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('minItemsWarning', 'Array has too few items. Expected {0} or more.', schema.minItems) + }); + } + if (objects_1.isNumber(schema.maxItems) && node.items.length > schema.maxItems) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('maxItemsWarning', 'Array has too many items. Expected {0} or fewer.', schema.maxItems) + }); + } + if (schema.uniqueItems === true) { + var values_1 = getNodeValue(node); + var duplicates = values_1.some(function (value, index) { + return index !== values_1.lastIndexOf(value); + }); + if (duplicates) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('uniqueItemsWarning', 'Array has duplicate items.') + }); + } + } + } + function _validateObjectNode(node, schema, validationResult, matchingSchemas) { + var seenKeys = Object.create(null); + var unprocessedProperties = []; + for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { + var propertyNode = _a[_i]; + var key = propertyNode.keyNode.value; + seenKeys[key] = propertyNode.valueNode; + unprocessedProperties.push(key); + } + if (Array.isArray(schema.required)) { + for (var _b = 0, _c = schema.required; _b < _c.length; _b++) { + var propertyName = _c[_b]; + if (!seenKeys[propertyName]) { + var keyNode = node.parent && node.parent.type === 'property' && node.parent.keyNode; + var location = keyNode ? { offset: keyNode.offset, length: keyNode.length } : { offset: node.offset, length: 1 }; + validationResult.problems.push({ + location: location, + message: localize('MissingRequiredPropWarning', 'Missing property "{0}".', propertyName) + }); + } + } + } + var propertyProcessed = function (prop) { + var index = unprocessedProperties.indexOf(prop); + while (index >= 0) { + unprocessedProperties.splice(index, 1); + index = unprocessedProperties.indexOf(prop); + } + }; + if (schema.properties) { + for (var _d = 0, _e = Object.keys(schema.properties); _d < _e.length; _d++) { + var propertyName = _e[_d]; + propertyProcessed(propertyName); + var propertySchema = schema.properties[propertyName]; + var child = seenKeys[propertyName]; + if (child) { + if (objects_1.isBoolean(propertySchema)) { + if (!propertySchema) { + var propertyNode = child.parent; + validationResult.problems.push({ + location: { offset: propertyNode.keyNode.offset, length: propertyNode.keyNode.length }, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', 'Property {0} is not allowed.', propertyName) + }); + } + else { + validationResult.propertiesMatches++; + validationResult.propertiesValueMatches++; + } + } + else { + var propertyValidationResult = new ValidationResult(); + validate(child, propertySchema, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + } + if (schema.patternProperties) { + for (var _f = 0, _g = Object.keys(schema.patternProperties); _f < _g.length; _f++) { + var propertyPattern = _g[_f]; + var regex = strings_1.extendedRegExp(propertyPattern); + for (var _h = 0, _j = unprocessedProperties.slice(0); _h < _j.length; _h++) { + var propertyName = _j[_h]; + if (regex.test(propertyName)) { + propertyProcessed(propertyName); + var child = seenKeys[propertyName]; + if (child) { + var propertySchema = schema.patternProperties[propertyPattern]; + if (objects_1.isBoolean(propertySchema)) { + if (!propertySchema) { + var propertyNode = child.parent; + validationResult.problems.push({ + location: { offset: propertyNode.keyNode.offset, length: propertyNode.keyNode.length }, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', 'Property {0} is not allowed.', propertyName) + }); + } + else { + validationResult.propertiesMatches++; + validationResult.propertiesValueMatches++; + } + } + else { + var propertyValidationResult = new ValidationResult(); + validate(child, propertySchema, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + } + } + } + if (typeof schema.additionalProperties === 'object') { + for (var _k = 0, unprocessedProperties_1 = unprocessedProperties; _k < unprocessedProperties_1.length; _k++) { + var propertyName = unprocessedProperties_1[_k]; + var child = seenKeys[propertyName]; + if (child) { + var propertyValidationResult = new ValidationResult(); + validate(child, schema.additionalProperties, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + else if (schema.additionalProperties === false) { + if (unprocessedProperties.length > 0) { + for (var _l = 0, unprocessedProperties_2 = unprocessedProperties; _l < unprocessedProperties_2.length; _l++) { + var propertyName = unprocessedProperties_2[_l]; + var child = seenKeys[propertyName]; + if (child) { + var propertyNode = child.parent; + validationResult.problems.push({ + location: { offset: propertyNode.keyNode.offset, length: propertyNode.keyNode.length }, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', 'Property {0} is not allowed.', propertyName) + }); + } + } + } + } + if (objects_1.isNumber(schema.maxProperties)) { + if (node.properties.length > schema.maxProperties) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('MaxPropWarning', 'Object has more properties than limit of {0}.', schema.maxProperties) + }); + } + } + if (objects_1.isNumber(schema.minProperties)) { + if (node.properties.length < schema.minProperties) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('MinPropWarning', 'Object has fewer properties than the required number of {0}', schema.minProperties) + }); + } + } + if (schema.dependencies) { + for (var _m = 0, _o = Object.keys(schema.dependencies); _m < _o.length; _m++) { + var key = _o[_m]; + var prop = seenKeys[key]; + if (prop) { + var propertyDep = schema.dependencies[key]; + if (Array.isArray(propertyDep)) { + for (var _p = 0, propertyDep_1 = propertyDep; _p < propertyDep_1.length; _p++) { + var requiredProp = propertyDep_1[_p]; + if (!seenKeys[requiredProp]) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + message: localize('RequiredDependentPropWarning', 'Object is missing property {0} required by property {1}.', requiredProp, key) + }); + } + else { + validationResult.propertiesValueMatches++; + } + } + } + else { + var propertySchema = asSchema(propertyDep); + if (propertySchema) { + var propertyValidationResult = new ValidationResult(); + validate(node, propertySchema, propertyValidationResult, matchingSchemas); + validationResult.mergePropertyMatch(propertyValidationResult); + } + } + } + } + } + var propertyNames = asSchema(schema.propertyNames); + if (propertyNames) { + for (var _q = 0, _r = node.properties; _q < _r.length; _q++) { + var f = _r[_q]; + var key = f.keyNode; + if (key) { + validate(key, propertyNames, validationResult, NoOpSchemaCollector.instance); + } + } + } + } + } + function parse(textDocument, config) { + var problems = []; + var lastProblemOffset = -1; + var text = textDocument.getText(); + var scanner = Json.createScanner(text, false); + var commentRanges = config && config.collectComments ? [] : undefined; + function _scanNext() { + while (true) { + var token_1 = scanner.scan(); + _checkScanError(); + switch (token_1) { + case 12 /* LineCommentTrivia */: + case 13 /* BlockCommentTrivia */: + if (Array.isArray(commentRanges)) { + commentRanges.push(jsonLanguageTypes_1.Range.create(textDocument.positionAt(scanner.getTokenOffset()), textDocument.positionAt(scanner.getTokenOffset() + scanner.getTokenLength()))); + } + break; + case 15 /* Trivia */: + case 14 /* LineBreakTrivia */: + break; + default: + return token_1; + } + } + } + function _accept(token) { + if (scanner.getToken() === token) { + _scanNext(); + return true; + } + return false; + } + function _errorAtRange(message, code, startOffset, endOffset, severity) { + if (severity === void 0) { severity = jsonLanguageTypes_1.DiagnosticSeverity.Error; } + if (problems.length === 0 || startOffset !== lastProblemOffset) { + var range = jsonLanguageTypes_1.Range.create(textDocument.positionAt(startOffset), textDocument.positionAt(endOffset)); + problems.push(jsonLanguageTypes_1.Diagnostic.create(range, message, severity, code, textDocument.languageId)); + lastProblemOffset = startOffset; + } + } + function _error(message, code, node, skipUntilAfter, skipUntil) { + if (node === void 0) { node = undefined; } + if (skipUntilAfter === void 0) { skipUntilAfter = []; } + if (skipUntil === void 0) { skipUntil = []; } + var start = scanner.getTokenOffset(); + var end = scanner.getTokenOffset() + scanner.getTokenLength(); + if (start === end && start > 0) { + start--; + while (start > 0 && /\s/.test(text.charAt(start))) { + start--; + } + end = start + 1; + } + _errorAtRange(message, code, start, end); + if (node) { + _finalize(node, false); + } + if (skipUntilAfter.length + skipUntil.length > 0) { + var token_2 = scanner.getToken(); + while (token_2 !== 17 /* EOF */) { + if (skipUntilAfter.indexOf(token_2) !== -1) { + _scanNext(); + break; + } + else if (skipUntil.indexOf(token_2) !== -1) { + break; + } + token_2 = _scanNext(); + } + } + return node; + } + function _checkScanError() { + switch (scanner.getTokenError()) { + case 4 /* InvalidUnicode */: + _error(localize('InvalidUnicode', 'Invalid unicode sequence in string.'), jsonLanguageTypes_1.ErrorCode.InvalidUnicode); + return true; + case 5 /* InvalidEscapeCharacter */: + _error(localize('InvalidEscapeCharacter', 'Invalid escape character in string.'), jsonLanguageTypes_1.ErrorCode.InvalidEscapeCharacter); + return true; + case 3 /* UnexpectedEndOfNumber */: + _error(localize('UnexpectedEndOfNumber', 'Unexpected end of number.'), jsonLanguageTypes_1.ErrorCode.UnexpectedEndOfNumber); + return true; + case 1 /* UnexpectedEndOfComment */: + _error(localize('UnexpectedEndOfComment', 'Unexpected end of comment.'), jsonLanguageTypes_1.ErrorCode.UnexpectedEndOfComment); + return true; + case 2 /* UnexpectedEndOfString */: + _error(localize('UnexpectedEndOfString', 'Unexpected end of string.'), jsonLanguageTypes_1.ErrorCode.UnexpectedEndOfString); + return true; + case 6 /* InvalidCharacter */: + _error(localize('InvalidCharacter', 'Invalid characters in string. Control characters must be escaped.'), jsonLanguageTypes_1.ErrorCode.InvalidCharacter); + return true; + } + return false; + } + function _finalize(node, scanNext) { + node.length = scanner.getTokenOffset() + scanner.getTokenLength() - node.offset; + if (scanNext) { + _scanNext(); + } + return node; + } + function _parseArray(parent) { + if (scanner.getToken() !== 3 /* OpenBracketToken */) { + return undefined; + } + var node = new ArrayASTNodeImpl(parent, scanner.getTokenOffset()); + _scanNext(); // consume OpenBracketToken + var count = 0; + var needsComma = false; + while (scanner.getToken() !== 4 /* CloseBracketToken */ && scanner.getToken() !== 17 /* EOF */) { + if (scanner.getToken() === 5 /* CommaToken */) { + if (!needsComma) { + _error(localize('ValueExpected', 'Value expected'), jsonLanguageTypes_1.ErrorCode.ValueExpected); + } + var commaOffset = scanner.getTokenOffset(); + _scanNext(); // consume comma + if (scanner.getToken() === 4 /* CloseBracketToken */) { + if (needsComma) { + _errorAtRange(localize('TrailingComma', 'Trailing comma'), jsonLanguageTypes_1.ErrorCode.TrailingComma, commaOffset, commaOffset + 1); + } + continue; + } + } + else if (needsComma) { + _error(localize('ExpectedComma', 'Expected comma'), jsonLanguageTypes_1.ErrorCode.CommaExpected); + } + var item = _parseValue(node); + if (!item) { + _error(localize('PropertyExpected', 'Value expected'), jsonLanguageTypes_1.ErrorCode.ValueExpected, undefined, [], [4 /* CloseBracketToken */, 5 /* CommaToken */]); + } + else { + node.items.push(item); + } + needsComma = true; + } + if (scanner.getToken() !== 4 /* CloseBracketToken */) { + return _error(localize('ExpectedCloseBracket', 'Expected comma or closing bracket'), jsonLanguageTypes_1.ErrorCode.CommaOrCloseBacketExpected, node); + } + return _finalize(node, true); + } + var keyPlaceholder = new StringASTNodeImpl(undefined, 0, 0); + function _parseProperty(parent, keysSeen) { + var node = new PropertyASTNodeImpl(parent, scanner.getTokenOffset(), keyPlaceholder); + var key = _parseString(node); + if (!key) { + if (scanner.getToken() === 16 /* Unknown */) { + // give a more helpful error message + _error(localize('DoubleQuotesExpected', 'Property keys must be doublequoted'), jsonLanguageTypes_1.ErrorCode.Undefined); + var keyNode = new StringASTNodeImpl(node, scanner.getTokenOffset(), scanner.getTokenLength()); + keyNode.value = scanner.getTokenValue(); + key = keyNode; + _scanNext(); // consume Unknown + } + else { + return undefined; + } + } + node.keyNode = key; + var seen = keysSeen[key.value]; + if (seen) { + _errorAtRange(localize('DuplicateKeyWarning', "Duplicate object key"), jsonLanguageTypes_1.ErrorCode.DuplicateKey, node.keyNode.offset, node.keyNode.offset + node.keyNode.length, jsonLanguageTypes_1.DiagnosticSeverity.Warning); + if (typeof seen === 'object') { + _errorAtRange(localize('DuplicateKeyWarning', "Duplicate object key"), jsonLanguageTypes_1.ErrorCode.DuplicateKey, seen.keyNode.offset, seen.keyNode.offset + seen.keyNode.length, jsonLanguageTypes_1.DiagnosticSeverity.Warning); + } + keysSeen[key.value] = true; // if the same key is duplicate again, avoid duplicate error reporting + } + else { + keysSeen[key.value] = node; + } + if (scanner.getToken() === 6 /* ColonToken */) { + node.colonOffset = scanner.getTokenOffset(); + _scanNext(); // consume ColonToken + } + else { + _error(localize('ColonExpected', 'Colon expected'), jsonLanguageTypes_1.ErrorCode.ColonExpected); + if (scanner.getToken() === 10 /* StringLiteral */ && textDocument.positionAt(key.offset + key.length).line < textDocument.positionAt(scanner.getTokenOffset()).line) { + node.length = key.length; + return node; + } + } + var value = _parseValue(node); + if (!value) { + return _error(localize('ValueExpected', 'Value expected'), jsonLanguageTypes_1.ErrorCode.ValueExpected, node, [], [2 /* CloseBraceToken */, 5 /* CommaToken */]); + } + node.valueNode = value; + node.length = value.offset + value.length - node.offset; + return node; + } + function _parseObject(parent) { + if (scanner.getToken() !== 1 /* OpenBraceToken */) { + return undefined; + } + var node = new ObjectASTNodeImpl(parent, scanner.getTokenOffset()); + var keysSeen = Object.create(null); + _scanNext(); // consume OpenBraceToken + var needsComma = false; + while (scanner.getToken() !== 2 /* CloseBraceToken */ && scanner.getToken() !== 17 /* EOF */) { + if (scanner.getToken() === 5 /* CommaToken */) { + if (!needsComma) { + _error(localize('PropertyExpected', 'Property expected'), jsonLanguageTypes_1.ErrorCode.PropertyExpected); + } + var commaOffset = scanner.getTokenOffset(); + _scanNext(); // consume comma + if (scanner.getToken() === 2 /* CloseBraceToken */) { + if (needsComma) { + _errorAtRange(localize('TrailingComma', 'Trailing comma'), jsonLanguageTypes_1.ErrorCode.TrailingComma, commaOffset, commaOffset + 1); + } + continue; + } + } + else if (needsComma) { + _error(localize('ExpectedComma', 'Expected comma'), jsonLanguageTypes_1.ErrorCode.CommaExpected); + } + var property = _parseProperty(node, keysSeen); + if (!property) { + _error(localize('PropertyExpected', 'Property expected'), jsonLanguageTypes_1.ErrorCode.PropertyExpected, undefined, [], [2 /* CloseBraceToken */, 5 /* CommaToken */]); + } + else { + node.properties.push(property); + } + needsComma = true; + } + if (scanner.getToken() !== 2 /* CloseBraceToken */) { + return _error(localize('ExpectedCloseBrace', 'Expected comma or closing brace'), jsonLanguageTypes_1.ErrorCode.CommaOrCloseBraceExpected, node); + } + return _finalize(node, true); + } + function _parseString(parent) { + if (scanner.getToken() !== 10 /* StringLiteral */) { + return undefined; + } + var node = new StringASTNodeImpl(parent, scanner.getTokenOffset()); + node.value = scanner.getTokenValue(); + return _finalize(node, true); + } + function _parseNumber(parent) { + if (scanner.getToken() !== 11 /* NumericLiteral */) { + return undefined; + } + var node = new NumberASTNodeImpl(parent, scanner.getTokenOffset()); + if (scanner.getTokenError() === 0 /* None */) { + var tokenValue = scanner.getTokenValue(); + try { + var numberValue = JSON.parse(tokenValue); + if (!objects_1.isNumber(numberValue)) { + return _error(localize('InvalidNumberFormat', 'Invalid number format.'), jsonLanguageTypes_1.ErrorCode.Undefined, node); + } + node.value = numberValue; + } + catch (e) { + return _error(localize('InvalidNumberFormat', 'Invalid number format.'), jsonLanguageTypes_1.ErrorCode.Undefined, node); + } + node.isInteger = tokenValue.indexOf('.') === -1; + } + return _finalize(node, true); + } + function _parseLiteral(parent) { + var node; + switch (scanner.getToken()) { + case 7 /* NullKeyword */: + return _finalize(new NullASTNodeImpl(parent, scanner.getTokenOffset()), true); + case 8 /* TrueKeyword */: + return _finalize(new BooleanASTNodeImpl(parent, true, scanner.getTokenOffset()), true); + case 9 /* FalseKeyword */: + return _finalize(new BooleanASTNodeImpl(parent, false, scanner.getTokenOffset()), true); + default: + return undefined; + } + } + function _parseValue(parent) { + return _parseArray(parent) || _parseObject(parent) || _parseString(parent) || _parseNumber(parent) || _parseLiteral(parent); + } + var _root = undefined; + var token = _scanNext(); + if (token !== 17 /* EOF */) { + _root = _parseValue(_root); + if (!_root) { + _error(localize('Invalid symbol', 'Expected a JSON object, array or literal.'), jsonLanguageTypes_1.ErrorCode.Undefined); + } + else if (scanner.getToken() !== 17 /* EOF */) { + _error(localize('End of file expected', 'End of file expected.'), jsonLanguageTypes_1.ErrorCode.Undefined); + } + } + return new JSONDocument(_root, problems, commentRanges); + } + exports.parse = parse; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/configuration.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/configuration.js" index d116fa5a0247091b6514be4aa05c3fdffa9108ca..a0f13177635373c70f45cb5da845968b277ec534 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/configuration.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/configuration.js" @@ -1,3 +1,541 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50baf826322ce80df882f4e49906ce73a6a6d7b958910335788b6b043b0edade -size 25279 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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-nls"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.schemaContributions = void 0; + var nls = require("vscode-nls"); + var localize = nls.loadMessageBundle(); + exports.schemaContributions = { + schemaAssociations: [], + schemas: { + // refer to the latest schema + 'http://json-schema.org/schema#': { + $ref: 'http://json-schema.org/draft-07/schema#' + }, + // bundle the schema-schema to include (localized) descriptions + 'http://json-schema.org/draft-04/schema#': { + '$schema': 'http://json-schema.org/draft-04/schema#', + 'definitions': { + 'schemaArray': { + 'type': 'array', + 'minItems': 1, + 'items': { + '$ref': '#' + } + }, + 'positiveInteger': { + 'type': 'integer', + 'minimum': 0 + }, + 'positiveIntegerDefault0': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + }, + { + 'default': 0 + } + ] + }, + 'simpleTypes': { + 'type': 'string', + 'enum': [ + 'array', + 'boolean', + 'integer', + 'null', + 'number', + 'object', + 'string' + ] + }, + 'stringArray': { + 'type': 'array', + 'items': { + 'type': 'string' + }, + 'minItems': 1, + 'uniqueItems': true + } + }, + 'type': 'object', + 'properties': { + 'id': { + 'type': 'string', + 'format': 'uri' + }, + '$schema': { + 'type': 'string', + 'format': 'uri' + }, + 'title': { + 'type': 'string' + }, + 'description': { + 'type': 'string' + }, + 'default': {}, + 'multipleOf': { + 'type': 'number', + 'minimum': 0, + 'exclusiveMinimum': true + }, + 'maximum': { + 'type': 'number' + }, + 'exclusiveMaximum': { + 'type': 'boolean', + 'default': false + }, + 'minimum': { + 'type': 'number' + }, + 'exclusiveMinimum': { + 'type': 'boolean', + 'default': false + }, + 'maxLength': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + } + ] + }, + 'minLength': { + 'allOf': [ + { + '$ref': '#/definitions/positiveIntegerDefault0' + } + ] + }, + 'pattern': { + 'type': 'string', + 'format': 'regex' + }, + 'additionalItems': { + 'anyOf': [ + { + 'type': 'boolean' + }, + { + '$ref': '#' + } + ], + 'default': {} + }, + 'items': { + 'anyOf': [ + { + '$ref': '#' + }, + { + '$ref': '#/definitions/schemaArray' + } + ], + 'default': {} + }, + 'maxItems': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + } + ] + }, + 'minItems': { + 'allOf': [ + { + '$ref': '#/definitions/positiveIntegerDefault0' + } + ] + }, + 'uniqueItems': { + 'type': 'boolean', + 'default': false + }, + 'maxProperties': { + 'allOf': [ + { + '$ref': '#/definitions/positiveInteger' + } + ] + }, + 'minProperties': { + 'allOf': [ + { + '$ref': '#/definitions/positiveIntegerDefault0' + } + ] + }, + 'required': { + 'allOf': [ + { + '$ref': '#/definitions/stringArray' + } + ] + }, + 'additionalProperties': { + 'anyOf': [ + { + 'type': 'boolean' + }, + { + '$ref': '#' + } + ], + 'default': {} + }, + 'definitions': { + 'type': 'object', + 'additionalProperties': { + '$ref': '#' + }, + 'default': {} + }, + 'properties': { + 'type': 'object', + 'additionalProperties': { + '$ref': '#' + }, + 'default': {} + }, + 'patternProperties': { + 'type': 'object', + 'additionalProperties': { + '$ref': '#' + }, + 'default': {} + }, + 'dependencies': { + 'type': 'object', + 'additionalProperties': { + 'anyOf': [ + { + '$ref': '#' + }, + { + '$ref': '#/definitions/stringArray' + } + ] + } + }, + 'enum': { + 'type': 'array', + 'minItems': 1, + 'uniqueItems': true + }, + 'type': { + 'anyOf': [ + { + '$ref': '#/definitions/simpleTypes' + }, + { + 'type': 'array', + 'items': { + '$ref': '#/definitions/simpleTypes' + }, + 'minItems': 1, + 'uniqueItems': true + } + ] + }, + 'format': { + 'anyOf': [ + { + 'type': 'string', + 'enum': [ + 'date-time', + 'uri', + 'email', + 'hostname', + 'ipv4', + 'ipv6', + 'regex' + ] + }, + { + 'type': 'string' + } + ] + }, + 'allOf': { + 'allOf': [ + { + '$ref': '#/definitions/schemaArray' + } + ] + }, + 'anyOf': { + 'allOf': [ + { + '$ref': '#/definitions/schemaArray' + } + ] + }, + 'oneOf': { + 'allOf': [ + { + '$ref': '#/definitions/schemaArray' + } + ] + }, + 'not': { + 'allOf': [ + { + '$ref': '#' + } + ] + } + }, + 'dependencies': { + 'exclusiveMaximum': [ + 'maximum' + ], + 'exclusiveMinimum': [ + 'minimum' + ] + }, + 'default': {} + }, + 'http://json-schema.org/draft-07/schema#': { + 'definitions': { + 'schemaArray': { + 'type': 'array', + 'minItems': 1, + 'items': { '$ref': '#' } + }, + 'nonNegativeInteger': { + 'type': 'integer', + 'minimum': 0 + }, + 'nonNegativeIntegerDefault0': { + 'allOf': [ + { '$ref': '#/definitions/nonNegativeInteger' }, + { 'default': 0 } + ] + }, + 'simpleTypes': { + 'enum': [ + 'array', + 'boolean', + 'integer', + 'null', + 'number', + 'object', + 'string' + ] + }, + 'stringArray': { + 'type': 'array', + 'items': { 'type': 'string' }, + 'uniqueItems': true, + 'default': [] + } + }, + 'type': ['object', 'boolean'], + 'properties': { + '$id': { + 'type': 'string', + 'format': 'uri-reference' + }, + '$schema': { + 'type': 'string', + 'format': 'uri' + }, + '$ref': { + 'type': 'string', + 'format': 'uri-reference' + }, + '$comment': { + 'type': 'string' + }, + 'title': { + 'type': 'string' + }, + 'description': { + 'type': 'string' + }, + 'default': true, + 'readOnly': { + 'type': 'boolean', + 'default': false + }, + 'examples': { + 'type': 'array', + 'items': true + }, + 'multipleOf': { + 'type': 'number', + 'exclusiveMinimum': 0 + }, + 'maximum': { + 'type': 'number' + }, + 'exclusiveMaximum': { + 'type': 'number' + }, + 'minimum': { + 'type': 'number' + }, + 'exclusiveMinimum': { + 'type': 'number' + }, + 'maxLength': { '$ref': '#/definitions/nonNegativeInteger' }, + 'minLength': { '$ref': '#/definitions/nonNegativeIntegerDefault0' }, + 'pattern': { + 'type': 'string', + 'format': 'regex' + }, + 'additionalItems': { '$ref': '#' }, + 'items': { + 'anyOf': [ + { '$ref': '#' }, + { '$ref': '#/definitions/schemaArray' } + ], + 'default': true + }, + 'maxItems': { '$ref': '#/definitions/nonNegativeInteger' }, + 'minItems': { '$ref': '#/definitions/nonNegativeIntegerDefault0' }, + 'uniqueItems': { + 'type': 'boolean', + 'default': false + }, + 'contains': { '$ref': '#' }, + 'maxProperties': { '$ref': '#/definitions/nonNegativeInteger' }, + 'minProperties': { '$ref': '#/definitions/nonNegativeIntegerDefault0' }, + 'required': { '$ref': '#/definitions/stringArray' }, + 'additionalProperties': { '$ref': '#' }, + 'definitions': { + 'type': 'object', + 'additionalProperties': { '$ref': '#' }, + 'default': {} + }, + 'properties': { + 'type': 'object', + 'additionalProperties': { '$ref': '#' }, + 'default': {} + }, + 'patternProperties': { + 'type': 'object', + 'additionalProperties': { '$ref': '#' }, + 'propertyNames': { 'format': 'regex' }, + 'default': {} + }, + 'dependencies': { + 'type': 'object', + 'additionalProperties': { + 'anyOf': [ + { '$ref': '#' }, + { '$ref': '#/definitions/stringArray' } + ] + } + }, + 'propertyNames': { '$ref': '#' }, + 'const': true, + 'enum': { + 'type': 'array', + 'items': true, + 'minItems': 1, + 'uniqueItems': true + }, + 'type': { + 'anyOf': [ + { '$ref': '#/definitions/simpleTypes' }, + { + 'type': 'array', + 'items': { '$ref': '#/definitions/simpleTypes' }, + 'minItems': 1, + 'uniqueItems': true + } + ] + }, + 'format': { 'type': 'string' }, + 'contentMediaType': { 'type': 'string' }, + 'contentEncoding': { 'type': 'string' }, + 'if': { '$ref': '#' }, + 'then': { '$ref': '#' }, + 'else': { '$ref': '#' }, + 'allOf': { '$ref': '#/definitions/schemaArray' }, + 'anyOf': { '$ref': '#/definitions/schemaArray' }, + 'oneOf': { '$ref': '#/definitions/schemaArray' }, + 'not': { '$ref': '#' } + }, + 'default': true + } + } + }; + var descriptions = { + id: localize('schema.json.id', "A unique identifier for the schema."), + $schema: localize('schema.json.$schema', "The schema to verify this document against."), + title: localize('schema.json.title', "A descriptive title of the element."), + description: localize('schema.json.description', "A long description of the element. Used in hover menus and suggestions."), + default: localize('schema.json.default', "A default value. Used by suggestions."), + multipleOf: localize('schema.json.multipleOf', "A number that should cleanly divide the current value (i.e. have no remainder)."), + maximum: localize('schema.json.maximum', "The maximum numerical value, inclusive by default."), + exclusiveMaximum: localize('schema.json.exclusiveMaximum', "Makes the maximum property exclusive."), + minimum: localize('schema.json.minimum', "The minimum numerical value, inclusive by default."), + exclusiveMinimum: localize('schema.json.exclusiveMininum', "Makes the minimum property exclusive."), + maxLength: localize('schema.json.maxLength', "The maximum length of a string."), + minLength: localize('schema.json.minLength', "The minimum length of a string."), + pattern: localize('schema.json.pattern', "A regular expression to match the string against. It is not implicitly anchored."), + additionalItems: localize('schema.json.additionalItems', "For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."), + items: localize('schema.json.items', "For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."), + maxItems: localize('schema.json.maxItems', "The maximum number of items that can be inside an array. Inclusive."), + minItems: localize('schema.json.minItems', "The minimum number of items that can be inside an array. Inclusive."), + uniqueItems: localize('schema.json.uniqueItems', "If all of the items in the array must be unique. Defaults to false."), + maxProperties: localize('schema.json.maxProperties', "The maximum number of properties an object can have. Inclusive."), + minProperties: localize('schema.json.minProperties', "The minimum number of properties an object can have. Inclusive."), + required: localize('schema.json.required', "An array of strings that lists the names of all properties required on this object."), + additionalProperties: localize('schema.json.additionalProperties', "Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."), + definitions: localize('schema.json.definitions', "Not used for validation. Place subschemas here that you wish to reference inline with $ref."), + properties: localize('schema.json.properties', "A map of property names to schemas for each property."), + patternProperties: localize('schema.json.patternProperties', "A map of regular expressions on property names to schemas for matching properties."), + dependencies: localize('schema.json.dependencies', "A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."), + enum: localize('schema.json.enum', "The set of literal values that are valid."), + type: localize('schema.json.type', "Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."), + format: localize('schema.json.format', "Describes the format expected for the value."), + allOf: localize('schema.json.allOf', "An array of schemas, all of which must match."), + anyOf: localize('schema.json.anyOf', "An array of schemas, where at least one must match."), + oneOf: localize('schema.json.oneOf', "An array of schemas, exactly one of which must match."), + not: localize('schema.json.not', "A schema which must not match."), + $id: localize('schema.json.$id', "A unique identifier for the schema."), + $ref: localize('schema.json.$ref', "Reference a definition hosted on any location."), + $comment: localize('schema.json.$comment', "Comments from schema authors to readers or maintainers of the schema."), + readOnly: localize('schema.json.readOnly', "Indicates that the value of the instance is managed exclusively by the owning authority."), + examples: localize('schema.json.examples', "Sample JSON values associated with a particular schema, for the purpose of illustrating usage."), + contains: localize('schema.json.contains', "An array instance is valid against \"contains\" if at least one of its elements is valid against the given schema."), + propertyNames: localize('schema.json.propertyNames', "If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."), + const: localize('schema.json.const', "An instance validates successfully against this keyword if its value is equal to the value of the keyword."), + contentMediaType: localize('schema.json.contentMediaType', "Describes the media type of a string property."), + contentEncoding: localize('schema.json.contentEncoding', "Describes the content encoding of a string property."), + if: localize('schema.json.if', "The validation outcome of the \"if\" subschema controls which of the \"then\" or \"else\" keywords are evaluated."), + then: localize('schema.json.then', "The \"if\" subschema is used for validation when the \"if\" subschema succeeds."), + else: localize('schema.json.else', "The \"else\" subschema is used for validation when the \"if\" subschema fails.") + }; + for (var schemaName in exports.schemaContributions.schemas) { + var schema = exports.schemaContributions.schemas[schemaName]; + for (var property in schema.properties) { + var propertyObject = schema.properties[property]; + if (typeof propertyObject === 'boolean') { + propertyObject = schema.properties[property] = {}; + } + var description = descriptions[property]; + if (description) { + propertyObject['description'] = description; + } + else { + console.log(property + ": localize('schema.json." + property + "', \"\")"); + } + } + } +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonCompletion.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonCompletion.js" index cdc32016333ba10dd7ea94f9ba88169f00c96b49..602cd2df8a4b357503bae3774ab406a07089fb02 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonCompletion.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonCompletion.js" @@ -1,3 +1,947 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:576eb397054b08294b67a4cf1aa106834995b58dcf32919c4634a6c23c340907 -size 50452 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "../parser/jsonParser", "jsonc-parser", "../utils/json", "../utils/strings", "../utils/objects", "../jsonLanguageTypes", "vscode-nls"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.JSONCompletion = void 0; + var Parser = require("../parser/jsonParser"); + var Json = require("jsonc-parser"); + var json_1 = require("../utils/json"); + var strings_1 = require("../utils/strings"); + var objects_1 = require("../utils/objects"); + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + var nls = require("vscode-nls"); + var localize = nls.loadMessageBundle(); + var valueCommitCharacters = [',', '}', ']']; + var propertyCommitCharacters = [':']; + var JSONCompletion = /** @class */ (function () { + function JSONCompletion(schemaService, contributions, promiseConstructor, clientCapabilities) { + if (contributions === void 0) { contributions = []; } + if (promiseConstructor === void 0) { promiseConstructor = Promise; } + if (clientCapabilities === void 0) { clientCapabilities = {}; } + this.schemaService = schemaService; + this.contributions = contributions; + this.promiseConstructor = promiseConstructor; + this.clientCapabilities = clientCapabilities; + } + JSONCompletion.prototype.doResolve = function (item) { + for (var i = this.contributions.length - 1; i >= 0; i--) { + var resolveCompletion = this.contributions[i].resolveCompletion; + if (resolveCompletion) { + var resolver = resolveCompletion(item); + if (resolver) { + return resolver; + } + } + } + return this.promiseConstructor.resolve(item); + }; + JSONCompletion.prototype.doComplete = function (document, position, doc) { + var _this = this; + var result = { + items: [], + isIncomplete: false + }; + var text = document.getText(); + var offset = document.offsetAt(position); + var node = doc.getNodeFromOffset(offset, true); + if (this.isInComment(document, node ? node.offset : 0, offset)) { + return Promise.resolve(result); + } + if (node && (offset === node.offset + node.length) && offset > 0) { + var ch = text[offset - 1]; + if (node.type === 'object' && ch === '}' || node.type === 'array' && ch === ']') { + // after ] or } + node = node.parent; + } + } + var currentWord = this.getCurrentWord(document, offset); + var overwriteRange; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + overwriteRange = jsonLanguageTypes_1.Range.create(document.positionAt(node.offset), document.positionAt(node.offset + node.length)); + } + else { + var overwriteStart = offset - currentWord.length; + if (overwriteStart > 0 && text[overwriteStart - 1] === '"') { + overwriteStart--; + } + overwriteRange = jsonLanguageTypes_1.Range.create(document.positionAt(overwriteStart), position); + } + var supportsCommitCharacters = false; //this.doesSupportsCommitCharacters(); disabled for now, waiting for new API: https://github.com/microsoft/vscode/issues/42544 + var proposed = {}; + var collector = { + add: function (suggestion) { + var label = suggestion.label; + var existing = proposed[label]; + if (!existing) { + label = label.replace(/[\n]/g, '↵'); + if (label.length > 60) { + var shortendedLabel = label.substr(0, 57).trim() + '...'; + if (!proposed[shortendedLabel]) { + label = shortendedLabel; + } + } + if (overwriteRange && suggestion.insertText !== undefined) { + suggestion.textEdit = jsonLanguageTypes_1.TextEdit.replace(overwriteRange, suggestion.insertText); + } + if (supportsCommitCharacters) { + suggestion.commitCharacters = suggestion.kind === jsonLanguageTypes_1.CompletionItemKind.Property ? propertyCommitCharacters : valueCommitCharacters; + } + suggestion.label = label; + proposed[label] = suggestion; + result.items.push(suggestion); + } + else { + if (!existing.documentation) { + existing.documentation = suggestion.documentation; + } + if (!existing.detail) { + existing.detail = suggestion.detail; + } + } + }, + setAsIncomplete: function () { + result.isIncomplete = true; + }, + error: function (message) { + console.error(message); + }, + log: function (message) { + console.log(message); + }, + getNumberOfProposals: function () { + return result.items.length; + } + }; + return this.schemaService.getSchemaForResource(document.uri, doc).then(function (schema) { + var collectionPromises = []; + var addValue = true; + var currentKey = ''; + var currentProperty = undefined; + if (node) { + if (node.type === 'string') { + var parent = node.parent; + if (parent && parent.type === 'property' && parent.keyNode === node) { + addValue = !parent.valueNode; + currentProperty = parent; + currentKey = text.substr(node.offset + 1, node.length - 2); + if (parent) { + node = parent.parent; + } + } + } + } + // proposals for properties + if (node && node.type === 'object') { + // don't suggest keys when the cursor is just before the opening curly brace + if (node.offset === offset) { + return result; + } + // don't suggest properties that are already present + var properties = node.properties; + properties.forEach(function (p) { + if (!currentProperty || currentProperty !== p) { + proposed[p.keyNode.value] = jsonLanguageTypes_1.CompletionItem.create('__'); + } + }); + var separatorAfter_1 = ''; + if (addValue) { + separatorAfter_1 = _this.evaluateSeparatorAfter(document, document.offsetAt(overwriteRange.end)); + } + if (schema) { + // property proposals with schema + _this.getPropertyCompletions(schema, doc, node, addValue, separatorAfter_1, collector); + } + else { + // property proposals without schema + _this.getSchemaLessPropertyCompletions(doc, node, currentKey, collector); + } + var location_1 = Parser.getNodePath(node); + _this.contributions.forEach(function (contribution) { + var collectPromise = contribution.collectPropertyCompletions(document.uri, location_1, currentWord, addValue, separatorAfter_1 === '', collector); + if (collectPromise) { + collectionPromises.push(collectPromise); + } + }); + if ((!schema && currentWord.length > 0 && text.charAt(offset - currentWord.length - 1) !== '"')) { + collector.add({ + kind: jsonLanguageTypes_1.CompletionItemKind.Property, + label: _this.getLabelForValue(currentWord), + insertText: _this.getInsertTextForProperty(currentWord, undefined, false, separatorAfter_1), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, documentation: '', + }); + collector.setAsIncomplete(); + } + } + // proposals for values + var types = {}; + if (schema) { + // value proposals with schema + _this.getValueCompletions(schema, doc, node, offset, document, collector, types); + } + else { + // value proposals without schema + _this.getSchemaLessValueCompletions(doc, node, offset, document, collector); + } + if (_this.contributions.length > 0) { + _this.getContributedValueCompletions(doc, node, offset, document, collector, collectionPromises); + } + return _this.promiseConstructor.all(collectionPromises).then(function () { + if (collector.getNumberOfProposals() === 0) { + var offsetForSeparator = offset; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + offsetForSeparator = node.offset + node.length; + } + var separatorAfter = _this.evaluateSeparatorAfter(document, offsetForSeparator); + _this.addFillerValueCompletions(types, separatorAfter, collector); + } + return result; + }); + }); + }; + JSONCompletion.prototype.getPropertyCompletions = function (schema, doc, node, addValue, separatorAfter, collector) { + var _this = this; + var matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset); + matchingSchemas.forEach(function (s) { + if (s.node === node && !s.inverted) { + var schemaProperties_1 = s.schema.properties; + if (schemaProperties_1) { + Object.keys(schemaProperties_1).forEach(function (key) { + var propertySchema = schemaProperties_1[key]; + if (typeof propertySchema === 'object' && !propertySchema.deprecationMessage && !propertySchema.doNotSuggest) { + var proposal = { + kind: jsonLanguageTypes_1.CompletionItemKind.Property, + label: key, + insertText: _this.getInsertTextForProperty(key, propertySchema, addValue, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + filterText: _this.getFilterTextForValue(key), + documentation: _this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '', + }; + if (propertySchema.suggestSortText !== undefined) { + proposal.sortText = propertySchema.suggestSortText; + } + if (proposal.insertText && strings_1.endsWith(proposal.insertText, "$1" + separatorAfter)) { + proposal.command = { + title: 'Suggest', + command: 'editor.action.triggerSuggest' + }; + } + collector.add(proposal); + } + }); + } + var schemaPropertyNames_1 = s.schema.propertyNames; + if (typeof schemaPropertyNames_1 === 'object' && !schemaPropertyNames_1.deprecationMessage && !schemaPropertyNames_1.doNotSuggest) { + var propertyNameCompletionItem = function (name, enumDescription) { + if (enumDescription === void 0) { enumDescription = undefined; } + var proposal = { + kind: jsonLanguageTypes_1.CompletionItemKind.Property, + label: name, + insertText: _this.getInsertTextForProperty(name, undefined, addValue, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + filterText: _this.getFilterTextForValue(name), + documentation: enumDescription || _this.fromMarkup(schemaPropertyNames_1.markdownDescription) || schemaPropertyNames_1.description || '', + }; + if (schemaPropertyNames_1.suggestSortText !== undefined) { + proposal.sortText = schemaPropertyNames_1.suggestSortText; + } + if (proposal.insertText && strings_1.endsWith(proposal.insertText, "$1" + separatorAfter)) { + proposal.command = { + title: 'Suggest', + command: 'editor.action.triggerSuggest' + }; + } + collector.add(proposal); + }; + if (schemaPropertyNames_1.enum) { + for (var i = 0; i < schemaPropertyNames_1.enum.length; i++) { + var enumDescription = undefined; + if (schemaPropertyNames_1.markdownEnumDescriptions && i < schemaPropertyNames_1.markdownEnumDescriptions.length) { + enumDescription = _this.fromMarkup(schemaPropertyNames_1.markdownEnumDescriptions[i]); + } + else if (schemaPropertyNames_1.enumDescriptions && i < schemaPropertyNames_1.enumDescriptions.length) { + enumDescription = schemaPropertyNames_1.enumDescriptions[i]; + } + propertyNameCompletionItem(schemaPropertyNames_1.enum[i], enumDescription); + } + } + if (schemaPropertyNames_1.const) { + propertyNameCompletionItem(schemaPropertyNames_1.const); + } + } + } + }); + }; + JSONCompletion.prototype.getSchemaLessPropertyCompletions = function (doc, node, currentKey, collector) { + var _this = this; + var collectCompletionsForSimilarObject = function (obj) { + obj.properties.forEach(function (p) { + var key = p.keyNode.value; + collector.add({ + kind: jsonLanguageTypes_1.CompletionItemKind.Property, + label: key, + insertText: _this.getInsertTextForValue(key, ''), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + filterText: _this.getFilterTextForValue(key), + documentation: '' + }); + }); + }; + if (node.parent) { + if (node.parent.type === 'property') { + // if the object is a property value, check the tree for other objects that hang under a property of the same name + var parentKey_1 = node.parent.keyNode.value; + doc.visit(function (n) { + if (n.type === 'property' && n !== node.parent && n.keyNode.value === parentKey_1 && n.valueNode && n.valueNode.type === 'object') { + collectCompletionsForSimilarObject(n.valueNode); + } + return true; + }); + } + else if (node.parent.type === 'array') { + // if the object is in an array, use all other array elements as similar objects + node.parent.items.forEach(function (n) { + if (n.type === 'object' && n !== node) { + collectCompletionsForSimilarObject(n); + } + }); + } + } + else if (node.type === 'object') { + collector.add({ + kind: jsonLanguageTypes_1.CompletionItemKind.Property, + label: '$schema', + insertText: this.getInsertTextForProperty('$schema', undefined, true, ''), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, documentation: '', + filterText: this.getFilterTextForValue("$schema") + }); + } + }; + JSONCompletion.prototype.getSchemaLessValueCompletions = function (doc, node, offset, document, collector) { + var _this = this; + var offsetForSeparator = offset; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + offsetForSeparator = node.offset + node.length; + node = node.parent; + } + if (!node) { + collector.add({ + kind: this.getSuggestionKind('object'), + label: 'Empty object', + insertText: this.getInsertTextForValue({}, ''), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + documentation: '' + }); + collector.add({ + kind: this.getSuggestionKind('array'), + label: 'Empty array', + insertText: this.getInsertTextForValue([], ''), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + documentation: '' + }); + return; + } + var separatorAfter = this.evaluateSeparatorAfter(document, offsetForSeparator); + var collectSuggestionsForValues = function (value) { + if (value.parent && !Parser.contains(value.parent, offset, true)) { + collector.add({ + kind: _this.getSuggestionKind(value.type), + label: _this.getLabelTextForMatchingNode(value, document), + insertText: _this.getInsertTextForMatchingNode(value, document, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, documentation: '' + }); + } + if (value.type === 'boolean') { + _this.addBooleanValueCompletion(!value.value, separatorAfter, collector); + } + }; + if (node.type === 'property') { + if (offset > (node.colonOffset || 0)) { + var valueNode = node.valueNode; + if (valueNode && (offset > (valueNode.offset + valueNode.length) || valueNode.type === 'object' || valueNode.type === 'array')) { + return; + } + // suggest values at the same key + var parentKey_2 = node.keyNode.value; + doc.visit(function (n) { + if (n.type === 'property' && n.keyNode.value === parentKey_2 && n.valueNode) { + collectSuggestionsForValues(n.valueNode); + } + return true; + }); + if (parentKey_2 === '$schema' && node.parent && !node.parent.parent) { + this.addDollarSchemaCompletions(separatorAfter, collector); + } + } + } + if (node.type === 'array') { + if (node.parent && node.parent.type === 'property') { + // suggest items of an array at the same key + var parentKey_3 = node.parent.keyNode.value; + doc.visit(function (n) { + if (n.type === 'property' && n.keyNode.value === parentKey_3 && n.valueNode && n.valueNode.type === 'array') { + n.valueNode.items.forEach(collectSuggestionsForValues); + } + return true; + }); + } + else { + // suggest items in the same array + node.items.forEach(collectSuggestionsForValues); + } + } + }; + JSONCompletion.prototype.getValueCompletions = function (schema, doc, node, offset, document, collector, types) { + var offsetForSeparator = offset; + var parentKey = undefined; + var valueNode = undefined; + if (node && (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null')) { + offsetForSeparator = node.offset + node.length; + valueNode = node; + node = node.parent; + } + if (!node) { + this.addSchemaValueCompletions(schema.schema, '', collector, types); + return; + } + if ((node.type === 'property') && offset > (node.colonOffset || 0)) { + var valueNode_1 = node.valueNode; + if (valueNode_1 && offset > (valueNode_1.offset + valueNode_1.length)) { + return; // we are past the value node + } + parentKey = node.keyNode.value; + node = node.parent; + } + if (node && (parentKey !== undefined || node.type === 'array')) { + var separatorAfter = this.evaluateSeparatorAfter(document, offsetForSeparator); + var matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset, valueNode); + for (var _i = 0, matchingSchemas_1 = matchingSchemas; _i < matchingSchemas_1.length; _i++) { + var s = matchingSchemas_1[_i]; + if (s.node === node && !s.inverted && s.schema) { + if (node.type === 'array' && s.schema.items) { + if (Array.isArray(s.schema.items)) { + var index = this.findItemAtOffset(node, document, offset); + if (index < s.schema.items.length) { + this.addSchemaValueCompletions(s.schema.items[index], separatorAfter, collector, types); + } + } + else { + this.addSchemaValueCompletions(s.schema.items, separatorAfter, collector, types); + } + } + if (parentKey !== undefined) { + var propertyMatched = false; + if (s.schema.properties) { + var propertySchema = s.schema.properties[parentKey]; + if (propertySchema) { + propertyMatched = true; + this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types); + } + } + if (s.schema.patternProperties && !propertyMatched) { + for (var _a = 0, _b = Object.keys(s.schema.patternProperties); _a < _b.length; _a++) { + var pattern = _b[_a]; + var regex = strings_1.extendedRegExp(pattern); + if (regex.test(parentKey)) { + propertyMatched = true; + var propertySchema = s.schema.patternProperties[pattern]; + this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types); + } + } + } + if (s.schema.additionalProperties && !propertyMatched) { + var propertySchema = s.schema.additionalProperties; + this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types); + } + } + } + } + if (parentKey === '$schema' && !node.parent) { + this.addDollarSchemaCompletions(separatorAfter, collector); + } + if (types['boolean']) { + this.addBooleanValueCompletion(true, separatorAfter, collector); + this.addBooleanValueCompletion(false, separatorAfter, collector); + } + if (types['null']) { + this.addNullValueCompletion(separatorAfter, collector); + } + } + }; + JSONCompletion.prototype.getContributedValueCompletions = function (doc, node, offset, document, collector, collectionPromises) { + if (!node) { + this.contributions.forEach(function (contribution) { + var collectPromise = contribution.collectDefaultCompletions(document.uri, collector); + if (collectPromise) { + collectionPromises.push(collectPromise); + } + }); + } + else { + if (node.type === 'string' || node.type === 'number' || node.type === 'boolean' || node.type === 'null') { + node = node.parent; + } + if (node && (node.type === 'property') && offset > (node.colonOffset || 0)) { + var parentKey_4 = node.keyNode.value; + var valueNode = node.valueNode; + if ((!valueNode || offset <= (valueNode.offset + valueNode.length)) && node.parent) { + var location_2 = Parser.getNodePath(node.parent); + this.contributions.forEach(function (contribution) { + var collectPromise = contribution.collectValueCompletions(document.uri, location_2, parentKey_4, collector); + if (collectPromise) { + collectionPromises.push(collectPromise); + } + }); + } + } + } + }; + JSONCompletion.prototype.addSchemaValueCompletions = function (schema, separatorAfter, collector, types) { + var _this = this; + if (typeof schema === 'object') { + this.addEnumValueCompletions(schema, separatorAfter, collector); + this.addDefaultValueCompletions(schema, separatorAfter, collector); + this.collectTypes(schema, types); + if (Array.isArray(schema.allOf)) { + schema.allOf.forEach(function (s) { return _this.addSchemaValueCompletions(s, separatorAfter, collector, types); }); + } + if (Array.isArray(schema.anyOf)) { + schema.anyOf.forEach(function (s) { return _this.addSchemaValueCompletions(s, separatorAfter, collector, types); }); + } + if (Array.isArray(schema.oneOf)) { + schema.oneOf.forEach(function (s) { return _this.addSchemaValueCompletions(s, separatorAfter, collector, types); }); + } + } + }; + JSONCompletion.prototype.addDefaultValueCompletions = function (schema, separatorAfter, collector, arrayDepth) { + var _this = this; + if (arrayDepth === void 0) { arrayDepth = 0; } + var hasProposals = false; + if (objects_1.isDefined(schema.default)) { + var type = schema.type; + var value = schema.default; + for (var i = arrayDepth; i > 0; i--) { + value = [value]; + type = 'array'; + } + collector.add({ + kind: this.getSuggestionKind(type), + label: this.getLabelForValue(value), + insertText: this.getInsertTextForValue(value, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + detail: localize('json.suggest.default', 'Default value') + }); + hasProposals = true; + } + if (Array.isArray(schema.examples)) { + schema.examples.forEach(function (example) { + var type = schema.type; + var value = example; + for (var i = arrayDepth; i > 0; i--) { + value = [value]; + type = 'array'; + } + collector.add({ + kind: _this.getSuggestionKind(type), + label: _this.getLabelForValue(value), + insertText: _this.getInsertTextForValue(value, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet + }); + hasProposals = true; + }); + } + if (Array.isArray(schema.defaultSnippets)) { + schema.defaultSnippets.forEach(function (s) { + var type = schema.type; + var value = s.body; + var label = s.label; + var insertText; + var filterText; + if (objects_1.isDefined(value)) { + var type_1 = schema.type; + for (var i = arrayDepth; i > 0; i--) { + value = [value]; + type_1 = 'array'; + } + insertText = _this.getInsertTextForSnippetValue(value, separatorAfter); + filterText = _this.getFilterTextForSnippetValue(value); + label = label || _this.getLabelForSnippetValue(value); + } + else if (typeof s.bodyText === 'string') { + var prefix = '', suffix = '', indent = ''; + for (var i = arrayDepth; i > 0; i--) { + prefix = prefix + indent + '[\n'; + suffix = suffix + '\n' + indent + ']'; + indent += '\t'; + 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 + } + else { + return; + } + collector.add({ + kind: _this.getSuggestionKind(type), + label: label, + documentation: _this.fromMarkup(s.markdownDescription) || s.description, + insertText: insertText, + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + filterText: filterText + }); + hasProposals = true; + }); + } + if (!hasProposals && typeof schema.items === 'object' && !Array.isArray(schema.items) && arrayDepth < 5 /* beware of recursion */) { + this.addDefaultValueCompletions(schema.items, separatorAfter, collector, arrayDepth + 1); + } + }; + JSONCompletion.prototype.addEnumValueCompletions = function (schema, separatorAfter, collector) { + if (objects_1.isDefined(schema.const)) { + collector.add({ + kind: this.getSuggestionKind(schema.type), + label: this.getLabelForValue(schema.const), + insertText: this.getInsertTextForValue(schema.const, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + documentation: this.fromMarkup(schema.markdownDescription) || schema.description + }); + } + if (Array.isArray(schema.enum)) { + for (var i = 0, length = schema.enum.length; i < length; i++) { + var enm = schema.enum[i]; + var 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), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + documentation: documentation + }); + } + } + }; + JSONCompletion.prototype.collectTypes = function (schema, types) { + if (Array.isArray(schema.enum) || objects_1.isDefined(schema.const)) { + return; + } + var type = schema.type; + if (Array.isArray(type)) { + type.forEach(function (t) { return types[t] = true; }); + } + else if (type) { + types[type] = true; + } + }; + JSONCompletion.prototype.addFillerValueCompletions = function (types, separatorAfter, collector) { + if (types['object']) { + collector.add({ + kind: this.getSuggestionKind('object'), + label: '{}', + insertText: this.getInsertTextForGuessedValue({}, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + detail: localize('defaults.object', 'New object'), + documentation: '' + }); + } + if (types['array']) { + collector.add({ + kind: this.getSuggestionKind('array'), + label: '[]', + insertText: this.getInsertTextForGuessedValue([], separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + detail: localize('defaults.array', 'New array'), + documentation: '' + }); + } + }; + JSONCompletion.prototype.addBooleanValueCompletion = function (value, separatorAfter, collector) { + collector.add({ + kind: this.getSuggestionKind('boolean'), + label: value ? 'true' : 'false', + insertText: this.getInsertTextForValue(value, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + documentation: '' + }); + }; + JSONCompletion.prototype.addNullValueCompletion = function (separatorAfter, collector) { + collector.add({ + kind: this.getSuggestionKind('null'), + label: 'null', + insertText: 'null' + separatorAfter, + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, + documentation: '' + }); + }; + JSONCompletion.prototype.addDollarSchemaCompletions = function (separatorAfter, collector) { + var _this = this; + var schemaIds = this.schemaService.getRegisteredSchemaIds(function (schema) { return schema === 'http' || schema === 'https'; }); + schemaIds.forEach(function (schemaId) { return collector.add({ + kind: jsonLanguageTypes_1.CompletionItemKind.Module, + label: _this.getLabelForValue(schemaId), + filterText: _this.getFilterTextForValue(schemaId), + insertText: _this.getInsertTextForValue(schemaId, separatorAfter), + insertTextFormat: jsonLanguageTypes_1.InsertTextFormat.Snippet, documentation: '' + }); }); + }; + JSONCompletion.prototype.getLabelForValue = function (value) { + return JSON.stringify(value); + }; + JSONCompletion.prototype.getFilterTextForValue = function (value) { + return JSON.stringify(value); + }; + JSONCompletion.prototype.getFilterTextForSnippetValue = function (value) { + return JSON.stringify(value).replace(/\$\{\d+:([^}]+)\}|\$\d+/g, '$1'); + }; + JSONCompletion.prototype.getLabelForSnippetValue = function (value) { + var label = JSON.stringify(value); + return label.replace(/\$\{\d+:([^}]+)\}|\$\d+/g, '$1'); + }; + JSONCompletion.prototype.getInsertTextForPlainText = function (text) { + return text.replace(/[\\\$\}]/g, '\\$&'); // escape $, \ and } + }; + JSONCompletion.prototype.getInsertTextForValue = function (value, separatorAfter) { + var text = JSON.stringify(value, null, '\t'); + if (text === '{}') { + return '{$1}' + separatorAfter; + } + else if (text === '[]') { + return '[$1]' + separatorAfter; + } + return this.getInsertTextForPlainText(text + separatorAfter); + }; + JSONCompletion.prototype.getInsertTextForSnippetValue = function (value, separatorAfter) { + var replacer = function (value) { + if (typeof value === 'string') { + if (value[0] === '^') { + return value.substr(1); + } + } + return JSON.stringify(value); + }; + return json_1.stringifyObject(value, '', replacer) + separatorAfter; + }; + JSONCompletion.prototype.getInsertTextForGuessedValue = function (value, separatorAfter) { + switch (typeof value) { + case 'object': + if (value === null) { + return '${1:null}' + separatorAfter; + } + return this.getInsertTextForValue(value, separatorAfter); + case 'string': + var snippetValue = JSON.stringify(value); + snippetValue = snippetValue.substr(1, snippetValue.length - 2); // remove quotes + snippetValue = this.getInsertTextForPlainText(snippetValue); // escape \ and } + return '"${1:' + snippetValue + '}"' + separatorAfter; + case 'number': + case 'boolean': + return '${1:' + JSON.stringify(value) + '}' + separatorAfter; + } + return this.getInsertTextForValue(value, separatorAfter); + }; + JSONCompletion.prototype.getSuggestionKind = function (type) { + if (Array.isArray(type)) { + var array = type; + type = array.length > 0 ? array[0] : undefined; + } + if (!type) { + return jsonLanguageTypes_1.CompletionItemKind.Value; + } + switch (type) { + case 'string': return jsonLanguageTypes_1.CompletionItemKind.Value; + case 'object': return jsonLanguageTypes_1.CompletionItemKind.Module; + case 'property': return jsonLanguageTypes_1.CompletionItemKind.Property; + default: return jsonLanguageTypes_1.CompletionItemKind.Value; + } + }; + JSONCompletion.prototype.getLabelTextForMatchingNode = function (node, document) { + switch (node.type) { + case 'array': + return '[]'; + case 'object': + return '{}'; + default: + var content = document.getText().substr(node.offset, node.length); + return content; + } + }; + JSONCompletion.prototype.getInsertTextForMatchingNode = function (node, document, separatorAfter) { + switch (node.type) { + case 'array': + return this.getInsertTextForValue([], separatorAfter); + case 'object': + return this.getInsertTextForValue({}, separatorAfter); + default: + var content = document.getText().substr(node.offset, node.length) + separatorAfter; + return this.getInsertTextForPlainText(content); + } + }; + JSONCompletion.prototype.getInsertTextForProperty = function (key, propertySchema, addValue, separatorAfter) { + var propertyText = this.getInsertTextForValue(key, ''); + if (!addValue) { + return propertyText; + } + var resultText = propertyText + ': '; + var value; + var nValueProposals = 0; + if (propertySchema) { + if (Array.isArray(propertySchema.defaultSnippets)) { + if (propertySchema.defaultSnippets.length === 1) { + var body = propertySchema.defaultSnippets[0].body; + if (objects_1.isDefined(body)) { + value = this.getInsertTextForSnippetValue(body, ''); + } + } + nValueProposals += propertySchema.defaultSnippets.length; + } + if (propertySchema.enum) { + if (!value && propertySchema.enum.length === 1) { + value = this.getInsertTextForGuessedValue(propertySchema.enum[0], ''); + } + nValueProposals += propertySchema.enum.length; + } + if (objects_1.isDefined(propertySchema.default)) { + if (!value) { + value = this.getInsertTextForGuessedValue(propertySchema.default, ''); + } + nValueProposals++; + } + if (Array.isArray(propertySchema.examples) && propertySchema.examples.length) { + if (!value) { + value = this.getInsertTextForGuessedValue(propertySchema.examples[0], ''); + } + nValueProposals += propertySchema.examples.length; + } + if (nValueProposals === 0) { + var type = Array.isArray(propertySchema.type) ? propertySchema.type[0] : propertySchema.type; + if (!type) { + if (propertySchema.properties) { + type = 'object'; + } + else if (propertySchema.items) { + type = 'array'; + } + } + switch (type) { + case 'boolean': + value = '$1'; + break; + case 'string': + value = '"$1"'; + break; + case 'object': + value = '{$1}'; + break; + case 'array': + value = '[$1]'; + break; + case 'number': + case 'integer': + value = '${1:0}'; + break; + case 'null': + value = '${1:null}'; + break; + default: + return propertyText; + } + } + } + if (!value || nValueProposals > 1) { + value = '$1'; + } + return resultText + value + separatorAfter; + }; + JSONCompletion.prototype.getCurrentWord = function (document, offset) { + var i = offset - 1; + var text = document.getText(); + while (i >= 0 && ' \t\n\r\v":{[,]}'.indexOf(text.charAt(i)) === -1) { + i--; + } + return text.substring(i + 1, offset); + }; + JSONCompletion.prototype.evaluateSeparatorAfter = function (document, offset) { + var scanner = Json.createScanner(document.getText(), true); + scanner.setPosition(offset); + var token = scanner.scan(); + switch (token) { + case 5 /* CommaToken */: + case 2 /* CloseBraceToken */: + case 4 /* CloseBracketToken */: + case 17 /* EOF */: + return ''; + default: + return ','; + } + }; + JSONCompletion.prototype.findItemAtOffset = function (node, document, offset) { + var scanner = Json.createScanner(document.getText(), true); + var children = node.items; + for (var i = children.length - 1; i >= 0; i--) { + var child = children[i]; + if (offset > child.offset + child.length) { + scanner.setPosition(child.offset + child.length); + var token = scanner.scan(); + if (token === 5 /* CommaToken */ && offset >= scanner.getTokenOffset() + scanner.getTokenLength()) { + return i + 1; + } + return i; + } + else if (offset >= child.offset) { + return i; + } + } + return 0; + }; + JSONCompletion.prototype.isInComment = function (document, start, offset) { + var scanner = Json.createScanner(document.getText(), false); + scanner.setPosition(start); + var token = scanner.scan(); + while (token !== 17 /* EOF */ && (scanner.getTokenOffset() + scanner.getTokenLength() < offset)) { + token = scanner.scan(); + } + return (token === 12 /* LineCommentTrivia */ || token === 13 /* BlockCommentTrivia */) && scanner.getTokenOffset() <= offset; + }; + JSONCompletion.prototype.fromMarkup = function (markupString) { + if (markupString && this.doesSupportMarkdown()) { + return { + kind: jsonLanguageTypes_1.MarkupKind.Markdown, + value: markupString + }; + } + return undefined; + }; + JSONCompletion.prototype.doesSupportMarkdown = function () { + if (!objects_1.isDefined(this.supportsMarkdown)) { + var completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion; + this.supportsMarkdown = completion && completion.completionItem && Array.isArray(completion.completionItem.documentationFormat) && completion.completionItem.documentationFormat.indexOf(jsonLanguageTypes_1.MarkupKind.Markdown) !== -1; + } + return this.supportsMarkdown; + }; + JSONCompletion.prototype.doesSupportsCommitCharacters = function () { + if (!objects_1.isDefined(this.supportsCommitCharacters)) { + var completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion; + this.supportsCommitCharacters = completion && completion.completionItem && !!completion.completionItem.commitCharactersSupport; + } + return this.supportsCommitCharacters; + }; + return JSONCompletion; + }()); + exports.JSONCompletion = JSONCompletion; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonDocumentSymbols.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonDocumentSymbols.js" index 521f048043115c8ba2ceb9793bbadcce121ceb2f..062eabc36372de7558a025d2aa01dbbc55101814 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonDocumentSymbols.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonDocumentSymbols.js" @@ -1,3 +1,291 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d39c136aa85b33a3dee106ce919cf8ea554b287d31beb1db8da052d51242e8c -size 15014 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "../parser/jsonParser", "../utils/strings", "../utils/colors", "../jsonLanguageTypes"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.JSONDocumentSymbols = void 0; + var Parser = require("../parser/jsonParser"); + var Strings = require("../utils/strings"); + var colors_1 = require("../utils/colors"); + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + var JSONDocumentSymbols = /** @class */ (function () { + function JSONDocumentSymbols(schemaService) { + this.schemaService = schemaService; + } + JSONDocumentSymbols.prototype.findDocumentSymbols = function (document, doc, context) { + var _this = this; + if (context === void 0) { context = { resultLimit: Number.MAX_VALUE }; } + var root = doc.root; + if (!root) { + return []; + } + var limit = context.resultLimit || Number.MAX_VALUE; + // special handling for key bindings + var resourceString = document.uri; + if ((resourceString === 'vscode://defaultsettings/keybindings.json') || Strings.endsWith(resourceString.toLowerCase(), '/user/keybindings.json')) { + if (root.type === 'array') { + var result_1 = []; + for (var _i = 0, _a = root.items; _i < _a.length; _i++) { + var item = _a[_i]; + if (item.type === 'object') { + for (var _b = 0, _c = item.properties; _b < _c.length; _b++) { + var property = _c[_b]; + if (property.keyNode.value === 'key' && property.valueNode) { + var location = jsonLanguageTypes_1.Location.create(document.uri, getRange(document, item)); + result_1.push({ name: Parser.getNodeValue(property.valueNode), kind: jsonLanguageTypes_1.SymbolKind.Function, location: location }); + limit--; + if (limit <= 0) { + if (context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result_1; + } + } + } + } + } + return result_1; + } + } + var toVisit = [ + { node: root, containerName: '' } + ]; + var nextToVisit = 0; + var limitExceeded = false; + var result = []; + var collectOutlineEntries = function (node, containerName) { + if (node.type === 'array') { + node.items.forEach(function (node) { + if (node) { + toVisit.push({ node: node, containerName: containerName }); + } + }); + } + else if (node.type === 'object') { + node.properties.forEach(function (property) { + var valueNode = property.valueNode; + if (valueNode) { + if (limit > 0) { + limit--; + var location = jsonLanguageTypes_1.Location.create(document.uri, getRange(document, property)); + var childContainerName = containerName ? containerName + '.' + property.keyNode.value : property.keyNode.value; + result.push({ name: _this.getKeyLabel(property), kind: _this.getSymbolKind(valueNode.type), location: location, containerName: containerName }); + toVisit.push({ node: valueNode, containerName: childContainerName }); + } + else { + limitExceeded = true; + } + } + }); + } + }; + // breath first traversal + while (nextToVisit < toVisit.length) { + var next = toVisit[nextToVisit++]; + collectOutlineEntries(next.node, next.containerName); + } + if (limitExceeded && context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result; + }; + JSONDocumentSymbols.prototype.findDocumentSymbols2 = function (document, doc, context) { + var _this = this; + if (context === void 0) { context = { resultLimit: Number.MAX_VALUE }; } + var root = doc.root; + if (!root) { + return []; + } + var limit = context.resultLimit || Number.MAX_VALUE; + // special handling for key bindings + var resourceString = document.uri; + if ((resourceString === 'vscode://defaultsettings/keybindings.json') || Strings.endsWith(resourceString.toLowerCase(), '/user/keybindings.json')) { + if (root.type === 'array') { + var result_2 = []; + for (var _i = 0, _a = root.items; _i < _a.length; _i++) { + var item = _a[_i]; + if (item.type === 'object') { + for (var _b = 0, _c = item.properties; _b < _c.length; _b++) { + var property = _c[_b]; + if (property.keyNode.value === 'key' && property.valueNode) { + var range = getRange(document, item); + var selectionRange = getRange(document, property.keyNode); + result_2.push({ name: Parser.getNodeValue(property.valueNode), kind: jsonLanguageTypes_1.SymbolKind.Function, range: range, selectionRange: selectionRange }); + limit--; + if (limit <= 0) { + if (context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result_2; + } + } + } + } + } + return result_2; + } + } + var result = []; + var toVisit = [ + { node: root, result: result } + ]; + var nextToVisit = 0; + var limitExceeded = false; + var collectOutlineEntries = function (node, result) { + if (node.type === 'array') { + node.items.forEach(function (node, index) { + if (node) { + if (limit > 0) { + limit--; + var range = getRange(document, node); + var selectionRange = range; + var name = String(index); + var symbol = { name: name, kind: _this.getSymbolKind(node.type), range: range, selectionRange: selectionRange, children: [] }; + result.push(symbol); + toVisit.push({ result: symbol.children, node: node }); + } + else { + limitExceeded = true; + } + } + }); + } + else if (node.type === 'object') { + node.properties.forEach(function (property) { + var valueNode = property.valueNode; + if (valueNode) { + if (limit > 0) { + limit--; + var range = getRange(document, property); + var selectionRange = getRange(document, property.keyNode); + var children = []; + var symbol = { name: _this.getKeyLabel(property), kind: _this.getSymbolKind(valueNode.type), range: range, selectionRange: selectionRange, children: children, detail: _this.getDetail(valueNode) }; + result.push(symbol); + toVisit.push({ result: children, node: valueNode }); + } + else { + limitExceeded = true; + } + } + }); + } + }; + // breath first traversal + while (nextToVisit < toVisit.length) { + var next = toVisit[nextToVisit++]; + collectOutlineEntries(next.node, next.result); + } + if (limitExceeded && context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(resourceString); + } + return result; + }; + JSONDocumentSymbols.prototype.getSymbolKind = function (nodeType) { + switch (nodeType) { + case 'object': + return jsonLanguageTypes_1.SymbolKind.Module; + case 'string': + return jsonLanguageTypes_1.SymbolKind.String; + case 'number': + return jsonLanguageTypes_1.SymbolKind.Number; + case 'array': + return jsonLanguageTypes_1.SymbolKind.Array; + case 'boolean': + return jsonLanguageTypes_1.SymbolKind.Boolean; + default: // 'null' + return jsonLanguageTypes_1.SymbolKind.Variable; + } + }; + JSONDocumentSymbols.prototype.getKeyLabel = function (property) { + var name = property.keyNode.value; + if (name) { + name = name.replace(/[\n]/g, '↵'); + } + if (name && name.trim()) { + return name; + } + return "\"" + name + "\""; + }; + JSONDocumentSymbols.prototype.getDetail = function (node) { + if (!node) { + return undefined; + } + if (node.type === 'boolean' || node.type === 'number' || node.type === 'null' || node.type === 'string') { + return String(node.value); + } + else { + if (node.type === 'array') { + return node.children.length ? undefined : '[]'; + } + else if (node.type === 'object') { + return node.children.length ? undefined : '{}'; + } + } + return undefined; + }; + JSONDocumentSymbols.prototype.findDocumentColors = function (document, doc, context) { + return this.schemaService.getSchemaForResource(document.uri, doc).then(function (schema) { + var result = []; + if (schema) { + var limit = context && typeof context.resultLimit === 'number' ? context.resultLimit : Number.MAX_VALUE; + var matchingSchemas = doc.getMatchingSchemas(schema.schema); + var visitedNode = {}; + for (var _i = 0, matchingSchemas_1 = matchingSchemas; _i < matchingSchemas_1.length; _i++) { + var s = matchingSchemas_1[_i]; + if (!s.inverted && s.schema && (s.schema.format === 'color' || s.schema.format === 'color-hex') && s.node && s.node.type === 'string') { + var nodeId = String(s.node.offset); + if (!visitedNode[nodeId]) { + var color = colors_1.colorFromHex(Parser.getNodeValue(s.node)); + if (color) { + var range = getRange(document, s.node); + result.push({ color: color, range: range }); + } + visitedNode[nodeId] = true; + limit--; + if (limit <= 0) { + if (context && context.onResultLimitExceeded) { + context.onResultLimitExceeded(document.uri); + } + return result; + } + } + } + } + } + return result; + }); + }; + JSONDocumentSymbols.prototype.getColorPresentations = function (document, doc, color, range) { + var result = []; + var red256 = Math.round(color.red * 255), green256 = Math.round(color.green * 255), blue256 = Math.round(color.blue * 255); + function toTwoDigitHex(n) { + var r = n.toString(16); + return r.length !== 2 ? '0' + r : r; + } + var label; + if (color.alpha === 1) { + label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256); + } + else { + label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256) + toTwoDigitHex(Math.round(color.alpha * 255)); + } + result.push({ label: label, textEdit: jsonLanguageTypes_1.TextEdit.replace(range, JSON.stringify(label)) }); + return result; + }; + return JSONDocumentSymbols; + }()); + exports.JSONDocumentSymbols = JSONDocumentSymbols; + function getRange(document, node) { + return jsonLanguageTypes_1.Range.create(document.positionAt(node.offset), document.positionAt(node.offset + node.length)); + } +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonFolding.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonFolding.js" index 062430d0f901f08d052be42a86fb9e37391e9946..2f4eeceed6e57b7f8d9081fc4d3f8dedc0d7ddee 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonFolding.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonFolding.js" @@ -1,3 +1,135 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e20d176b7d8a73f9ca6b963f825eadc21248304aa2031735bbf635e51cbe8c0 -size 6303 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "jsonc-parser", "../jsonLanguageTypes"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getFoldingRanges = void 0; + var jsonc_parser_1 = require("jsonc-parser"); + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + function getFoldingRanges(document, context) { + var ranges = []; + var nestingLevels = []; + var stack = []; + var prevStart = -1; + var scanner = jsonc_parser_1.createScanner(document.getText(), false); + var token = scanner.scan(); + function addRange(range) { + ranges.push(range); + nestingLevels.push(stack.length); + } + while (token !== 17 /* EOF */) { + switch (token) { + case 1 /* OpenBraceToken */: + case 3 /* OpenBracketToken */: { + var startLine = document.positionAt(scanner.getTokenOffset()).line; + var range = { startLine: startLine, endLine: startLine, kind: token === 1 /* OpenBraceToken */ ? 'object' : 'array' }; + stack.push(range); + break; + } + case 2 /* CloseBraceToken */: + case 4 /* CloseBracketToken */: { + var kind = token === 2 /* CloseBraceToken */ ? 'object' : 'array'; + if (stack.length > 0 && stack[stack.length - 1].kind === kind) { + var range = stack.pop(); + var line = document.positionAt(scanner.getTokenOffset()).line; + if (range && line > range.startLine + 1 && prevStart !== range.startLine) { + range.endLine = line - 1; + addRange(range); + prevStart = range.startLine; + } + } + break; + } + case 13 /* BlockCommentTrivia */: { + var startLine = document.positionAt(scanner.getTokenOffset()).line; + var endLine = document.positionAt(scanner.getTokenOffset() + scanner.getTokenLength()).line; + if (scanner.getTokenError() === 1 /* UnexpectedEndOfComment */ && startLine + 1 < document.lineCount) { + scanner.setPosition(document.offsetAt(jsonLanguageTypes_1.Position.create(startLine + 1, 0))); + } + else { + if (startLine < endLine) { + addRange({ startLine: startLine, endLine: endLine, kind: jsonLanguageTypes_1.FoldingRangeKind.Comment }); + prevStart = startLine; + } + } + break; + } + case 12 /* LineCommentTrivia */: { + var text = document.getText().substr(scanner.getTokenOffset(), scanner.getTokenLength()); + var m = text.match(/^\/\/\s*#(region\b)|(endregion\b)/); + if (m) { + var line = document.positionAt(scanner.getTokenOffset()).line; + if (m[1]) { // start pattern match + var range = { startLine: line, endLine: line, kind: jsonLanguageTypes_1.FoldingRangeKind.Region }; + stack.push(range); + } + else { + var i = stack.length - 1; + while (i >= 0 && stack[i].kind !== jsonLanguageTypes_1.FoldingRangeKind.Region) { + i--; + } + if (i >= 0) { + var range = stack[i]; + stack.length = i; + if (line > range.startLine && prevStart !== range.startLine) { + range.endLine = line; + addRange(range); + prevStart = range.startLine; + } + } + } + } + break; + } + } + token = scanner.scan(); + } + var rangeLimit = context && context.rangeLimit; + if (typeof rangeLimit !== 'number' || ranges.length <= rangeLimit) { + return ranges; + } + if (context && context.onRangeLimitExceeded) { + context.onRangeLimitExceeded(document.uri); + } + var counts = []; + for (var _i = 0, nestingLevels_1 = nestingLevels; _i < nestingLevels_1.length; _i++) { + var level = nestingLevels_1[_i]; + if (level < 30) { + counts[level] = (counts[level] || 0) + 1; + } + } + var entries = 0; + var maxLevel = 0; + for (var i = 0; i < counts.length; i++) { + var n = counts[i]; + if (n) { + if (n + entries > rangeLimit) { + maxLevel = i; + break; + } + entries += n; + } + } + var result = []; + for (var i = 0; i < ranges.length; i++) { + var level = nestingLevels[i]; + if (typeof level === 'number') { + if (level < maxLevel || (level === maxLevel && entries++ < rangeLimit)) { + result.push(ranges[i]); + } + } + } + return result; + } + exports.getFoldingRanges = getFoldingRanges; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonHover.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonHover.js" index 4bf47f31329d3e27b769f9ede67bb09c8db6855e..8477b9b6ee9a00212b4217f9841f401358f7ec1f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonHover.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonHover.js" @@ -1,3 +1,125 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:428f5942d222674f80c6844cefb2612d023730c584b227a0a8fa30f541d88903 -size 6416 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "../parser/jsonParser", "../jsonLanguageTypes"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.JSONHover = void 0; + var Parser = require("../parser/jsonParser"); + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + var JSONHover = /** @class */ (function () { + function JSONHover(schemaService, contributions, promiseConstructor) { + if (contributions === void 0) { contributions = []; } + this.schemaService = schemaService; + this.contributions = contributions; + this.promise = promiseConstructor || Promise; + } + JSONHover.prototype.doHover = function (document, position, doc) { + var offset = document.offsetAt(position); + var node = doc.getNodeFromOffset(offset); + if (!node || (node.type === 'object' || node.type === 'array') && offset > node.offset + 1 && offset < node.offset + node.length - 1) { + return this.promise.resolve(null); + } + var hoverRangeNode = node; + // use the property description when hovering over an object key + if (node.type === 'string') { + var parent = node.parent; + if (parent && parent.type === 'property' && parent.keyNode === node) { + node = parent.valueNode; + if (!node) { + return this.promise.resolve(null); + } + } + } + var hoverRange = jsonLanguageTypes_1.Range.create(document.positionAt(hoverRangeNode.offset), document.positionAt(hoverRangeNode.offset + hoverRangeNode.length)); + var createHover = function (contents) { + var result = { + contents: contents, + range: hoverRange + }; + return result; + }; + var location = Parser.getNodePath(node); + for (var i = this.contributions.length - 1; i >= 0; i--) { + var contribution = this.contributions[i]; + var promise = contribution.getInfoContribution(document.uri, location); + if (promise) { + return promise.then(function (htmlContent) { return createHover(htmlContent); }); + } + } + return this.schemaService.getSchemaForResource(document.uri, doc).then(function (schema) { + if (schema && node) { + var matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset); + var title_1 = undefined; + var markdownDescription_1 = undefined; + var markdownEnumValueDescription_1 = undefined, enumValue_1 = undefined; + matchingSchemas.every(function (s) { + if (s.node === node && !s.inverted && s.schema) { + title_1 = title_1 || s.schema.title; + markdownDescription_1 = markdownDescription_1 || s.schema.markdownDescription || toMarkdown(s.schema.description); + if (s.schema.enum) { + var idx = s.schema.enum.indexOf(Parser.getNodeValue(node)); + if (s.schema.markdownEnumDescriptions) { + markdownEnumValueDescription_1 = s.schema.markdownEnumDescriptions[idx]; + } + else if (s.schema.enumDescriptions) { + markdownEnumValueDescription_1 = toMarkdown(s.schema.enumDescriptions[idx]); + } + if (markdownEnumValueDescription_1) { + enumValue_1 = s.schema.enum[idx]; + if (typeof enumValue_1 !== 'string') { + enumValue_1 = JSON.stringify(enumValue_1); + } + } + } + } + return true; + }); + var result = ''; + if (title_1) { + result = toMarkdown(title_1); + } + if (markdownDescription_1) { + if (result.length > 0) { + result += "\n\n"; + } + result += markdownDescription_1; + } + if (markdownEnumValueDescription_1) { + if (result.length > 0) { + result += "\n\n"; + } + result += "`" + toMarkdownCodeBlock(enumValue_1) + "`: " + markdownEnumValueDescription_1; + } + return createHover([result]); + } + return null; + }); + }; + return JSONHover; + }()); + exports.JSONHover = JSONHover; + function toMarkdown(plain) { + if (plain) { + var 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; + } + function toMarkdownCodeBlock(content) { + // see https://daringfireball.net/projects/markdown/syntax#precode + if (content.indexOf('`') !== -1) { + return '`` ' + content + ' ``'; + } + return content; + } +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonLinks.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonLinks.js" index 56fac519a1e0dab1fc54e77f2accbb8d2a69ddd8..5eb7591777b4a8c72ea350a06f5133d1cd189021 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonLinks.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonLinks.js" @@ -1,3 +1,87 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:435e501e3d8f3b50d34ba4bdd14421818e12d1aa1eb631086d47d818091711e4 -size 3432 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "../jsonLanguageTypes"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.findLinks = void 0; + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + function findLinks(document, doc) { + var links = []; + doc.visit(function (node) { + var _a; + if (node.type === "property" && node.keyNode.value === "$ref" && ((_a = node.valueNode) === null || _a === void 0 ? void 0 : _a.type) === 'string') { + var path = node.valueNode.value; + var targetNode = findTargetNode(doc, path); + if (targetNode) { + var targetPos = document.positionAt(targetNode.offset); + links.push({ + target: document.uri + "#" + (targetPos.line + 1) + "," + (targetPos.character + 1), + range: createRange(document, node.valueNode) + }); + } + } + return true; + }); + return Promise.resolve(links); + } + exports.findLinks = findLinks; + function createRange(document, node) { + return jsonLanguageTypes_1.Range.create(document.positionAt(node.offset + 1), document.positionAt(node.offset + node.length - 1)); + } + function findTargetNode(doc, path) { + var tokens = parseJSONPointer(path); + if (!tokens) { + return null; + } + return findNode(tokens, doc.root); + } + function findNode(pointer, node) { + if (!node) { + return null; + } + if (pointer.length === 0) { + return node; + } + var token = pointer.shift(); + if (node && node.type === 'object') { + var propertyNode = node.properties.find(function (propertyNode) { return propertyNode.keyNode.value === token; }); + if (!propertyNode) { + return null; + } + return findNode(pointer, propertyNode.valueNode); + } + else if (node && node.type === 'array') { + if (token.match(/^(0|[1-9][0-9]*)$/)) { + var index = Number.parseInt(token); + var arrayItem = node.items[index]; + if (!arrayItem) { + return null; + } + return findNode(pointer, arrayItem); + } + } + return null; + } + function parseJSONPointer(path) { + if (path === "#") { + return []; + } + if (path[0] !== '#' || path[1] !== '/') { + return null; + } + return path.substring(2).split(/\//).map(unescape); + } + function unescape(str) { + return str.replace(/~1/g, '/').replace(/~0/g, '~'); + } +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSchemaService.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSchemaService.js" index 74d2161e49ca055c895b88b7ae58d12f5fc13825..d391d23da931063612e6fe98e84a27eb67f08ded 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSchemaService.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSchemaService.js" @@ -1,3 +1,548 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4af248893d74a939f77c71e1fda585007499d9c32fefbcdbaba97bbc8eabaaeb -size 26753 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "jsonc-parser", "vscode-uri", "../utils/strings", "../parser/jsonParser", "vscode-nls", "../utils/glob"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.JSONSchemaService = exports.ResolvedSchema = exports.UnresolvedSchema = void 0; + var Json = require("jsonc-parser"); + var vscode_uri_1 = require("vscode-uri"); + var Strings = require("../utils/strings"); + var Parser = require("../parser/jsonParser"); + var nls = require("vscode-nls"); + var glob_1 = require("../utils/glob"); + var localize = nls.loadMessageBundle(); + var BANG = '!'; + var PATH_SEP = '/'; + var FilePatternAssociation = /** @class */ (function () { + function FilePatternAssociation(pattern, uris) { + this.globWrappers = []; + try { + for (var _i = 0, pattern_1 = pattern; _i < pattern_1.length; _i++) { + var patternString = pattern_1[_i]; + var include = patternString[0] !== BANG; + if (!include) { + patternString = patternString.substring(1); + } + if (patternString.length > 0) { + if (patternString[0] === PATH_SEP) { + patternString = patternString.substring(1); + } + this.globWrappers.push({ + regexp: glob_1.createRegex('**/' + patternString, { extended: true, globstar: true }), + include: include, + }); + } + } + ; + this.uris = uris; + } + catch (e) { + this.globWrappers.length = 0; + this.uris = []; + } + } + FilePatternAssociation.prototype.matchesPattern = function (fileName) { + var match = false; + for (var _i = 0, _a = this.globWrappers; _i < _a.length; _i++) { + var _b = _a[_i], regexp = _b.regexp, include = _b.include; + if (regexp.test(fileName)) { + match = include; + } + } + return match; + }; + FilePatternAssociation.prototype.getURIs = function () { + return this.uris; + }; + return FilePatternAssociation; + }()); + var SchemaHandle = /** @class */ (function () { + function SchemaHandle(service, url, unresolvedSchemaContent) { + this.service = service; + this.url = url; + this.dependencies = {}; + if (unresolvedSchemaContent) { + this.unresolvedSchema = this.service.promise.resolve(new UnresolvedSchema(unresolvedSchemaContent)); + } + } + SchemaHandle.prototype.getUnresolvedSchema = function () { + if (!this.unresolvedSchema) { + this.unresolvedSchema = this.service.loadSchema(this.url); + } + return this.unresolvedSchema; + }; + SchemaHandle.prototype.getResolvedSchema = function () { + var _this = this; + if (!this.resolvedSchema) { + this.resolvedSchema = this.getUnresolvedSchema().then(function (unresolved) { + return _this.service.resolveSchemaContent(unresolved, _this.url, _this.dependencies); + }); + } + return this.resolvedSchema; + }; + SchemaHandle.prototype.clearSchema = function () { + this.resolvedSchema = undefined; + this.unresolvedSchema = undefined; + this.dependencies = {}; + }; + return SchemaHandle; + }()); + var UnresolvedSchema = /** @class */ (function () { + function UnresolvedSchema(schema, errors) { + if (errors === void 0) { errors = []; } + this.schema = schema; + this.errors = errors; + } + return UnresolvedSchema; + }()); + exports.UnresolvedSchema = UnresolvedSchema; + var ResolvedSchema = /** @class */ (function () { + function ResolvedSchema(schema, errors) { + if (errors === void 0) { errors = []; } + this.schema = schema; + this.errors = errors; + } + ResolvedSchema.prototype.getSection = function (path) { + var schemaRef = this.getSectionRecursive(path, this.schema); + if (schemaRef) { + return Parser.asSchema(schemaRef); + } + return undefined; + }; + ResolvedSchema.prototype.getSectionRecursive = function (path, schema) { + if (!schema || typeof schema === 'boolean' || path.length === 0) { + return schema; + } + var next = path.shift(); + if (schema.properties && typeof schema.properties[next]) { + return this.getSectionRecursive(path, schema.properties[next]); + } + else if (schema.patternProperties) { + for (var _i = 0, _a = Object.keys(schema.patternProperties); _i < _a.length; _i++) { + var pattern = _a[_i]; + var regex = Strings.extendedRegExp(pattern); + if (regex.test(next)) { + return this.getSectionRecursive(path, schema.patternProperties[pattern]); + } + } + } + else if (typeof schema.additionalProperties === 'object') { + return this.getSectionRecursive(path, schema.additionalProperties); + } + else if (next.match('[0-9]+')) { + if (Array.isArray(schema.items)) { + var index = parseInt(next, 10); + if (!isNaN(index) && schema.items[index]) { + return this.getSectionRecursive(path, schema.items[index]); + } + } + else if (schema.items) { + return this.getSectionRecursive(path, schema.items); + } + } + return undefined; + }; + return ResolvedSchema; + }()); + exports.ResolvedSchema = ResolvedSchema; + var JSONSchemaService = /** @class */ (function () { + function JSONSchemaService(requestService, contextService, promiseConstructor) { + this.contextService = contextService; + this.requestService = requestService; + this.promiseConstructor = promiseConstructor || Promise; + this.callOnDispose = []; + this.contributionSchemas = {}; + this.contributionAssociations = []; + this.schemasById = {}; + this.filePatternAssociations = []; + this.registeredSchemasIds = {}; + } + JSONSchemaService.prototype.getRegisteredSchemaIds = function (filter) { + return Object.keys(this.registeredSchemasIds).filter(function (id) { + var scheme = vscode_uri_1.URI.parse(id).scheme; + return scheme !== 'schemaservice' && (!filter || filter(scheme)); + }); + }; + Object.defineProperty(JSONSchemaService.prototype, "promise", { + get: function () { + return this.promiseConstructor; + }, + enumerable: false, + configurable: true + }); + JSONSchemaService.prototype.dispose = function () { + while (this.callOnDispose.length > 0) { + this.callOnDispose.pop()(); + } + }; + JSONSchemaService.prototype.onResourceChange = function (uri) { + var _this = this; + // always clear this local cache when a resource changes + this.cachedSchemaForResource = undefined; + var hasChanges = false; + uri = normalizeId(uri); + var toWalk = [uri]; + var all = Object.keys(this.schemasById).map(function (key) { return _this.schemasById[key]; }); + while (toWalk.length) { + var curr = toWalk.pop(); + for (var i = 0; i < all.length; i++) { + var handle = all[i]; + if (handle && (handle.url === curr || handle.dependencies[curr])) { + if (handle.url !== curr) { + toWalk.push(handle.url); + } + handle.clearSchema(); + all[i] = undefined; + hasChanges = true; + } + } + } + return hasChanges; + }; + JSONSchemaService.prototype.setSchemaContributions = function (schemaContributions) { + if (schemaContributions.schemas) { + var schemas = schemaContributions.schemas; + for (var id in schemas) { + var normalizedId = normalizeId(id); + this.contributionSchemas[normalizedId] = this.addSchemaHandle(normalizedId, schemas[id]); + } + } + if (Array.isArray(schemaContributions.schemaAssociations)) { + var schemaAssociations = schemaContributions.schemaAssociations; + for (var _i = 0, schemaAssociations_1 = schemaAssociations; _i < schemaAssociations_1.length; _i++) { + var schemaAssociation = schemaAssociations_1[_i]; + var uris = schemaAssociation.uris.map(normalizeId); + var association = this.addFilePatternAssociation(schemaAssociation.pattern, uris); + this.contributionAssociations.push(association); + } + } + }; + JSONSchemaService.prototype.addSchemaHandle = function (id, unresolvedSchemaContent) { + var schemaHandle = new SchemaHandle(this, id, unresolvedSchemaContent); + this.schemasById[id] = schemaHandle; + return schemaHandle; + }; + JSONSchemaService.prototype.getOrAddSchemaHandle = function (id, unresolvedSchemaContent) { + return this.schemasById[id] || this.addSchemaHandle(id, unresolvedSchemaContent); + }; + JSONSchemaService.prototype.addFilePatternAssociation = function (pattern, uris) { + var fpa = new FilePatternAssociation(pattern, uris); + this.filePatternAssociations.push(fpa); + return fpa; + }; + JSONSchemaService.prototype.registerExternalSchema = function (uri, filePatterns, unresolvedSchemaContent) { + var id = normalizeId(uri); + this.registeredSchemasIds[id] = true; + this.cachedSchemaForResource = undefined; + if (filePatterns) { + this.addFilePatternAssociation(filePatterns, [uri]); + } + return unresolvedSchemaContent ? this.addSchemaHandle(id, unresolvedSchemaContent) : this.getOrAddSchemaHandle(id); + }; + JSONSchemaService.prototype.clearExternalSchemas = function () { + this.schemasById = {}; + this.filePatternAssociations = []; + this.registeredSchemasIds = {}; + this.cachedSchemaForResource = undefined; + for (var id in this.contributionSchemas) { + this.schemasById[id] = this.contributionSchemas[id]; + this.registeredSchemasIds[id] = true; + } + for (var _i = 0, _a = this.contributionAssociations; _i < _a.length; _i++) { + var contributionAssociation = _a[_i]; + this.filePatternAssociations.push(contributionAssociation); + } + }; + JSONSchemaService.prototype.getResolvedSchema = function (schemaId) { + var id = normalizeId(schemaId); + var schemaHandle = this.schemasById[id]; + if (schemaHandle) { + return schemaHandle.getResolvedSchema(); + } + return this.promise.resolve(undefined); + }; + JSONSchemaService.prototype.loadSchema = function (url) { + if (!this.requestService) { + var errorMessage = localize('json.schema.norequestservice', 'Unable to load schema from \'{0}\'. No schema request service available', toDisplayString(url)); + return this.promise.resolve(new UnresolvedSchema({}, [errorMessage])); + } + return this.requestService(url).then(function (content) { + if (!content) { + var errorMessage = localize('json.schema.nocontent', 'Unable to load schema from \'{0}\': No content.', toDisplayString(url)); + return new UnresolvedSchema({}, [errorMessage]); + } + var schemaContent = {}; + var jsonErrors = []; + schemaContent = Json.parse(content, jsonErrors); + var errors = jsonErrors.length ? [localize('json.schema.invalidFormat', 'Unable to parse content from \'{0}\': Parse error at offset {1}.', toDisplayString(url), jsonErrors[0].offset)] : []; + return new UnresolvedSchema(schemaContent, errors); + }, function (error) { + var errorMessage = error.toString(); + var errorSplit = error.toString().split('Error: '); + if (errorSplit.length > 1) { + // more concise error message, URL and context are attached by caller anyways + errorMessage = errorSplit[1]; + } + if (Strings.endsWith(errorMessage, '.')) { + errorMessage = errorMessage.substr(0, errorMessage.length - 1); + } + return new UnresolvedSchema({}, [localize('json.schema.nocontent', 'Unable to load schema from \'{0}\': {1}.', toDisplayString(url), errorMessage)]); + }); + }; + JSONSchemaService.prototype.resolveSchemaContent = function (schemaToResolve, schemaURL, dependencies) { + var _this = this; + var resolveErrors = schemaToResolve.errors.slice(0); + var schema = schemaToResolve.schema; + if (schema.$schema) { + var id = normalizeId(schema.$schema); + if (id === 'http://json-schema.org/draft-03/schema') { + return this.promise.resolve(new ResolvedSchema({}, [localize('json.schema.draft03.notsupported', "Draft-03 schemas are not supported.")])); + } + else if (id === 'https://json-schema.org/draft/2019-09/schema') { + resolveErrors.push(localize('json.schema.draft201909.notsupported', "Draft 2019-09 schemas are not yet fully supported.")); + } + } + var contextService = this.contextService; + var findSection = function (schema, path) { + if (!path) { + return schema; + } + var current = schema; + if (path[0] === '/') { + path = path.substr(1); + } + path.split('/').some(function (part) { + part = part.replace(/~1/g, '/').replace(/~0/g, '~'); + current = current[part]; + return !current; + }); + return current; + }; + var merge = function (target, sourceRoot, sourceURI, refSegment) { + var path = refSegment ? decodeURIComponent(refSegment) : undefined; + var section = findSection(sourceRoot, path); + if (section) { + for (var key in section) { + if (section.hasOwnProperty(key) && !target.hasOwnProperty(key)) { + target[key] = section[key]; + } + } + } + else { + resolveErrors.push(localize('json.schema.invalidref', '$ref \'{0}\' in \'{1}\' can not be resolved.', path, sourceURI)); + } + }; + var resolveExternalLink = function (node, uri, refSegment, parentSchemaURL, parentSchemaDependencies) { + if (contextService && !/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(uri)) { + uri = contextService.resolveRelativePath(uri, parentSchemaURL); + } + uri = normalizeId(uri); + var referencedHandle = _this.getOrAddSchemaHandle(uri); + return referencedHandle.getUnresolvedSchema().then(function (unresolvedSchema) { + parentSchemaDependencies[uri] = true; + if (unresolvedSchema.errors.length) { + var loc = refSegment ? uri + '#' + refSegment : uri; + resolveErrors.push(localize('json.schema.problemloadingref', 'Problems loading reference \'{0}\': {1}', loc, unresolvedSchema.errors[0])); + } + merge(node, unresolvedSchema.schema, uri, refSegment); + return resolveRefs(node, unresolvedSchema.schema, uri, referencedHandle.dependencies); + }); + }; + var resolveRefs = function (node, parentSchema, parentSchemaURL, parentSchemaDependencies) { + if (!node || typeof node !== 'object') { + return Promise.resolve(null); + } + var toWalk = [node]; + var seen = []; + var openPromises = []; + var collectEntries = function () { + var entries = []; + for (var _i = 0; _i < arguments.length; _i++) { + entries[_i] = arguments[_i]; + } + for (var _a = 0, entries_1 = entries; _a < entries_1.length; _a++) { + var entry = entries_1[_a]; + if (typeof entry === 'object') { + toWalk.push(entry); + } + } + }; + var collectMapEntries = function () { + var maps = []; + for (var _i = 0; _i < arguments.length; _i++) { + maps[_i] = arguments[_i]; + } + for (var _a = 0, maps_1 = maps; _a < maps_1.length; _a++) { + var map = maps_1[_a]; + if (typeof map === 'object') { + for (var k in map) { + var key = k; + var entry = map[key]; + if (typeof entry === 'object') { + toWalk.push(entry); + } + } + } + } + }; + var collectArrayEntries = function () { + var arrays = []; + for (var _i = 0; _i < arguments.length; _i++) { + arrays[_i] = arguments[_i]; + } + for (var _a = 0, arrays_1 = arrays; _a < arrays_1.length; _a++) { + var array = arrays_1[_a]; + if (Array.isArray(array)) { + for (var _b = 0, array_1 = array; _b < array_1.length; _b++) { + var entry = array_1[_b]; + if (typeof entry === 'object') { + toWalk.push(entry); + } + } + } + } + }; + var handleRef = function (next) { + var seenRefs = []; + while (next.$ref) { + var ref = next.$ref; + var segments = ref.split('#', 2); + 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 circle + seenRefs.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); + }; + while (toWalk.length) { + var next = toWalk.pop(); + if (seen.indexOf(next) >= 0) { + continue; + } + seen.push(next); + handleRef(next); + } + return _this.promise.all(openPromises); + }; + return resolveRefs(schema, schema, schemaURL, dependencies).then(function (_) { return new ResolvedSchema(schema, resolveErrors); }); + }; + JSONSchemaService.prototype.getSchemaForResource = function (resource, document) { + // first use $schema if present + if (document && document.root && document.root.type === 'object') { + var schemaProperties = document.root.properties.filter(function (p) { return (p.keyNode.value === '$schema') && p.valueNode && p.valueNode.type === 'string'; }); + if (schemaProperties.length > 0) { + var valueNode = schemaProperties[0].valueNode; + if (valueNode && valueNode.type === 'string') { + var schemeId = Parser.getNodeValue(valueNode); + if (schemeId && Strings.startsWith(schemeId, '.') && this.contextService) { + schemeId = this.contextService.resolveRelativePath(schemeId, resource); + } + if (schemeId) { + var id = normalizeId(schemeId); + return this.getOrAddSchemaHandle(id).getResolvedSchema(); + } + } + } + } + if (this.cachedSchemaForResource && this.cachedSchemaForResource.resource === resource) { + return this.cachedSchemaForResource.resolvedSchema; + } + var seen = Object.create(null); + var schemas = []; + var normalizedResource = normalizeResourceForMatching(resource); + for (var _i = 0, _a = this.filePatternAssociations; _i < _a.length; _i++) { + var entry = _a[_i]; + if (entry.matchesPattern(normalizedResource)) { + for (var _b = 0, _c = entry.getURIs(); _b < _c.length; _b++) { + var schemaId = _c[_b]; + if (!seen[schemaId]) { + schemas.push(schemaId); + seen[schemaId] = true; + } + } + } + } + var resolvedSchema = schemas.length > 0 ? this.createCombinedSchema(resource, schemas).getResolvedSchema() : this.promise.resolve(undefined); + this.cachedSchemaForResource = { resource: resource, resolvedSchema: resolvedSchema }; + return resolvedSchema; + }; + JSONSchemaService.prototype.createCombinedSchema = function (resource, schemaIds) { + if (schemaIds.length === 1) { + return this.getOrAddSchemaHandle(schemaIds[0]); + } + else { + var combinedSchemaId = 'schemaservice://combinedSchema/' + encodeURIComponent(resource); + var combinedSchema = { + allOf: schemaIds.map(function (schemaId) { return ({ $ref: schemaId }); }) + }; + return this.addSchemaHandle(combinedSchemaId, combinedSchema); + } + }; + JSONSchemaService.prototype.getMatchingSchemas = function (document, jsonDocument, schema) { + if (schema) { + var id = schema.id || ('schemaservice://untitled/matchingSchemas/' + idCounter++); + return this.resolveSchemaContent(new UnresolvedSchema(schema), id, {}).then(function (resolvedSchema) { + return jsonDocument.getMatchingSchemas(resolvedSchema.schema).filter(function (s) { return !s.inverted; }); + }); + } + return this.getSchemaForResource(document.uri, jsonDocument).then(function (schema) { + if (schema) { + return jsonDocument.getMatchingSchemas(schema.schema).filter(function (s) { return !s.inverted; }); + } + return []; + }); + }; + return JSONSchemaService; + }()); + exports.JSONSchemaService = JSONSchemaService; + var idCounter = 0; + function normalizeId(id) { + // remove trailing '#', normalize drive capitalization + try { + return vscode_uri_1.URI.parse(id).toString(); + } + catch (e) { + return id; + } + } + function normalizeResourceForMatching(resource) { + // remove queries and fragments, normalize drive capitalization + try { + return vscode_uri_1.URI.parse(resource).with({ fragment: null, query: null }).toString(); + } + catch (e) { + return resource; + } + } + function toDisplayString(url) { + try { + var uri = vscode_uri_1.URI.parse(url); + if (uri.scheme === 'file') { + return uri.fsPath; + } + } + catch (e) { + // ignore + } + return url; + } +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSelectionRanges.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSelectionRanges.js" index 0cf44a23866412b4980c1c0f30f5b558eadb9efe..d1e539c4393457c9cf9c3844fa364c30519a4f1e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSelectionRanges.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSelectionRanges.js" @@ -1,3 +1,75 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fbbadc20c9a705816195f26256dc1971334c36e0759417c99b299824bd8d3399 -size 3611 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "../jsonLanguageTypes", "jsonc-parser"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSelectionRanges = void 0; + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + var jsonc_parser_1 = require("jsonc-parser"); + function getSelectionRanges(document, positions, doc) { + function getSelectionRange(position) { + var offset = document.offsetAt(position); + var node = doc.getNodeFromOffset(offset, true); + var result = []; + while (node) { + switch (node.type) { + case 'string': + case 'object': + case 'array': + // range without ", [ or { + var cStart = node.offset + 1, cEnd = node.offset + node.length - 1; + if (cStart < cEnd && offset >= cStart && offset <= cEnd) { + result.push(newRange(cStart, cEnd)); + } + result.push(newRange(node.offset, node.offset + node.length)); + break; + case 'number': + case 'boolean': + case 'null': + case 'property': + result.push(newRange(node.offset, node.offset + node.length)); + break; + } + if (node.type === 'property' || node.parent && node.parent.type === 'array') { + var afterCommaOffset = getOffsetAfterNextToken(node.offset + node.length, 5 /* CommaToken */); + if (afterCommaOffset !== -1) { + result.push(newRange(node.offset, afterCommaOffset)); + } + } + node = node.parent; + } + var current = undefined; + for (var index = result.length - 1; index >= 0; index--) { + current = jsonLanguageTypes_1.SelectionRange.create(result[index], current); + } + if (!current) { + current = jsonLanguageTypes_1.SelectionRange.create(jsonLanguageTypes_1.Range.create(position, position)); + } + return current; + } + function newRange(start, end) { + return jsonLanguageTypes_1.Range.create(document.positionAt(start), document.positionAt(end)); + } + var scanner = jsonc_parser_1.createScanner(document.getText(), true); + function getOffsetAfterNextToken(offset, expectedToken) { + scanner.setPosition(offset); + var token = scanner.scan(); + if (token === expectedToken) { + return scanner.getTokenOffset() + scanner.getTokenLength(); + } + return -1; + } + return positions.map(getSelectionRange); + } + exports.getSelectionRanges = getSelectionRanges; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonValidation.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonValidation.js" index f515b2fb1cbcc94fce2438f720f6b69d5620a9b1..e0b2ea855104500d8da3c8fe32ec08d42b89e896 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonValidation.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/services/jsonValidation.js" @@ -1,3 +1,159 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:141aeca0078844b5c571315ff633ac01f901d03dd1fd926a48de4254ebf390f0 -size 8716 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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", "./jsonSchemaService", "../jsonLanguageTypes", "vscode-nls", "../utils/objects"], factory); + } +})(function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.JSONValidation = void 0; + var jsonSchemaService_1 = require("./jsonSchemaService"); + var jsonLanguageTypes_1 = require("../jsonLanguageTypes"); + var nls = require("vscode-nls"); + var objects_1 = require("../utils/objects"); + var localize = nls.loadMessageBundle(); + var JSONValidation = /** @class */ (function () { + function JSONValidation(jsonSchemaService, promiseConstructor) { + this.jsonSchemaService = jsonSchemaService; + this.promise = promiseConstructor; + this.validationEnabled = true; + } + JSONValidation.prototype.configure = function (raw) { + if (raw) { + this.validationEnabled = raw.validate !== false; + this.commentSeverity = raw.allowComments ? undefined : jsonLanguageTypes_1.DiagnosticSeverity.Error; + } + }; + JSONValidation.prototype.doValidation = function (textDocument, jsonDocument, documentSettings, schema) { + var _this = this; + if (!this.validationEnabled) { + return this.promise.resolve([]); + } + var diagnostics = []; + var added = {}; + var addProblem = function (problem) { + // remove duplicated messages + var signature = problem.range.start.line + ' ' + problem.range.start.character + ' ' + problem.message; + if (!added[signature]) { + added[signature] = true; + diagnostics.push(problem); + } + }; + var getDiagnostics = function (schema) { + var trailingCommaSeverity = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.trailingCommas) ? toDiagnosticSeverity(documentSettings.trailingCommas) : jsonLanguageTypes_1.DiagnosticSeverity.Error; + var commentSeverity = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.comments) ? toDiagnosticSeverity(documentSettings.comments) : _this.commentSeverity; + var schemaValidation = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.schemaValidation) ? toDiagnosticSeverity(documentSettings.schemaValidation) : jsonLanguageTypes_1.DiagnosticSeverity.Warning; + var schemaRequest = (documentSettings === null || documentSettings === void 0 ? void 0 : documentSettings.schemaRequest) ? toDiagnosticSeverity(documentSettings.schemaRequest) : jsonLanguageTypes_1.DiagnosticSeverity.Warning; + if (schema) { + if (schema.errors.length && jsonDocument.root && schemaRequest) { + var astRoot = jsonDocument.root; + var property = astRoot.type === 'object' ? astRoot.properties[0] : undefined; + if (property && property.keyNode.value === '$schema') { + var node = property.valueNode || property; + var range = jsonLanguageTypes_1.Range.create(textDocument.positionAt(node.offset), textDocument.positionAt(node.offset + node.length)); + addProblem(jsonLanguageTypes_1.Diagnostic.create(range, schema.errors[0], schemaRequest, jsonLanguageTypes_1.ErrorCode.SchemaResolveError)); + } + else { + var range = jsonLanguageTypes_1.Range.create(textDocument.positionAt(astRoot.offset), textDocument.positionAt(astRoot.offset + 1)); + addProblem(jsonLanguageTypes_1.Diagnostic.create(range, schema.errors[0], schemaRequest, jsonLanguageTypes_1.ErrorCode.SchemaResolveError)); + } + } + else if (schemaValidation) { + var semanticErrors = jsonDocument.validate(textDocument, schema.schema, schemaValidation); + if (semanticErrors) { + semanticErrors.forEach(addProblem); + } + } + if (schemaAllowsComments(schema.schema)) { + commentSeverity = undefined; + } + if (schemaAllowsTrailingCommas(schema.schema)) { + trailingCommaSeverity = undefined; + } + } + for (var _i = 0, _a = jsonDocument.syntaxErrors; _i < _a.length; _i++) { + var p = _a[_i]; + if (p.code === jsonLanguageTypes_1.ErrorCode.TrailingComma) { + if (typeof trailingCommaSeverity !== 'number') { + continue; + } + p.severity = trailingCommaSeverity; + } + addProblem(p); + } + if (typeof commentSeverity === 'number') { + var message_1 = localize('InvalidCommentToken', 'Comments are not permitted in JSON.'); + jsonDocument.comments.forEach(function (c) { + addProblem(jsonLanguageTypes_1.Diagnostic.create(c, message_1, commentSeverity, jsonLanguageTypes_1.ErrorCode.CommentNotPermitted)); + }); + } + return diagnostics; + }; + if (schema) { + var id = schema.id || ('schemaservice://untitled/' + idCounter++); + return this.jsonSchemaService.resolveSchemaContent(new jsonSchemaService_1.UnresolvedSchema(schema), id, {}).then(function (resolvedSchema) { + return getDiagnostics(resolvedSchema); + }); + } + return this.jsonSchemaService.getSchemaForResource(textDocument.uri, jsonDocument).then(function (schema) { + return getDiagnostics(schema); + }); + }; + return JSONValidation; + }()); + exports.JSONValidation = JSONValidation; + var idCounter = 0; + function schemaAllowsComments(schemaRef) { + if (schemaRef && typeof schemaRef === 'object') { + if (objects_1.isBoolean(schemaRef.allowComments)) { + return schemaRef.allowComments; + } + if (schemaRef.allOf) { + for (var _i = 0, _a = schemaRef.allOf; _i < _a.length; _i++) { + var schema = _a[_i]; + var allow = schemaAllowsComments(schema); + if (objects_1.isBoolean(allow)) { + return allow; + } + } + } + } + return undefined; + } + function schemaAllowsTrailingCommas(schemaRef) { + if (schemaRef && typeof schemaRef === 'object') { + if (objects_1.isBoolean(schemaRef.allowTrailingCommas)) { + return schemaRef.allowTrailingCommas; + } + var deprSchemaRef = schemaRef; + if (objects_1.isBoolean(deprSchemaRef['allowsTrailingCommas'])) { // deprecated + return deprSchemaRef['allowsTrailingCommas']; + } + if (schemaRef.allOf) { + for (var _i = 0, _a = schemaRef.allOf; _i < _a.length; _i++) { + var schema = _a[_i]; + var allow = schemaAllowsTrailingCommas(schema); + if (objects_1.isBoolean(allow)) { + return allow; + } + } + } + } + return undefined; + } + function toDiagnosticSeverity(severityLevel) { + switch (severityLevel) { + case 'error': return jsonLanguageTypes_1.DiagnosticSeverity.Error; + case 'warning': return jsonLanguageTypes_1.DiagnosticSeverity.Warning; + case 'ignore': return undefined; + } + return undefined; + } +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/colors.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/colors.js" index d3be8aa50cbb1482863fdab3dd7f75b269111206..bd44e46d80ccfab6de1fdbc188e7874191987f16 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/colors.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/colors.js" @@ -1,3 +1,85 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfa77c1bcc440cfb7a020ff34c9e6de3adcefacd5fcde1feb590dcff35a0b7a0 -size 3436 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. 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 }); + exports.colorFrom256RGB = exports.colorFromHex = exports.hexDigit = void 0; + var Digit0 = 48; + var Digit9 = 57; + var A = 65; + var a = 97; + var f = 102; + function hexDigit(charCode) { + if (charCode < Digit0) { + return 0; + } + if (charCode <= Digit9) { + return charCode - Digit0; + } + if (charCode < a) { + charCode += (a - A); + } + if (charCode >= a && charCode <= f) { + return charCode - a + 10; + } + return 0; + } + exports.hexDigit = hexDigit; + function colorFromHex(text) { + if (text[0] !== '#') { + return undefined; + } + switch (text.length) { + case 4: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0, + green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0, + blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0, + alpha: 1 + }; + case 5: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x11) / 255.0, + green: (hexDigit(text.charCodeAt(2)) * 0x11) / 255.0, + blue: (hexDigit(text.charCodeAt(3)) * 0x11) / 255.0, + alpha: (hexDigit(text.charCodeAt(4)) * 0x11) / 255.0, + }; + case 7: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0, + green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0, + blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0, + alpha: 1 + }; + case 9: + return { + red: (hexDigit(text.charCodeAt(1)) * 0x10 + hexDigit(text.charCodeAt(2))) / 255.0, + green: (hexDigit(text.charCodeAt(3)) * 0x10 + hexDigit(text.charCodeAt(4))) / 255.0, + blue: (hexDigit(text.charCodeAt(5)) * 0x10 + hexDigit(text.charCodeAt(6))) / 255.0, + alpha: (hexDigit(text.charCodeAt(7)) * 0x10 + hexDigit(text.charCodeAt(8))) / 255.0 + }; + } + return undefined; + } + exports.colorFromHex = colorFromHex; + function colorFrom256RGB(red, green, blue, alpha) { + if (alpha === void 0) { alpha = 1.0; } + return { + red: red / 255.0, + green: green / 255.0, + blue: blue / 255.0, + alpha: alpha + }; + } + exports.colorFrom256RGB = colorFrom256RGB; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/glob.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/glob.js" index adaeddbc077c7ee667359b4470654adf16687c16..a868024beb34ed93f66ffa4df6d599f223ec3849 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/glob.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/glob.js" @@ -1,3 +1,138 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d93f444d070184b3023f66a4dbca8892ce16084308022f5e549516f3fe104009 -size 6006 +(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 }); + exports.createRegex = void 0; + /*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Copyright (c) 2013, Nick Fitzgerald + * Licensed under the MIT License. See LICENCE.md in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + function createRegex(glob, opts) { + if (typeof glob !== 'string') { + throw new TypeError('Expected a string'); + } + var str = String(glob); + // The regexp we are building, as a string. + var reStr = ""; + // Whether we are matching so called "extended" globs (like bash) and should + // support single character matching, matching ranges of characters, group + // matching, etc. + var extended = opts ? !!opts.extended : false; + // When globstar is _false_ (default), '/foo/*' is translated a regexp like + // '^\/foo\/.*$' which will match any string beginning with '/foo/' + // When globstar is _true_, '/foo/*' is translated to regexp like + // '^\/foo\/[^/]*$' which will match any string beginning with '/foo/' BUT + // which does not have a '/' to the right of it. + // E.g. with '/foo/*' these will match: '/foo/bar', '/foo/bar.txt' but + // these will not '/foo/bar/baz', '/foo/bar/baz.txt' + // Lastely, when globstar is _true_, '/foo/**' is equivelant to '/foo/*' when + // globstar is _false_ + var globstar = opts ? !!opts.globstar : false; + // If we are doing extended matching, this boolean is true when we are inside + // a group (eg {*.html,*.js}), and false otherwise. + var inGroup = false; + // RegExp flags (eg "i" ) to pass in to RegExp constructor. + var flags = opts && typeof (opts.flags) === "string" ? opts.flags : ""; + var c; + for (var i = 0, len = str.length; i < len; i++) { + c = str[i]; + switch (c) { + case "/": + case "$": + case "^": + case "+": + case ".": + case "(": + case ")": + case "=": + case "!": + case "|": + reStr += "\\" + c; + break; + case "?": + if (extended) { + reStr += "."; + break; + } + case "[": + case "]": + if (extended) { + reStr += c; + break; + } + case "{": + if (extended) { + inGroup = true; + reStr += "("; + break; + } + case "}": + if (extended) { + inGroup = false; + reStr += ")"; + break; + } + case ",": + if (inGroup) { + reStr += "|"; + break; + } + reStr += "\\" + c; + break; + case "*": + // Move over all consecutive "*"'s. + // Also store the previous and next characters + var prevChar = str[i - 1]; + var starCount = 1; + while (str[i + 1] === "*") { + starCount++; + i++; + } + var nextChar = str[i + 1]; + if (!globstar) { + // globstar is disabled, so treat any number of "*" as one + reStr += ".*"; + } + else { + // globstar is enabled, so determine if this is a globstar segment + var isGlobstar = starCount > 1 // multiple "*"'s + && (prevChar === "/" || prevChar === undefined || prevChar === '{' || prevChar === ',') // from the start of the segment + && (nextChar === "/" || nextChar === undefined || nextChar === ',' || nextChar === '}'); // to the end of the segment + if (isGlobstar) { + if (nextChar === "/") { + i++; // move over the "/" + } + else if (prevChar === '/' && reStr.endsWith('\\/')) { + reStr = reStr.substr(0, reStr.length - 2); + } + // it's a globstar, so match zero or more path segments + reStr += "((?:[^/]*(?:\/|$))*)"; + } + else { + // it's not a globstar, so only match one path segment + reStr += "([^/]*)"; + } + } + break; + default: + reStr += c; + } + } + // When regexp 'g' flag is specified don't + // constrain the regular expression with ^ & $ + if (!flags || !~flags.indexOf('g')) { + reStr = "^" + reStr + "$"; + } + return new RegExp(reStr, flags); + } + exports.createRegex = createRegex; + ; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/json.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/json.js" index 0a346c1531dda1e6b3a2f9a1896efa9795f629e9..5aa7d221a5dd63adc47ee0ee75341e1434988dd7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/json.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/json.js" @@ -1,3 +1,56 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b4dc8f5b5a750c3777b86385032860cdec81e7d3f60e2ac8d9701d81269ba11 -size 2303 +/*--------------------------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. 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 }); + exports.stringifyObject = void 0; + function stringifyObject(obj, indent, stringifyLiteral) { + if (obj !== null && typeof obj === 'object') { + var newIndent = indent + '\t'; + if (Array.isArray(obj)) { + if (obj.length === 0) { + return '[]'; + } + var result = '[\n'; + for (var i = 0; i < obj.length; i++) { + result += newIndent + stringifyObject(obj[i], newIndent, stringifyLiteral); + if (i < obj.length - 1) { + result += ','; + } + result += '\n'; + } + result += indent + ']'; + return result; + } + else { + var keys = Object.keys(obj); + if (keys.length === 0) { + return '{}'; + } + var result = '{\n'; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + result += newIndent + JSON.stringify(key) + ': ' + stringifyObject(obj[key], newIndent, stringifyLiteral); + if (i < keys.length - 1) { + result += ','; + } + result += '\n'; + } + result += indent + '}'; + return result; + } + } + return stringifyLiteral(obj); + } + exports.stringifyObject = stringifyObject; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/objects.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/objects.js" index 18f7f2668114c285134665508fb72ae051b327e2..e9b7452f40b4c2f3019629e9d25985cf434e7291 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/objects.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/objects.js" @@ -1,3 +1,83 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0e8ca194e3b1d4382979d3d9afa6d1c39706a427a8e7175dd5ba52934ee002d -size 2764 +/*--------------------------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. 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 }); + exports.isString = exports.isBoolean = exports.isDefined = exports.isNumber = exports.equals = void 0; + function equals(one, other) { + if (one === other) { + return true; + } + if (one === null || one === undefined || other === null || other === undefined) { + return false; + } + if (typeof one !== typeof other) { + return false; + } + if (typeof one !== 'object') { + return false; + } + if ((Array.isArray(one)) !== (Array.isArray(other))) { + return false; + } + var i, key; + if (Array.isArray(one)) { + if (one.length !== other.length) { + return false; + } + for (i = 0; i < one.length; i++) { + if (!equals(one[i], other[i])) { + return false; + } + } + } + else { + var oneKeys = []; + for (key in one) { + oneKeys.push(key); + } + oneKeys.sort(); + var otherKeys = []; + for (key in other) { + otherKeys.push(key); + } + otherKeys.sort(); + if (!equals(oneKeys, otherKeys)) { + return false; + } + for (i = 0; i < oneKeys.length; i++) { + if (!equals(one[oneKeys[i]], other[oneKeys[i]])) { + return false; + } + } + } + return true; + } + exports.equals = equals; + function isNumber(val) { + return typeof val === 'number'; + } + exports.isNumber = isNumber; + function isDefined(val) { + return typeof val !== 'undefined'; + } + exports.isDefined = isDefined; + function isBoolean(val) { + return typeof val === 'boolean'; + } + exports.isBoolean = isBoolean; + function isString(val) { + return typeof val === 'string'; + } + exports.isString = isString; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/strings.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/strings.js" index d08fa4a95284ad6a6b84e1278153363572b4b4e2..319998de609d4e65d103e1f1dcde9b7cf8b9d059 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/strings.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/lib/umd/utils/strings.js" @@ -1,3 +1,70 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f5902e35201db224649b4f22b51ccd80e40a2826afc3ef734dca51a7865903b -size 2460 +/*--------------------------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. 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 }); + exports.extendedRegExp = exports.repeat = exports.convertSimple2RegExpPattern = exports.endsWith = exports.startsWith = void 0; + function startsWith(haystack, needle) { + if (haystack.length < needle.length) { + return false; + } + for (var i = 0; i < needle.length; i++) { + if (haystack[i] !== needle[i]) { + return false; + } + } + return true; + } + exports.startsWith = startsWith; + /** + * Determines if haystack ends with needle. + */ + function endsWith(haystack, needle) { + var diff = haystack.length - needle.length; + if (diff > 0) { + return haystack.lastIndexOf(needle) === diff; + } + else if (diff === 0) { + return haystack === needle; + } + else { + return false; + } + } + exports.endsWith = endsWith; + function convertSimple2RegExpPattern(pattern) { + return pattern.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, '\\$&').replace(/[\*]/g, '.*'); + } + exports.convertSimple2RegExpPattern = convertSimple2RegExpPattern; + function repeat(value, count) { + var s = ''; + while (count > 0) { + if ((count & 1) === 1) { + s += value; + } + value += value; + count = count >>> 1; + } + return s; + } + exports.repeat = repeat; + function extendedRegExp(pattern) { + if (startsWith(pattern, '(?i)')) { + return new RegExp(pattern.substring(4), 'i'); + } + else { + return new RegExp(pattern); + } + } + exports.extendedRegExp = extendedRegExp; +}); diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/package.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/package.json" index f6102d456dcd54ce6a2c3e1a02a49a7aeeff0c31..f7fc08c253176c2817c84bdfece6b8fb59affa9e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/package.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/vscode-json-languageservice/package.json" @@ -1,3 +1,55 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:27a456d4e5cb4e452da253ba21b6f3de8d7588527f3c1076e745de531f60b0ee -size 1894 +{ + "name": "vscode-json-languageservice", + "version": "4.1.8", + "description": "Language service for JSON", + "main": "./lib/umd/jsonLanguageService.js", + "typings": "./lib/umd/jsonLanguageService", + "module": "./lib/esm/jsonLanguageService.js", + "author": "Microsoft Corporation", + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/vscode-json-languageservice" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/Microsoft/vscode-json-languageservice" + }, + "engines": { + "npm": ">=7.0.0" + }, + "devDependencies": { + "@types/mocha": "^8.2.0", + "@types/node": "^10.12.21", + "@typescript-eslint/eslint-plugin": "^4.14.0", + "@typescript-eslint/parser": "^4.14.0", + "eslint": "^7.18.0", + "mocha": "^8.2.1", + "rimraf": "^3.0.2", + "typescript": "^4.1.3" + }, + "dependencies": { + "jsonc-parser": "^3.0.0", + "vscode-languageserver-textdocument": "^1.0.1", + "vscode-languageserver-types": "^3.16.0", + "vscode-nls": "^5.0.0", + "vscode-uri": "^3.0.2" + }, + "scripts": { + "prepublishOnly": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs", + "postpublish": "node ./build/post-publish.js", + "compile": "tsc -p ./src", + "compile-esm": "tsc -p ./src/tsconfig.esm.json", + "clean": "rimraf lib", + "remove-sourcemap-refs": "node ./build/remove-sourcemap-refs.js", + "watch": "tsc -w -p ./src", + "pretest": "npm run compile", + "test": "mocha", + "posttest": "npm run lint", + "coverage": "npx nyc -r lcov npm run test", + "lint": "eslint src/**/*.ts", + "install-types-next": "npm install vscode-languageserver-types@next -f -S && npm install vscode-languageserver-textdocument@next -f -S", + "preversion": "npm test", + "postversion": "git push && git push --tags", + "sample": "npm run compile && node ./lib/umd/example/sample.js" + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/LICENSE" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/LICENSE" index 380ba10ceb5fab5f2851db7f5ad7fe213ccbeb7e..e060aaa1fe0f933e699c8feb3fdcc51c2999bf0c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/LICENSE" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/LICENSE" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5bba27375d93e9119f76c1015f7672cf9ad5f70952296e0842fb2243d6376869 -size 738 +Copyright Eemeli Aro + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/README.md" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/README.md" index d135e9790257db77a2d0c06bac6d8fe052d43d0f..3af1473efef1c8ca7919765d9bc7ad9efcbf4365 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/README.md" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/README.md" @@ -1,3 +1,143 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:881e1a05b8d747c424d136ea134a67f2e2a4650a92c559d9378a2efdd008fb9f -size 5443 +# YAML + +`yaml` is a definitive library for [YAML](https://yaml.org/), the human friendly data serialization standard. +This library: + +- Supports both YAML 1.1 and YAML 1.2 and all common data schemas, +- Passes all of the [yaml-test-suite](https://github.com/yaml/yaml-test-suite) tests, +- Can accept any string as input without throwing, parsing as much YAML out of it as it can, and +- Supports parsing, modifying, and writing YAML comments and blank lines. + +The library is released under the ISC open source license, and the code is [available on GitHub](https://github.com/eemeli/yaml/). +It has no external dependencies and runs on Node.js as well as modern browsers. + +For the purposes of versioning, any changes that break any of the documented endpoints or APIs will be considered semver-major breaking changes. +Undocumented library internals may change between minor versions, and previous APIs may be deprecated (but not removed). + +For more information, see the project's documentation site: [**eemeli.org/yaml**](https://eemeli.org/yaml/) + +To install: + +```sh +npm install yaml +``` + +**Note:** These docs are for `yaml@2`. For v1, see the [v1.10.0 tag](https://github.com/eemeli/yaml/tree/v1.10.0) for the source and [eemeli.org/yaml/v1](https://eemeli.org/yaml/v1/) for the documentation. + +## API Overview + +The API provided by `yaml` has three layers, depending on how deep you need to go: [Parse & Stringify](https://eemeli.org/yaml/#parse-amp-stringify), [Documents](https://eemeli.org/yaml/#documents), and the underlying [Lexer/Parser/Composer](https://eemeli.org/yaml/#parsing-yaml). +The first has the simplest API and "just works", the second gets you all the bells and whistles supported by the library along with a decent [AST](https://eemeli.org/yaml/#content-nodes), and the third lets you get progressively closer to YAML source, if that's your thing. + +```js +import { parse, stringify } from 'yaml' +// or +import YAML from 'yaml' +// or +const YAML = require('yaml') +``` + +### Parse & Stringify + +- [`parse(str, reviver?, options?): value`](https://eemeli.org/yaml/#yaml-parse) +- [`stringify(value, replacer?, options?): string`](https://eemeli.org/yaml/#yaml-stringify) + +### Documents + +- [`Document`](https://eemeli.org/yaml/#documents) + - [`constructor(value, replacer?, options?)`](https://eemeli.org/yaml/#creating-documents) + - [`#anchors`](https://eemeli.org/yaml/#working-with-anchors) + - [`#contents`](https://eemeli.org/yaml/#content-nodes) + - [`#directives`](https://eemeli.org/yaml/#stream-directives) + - [`#errors`](https://eemeli.org/yaml/#errors) + - [`#warnings`](https://eemeli.org/yaml/#errors) +- [`isDocument(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`parseAllDocuments(str, options?): Document[]`](https://eemeli.org/yaml/#parsing-documents) +- [`parseDocument(str, options?): Document`](https://eemeli.org/yaml/#parsing-documents) + +### Content Nodes + +- [`isAlias(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`isCollection(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`isMap(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`isNode(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`isPair(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`isScalar(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`isSeq(foo): boolean`](https://eemeli.org/yaml/#identifying-nodes) +- [`new Scalar(value)`](https://eemeli.org/yaml/#scalar-values) +- [`new YAMLMap()`](https://eemeli.org/yaml/#collections) +- [`new YAMLSeq()`](https://eemeli.org/yaml/#collections) +- [`doc.createAlias(node, name?): Alias`](https://eemeli.org/yaml/#working-with-anchors) +- [`doc.createNode(value, options?): Node`](https://eemeli.org/yaml/#creating-nodes) +- [`doc.createPair(key, value): Pair`](https://eemeli.org/yaml/#creating-nodes) +- [`visit(node, visitor)`](https://eemeli.org/yaml/#modifying-nodes) + +### Parsing YAML + +- [`new Lexer().lex(src)`](https://eemeli.org/yaml/#lexer) +- [`new Parser(onNewLine?).parse(src)`](https://eemeli.org/yaml/#parser) +- [`new Composer(options?).compose(tokens)`](https://eemeli.org/yaml/#composer) + +## YAML.parse + +```yaml +# file.yml +YAML: + - A human-readable data serialization language + - https://en.wikipedia.org/wiki/YAML +yaml: + - A complete JavaScript implementation + - https://www.npmjs.com/package/yaml +``` + +```js +import fs from 'fs' +import YAML from 'yaml' + +YAML.parse('3.14159') +// 3.14159 + +YAML.parse('[ true, false, maybe, null ]\n') +// [ true, false, 'maybe', null ] + +const file = fs.readFileSync('./file.yml', 'utf8') +YAML.parse(file) +// { YAML: +// [ 'A human-readable data serialization language', +// 'https://en.wikipedia.org/wiki/YAML' ], +// yaml: +// [ 'A complete JavaScript implementation', +// 'https://www.npmjs.com/package/yaml' ] } +``` + +## YAML.stringify + +```js +import YAML from 'yaml' + +YAML.stringify(3.14159) +// '3.14159\n' + +YAML.stringify([true, false, 'maybe', null]) +// `- true +// - false +// - maybe +// - null +// ` + +YAML.stringify({ number: 3, plain: 'string', block: 'two\nlines\n' }) +// `number: 3 +// plain: string +// block: | +// two +// lines +// ` +``` + +--- + +Browser testing provided by: + + + + diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-collection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-collection.js" index 2865a077eea57c67a0727b1b6de93610c6a1ca0a..44910e5665b427de99ba68dbf233114f038903c9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-collection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-collection.js" @@ -1,3 +1,59 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:addde7484d72616d720df03208f9254aaea6f6fc493e204e831c1b40459bdb90 -size 2045 +import { isNode, isMap } from '../nodes/Node.js'; +import { Scalar } from '../nodes/Scalar.js'; +import { resolveBlockMap } from './resolve-block-map.js'; +import { resolveBlockSeq } from './resolve-block-seq.js'; +import { resolveFlowCollection } from './resolve-flow-collection.js'; + +function composeCollection(CN, ctx, token, tagToken, onError) { + let coll; + switch (token.type) { + case 'block-map': { + coll = resolveBlockMap(CN, ctx, token, onError); + break; + } + case 'block-seq': { + coll = resolveBlockSeq(CN, ctx, token, onError); + break; + } + case 'flow-collection': { + coll = resolveFlowCollection(CN, ctx, token, onError); + break; + } + } + if (!tagToken) + return coll; + const tagName = ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg)); + if (!tagName) + return coll; + // Cast needed due to: https://github.com/Microsoft/TypeScript/issues/3841 + const Coll = coll.constructor; + if (tagName === '!' || tagName === Coll.tagName) { + coll.tag = Coll.tagName; + return coll; + } + const expType = isMap(coll) ? 'map' : 'seq'; + let tag = ctx.schema.tags.find(t => t.collection === expType && t.tag === tagName); + if (!tag) { + const kt = ctx.schema.knownTags[tagName]; + if (kt && kt.collection === expType) { + ctx.schema.tags.push(Object.assign({}, kt, { default: false })); + tag = kt; + } + else { + onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true); + coll.tag = tagName; + return coll; + } + } + const res = tag.resolve(coll, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg), ctx.options); + const node = isNode(res) + ? res + : new Scalar(res); + node.range = coll.range; + node.tag = tagName; + if (tag?.format) + node.format = tag.format; + return node; +} + +export { composeCollection }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-doc.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-doc.js" index c6743e1764f99bc9308fb18e5da907394c0d25f7..e973c8a752205a3e63aafa8f1162e76035704dd5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-doc.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-doc.js" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91706a1d6750690fcf5b62976415bc041e8bc0dc8e1c12d694ab3fca1645e64e -size 1443 +import { Document } from '../doc/Document.js'; +import { composeNode, composeEmptyNode } from './compose-node.js'; +import { resolveEnd } from './resolve-end.js'; +import { resolveProps } from './resolve-props.js'; + +function composeDoc(options, directives, { offset, start, value, end }, onError) { + const opts = Object.assign({ _directives: directives }, options); + const doc = new Document(undefined, opts); + const ctx = { + atRoot: true, + directives: doc.directives, + options: doc.options, + schema: doc.schema + }; + const props = resolveProps(start, { + indicator: 'doc-start', + next: value ?? end?.[0], + offset, + onError, + startOnNewline: true + }); + if (props.found) { + doc.directives.docStart = true; + if (value && + (value.type === 'block-map' || value.type === 'block-seq') && + !props.hasNewline) + onError(props.end, 'MISSING_CHAR', 'Block collection cannot start on same line with directives-end marker'); + } + doc.contents = value + ? composeNode(ctx, value, props, onError) + : composeEmptyNode(ctx, props.end, start, null, props, onError); + const contentEnd = doc.contents.range[2]; + const re = resolveEnd(end, contentEnd, false, onError); + if (re.comment) + doc.comment = re.comment; + doc.range = [offset, contentEnd, re.offset]; + return doc; +} + +export { composeDoc }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-node.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-node.js" index ebc0c6b1165012fb5c94a5d9ca9c2e596cbfc60a..39d98e36442b1207b1bca78e1d844a9256d8a2fd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-node.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-node.js" @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6751b24fd04603a40e27deb8dc782ce27e92ae35df63a5d47eaba58f6ff56b66 -size 3420 +import { Alias } from '../nodes/Alias.js'; +import { composeCollection } from './compose-collection.js'; +import { composeScalar } from './compose-scalar.js'; +import { resolveEnd } from './resolve-end.js'; +import { emptyScalarPosition } from './util-empty-scalar-position.js'; + +const CN = { composeNode, composeEmptyNode }; +function composeNode(ctx, token, props, onError) { + const { spaceBefore, comment, anchor, tag } = props; + let node; + let isSrcToken = true; + switch (token.type) { + case 'alias': + node = composeAlias(ctx, token, onError); + if (anchor || tag) + onError(token, 'ALIAS_PROPS', 'An alias node must not specify any properties'); + break; + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + case 'block-scalar': + node = composeScalar(ctx, token, tag, onError); + if (anchor) + node.anchor = anchor.source.substring(1); + break; + case 'block-map': + case 'block-seq': + case 'flow-collection': + node = composeCollection(CN, ctx, token, tag, onError); + if (anchor) + node.anchor = anchor.source.substring(1); + break; + default: { + const message = token.type === 'error' + ? token.message + : `Unsupported token (type: ${token.type})`; + onError(token, 'UNEXPECTED_TOKEN', message); + node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError); + isSrcToken = false; + } + } + if (anchor && node.anchor === '') + onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string'); + if (spaceBefore) + node.spaceBefore = true; + if (comment) { + if (token.type === 'scalar' && token.source === '') + node.comment = comment; + else + node.commentBefore = comment; + } + // @ts-expect-error Type checking misses meaning of isSrcToken + if (ctx.options.keepSourceTokens && isSrcToken) + node.srcToken = token; + return node; +} +function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) { + const token = { + type: 'scalar', + offset: emptyScalarPosition(offset, before, pos), + indent: -1, + source: '' + }; + const node = composeScalar(ctx, token, tag, onError); + if (anchor) { + node.anchor = anchor.source.substring(1); + if (node.anchor === '') + onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string'); + } + if (spaceBefore) + node.spaceBefore = true; + if (comment) { + node.comment = comment; + node.range[2] = end; + } + return node; +} +function composeAlias({ options }, { offset, source, end }, onError) { + const alias = new Alias(source.substring(1)); + if (alias.source === '') + onError(offset, 'BAD_ALIAS', 'Alias cannot be an empty string'); + if (alias.source.endsWith(':')) + onError(offset + source.length - 1, 'BAD_ALIAS', 'Alias ending in : is ambiguous', true); + const valueEnd = offset + source.length; + const re = resolveEnd(end, valueEnd, options.strict, onError); + alias.range = [offset, valueEnd, re.offset]; + if (re.comment) + alias.comment = re.comment; + return alias; +} + +export { composeEmptyNode, composeNode }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-scalar.js" index 4f2acafdc27eb193848e19532faa1113b277f981..f2bd34384551640db6d2a729483209f1db115ec3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/compose-scalar.js" @@ -1,3 +1,80 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa52bd8b589588927dc73387718dc80f6ea5b894f279f9f28140ea131bb3a634 -size 3160 +import { SCALAR, isScalar } from '../nodes/Node.js'; +import { Scalar } from '../nodes/Scalar.js'; +import { resolveBlockScalar } from './resolve-block-scalar.js'; +import { resolveFlowScalar } from './resolve-flow-scalar.js'; + +function composeScalar(ctx, token, tagToken, onError) { + const { value, type, comment, range } = token.type === 'block-scalar' + ? resolveBlockScalar(token, ctx.options.strict, onError) + : resolveFlowScalar(token, ctx.options.strict, onError); + const tagName = tagToken + ? ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg)) + : null; + const tag = tagToken && tagName + ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) + : token.type === 'scalar' + ? findScalarTagByTest(ctx, value, token, onError) + : ctx.schema[SCALAR]; + let scalar; + try { + const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options); + scalar = isScalar(res) ? res : new Scalar(res); + } + catch (error) { + const msg = error instanceof Error ? error.message : String(error); + onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg); + scalar = new Scalar(value); + } + scalar.range = range; + scalar.source = value; + if (type) + scalar.type = type; + if (tagName) + scalar.tag = tagName; + if (tag.format) + scalar.format = tag.format; + if (comment) + scalar.comment = comment; + return scalar; +} +function findScalarTagByName(schema, value, tagName, tagToken, onError) { + if (tagName === '!') + return schema[SCALAR]; // non-specific tag + const matchWithTest = []; + for (const tag of schema.tags) { + if (!tag.collection && tag.tag === tagName) { + if (tag.default && tag.test) + matchWithTest.push(tag); + else + return tag; + } + } + for (const tag of matchWithTest) + if (tag.test?.test(value)) + return tag; + const kt = schema.knownTags[tagName]; + if (kt && !kt.collection) { + // Ensure that the known tag is available for stringifying, + // but does not get used by default. + schema.tags.push(Object.assign({}, kt, { default: false, test: undefined })); + return kt; + } + onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str'); + return schema[SCALAR]; +} +function findScalarTagByTest({ directives, schema }, value, token, onError) { + const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR]; + if (schema.compat) { + const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ?? + schema[SCALAR]; + if (tag.tag !== compat.tag) { + const ts = directives.tagString(tag.tag); + const cs = directives.tagString(compat.tag); + const msg = `Value may be parsed as either ${ts} or ${cs}`; + onError(token, 'TAG_RESOLVE_FAILED', msg, true); + } + } + return tag; +} + +export { composeScalar }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/composer.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/composer.js" index 45fbc0c2fddafd4f432812f885062dbcbdcfa419..8f76855a6494adae8c469740ac05a7dab56aa96e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/composer.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/composer.js" @@ -1,3 +1,217 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0615b824f2ab9878d8669ef8b24c84c8ccd239450468758deda0ea704e6c7fb -size 8396 +import { Directives } from '../doc/directives.js'; +import { Document } from '../doc/Document.js'; +import { YAMLWarning, YAMLParseError } from '../errors.js'; +import { isCollection, isPair } from '../nodes/Node.js'; +import { composeDoc } from './compose-doc.js'; +import { resolveEnd } from './resolve-end.js'; + +function getErrorPos(src) { + if (typeof src === 'number') + return [src, src + 1]; + if (Array.isArray(src)) + return src.length === 2 ? src : [src[0], src[1]]; + const { offset, source } = src; + return [offset, offset + (typeof source === 'string' ? source.length : 1)]; +} +function parsePrelude(prelude) { + let comment = ''; + let atComment = false; + let afterEmptyLine = false; + for (let i = 0; i < prelude.length; ++i) { + const source = prelude[i]; + switch (source[0]) { + case '#': + comment += + (comment === '' ? '' : afterEmptyLine ? '\n\n' : '\n') + + (source.substring(1) || ' '); + atComment = true; + afterEmptyLine = false; + break; + case '%': + if (prelude[i + 1]?.[0] !== '#') + i += 1; + atComment = false; + break; + default: + // This may be wrong after doc-end, but in that case it doesn't matter + if (!atComment) + afterEmptyLine = true; + atComment = false; + } + } + return { comment, afterEmptyLine }; +} +/** + * Compose a stream of CST nodes into a stream of YAML Documents. + * + * ```ts + * import { Composer, Parser } from 'yaml' + * + * const src: string = ... + * const tokens = new Parser().parse(src) + * const docs = new Composer().compose(tokens) + * ``` + */ +class Composer { + constructor(options = {}) { + this.doc = null; + this.atDirectives = false; + this.prelude = []; + this.errors = []; + this.warnings = []; + this.onError = (source, code, message, warning) => { + const pos = getErrorPos(source); + if (warning) + this.warnings.push(new YAMLWarning(pos, code, message)); + else + this.errors.push(new YAMLParseError(pos, code, message)); + }; + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + this.directives = new Directives({ version: options.version || '1.2' }); + this.options = options; + } + decorate(doc, afterDoc) { + const { comment, afterEmptyLine } = parsePrelude(this.prelude); + //console.log({ dc: doc.comment, prelude, comment }) + if (comment) { + const dc = doc.contents; + if (afterDoc) { + doc.comment = doc.comment ? `${doc.comment}\n${comment}` : comment; + } + else if (afterEmptyLine || doc.directives.docStart || !dc) { + doc.commentBefore = comment; + } + else if (isCollection(dc) && !dc.flow && dc.items.length > 0) { + let it = dc.items[0]; + if (isPair(it)) + it = it.key; + const cb = it.commentBefore; + it.commentBefore = cb ? `${comment}\n${cb}` : comment; + } + else { + const cb = dc.commentBefore; + dc.commentBefore = cb ? `${comment}\n${cb}` : comment; + } + } + if (afterDoc) { + Array.prototype.push.apply(doc.errors, this.errors); + Array.prototype.push.apply(doc.warnings, this.warnings); + } + else { + doc.errors = this.errors; + doc.warnings = this.warnings; + } + this.prelude = []; + this.errors = []; + this.warnings = []; + } + /** + * Current stream status information. + * + * Mostly useful at the end of input for an empty stream. + */ + streamInfo() { + return { + comment: parsePrelude(this.prelude).comment, + directives: this.directives, + errors: this.errors, + warnings: this.warnings + }; + } + /** + * Compose tokens into documents. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + *compose(tokens, forceDoc = false, endOffset = -1) { + for (const token of tokens) + yield* this.next(token); + yield* this.end(forceDoc, endOffset); + } + /** Advance the composer by one CST token. */ + *next(token) { + switch (token.type) { + case 'directive': + this.directives.add(token.source, (offset, message, warning) => { + const pos = getErrorPos(token); + pos[0] += offset; + this.onError(pos, 'BAD_DIRECTIVE', message, warning); + }); + this.prelude.push(token.source); + this.atDirectives = true; + break; + case 'document': { + const doc = composeDoc(this.options, this.directives, token, this.onError); + if (this.atDirectives && !doc.directives.docStart) + this.onError(token, 'MISSING_CHAR', 'Missing directives-end/doc-start indicator line'); + this.decorate(doc, false); + if (this.doc) + yield this.doc; + this.doc = doc; + this.atDirectives = false; + break; + } + case 'byte-order-mark': + case 'space': + break; + case 'comment': + case 'newline': + this.prelude.push(token.source); + break; + case 'error': { + const msg = token.source + ? `${token.message}: ${JSON.stringify(token.source)}` + : token.message; + const error = new YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg); + if (this.atDirectives || !this.doc) + this.errors.push(error); + else + this.doc.errors.push(error); + break; + } + case 'doc-end': { + if (!this.doc) { + const msg = 'Unexpected doc-end without preceding document'; + this.errors.push(new YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg)); + break; + } + this.doc.directives.docEnd = true; + const end = resolveEnd(token.end, token.offset + token.source.length, this.doc.options.strict, this.onError); + this.decorate(this.doc, true); + if (end.comment) { + const dc = this.doc.comment; + this.doc.comment = dc ? `${dc}\n${end.comment}` : end.comment; + } + this.doc.range[2] = end.offset; + break; + } + default: + this.errors.push(new YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', `Unsupported token ${token.type}`)); + } + } + /** + * Call at end of input to yield any remaining document. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + *end(forceDoc = false, endOffset = -1) { + if (this.doc) { + this.decorate(this.doc, true); + yield this.doc; + this.doc = null; + } + else if (forceDoc) { + const opts = Object.assign({ _directives: this.directives }, this.options); + const doc = new Document(undefined, opts); + if (this.atDirectives) + this.onError(endOffset, 'MISSING_CHAR', 'Missing directives-end indicator line'); + doc.range = [0, endOffset, endOffset]; + this.decorate(doc, false); + yield doc; + } + } +} + +export { Composer }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-map.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-map.js" index 8b4820aa613b4ef074b3cb6196d4190952e20fbe..5ab1671a29d7acf3ade1c941b800774867e3ef7a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-map.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-map.js" @@ -1,3 +1,110 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2933e8d7b9943686222ef85006a673b729952d9a3229d228701f33c62895d81c -size 4735 +import { Pair } from '../nodes/Pair.js'; +import { YAMLMap } from '../nodes/YAMLMap.js'; +import { resolveProps } from './resolve-props.js'; +import { containsNewline } from './util-contains-newline.js'; +import { flowIndentCheck } from './util-flow-indent-check.js'; +import { mapIncludes } from './util-map-includes.js'; + +const startColMsg = 'All mapping items must start at the same column'; +function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError) { + const map = new YAMLMap(ctx.schema); + if (ctx.atRoot) + ctx.atRoot = false; + let offset = bm.offset; + let commentEnd = null; + for (const collItem of bm.items) { + const { start, key, sep, value } = collItem; + // key properties + const keyProps = resolveProps(start, { + indicator: 'explicit-key-ind', + next: key ?? sep?.[0], + offset, + onError, + startOnNewline: true + }); + const implicitKey = !keyProps.found; + if (implicitKey) { + if (key) { + if (key.type === 'block-seq') + onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'A block sequence may not be used as an implicit map key'); + else if ('indent' in key && key.indent !== bm.indent) + onError(offset, 'BAD_INDENT', startColMsg); + } + if (!keyProps.anchor && !keyProps.tag && !sep) { + commentEnd = keyProps.end; + if (keyProps.comment) { + if (map.comment) + map.comment += '\n' + keyProps.comment; + else + map.comment = keyProps.comment; + } + continue; + } + if (keyProps.hasNewlineAfterProp || containsNewline(key)) { + onError(key ?? start[start.length - 1], 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line'); + } + } + else if (keyProps.found?.indent !== bm.indent) { + onError(offset, 'BAD_INDENT', startColMsg); + } + // key value + const keyStart = keyProps.end; + const keyNode = key + ? composeNode(ctx, key, keyProps, onError) + : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError); + if (ctx.schema.compat) + flowIndentCheck(bm.indent, key, onError); + if (mapIncludes(ctx, map.items, keyNode)) + onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique'); + // value properties + const valueProps = resolveProps(sep ?? [], { + indicator: 'map-value-ind', + next: value, + offset: keyNode.range[2], + onError, + startOnNewline: !key || key.type === 'block-scalar' + }); + offset = valueProps.end; + if (valueProps.found) { + if (implicitKey) { + if (value?.type === 'block-map' && !valueProps.hasNewline) + onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'Nested mappings are not allowed in compact mappings'); + if (ctx.options.strict && + keyProps.start < valueProps.found.offset - 1024) + onError(keyNode.range, 'KEY_OVER_1024_CHARS', 'The : indicator must be at most 1024 chars after the start of an implicit block mapping key'); + } + // value value + const valueNode = value + ? composeNode(ctx, value, valueProps, onError) + : composeEmptyNode(ctx, offset, sep, null, valueProps, onError); + if (ctx.schema.compat) + flowIndentCheck(bm.indent, value, onError); + offset = valueNode.range[2]; + const pair = new Pair(keyNode, valueNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + map.items.push(pair); + } + else { + // key with no value + if (implicitKey) + onError(keyNode.range, 'MISSING_CHAR', 'Implicit map keys need to be followed by map values'); + if (valueProps.comment) { + if (keyNode.comment) + keyNode.comment += '\n' + valueProps.comment; + else + keyNode.comment = valueProps.comment; + } + const pair = new Pair(keyNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + map.items.push(pair); + } + } + if (commentEnd && commentEnd < offset) + onError(commentEnd, 'IMPOSSIBLE', 'Map comment with trailing content'); + map.range = [bm.offset, offset, commentEnd ?? offset]; + return map; +} + +export { resolveBlockMap }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js" index d8c7538d7e1ae3e6441393fe63c827d5c452d8d2..592d80759d9625ee0ea2018141374e24140eb5ef 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js" @@ -1,3 +1,194 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f9ff3a1d68c8c0805de50b71315b292137d733277358cee9ae118e0c298d646 -size 7230 +import { Scalar } from '../nodes/Scalar.js'; + +function resolveBlockScalar(scalar, strict, onError) { + const start = scalar.offset; + const header = parseBlockScalarHeader(scalar, strict, onError); + if (!header) + return { value: '', type: null, comment: '', range: [start, start, start] }; + const type = header.mode === '>' ? Scalar.BLOCK_FOLDED : Scalar.BLOCK_LITERAL; + const lines = scalar.source ? splitLines(scalar.source) : []; + // determine the end of content & start of chomping + let chompStart = lines.length; + for (let i = lines.length - 1; i >= 0; --i) { + const content = lines[i][1]; + if (content === '' || content === '\r') + chompStart = i; + else + break; + } + // shortcut for empty contents + if (chompStart === 0) { + const value = header.chomp === '+' && lines.length > 0 + ? '\n'.repeat(Math.max(1, lines.length - 1)) + : ''; + let end = start + header.length; + if (scalar.source) + end += scalar.source.length; + return { value, type, comment: header.comment, range: [start, end, end] }; + } + // find the indentation level to trim from start + let trimIndent = scalar.indent + header.indent; + let offset = scalar.offset + header.length; + let contentStart = 0; + for (let i = 0; i < chompStart; ++i) { + const [indent, content] = lines[i]; + if (content === '' || content === '\r') { + if (header.indent === 0 && indent.length > trimIndent) + trimIndent = indent.length; + } + else { + if (indent.length < trimIndent) { + const message = 'Block scalars with more-indented leading empty lines must use an explicit indentation indicator'; + onError(offset + indent.length, 'MISSING_CHAR', message); + } + if (header.indent === 0) + trimIndent = indent.length; + contentStart = i; + break; + } + offset += indent.length + content.length + 1; + } + // include trailing more-indented empty lines in content + for (let i = lines.length - 1; i >= chompStart; --i) { + if (lines[i][0].length > trimIndent) + chompStart = i + 1; + } + let value = ''; + let sep = ''; + let prevMoreIndented = false; + // leading whitespace is kept intact + for (let i = 0; i < contentStart; ++i) + value += lines[i][0].slice(trimIndent) + '\n'; + for (let i = contentStart; i < chompStart; ++i) { + let [indent, content] = lines[i]; + offset += indent.length + content.length + 1; + const crlf = content[content.length - 1] === '\r'; + if (crlf) + content = content.slice(0, -1); + /* istanbul ignore if already caught in lexer */ + if (content && indent.length < trimIndent) { + const src = header.indent + ? 'explicit indentation indicator' + : 'first line'; + const message = `Block scalar lines must not be less indented than their ${src}`; + onError(offset - content.length - (crlf ? 2 : 1), 'BAD_INDENT', message); + indent = ''; + } + if (type === Scalar.BLOCK_LITERAL) { + value += sep + indent.slice(trimIndent) + content; + sep = '\n'; + } + else if (indent.length > trimIndent || content[0] === '\t') { + // more-indented content within a folded block + if (sep === ' ') + sep = '\n'; + else if (!prevMoreIndented && sep === '\n') + sep = '\n\n'; + value += sep + indent.slice(trimIndent) + content; + sep = '\n'; + prevMoreIndented = true; + } + else if (content === '') { + // empty line + if (sep === '\n') + value += '\n'; + else + sep = '\n'; + } + else { + value += sep + content; + sep = ' '; + prevMoreIndented = false; + } + } + switch (header.chomp) { + case '-': + break; + case '+': + for (let i = chompStart; i < lines.length; ++i) + value += '\n' + lines[i][0].slice(trimIndent); + if (value[value.length - 1] !== '\n') + value += '\n'; + break; + default: + value += '\n'; + } + const end = start + header.length + scalar.source.length; + return { value, type, comment: header.comment, range: [start, end, end] }; +} +function parseBlockScalarHeader({ offset, props }, strict, onError) { + /* istanbul ignore if should not happen */ + if (props[0].type !== 'block-scalar-header') { + onError(props[0], 'IMPOSSIBLE', 'Block scalar header not found'); + return null; + } + const { source } = props[0]; + const mode = source[0]; + let indent = 0; + let chomp = ''; + let error = -1; + for (let i = 1; i < source.length; ++i) { + const ch = source[i]; + if (!chomp && (ch === '-' || ch === '+')) + chomp = ch; + else { + const n = Number(ch); + if (!indent && n) + indent = n; + else if (error === -1) + error = offset + i; + } + } + if (error !== -1) + onError(error, 'UNEXPECTED_TOKEN', `Block scalar header includes extra characters: ${source}`); + let hasSpace = false; + let comment = ''; + let length = source.length; + for (let i = 1; i < props.length; ++i) { + const token = props[i]; + switch (token.type) { + case 'space': + hasSpace = true; + // fallthrough + case 'newline': + length += token.source.length; + break; + case 'comment': + if (strict && !hasSpace) { + const message = 'Comments must be separated from other tokens by white space characters'; + onError(token, 'MISSING_CHAR', message); + } + length += token.source.length; + comment = token.source.substring(1); + break; + case 'error': + onError(token, 'UNEXPECTED_TOKEN', token.message); + length += token.source.length; + break; + /* istanbul ignore next should not happen */ + default: { + const message = `Unexpected token in block scalar header: ${token.type}`; + onError(token, 'UNEXPECTED_TOKEN', message); + const ts = token.source; + if (ts && typeof ts === 'string') + length += ts.length; + } + } + } + return { mode, indent, chomp, comment, length }; +} +/** @returns Array of lines split up as `[indent, content]` */ +function splitLines(source) { + const split = source.split(/\n( *)/); + const first = split[0]; + const m = first.match(/^( *)/); + const line0 = m?.[1] + ? [m[1], first.slice(m[1].length)] + : ['', first]; + const lines = [line0]; + for (let i = 1; i < split.length; i += 2) + lines.push([split[i], split[i + 1]]); + return lines; +} + +export { resolveBlockScalar }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-seq.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-seq.js" index 5f133da98cde69863768342bd840f9e24464cc29..4bf08ba95280d07fdbfafa032dfb754929823280 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-seq.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-block-seq.js" @@ -1,3 +1,45 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3a791ee8df6aa2677d4fca9afe96b36cd000d0604f3111b7b42e84923667774 -size 1609 +import { YAMLSeq } from '../nodes/YAMLSeq.js'; +import { resolveProps } from './resolve-props.js'; +import { flowIndentCheck } from './util-flow-indent-check.js'; + +function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError) { + const seq = new YAMLSeq(ctx.schema); + if (ctx.atRoot) + ctx.atRoot = false; + let offset = bs.offset; + let commentEnd = null; + for (const { start, value } of bs.items) { + const props = resolveProps(start, { + indicator: 'seq-item-ind', + next: value, + offset, + onError, + startOnNewline: true + }); + if (!props.found) { + if (props.anchor || props.tag || value) { + if (value && value.type === 'block-seq') + onError(props.end, 'BAD_INDENT', 'All sequence items must start at the same column'); + else + onError(offset, 'MISSING_CHAR', 'Sequence item without - indicator'); + } + else { + commentEnd = props.end; + if (props.comment) + seq.comment = props.comment; + continue; + } + } + const node = value + ? composeNode(ctx, value, props, onError) + : composeEmptyNode(ctx, props.end, start, null, props, onError); + if (ctx.schema.compat) + flowIndentCheck(bs.indent, value, onError); + offset = node.range[2]; + seq.items.push(node); + } + seq.range = [bs.offset, offset, commentEnd ?? offset]; + return seq; +} + +export { resolveBlockSeq }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-end.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-end.js" index 9d9b8f4bfb79cc44f14f0834f279b97d825c5a9b..d5c65d7e81d2d39bbcc2dcf65b753f982efc55fc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-end.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-end.js" @@ -1,3 +1,37 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0a32e1b8c5649ea14152b0c0d45fbd64d46dbfa299a7328b71421e49ee48db2 -size 1239 +function resolveEnd(end, offset, reqSpace, onError) { + let comment = ''; + if (end) { + let hasSpace = false; + let sep = ''; + for (const token of end) { + const { source, type } = token; + switch (type) { + case 'space': + hasSpace = true; + break; + case 'comment': { + if (reqSpace && !hasSpace) + onError(token, 'MISSING_CHAR', 'Comments must be separated from other tokens by white space characters'); + const cb = source.substring(1) || ' '; + if (!comment) + comment = cb; + else + comment += sep + cb; + sep = ''; + break; + } + case 'newline': + if (comment) + sep += source; + hasSpace = true; + break; + default: + onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${type} at node end`); + } + offset += source.length; + } + } + return { comment, offset }; +} + +export { resolveEnd }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js" index 9747904fae34cf9ccfcc2a780803b2eb63525cf6..c36e26869c61a43fc09ebe8bdc5da91397df4813 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js" @@ -1,3 +1,200 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4dd68832fb0db1ee9d50187c1ff5033c86998f69fb855a169e1b95c498f67c4e -size 8443 +import { isPair } from '../nodes/Node.js'; +import { Pair } from '../nodes/Pair.js'; +import { YAMLMap } from '../nodes/YAMLMap.js'; +import { YAMLSeq } from '../nodes/YAMLSeq.js'; +import { resolveEnd } from './resolve-end.js'; +import { resolveProps } from './resolve-props.js'; +import { containsNewline } from './util-contains-newline.js'; +import { mapIncludes } from './util-map-includes.js'; + +const blockMsg = 'Block collections are not allowed within flow collections'; +const isBlock = (token) => token && (token.type === 'block-map' || token.type === 'block-seq'); +function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError) { + const isMap = fc.start.source === '{'; + const fcName = isMap ? 'flow map' : 'flow sequence'; + const coll = isMap + ? new YAMLMap(ctx.schema) + : new YAMLSeq(ctx.schema); + coll.flow = true; + const atRoot = ctx.atRoot; + if (atRoot) + ctx.atRoot = false; + let offset = fc.offset + fc.start.source.length; + for (let i = 0; i < fc.items.length; ++i) { + const collItem = fc.items[i]; + const { start, key, sep, value } = collItem; + const props = resolveProps(start, { + flow: fcName, + indicator: 'explicit-key-ind', + next: key ?? sep?.[0], + offset, + onError, + startOnNewline: false + }); + if (!props.found) { + if (!props.anchor && !props.tag && !sep && !value) { + if (i === 0 && props.comma) + onError(props.comma, 'UNEXPECTED_TOKEN', `Unexpected , in ${fcName}`); + else if (i < fc.items.length - 1) + onError(props.start, 'UNEXPECTED_TOKEN', `Unexpected empty item in ${fcName}`); + if (props.comment) { + if (coll.comment) + coll.comment += '\n' + props.comment; + else + coll.comment = props.comment; + } + offset = props.end; + continue; + } + if (!isMap && ctx.options.strict && containsNewline(key)) + onError(key, // checked by containsNewline() + 'MULTILINE_IMPLICIT_KEY', 'Implicit keys of flow sequence pairs need to be on a single line'); + } + if (i === 0) { + if (props.comma) + onError(props.comma, 'UNEXPECTED_TOKEN', `Unexpected , in ${fcName}`); + } + else { + if (!props.comma) + onError(props.start, 'MISSING_CHAR', `Missing , between ${fcName} items`); + if (props.comment) { + let prevItemComment = ''; + loop: for (const st of start) { + switch (st.type) { + case 'comma': + case 'space': + break; + case 'comment': + prevItemComment = st.source.substring(1); + break loop; + default: + break loop; + } + } + if (prevItemComment) { + let prev = coll.items[coll.items.length - 1]; + if (isPair(prev)) + prev = prev.value ?? prev.key; + if (prev.comment) + prev.comment += '\n' + prevItemComment; + else + prev.comment = prevItemComment; + props.comment = props.comment.substring(prevItemComment.length + 1); + } + } + } + if (!isMap && !sep && !props.found) { + // item is a value in a seq + // → key & sep are empty, start does not include ? or : + const valueNode = value + ? composeNode(ctx, value, props, onError) + : composeEmptyNode(ctx, props.end, sep, null, props, onError); + coll.items.push(valueNode); + offset = valueNode.range[2]; + if (isBlock(value)) + onError(valueNode.range, 'BLOCK_IN_FLOW', blockMsg); + } + else { + // item is a key+value pair + // key value + const keyStart = props.end; + const keyNode = key + ? composeNode(ctx, key, props, onError) + : composeEmptyNode(ctx, keyStart, start, null, props, onError); + if (isBlock(key)) + onError(keyNode.range, 'BLOCK_IN_FLOW', blockMsg); + // value properties + const valueProps = resolveProps(sep ?? [], { + flow: fcName, + indicator: 'map-value-ind', + next: value, + offset: keyNode.range[2], + onError, + startOnNewline: false + }); + if (valueProps.found) { + if (!isMap && !props.found && ctx.options.strict) { + if (sep) + for (const st of sep) { + if (st === valueProps.found) + break; + if (st.type === 'newline') { + onError(st, 'MULTILINE_IMPLICIT_KEY', 'Implicit keys of flow sequence pairs need to be on a single line'); + break; + } + } + if (props.start < valueProps.found.offset - 1024) + onError(valueProps.found, 'KEY_OVER_1024_CHARS', 'The : indicator must be at most 1024 chars after the start of an implicit flow sequence key'); + } + } + else if (value) { + if ('source' in value && value.source && value.source[0] === ':') + onError(value, 'MISSING_CHAR', `Missing space after : in ${fcName}`); + else + onError(valueProps.start, 'MISSING_CHAR', `Missing , or : between ${fcName} items`); + } + // value value + const valueNode = value + ? composeNode(ctx, value, valueProps, onError) + : valueProps.found + ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) + : null; + if (valueNode) { + if (isBlock(value)) + onError(valueNode.range, 'BLOCK_IN_FLOW', blockMsg); + } + else if (valueProps.comment) { + if (keyNode.comment) + keyNode.comment += '\n' + valueProps.comment; + else + keyNode.comment = valueProps.comment; + } + const pair = new Pair(keyNode, valueNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + if (isMap) { + const map = coll; + if (mapIncludes(ctx, map.items, keyNode)) + onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique'); + map.items.push(pair); + } + else { + const map = new YAMLMap(ctx.schema); + map.flow = true; + map.items.push(pair); + coll.items.push(map); + } + offset = valueNode ? valueNode.range[2] : valueProps.end; + } + } + const expectedEnd = isMap ? '}' : ']'; + const [ce, ...ee] = fc.end; + let cePos = offset; + if (ce && ce.source === expectedEnd) + cePos = ce.offset + ce.source.length; + else { + const name = fcName[0].toUpperCase() + fcName.substring(1); + const msg = atRoot + ? `${name} must end with a ${expectedEnd}` + : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`; + onError(offset, atRoot ? 'MISSING_CHAR' : 'BAD_INDENT', msg); + if (ce && ce.source.length !== 1) + ee.unshift(ce); + } + if (ee.length > 0) { + const end = resolveEnd(ee, cePos, ctx.options.strict, onError); + if (end.comment) { + if (coll.comment) + coll.comment += '\n' + end.comment; + else + coll.comment = end.comment; + } + coll.range = [fc.offset, cePos, end.offset]; + } + else { + coll.range = [fc.offset, cePos, cePos]; + } + return coll; +} + +export { resolveFlowCollection }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js" index 2050d7dbbfe66845509f7f3808c3b9328efa40eb..501cf3963460e24787dce3ba04d696a8ecc7401f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js" @@ -1,3 +1,223 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad2cd4ae69478ff15f8dff02be6168fd9cf1bafec414e61742b69d2004ff7dfb -size 7050 +import { Scalar } from '../nodes/Scalar.js'; +import { resolveEnd } from './resolve-end.js'; + +function resolveFlowScalar(scalar, strict, onError) { + const { offset, type, source, end } = scalar; + let _type; + let value; + const _onError = (rel, code, msg) => onError(offset + rel, code, msg); + switch (type) { + case 'scalar': + _type = Scalar.PLAIN; + value = plainValue(source, _onError); + break; + case 'single-quoted-scalar': + _type = Scalar.QUOTE_SINGLE; + value = singleQuotedValue(source, _onError); + break; + case 'double-quoted-scalar': + _type = Scalar.QUOTE_DOUBLE; + value = doubleQuotedValue(source, _onError); + break; + /* istanbul ignore next should not happen */ + default: + onError(scalar, 'UNEXPECTED_TOKEN', `Expected a flow scalar value, but found: ${type}`); + return { + value: '', + type: null, + comment: '', + range: [offset, offset + source.length, offset + source.length] + }; + } + const valueEnd = offset + source.length; + const re = resolveEnd(end, valueEnd, strict, onError); + return { + value, + type: _type, + comment: re.comment, + range: [offset, valueEnd, re.offset] + }; +} +function plainValue(source, onError) { + let badChar = ''; + switch (source[0]) { + /* istanbul ignore next should not happen */ + case '\t': + badChar = 'a tab character'; + break; + case ',': + badChar = 'flow indicator character ,'; + break; + case '%': + badChar = 'directive indicator character %'; + break; + case '|': + case '>': { + badChar = `block scalar indicator ${source[0]}`; + break; + } + case '@': + case '`': { + badChar = `reserved character ${source[0]}`; + break; + } + } + if (badChar) + onError(0, 'BAD_SCALAR_START', `Plain value cannot start with ${badChar}`); + return foldLines(source); +} +function singleQuotedValue(source, onError) { + if (source[source.length - 1] !== "'" || source.length === 1) + onError(source.length, 'MISSING_CHAR', "Missing closing 'quote"); + return foldLines(source.slice(1, -1)).replace(/''/g, "'"); +} +function foldLines(source) { + /** + * The negative lookbehind here and in the `re` RegExp is to + * prevent causing a polynomial search time in certain cases. + * + * The try-catch is for Safari, which doesn't support this yet: + * https://caniuse.com/js-regexp-lookbehind + */ + let first, line; + try { + first = new RegExp('(.*?)(? wsStart ? source.slice(wsStart, i + 1) : ch; + } + else { + res += ch; + } + } + if (source[source.length - 1] !== '"' || source.length === 1) + onError(source.length, 'MISSING_CHAR', 'Missing closing "quote'); + return res; +} +/** + * Fold a single newline into a space, multiple newlines to N - 1 newlines. + * Presumes `source[offset] === '\n'` + */ +function foldNewline(source, offset) { + let fold = ''; + let ch = source[offset + 1]; + while (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') { + if (ch === '\r' && source[offset + 2] !== '\n') + break; + if (ch === '\n') + fold += '\n'; + offset += 1; + ch = source[offset + 1]; + } + if (!fold) + fold = ' '; + return { fold, offset }; +} +const escapeCodes = { + '0': '\0', + a: '\x07', + b: '\b', + e: '\x1b', + f: '\f', + n: '\n', + r: '\r', + t: '\t', + v: '\v', + N: '\u0085', + _: '\u00a0', + L: '\u2028', + P: '\u2029', + ' ': ' ', + '"': '"', + '/': '/', + '\\': '\\', + '\t': '\t' +}; +function parseCharCode(source, offset, length, onError) { + const cc = source.substr(offset, length); + const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc); + const code = ok ? parseInt(cc, 16) : NaN; + if (isNaN(code)) { + const raw = source.substr(offset - 2, length + 2); + onError(offset - 2, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`); + return raw; + } + return String.fromCodePoint(code); +} + +export { resolveFlowScalar }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-props.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-props.js" index 324fe7f89440e80b734eaad59ec0beec4a386b30..ab30f56fb7917dacfcbea40fa481c40335888dc2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-props.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/resolve-props.js" @@ -1,3 +1,134 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8c68fcad32affebb2dcbcd974893811cce2da60e7eb3288e6770cbfc2aaac592 -size 5017 +function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnNewline }) { + let spaceBefore = false; + let atNewline = startOnNewline; + let hasSpace = startOnNewline; + let comment = ''; + let commentSep = ''; + let hasNewline = false; + let hasNewlineAfterProp = false; + let reqSpace = false; + let anchor = null; + let tag = null; + let comma = null; + let found = null; + let start = null; + for (const token of tokens) { + if (reqSpace) { + if (token.type !== 'space' && + token.type !== 'newline' && + token.type !== 'comma') + onError(token.offset, 'MISSING_CHAR', 'Tags and anchors must be separated from the next token by white space'); + reqSpace = false; + } + switch (token.type) { + case 'space': + // At the doc level, tabs at line start may be parsed + // as leading white space rather than indentation. + // In a flow collection, only the parser handles indent. + if (!flow && + atNewline && + indicator !== 'doc-start' && + token.source[0] === '\t') + onError(token, 'TAB_AS_INDENT', 'Tabs are not allowed as indentation'); + hasSpace = true; + break; + case 'comment': { + if (!hasSpace) + onError(token, 'MISSING_CHAR', 'Comments must be separated from other tokens by white space characters'); + const cb = token.source.substring(1) || ' '; + if (!comment) + comment = cb; + else + comment += commentSep + cb; + commentSep = ''; + atNewline = false; + break; + } + case 'newline': + if (atNewline) { + if (comment) + comment += token.source; + else + spaceBefore = true; + } + else + commentSep += token.source; + atNewline = true; + hasNewline = true; + if (anchor || tag) + hasNewlineAfterProp = true; + hasSpace = true; + break; + case 'anchor': + if (anchor) + onError(token, 'MULTIPLE_ANCHORS', 'A node can have at most one anchor'); + if (token.source.endsWith(':')) + onError(token.offset + token.source.length - 1, 'BAD_ALIAS', 'Anchor ending in : is ambiguous', true); + anchor = token; + if (start === null) + start = token.offset; + atNewline = false; + hasSpace = false; + reqSpace = true; + break; + case 'tag': { + if (tag) + onError(token, 'MULTIPLE_TAGS', 'A node can have at most one tag'); + tag = token; + if (start === null) + start = token.offset; + atNewline = false; + hasSpace = false; + reqSpace = true; + break; + } + case indicator: + // Could here handle preceding comments differently + if (anchor || tag) + onError(token, 'BAD_PROP_ORDER', `Anchors and tags must be after the ${token.source} indicator`); + if (found) + onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${token.source} in ${flow ?? 'collection'}`); + found = token; + atNewline = false; + hasSpace = false; + break; + case 'comma': + if (flow) { + if (comma) + onError(token, 'UNEXPECTED_TOKEN', `Unexpected , in ${flow}`); + comma = token; + atNewline = false; + hasSpace = false; + break; + } + // else fallthrough + default: + onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${token.type} token`); + atNewline = false; + hasSpace = false; + } + } + const last = tokens[tokens.length - 1]; + const end = last ? last.offset + last.source.length : offset; + if (reqSpace && + next && + next.type !== 'space' && + next.type !== 'newline' && + next.type !== 'comma' && + (next.type !== 'scalar' || next.source !== '')) + onError(next.offset, 'MISSING_CHAR', 'Tags and anchors must be separated from the next token by white space'); + return { + comma, + found, + spaceBefore, + comment, + hasNewline, + hasNewlineAfterProp, + anchor, + tag, + end, + start: start ?? end + }; +} + +export { resolveProps }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-contains-newline.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-contains-newline.js" index 077d49b40a048d37c57e7cf161a654d4fffc118d..2d65390d649664d70744ad29181ffbe4c3a06730 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-contains-newline.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-contains-newline.js" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4810ffba0d74ebb913731e1369ea17f6fef20df2feb2ef0bd8553e439f4a6b78 -size 1051 +function containsNewline(key) { + if (!key) + return null; + switch (key.type) { + case 'alias': + case 'scalar': + case 'double-quoted-scalar': + case 'single-quoted-scalar': + if (key.source.includes('\n')) + return true; + if (key.end) + for (const st of key.end) + if (st.type === 'newline') + return true; + return false; + case 'flow-collection': + for (const it of key.items) { + for (const st of it.start) + if (st.type === 'newline') + return true; + if (it.sep) + for (const st of it.sep) + if (st.type === 'newline') + return true; + if (containsNewline(it.key) || containsNewline(it.value)) + return true; + } + return false; + default: + return true; + } +} + +export { containsNewline }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js" index 543694ee3cd03ad3a7d5816b8cb4962ec0ec126f..ab6e0c99179f4ca806f864e8b99c5f38affd3560 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac95873ee8b89a23e633683d1dbe5a585be02086f01e2e65a49e54473ba535d0 -size 837 +function emptyScalarPosition(offset, before, pos) { + if (before) { + if (pos === null) + pos = before.length; + for (let i = pos - 1; i >= 0; --i) { + let st = before[i]; + switch (st.type) { + case 'space': + case 'comment': + case 'newline': + offset -= st.source.length; + continue; + } + // Technically, an empty scalar is immediately after the last non-empty + // node, but it's more useful to place it after any whitespace. + st = before[++i]; + while (st?.type === 'space') { + offset += st.source.length; + st = before[++i]; + } + break; + } + } + return offset; +} + +export { emptyScalarPosition }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js" index d30cba582cfb6b5a25bd0a4419e6ae78ba94530c..c20e67019294cf897fcb59fb2772639c446bd9e8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebab50fc461c9eaffe07c807dde4aff4f8c5976f5aa4e8f02608ed57ef52a690 -size 494 +import { containsNewline } from './util-contains-newline.js'; + +function flowIndentCheck(indent, fc, onError) { + if (fc?.type === 'flow-collection') { + const end = fc.end[0]; + if (end.indent === indent && + (end.source === ']' || end.source === '}') && + containsNewline(fc)) { + const msg = 'Flow end indicator should be more indented than parent'; + onError(end, 'BAD_INDENT', msg, true); + } + } +} + +export { flowIndentCheck }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-map-includes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-map-includes.js" index 1461d4f54f8403aae45ed203b6c6f92fc41f606c..de74ddf9fddab0aa948e626f0ed7dd976b5c1c55 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-map-includes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/compose/util-map-includes.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61f49a230308e37abd54fbf5eb4e0c4c5ea7adf3a7065a5f8db75e3285e38261 -size 527 +import { isScalar } from '../nodes/Node.js'; + +function mapIncludes(ctx, items, search) { + const { uniqueKeys } = ctx.options; + if (uniqueKeys === false) + return false; + const isEqual = typeof uniqueKeys === 'function' + ? uniqueKeys + : (a, b) => a === b || + (isScalar(a) && + isScalar(b) && + a.value === b.value && + !(a.value === '<<' && ctx.schema.merge)); + return items.some(pair => isEqual(pair.key, search)); +} + +export { mapIncludes }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/Document.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/Document.js" index 2c6485d7309d20b86187bdb6d6020f119c51b88e..82e36930637b98413e7691ee3b943d6811b3aa32 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/Document.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/Document.js" @@ -1,3 +1,332 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f12bf915c4e7a9de522a655a83a3ce61b5b902bf66e51dd641f9a58787ee52aa -size 12543 +import { Alias } from '../nodes/Alias.js'; +import { isEmptyPath, collectionFromPath } from '../nodes/Collection.js'; +import { NODE_TYPE, DOC, isNode, isCollection, isScalar } from '../nodes/Node.js'; +import { Pair } from '../nodes/Pair.js'; +import { toJS } from '../nodes/toJS.js'; +import { Schema } from '../schema/Schema.js'; +import { stringify } from '../stringify/stringify.js'; +import { stringifyDocument } from '../stringify/stringifyDocument.js'; +import { anchorNames, findNewAnchor, createNodeAnchors } from './anchors.js'; +import { applyReviver } from './applyReviver.js'; +import { createNode } from './createNode.js'; +import { Directives } from './directives.js'; + +class Document { + constructor(value, replacer, options) { + /** A comment before this Document */ + this.commentBefore = null; + /** A comment immediately after this Document */ + this.comment = null; + /** Errors encountered during parsing. */ + this.errors = []; + /** Warnings encountered during parsing. */ + this.warnings = []; + Object.defineProperty(this, NODE_TYPE, { value: DOC }); + let _replacer = null; + if (typeof replacer === 'function' || Array.isArray(replacer)) { + _replacer = replacer; + } + else if (options === undefined && replacer) { + options = replacer; + replacer = undefined; + } + const opt = Object.assign({ + intAsBigInt: false, + keepSourceTokens: false, + logLevel: 'warn', + prettyErrors: true, + strict: true, + uniqueKeys: true, + version: '1.2' + }, options); + this.options = opt; + let { version } = opt; + if (options?._directives) { + this.directives = options._directives.atDocument(); + if (this.directives.yaml.explicit) + version = this.directives.yaml.version; + } + else + this.directives = new Directives({ version }); + this.setSchema(version, options); + if (value === undefined) + this.contents = null; + else { + this.contents = this.createNode(value, _replacer, options); + } + } + /** + * Create a deep copy of this Document and its contents. + * + * Custom Node values that inherit from `Object` still refer to their original instances. + */ + clone() { + const copy = Object.create(Document.prototype, { + [NODE_TYPE]: { value: DOC } + }); + copy.commentBefore = this.commentBefore; + copy.comment = this.comment; + copy.errors = this.errors.slice(); + copy.warnings = this.warnings.slice(); + copy.options = Object.assign({}, this.options); + if (this.directives) + copy.directives = this.directives.clone(); + copy.schema = this.schema.clone(); + copy.contents = isNode(this.contents) + ? this.contents.clone(copy.schema) + : this.contents; + if (this.range) + copy.range = this.range.slice(); + return copy; + } + /** Adds a value to the document. */ + add(value) { + if (assertCollection(this.contents)) + this.contents.add(value); + } + /** Adds a value to the document. */ + addIn(path, value) { + if (assertCollection(this.contents)) + this.contents.addIn(path, value); + } + /** + * Create a new `Alias` node, ensuring that the target `node` has the required anchor. + * + * If `node` already has an anchor, `name` is ignored. + * Otherwise, the `node.anchor` value will be set to `name`, + * or if an anchor with that name is already present in the document, + * `name` will be used as a prefix for a new unique anchor. + * If `name` is undefined, the generated anchor will use 'a' as a prefix. + */ + createAlias(node, name) { + if (!node.anchor) { + const prev = anchorNames(this); + node.anchor = + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + !name || prev.has(name) ? findNewAnchor(name || 'a', prev) : name; + } + return new Alias(node.anchor); + } + createNode(value, replacer, options) { + let _replacer = undefined; + if (typeof replacer === 'function') { + value = replacer.call({ '': value }, '', value); + _replacer = replacer; + } + else if (Array.isArray(replacer)) { + const keyToStr = (v) => typeof v === 'number' || v instanceof String || v instanceof Number; + const asStr = replacer.filter(keyToStr).map(String); + if (asStr.length > 0) + replacer = replacer.concat(asStr); + _replacer = replacer; + } + else if (options === undefined && replacer) { + options = replacer; + replacer = undefined; + } + const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options ?? {}; + const { onAnchor, setAnchors, sourceObjects } = createNodeAnchors(this, + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + anchorPrefix || 'a'); + const ctx = { + aliasDuplicateObjects: aliasDuplicateObjects ?? true, + keepUndefined: keepUndefined ?? false, + onAnchor, + onTagObj, + replacer: _replacer, + schema: this.schema, + sourceObjects + }; + const node = createNode(value, tag, ctx); + if (flow && isCollection(node)) + node.flow = true; + setAnchors(); + return node; + } + /** + * Convert a key and a value into a `Pair` using the current schema, + * recursively wrapping all values as `Scalar` or `Collection` nodes. + */ + createPair(key, value, options = {}) { + const k = this.createNode(key, null, options); + const v = this.createNode(value, null, options); + return new Pair(k, v); + } + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + delete(key) { + return assertCollection(this.contents) ? this.contents.delete(key) : false; + } + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + deleteIn(path) { + if (isEmptyPath(path)) { + if (this.contents == null) + return false; + this.contents = null; + return true; + } + return assertCollection(this.contents) + ? this.contents.deleteIn(path) + : false; + } + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + get(key, keepScalar) { + return isCollection(this.contents) + ? this.contents.get(key, keepScalar) + : undefined; + } + /** + * Returns item at `path`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path, keepScalar) { + if (isEmptyPath(path)) + return !keepScalar && isScalar(this.contents) + ? this.contents.value + : this.contents; + return isCollection(this.contents) + ? this.contents.getIn(path, keepScalar) + : undefined; + } + /** + * Checks if the document includes a value with the key `key`. + */ + has(key) { + return isCollection(this.contents) ? this.contents.has(key) : false; + } + /** + * Checks if the document includes a value at `path`. + */ + hasIn(path) { + if (isEmptyPath(path)) + return this.contents !== undefined; + return isCollection(this.contents) ? this.contents.hasIn(path) : false; + } + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + set(key, value) { + if (this.contents == null) { + this.contents = collectionFromPath(this.schema, [key], value); + } + else if (assertCollection(this.contents)) { + this.contents.set(key, value); + } + } + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path, value) { + if (isEmptyPath(path)) + this.contents = value; + else if (this.contents == null) { + this.contents = collectionFromPath(this.schema, Array.from(path), value); + } + else if (assertCollection(this.contents)) { + this.contents.setIn(path, value); + } + } + /** + * Change the YAML version and schema used by the document. + * A `null` version disables support for directives, explicit tags, anchors, and aliases. + * It also requires the `schema` option to be given as a `Schema` instance value. + * + * Overrides all previously set schema options. + */ + setSchema(version, options = {}) { + if (typeof version === 'number') + version = String(version); + let opt; + switch (version) { + case '1.1': + if (this.directives) + this.directives.yaml.version = '1.1'; + else + this.directives = new Directives({ version: '1.1' }); + opt = { merge: true, resolveKnownTags: false, schema: 'yaml-1.1' }; + break; + case '1.2': + case 'next': + if (this.directives) + this.directives.yaml.version = version; + else + this.directives = new Directives({ version }); + opt = { merge: false, resolveKnownTags: true, schema: 'core' }; + break; + case null: + if (this.directives) + delete this.directives; + opt = null; + break; + default: { + const sv = JSON.stringify(version); + throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`); + } + } + // Not using `instanceof Schema` to allow for duck typing + if (options.schema instanceof Object) + this.schema = options.schema; + else if (opt) + this.schema = new Schema(Object.assign(opt, options)); + else + throw new Error(`With a null YAML version, the { schema: Schema } option is required`); + } + // json & jsonArg are only used from toJSON() + toJS({ json, jsonArg, mapAsMap, maxAliasCount, onAnchor, reviver } = {}) { + const ctx = { + anchors: new Map(), + doc: this, + keep: !json, + mapAsMap: mapAsMap === true, + mapKeyWarned: false, + maxAliasCount: typeof maxAliasCount === 'number' ? maxAliasCount : 100, + stringify + }; + const res = toJS(this.contents, jsonArg ?? '', ctx); + if (typeof onAnchor === 'function') + for (const { count, res } of ctx.anchors.values()) + onAnchor(res, count); + return typeof reviver === 'function' + ? applyReviver(reviver, { '': res }, '', res) + : res; + } + /** + * A JSON representation of the document `contents`. + * + * @param jsonArg Used by `JSON.stringify` to indicate the array index or + * property name. + */ + toJSON(jsonArg, onAnchor) { + return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor }); + } + /** A YAML representation of the document. */ + toString(options = {}) { + if (this.errors.length > 0) + throw new Error('Document with errors cannot be stringified'); + if ('indent' in options && + (!Number.isInteger(options.indent) || Number(options.indent) <= 0)) { + const s = JSON.stringify(options.indent); + throw new Error(`"indent" option must be a positive integer, not ${s}`); + } + return stringifyDocument(this, options); + } +} +function assertCollection(contents) { + if (isCollection(contents)) + return true; + throw new Error('Expected a YAML collection as document contents'); +} + +export { Document }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/anchors.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/anchors.js" index d686b35c7e0586ab4815205a81e4bab19ef09f2f..797e8a727e7c516e142ac2d1f17e68187529f20c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/anchors.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/anchors.js" @@ -1,3 +1,72 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e1cfde6a6c5a6b9327d0b8dd83e9be0b42fbf1177109e6956ec15127690edda -size 2289 +import { isScalar, isCollection } from '../nodes/Node.js'; +import { visit } from '../visit.js'; + +/** + * Verify that the input string is a valid anchor. + * + * Will throw on errors. + */ +function anchorIsValid(anchor) { + if (/[\x00-\x19\s,[\]{}]/.test(anchor)) { + const sa = JSON.stringify(anchor); + const msg = `Anchor must not contain whitespace or control characters: ${sa}`; + throw new Error(msg); + } + return true; +} +function anchorNames(root) { + const anchors = new Set(); + visit(root, { + Value(_key, node) { + if (node.anchor) + anchors.add(node.anchor); + } + }); + return anchors; +} +/** Find a new anchor name with the given `prefix` and a one-indexed suffix. */ +function findNewAnchor(prefix, exclude) { + for (let i = 1; true; ++i) { + const name = `${prefix}${i}`; + if (!exclude.has(name)) + return name; + } +} +function createNodeAnchors(doc, prefix) { + const aliasObjects = []; + const sourceObjects = new Map(); + let prevAnchors = null; + return { + onAnchor: (source) => { + aliasObjects.push(source); + if (!prevAnchors) + prevAnchors = anchorNames(doc); + const anchor = findNewAnchor(prefix, prevAnchors); + prevAnchors.add(anchor); + return anchor; + }, + /** + * With circular references, the source node is only resolved after all + * of its child nodes are. This is why anchors are set only after all of + * the nodes have been created. + */ + setAnchors: () => { + for (const source of aliasObjects) { + const ref = sourceObjects.get(source); + if (typeof ref === 'object' && + ref.anchor && + (isScalar(ref.node) || isCollection(ref.node))) { + ref.node.anchor = ref.anchor; + } + else { + const error = new Error('Failed to resolve repeated object (this should not happen)'); + error.source = source; + throw error; + } + } + }, + sourceObjects + }; +} + +export { anchorIsValid, anchorNames, createNodeAnchors, findNewAnchor }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/applyReviver.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/applyReviver.js" index 234df2e36efb93024c3e90fddd8e15479c535cab..0e6a93cb2b2f748eceb3b9c67aba16b8d3e45319 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/applyReviver.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/applyReviver.js" @@ -1,3 +1,54 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f09ad07a73144157cc584a8d9f890b6ca142abf8f24bc0031e9d24784ed815e8 -size 1844 +/** + * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec, + * in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the + * 2021 edition: https://tc39.es/ecma262/#sec-json.parse + * + * Includes extensions for handling Map and Set objects. + */ +function applyReviver(reviver, obj, key, val) { + if (val && typeof val === 'object') { + if (Array.isArray(val)) { + for (let i = 0, len = val.length; i < len; ++i) { + const v0 = val[i]; + const v1 = applyReviver(reviver, val, String(i), v0); + if (v1 === undefined) + delete val[i]; + else if (v1 !== v0) + val[i] = v1; + } + } + else if (val instanceof Map) { + for (const k of Array.from(val.keys())) { + const v0 = val.get(k); + const v1 = applyReviver(reviver, val, k, v0); + if (v1 === undefined) + val.delete(k); + else if (v1 !== v0) + val.set(k, v1); + } + } + else if (val instanceof Set) { + for (const v0 of Array.from(val)) { + const v1 = applyReviver(reviver, val, v0, v0); + if (v1 === undefined) + val.delete(v0); + else if (v1 !== v0) { + val.delete(v0); + val.add(v1); + } + } + } + else { + for (const [k, v0] of Object.entries(val)) { + const v1 = applyReviver(reviver, val, k, v0); + if (v1 === undefined) + delete val[k]; + else if (v1 !== v0) + val[k] = v1; + } + } + } + return reviver.call(obj, key, val); +} + +export { applyReviver }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/createNode.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/createNode.js" index 0397ccdda675a70db606206498c8cb9a3c5806c4..52ca122c23e834f719f191bf6cfa82a3fc594b96 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/createNode.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/createNode.js" @@ -1,3 +1,85 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d4e3f011a5bfab77e36b94a734b5e8ada84455c1a992f7bba2c35489b312b84e -size 2893 +import { Alias } from '../nodes/Alias.js'; +import { isNode, isPair, MAP, SEQ, isDocument } from '../nodes/Node.js'; +import { Scalar } from '../nodes/Scalar.js'; + +const defaultTagPrefix = 'tag:yaml.org,2002:'; +function findTagObject(value, tagName, tags) { + if (tagName) { + const match = tags.filter(t => t.tag === tagName); + const tagObj = match.find(t => !t.format) ?? match[0]; + if (!tagObj) + throw new Error(`Tag ${tagName} not found`); + return tagObj; + } + return tags.find(t => t.identify?.(value) && !t.format); +} +function createNode(value, tagName, ctx) { + if (isDocument(value)) + value = value.contents; + if (isNode(value)) + return value; + if (isPair(value)) { + const map = ctx.schema[MAP].createNode?.(ctx.schema, null, ctx); + map.items.push(value); + return map; + } + if (value instanceof String || + value instanceof Number || + value instanceof Boolean || + (typeof BigInt !== 'undefined' && value instanceof BigInt) // not supported everywhere + ) { + // https://tc39.es/ecma262/#sec-serializejsonproperty + value = value.valueOf(); + } + const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx; + // Detect duplicate references to the same object & use Alias nodes for all + // after first. The `ref` wrapper allows for circular references to resolve. + let ref = undefined; + if (aliasDuplicateObjects && value && typeof value === 'object') { + ref = sourceObjects.get(value); + if (ref) { + if (!ref.anchor) + ref.anchor = onAnchor(value); + return new Alias(ref.anchor); + } + else { + ref = { anchor: null, node: null }; + sourceObjects.set(value, ref); + } + } + if (tagName?.startsWith('!!')) + tagName = defaultTagPrefix + tagName.slice(2); + let tagObj = findTagObject(value, tagName, schema.tags); + if (!tagObj) { + if (value && typeof value.toJSON === 'function') { + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + value = value.toJSON(); + } + if (!value || typeof value !== 'object') { + const node = new Scalar(value); + if (ref) + ref.node = node; + return node; + } + tagObj = + value instanceof Map + ? schema[MAP] + : Symbol.iterator in Object(value) + ? schema[SEQ] + : schema[MAP]; + } + if (onTagObj) { + onTagObj(tagObj); + delete ctx.onTagObj; + } + const node = tagObj?.createNode + ? tagObj.createNode(ctx.schema, value, ctx) + : new Scalar(value); + if (tagName) + node.tag = tagName; + if (ref) + ref.node = node; + return node; +} + +export { createNode }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/directives.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/directives.js" index 6fadd1a16951ff8c4c4d50da39d460e9e568fb7d..bdbc153ca89ae266543304d60c43471edb351297 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/directives.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/doc/directives.js" @@ -1,3 +1,169 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a7473afc96cd72ca78396b85a77fbdcfb2bc37bf4d2d115448945e970814dd54 -size 6024 +import { isNode } from '../nodes/Node.js'; +import { visit } from '../visit.js'; + +const escapeChars = { + '!': '%21', + ',': '%2C', + '[': '%5B', + ']': '%5D', + '{': '%7B', + '}': '%7D' +}; +const escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, ch => escapeChars[ch]); +class Directives { + constructor(yaml, tags) { + /** + * The directives-end/doc-start marker `---`. If `null`, a marker may still be + * included in the document's stringified representation. + */ + this.docStart = null; + /** The doc-end marker `...`. */ + this.docEnd = false; + this.yaml = Object.assign({}, Directives.defaultYaml, yaml); + this.tags = Object.assign({}, Directives.defaultTags, tags); + } + clone() { + const copy = new Directives(this.yaml, this.tags); + copy.docStart = this.docStart; + return copy; + } + /** + * During parsing, get a Directives instance for the current document and + * update the stream state according to the current version's spec. + */ + atDocument() { + const res = new Directives(this.yaml, this.tags); + switch (this.yaml.version) { + case '1.1': + this.atNextDocument = true; + break; + case '1.2': + this.atNextDocument = false; + this.yaml = { + explicit: Directives.defaultYaml.explicit, + version: '1.2' + }; + this.tags = Object.assign({}, Directives.defaultTags); + break; + } + return res; + } + /** + * @param onError - May be called even if the action was successful + * @returns `true` on success + */ + add(line, onError) { + if (this.atNextDocument) { + this.yaml = { explicit: Directives.defaultYaml.explicit, version: '1.1' }; + this.tags = Object.assign({}, Directives.defaultTags); + this.atNextDocument = false; + } + const parts = line.trim().split(/[ \t]+/); + const name = parts.shift(); + switch (name) { + case '%TAG': { + if (parts.length !== 2) { + onError(0, '%TAG directive should contain exactly two parts'); + if (parts.length < 2) + return false; + } + const [handle, prefix] = parts; + this.tags[handle] = prefix; + return true; + } + case '%YAML': { + this.yaml.explicit = true; + if (parts.length !== 1) { + onError(0, '%YAML directive should contain exactly one part'); + return false; + } + const [version] = parts; + if (version === '1.1' || version === '1.2') { + this.yaml.version = version; + return true; + } + else { + const isValid = /^\d+\.\d+$/.test(version); + onError(6, `Unsupported YAML version ${version}`, isValid); + return false; + } + } + default: + onError(0, `Unknown directive ${name}`, true); + return false; + } + } + /** + * Resolves a tag, matching handles to those defined in %TAG directives. + * + * @returns Resolved tag, which may also be the non-specific tag `'!'` or a + * `'!local'` tag, or `null` if unresolvable. + */ + tagName(source, onError) { + if (source === '!') + return '!'; // non-specific tag + if (source[0] !== '!') { + onError(`Not a valid tag: ${source}`); + return null; + } + if (source[1] === '<') { + const verbatim = source.slice(2, -1); + if (verbatim === '!' || verbatim === '!!') { + onError(`Verbatim tags aren't resolved, so ${source} is invalid.`); + return null; + } + if (source[source.length - 1] !== '>') + onError('Verbatim tags must end with a >'); + return verbatim; + } + const [, handle, suffix] = source.match(/^(.*!)([^!]*)$/); + if (!suffix) + onError(`The ${source} tag has no suffix`); + const prefix = this.tags[handle]; + if (prefix) + return prefix + decodeURIComponent(suffix); + if (handle === '!') + return source; // local tag + onError(`Could not resolve tag: ${source}`); + return null; + } + /** + * Given a fully resolved tag, returns its printable string form, + * taking into account current tag prefixes and defaults. + */ + tagString(tag) { + for (const [handle, prefix] of Object.entries(this.tags)) { + if (tag.startsWith(prefix)) + return handle + escapeTagName(tag.substring(prefix.length)); + } + return tag[0] === '!' ? tag : `!<${tag}>`; + } + toString(doc) { + const lines = this.yaml.explicit + ? [`%YAML ${this.yaml.version || '1.2'}`] + : []; + const tagEntries = Object.entries(this.tags); + let tagNames; + if (doc && tagEntries.length > 0 && isNode(doc.contents)) { + const tags = {}; + visit(doc.contents, (_key, node) => { + if (isNode(node) && node.tag) + tags[node.tag] = true; + }); + tagNames = Object.keys(tags); + } + else + tagNames = []; + for (const [handle, prefix] of tagEntries) { + if (handle === '!!' && prefix === 'tag:yaml.org,2002:') + continue; + if (!doc || tagNames.some(tn => tn.startsWith(prefix))) + lines.push(`%TAG ${handle} ${prefix}`); + } + return lines.join('\n'); + } +} +Directives.defaultYaml = { explicit: false, version: '1.2' }; +Directives.defaultTags = { '!!': 'tag:yaml.org,2002:' }; + +export { Directives }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/errors.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/errors.js" index c9a889eca1ba9f656fae5ccd2939f5cb7a36a811..ad9129000be5c692f35911dcb6305625f641c54e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/errors.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/errors.js" @@ -1,3 +1,57 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f38e60d89217129a59e27e91021e9697cd42f9e873d442cf2e9dc44c0b5ebba -size 2029 +class YAMLError extends Error { + constructor(name, pos, code, message) { + super(); + this.name = name; + this.code = code; + this.message = message; + this.pos = pos; + } +} +class YAMLParseError extends YAMLError { + constructor(pos, code, message) { + super('YAMLParseError', pos, code, message); + } +} +class YAMLWarning extends YAMLError { + constructor(pos, code, message) { + super('YAMLWarning', pos, code, message); + } +} +const prettifyError = (src, lc) => (error) => { + if (error.pos[0] === -1) + return; + error.linePos = error.pos.map(pos => lc.linePos(pos)); + const { line, col } = error.linePos[0]; + error.message += ` at line ${line}, column ${col}`; + let ci = col - 1; + let lineStr = src + .substring(lc.lineStarts[line - 1], lc.lineStarts[line]) + .replace(/[\n\r]+$/, ''); + // Trim to max 80 chars, keeping col position near the middle + if (ci >= 60 && lineStr.length > 80) { + const trimStart = Math.min(ci - 39, lineStr.length - 79); + lineStr = 'â€Ĥ' + lineStr.substring(trimStart); + ci -= trimStart - 1; + } + if (lineStr.length > 80) + lineStr = lineStr.substring(0, 79) + 'â€Ĥ'; + // Include previous line in context if pointing at line start + if (line > 1 && /^ *$/.test(lineStr.substring(0, ci))) { + // Regexp won't match if start is trimmed + let prev = src.substring(lc.lineStarts[line - 2], lc.lineStarts[line - 1]); + if (prev.length > 80) + prev = prev.substring(0, 79) + 'â€Ĥ\n'; + lineStr = prev + lineStr; + } + if (/[^ ]/.test(lineStr)) { + let count = 1; + const end = error.linePos[1]; + if (end && end.line === line && end.col > col) { + count = Math.max(1, Math.min(end.col - col, 80 - ci)); + } + const pointer = ' '.repeat(ci) + '^'.repeat(count); + error.message += `:\n\n${lineStr}\n${pointer}\n`; + } +}; + +export { YAMLError, YAMLParseError, YAMLWarning, prettifyError }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/index.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/index.js" index c2d5bd15b8c56aeff134ab03cbd11a9d3aa127ae..96765afc1fb3cf157a591eb3a7262916aaa8d387 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/index.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/index.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15217b280ce8567e74f77a366eb8cff4f475980b9bc2ac8cdb6e79d9ce6d123a -size 875 +export { Composer } from './compose/composer.js'; +export { Document } from './doc/Document.js'; +export { Schema } from './schema/Schema.js'; +export { YAMLError, YAMLParseError, YAMLWarning } from './errors.js'; +export { Alias } from './nodes/Alias.js'; +export { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from './nodes/Node.js'; +export { Pair } from './nodes/Pair.js'; +export { Scalar } from './nodes/Scalar.js'; +export { YAMLMap } from './nodes/YAMLMap.js'; +export { YAMLSeq } from './nodes/YAMLSeq.js'; +import * as cst from './parse/cst.js'; +export { cst as CST }; +export { Lexer } from './parse/lexer.js'; +export { LineCounter } from './parse/line-counter.js'; +export { Parser } from './parse/parser.js'; +export { parse, parseAllDocuments, parseDocument, stringify } from './public-api.js'; +export { visit, visitAsync } from './visit.js'; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/log.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/log.js" index 66544be1a29c60bb52403d6deb14cc12fae5c42f..aa5ba568fdaf2dbde4aa7d2ef64f2b61d6ed3b73 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/log.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/log.js" @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2410e173d6f58b0bba92bc16336412b7fc8a905bee88fae89e17150806d4b2e4 -size 386 +function debug(logLevel, ...messages) { + if (logLevel === 'debug') + console.log(...messages); +} +function warn(logLevel, warning) { + if (logLevel === 'debug' || logLevel === 'warn') { + if (typeof process !== 'undefined' && process.emitWarning) + process.emitWarning(warning); + else + console.warn(warning); + } +} + +export { debug, warn }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/node_modules/tslib/tslib.es6.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/node_modules/tslib/tslib.es6.js" index 63e5b17323065879e19044b0f070817de8c250fd..49641915628dc50a15593687930c2ce14b9813ff 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/node_modules/tslib/tslib.es6.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/node_modules/tslib/tslib.es6.js" @@ -1,3 +1,164 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:640ef96a10ee4bc0c4959b986c4f0e7519b72f4d22cfa1244e3aa5768b21b177 -size 4045 +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ + +/* global Reflect, Promise */ +var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function (d, b) { + d.__proto__ = b; + } || function (d, b) { + for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; + }; + + return extendStatics(d, b); +}; + +function __extends(d, b) { + if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + + function __() { + this.constructor = d; + } + + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} +function __generator(thisArg, body) { + var _ = { + label: 0, + sent: function () { + if (t[0] & 1) throw t[1]; + return t[1]; + }, + trys: [], + ops: [] + }, + f, + y, + t, + g; + return g = { + next: verb(0), + "throw": verb(1), + "return": verb(2) + }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { + return this; + }), g; + + function verb(n) { + return function (v) { + return step([n, v]); + }; + } + + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + + switch (op[0]) { + case 0: + case 1: + t = op; + break; + + case 4: + _.label++; + return { + value: op[1], + done: false + }; + + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + + case 7: + op = _.ops.pop(); + + _.trys.pop(); + + continue; + + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + + if (t && _.label < t[2]) { + _.label = t[2]; + + _.ops.push(op); + + break; + } + + if (t[2]) _.ops.pop(); + + _.trys.pop(); + + continue; + } + + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + + if (op[0] & 5) throw op[1]; + return { + value: op[0] ? op[1] : void 0, + done: true + }; + } +} +function __values(o) { + var s = typeof Symbol === "function" && Symbol.iterator, + m = s && o[s], + i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { + value: o && o[i++], + done: !o + }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +} + +export { __extends, __generator, __values }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Alias.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Alias.js" index 90ba4f7e6000c4f3b670a546ca1704ba2e9beb61..141b8110c809826b79648509754804b307271489 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Alias.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Alias.js" @@ -1,3 +1,94 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:16c2d7edf9e5eff62b07717a390a2eac3e28dc7b00d1b71d1275004e9a782f31 -size 3147 +import { anchorIsValid } from '../doc/anchors.js'; +import { visit } from '../visit.js'; +import { NodeBase, ALIAS, isAlias, isCollection, isPair } from './Node.js'; + +class Alias extends NodeBase { + constructor(source) { + super(ALIAS); + this.source = source; + Object.defineProperty(this, 'tag', { + set() { + throw new Error('Alias nodes cannot have tags'); + } + }); + } + /** + * Resolve the value of this alias within `doc`, finding the last + * instance of the `source` anchor before this node. + */ + resolve(doc) { + let found = undefined; + visit(doc, { + Node: (_key, node) => { + if (node === this) + return visit.BREAK; + if (node.anchor === this.source) + found = node; + } + }); + return found; + } + toJSON(_arg, ctx) { + if (!ctx) + return { source: this.source }; + const { anchors, doc, maxAliasCount } = ctx; + const source = this.resolve(doc); + if (!source) { + const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`; + throw new ReferenceError(msg); + } + const data = anchors.get(source); + /* istanbul ignore if */ + if (!data || data.res === undefined) { + const msg = 'This should not happen: Alias anchor was not resolved?'; + throw new ReferenceError(msg); + } + if (maxAliasCount >= 0) { + data.count += 1; + if (data.aliasCount === 0) + data.aliasCount = getAliasCount(doc, source, anchors); + if (data.count * data.aliasCount > maxAliasCount) { + const msg = 'Excessive alias count indicates a resource exhaustion attack'; + throw new ReferenceError(msg); + } + } + return data.res; + } + toString(ctx, _onComment, _onChompKeep) { + const src = `*${this.source}`; + if (ctx) { + anchorIsValid(this.source); + if (ctx.options.verifyAliasOrder && !ctx.anchors.has(this.source)) { + const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`; + throw new Error(msg); + } + if (ctx.implicitKey) + return `${src} `; + } + return src; + } +} +function getAliasCount(doc, node, anchors) { + if (isAlias(node)) { + const source = node.resolve(doc); + const anchor = anchors && source && anchors.get(source); + return anchor ? anchor.count * anchor.aliasCount : 0; + } + else if (isCollection(node)) { + let count = 0; + for (const item of node.items) { + const c = getAliasCount(doc, item, anchors); + if (c > count) + count = c; + } + return count; + } + else if (isPair(node)) { + const kc = getAliasCount(doc, node.key, anchors); + const vc = getAliasCount(doc, node.value, anchors); + return Math.max(kc, vc); + } + return 1; +} + +export { Alias }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Collection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Collection.js" index 1f1e80f05a33af6e1bf64a156843ce70a47345bc..7498e86ae1577b65047ea3070ef032e3e69cd2d6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Collection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Collection.js" @@ -1,3 +1,147 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56e22dda2380945c2f784761928b528e40c6fa8a4400c0c7828eff31deafea4d -size 5091 +import { createNode } from '../doc/createNode.js'; +import { NodeBase, isNode, isPair, isCollection, isScalar } from './Node.js'; + +function collectionFromPath(schema, path, value) { + let v = value; + for (let i = path.length - 1; i >= 0; --i) { + const k = path[i]; + if (typeof k === 'number' && Number.isInteger(k) && k >= 0) { + const a = []; + a[k] = v; + v = a; + } + else { + v = new Map([[k, v]]); + } + } + return createNode(v, undefined, { + aliasDuplicateObjects: false, + keepUndefined: false, + onAnchor: () => { + throw new Error('This should not happen, please report a bug.'); + }, + schema, + sourceObjects: new Map() + }); +} +// Type guard is intentionally a little wrong so as to be more useful, +// as it does not cover untypable empty non-string iterables (e.g. []). +const isEmptyPath = (path) => path == null || + (typeof path === 'object' && !!path[Symbol.iterator]().next().done); +class Collection extends NodeBase { + constructor(type, schema) { + super(type); + Object.defineProperty(this, 'schema', { + value: schema, + configurable: true, + enumerable: false, + writable: true + }); + } + /** + * Create a copy of this collection. + * + * @param schema - If defined, overwrites the original's schema + */ + clone(schema) { + const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this)); + if (schema) + copy.schema = schema; + copy.items = copy.items.map(it => isNode(it) || isPair(it) ? it.clone(schema) : it); + if (this.range) + copy.range = this.range.slice(); + return copy; + } + /** + * Adds a value to the collection. For `!!map` and `!!omap` the value must + * be a Pair instance or a `{ key, value }` object, which may not have a key + * that already exists in the map. + */ + addIn(path, value) { + if (isEmptyPath(path)) + this.add(value); + else { + const [key, ...rest] = path; + const node = this.get(key, true); + if (isCollection(node)) + node.addIn(rest, value); + else if (node === undefined && this.schema) + this.set(key, collectionFromPath(this.schema, rest, value)); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + } + /** + * Removes a value from the collection. + * @returns `true` if the item was found and removed. + */ + deleteIn(path) { + const [key, ...rest] = path; + if (rest.length === 0) + return this.delete(key); + const node = this.get(key, true); + if (isCollection(node)) + return node.deleteIn(rest); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path, keepScalar) { + const [key, ...rest] = path; + const node = this.get(key, true); + if (rest.length === 0) + return !keepScalar && isScalar(node) ? node.value : node; + else + return isCollection(node) ? node.getIn(rest, keepScalar) : undefined; + } + hasAllNullValues(allowScalar) { + return this.items.every(node => { + if (!isPair(node)) + return false; + const n = node.value; + return (n == null || + (allowScalar && + isScalar(n) && + n.value == null && + !n.commentBefore && + !n.comment && + !n.tag)); + }); + } + /** + * Checks if the collection includes a value with the key `key`. + */ + hasIn(path) { + const [key, ...rest] = path; + if (rest.length === 0) + return this.has(key); + const node = this.get(key, true); + return isCollection(node) ? node.hasIn(rest) : false; + } + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path, value) { + const [key, ...rest] = path; + if (rest.length === 0) { + this.set(key, value); + } + else { + const node = this.get(key, true); + if (isCollection(node)) + node.setIn(rest, value); + else if (node === undefined && this.schema) + this.set(key, collectionFromPath(this.schema, rest, value)); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + } +} +Collection.maxFlowStringSingleLineLength = 60; + +export { Collection, collectionFromPath, isEmptyPath }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Node.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Node.js" index b22698234c50be5c37379d5268741f086c7384d5..718f363b480567f050c4549cc48399cbedbd90e8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Node.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Node.js" @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:64860749da9bbc79fcf953fd49d798e341ae004b71dd9cfd8246a6c25ad55352 -size 1892 +const ALIAS = Symbol.for('yaml.alias'); +const DOC = Symbol.for('yaml.document'); +const MAP = Symbol.for('yaml.map'); +const PAIR = Symbol.for('yaml.pair'); +const SCALAR = Symbol.for('yaml.scalar'); +const SEQ = Symbol.for('yaml.seq'); +const NODE_TYPE = Symbol.for('yaml.node.type'); +const isAlias = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === ALIAS; +const isDocument = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === DOC; +const isMap = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === MAP; +const isPair = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === PAIR; +const isScalar = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR; +const isSeq = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SEQ; +function isCollection(node) { + if (node && typeof node === 'object') + switch (node[NODE_TYPE]) { + case MAP: + case SEQ: + return true; + } + return false; +} +function isNode(node) { + if (node && typeof node === 'object') + switch (node[NODE_TYPE]) { + case ALIAS: + case MAP: + case SCALAR: + case SEQ: + return true; + } + return false; +} +const hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor; +class NodeBase { + constructor(type) { + Object.defineProperty(this, NODE_TYPE, { value: type }); + } + /** Create a copy of this node. */ + clone() { + const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this)); + if (this.range) + copy.range = this.range.slice(); + return copy; + } +} + +export { ALIAS, DOC, MAP, NODE_TYPE, NodeBase, PAIR, SCALAR, SEQ, hasAnchor, isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Pair.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Pair.js" index 833dc1d2db2f7247719f7f1434c818cf4d5ec556..5a628a2471d30c3d0fedad26acf1cad46d79ff4e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Pair.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Pair.js" @@ -1,3 +1,36 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b95277a1184ff5a860db831698406115575c93e520d994ccdca3f14b54e3dbab -size 1120 +import { createNode } from '../doc/createNode.js'; +import { stringifyPair } from '../stringify/stringifyPair.js'; +import { addPairToJSMap } from './addPairToJSMap.js'; +import { NODE_TYPE, PAIR, isNode } from './Node.js'; + +function createPair(key, value, ctx) { + const k = createNode(key, undefined, ctx); + const v = createNode(value, undefined, ctx); + return new Pair(k, v); +} +class Pair { + constructor(key, value = null) { + Object.defineProperty(this, NODE_TYPE, { value: PAIR }); + this.key = key; + this.value = value; + } + clone(schema) { + let { key, value } = this; + if (isNode(key)) + key = key.clone(schema); + if (isNode(value)) + value = value.clone(schema); + return new Pair(key, value); + } + toJSON(_, ctx) { + const pair = ctx?.mapAsMap ? new Map() : {}; + return addPairToJSMap(ctx, pair, this); + } + toString(ctx, onComment, onChompKeep) { + return ctx?.doc + ? stringifyPair(this, ctx, onComment, onChompKeep) + : JSON.stringify(this); + } +} + +export { Pair, createPair }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Scalar.js" index 564c5beb3da65d51ab7a790220aaace5f88045a7..691283a39e8bb6f16a9b4e31546a5a6c7ec37151 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/Scalar.js" @@ -1,3 +1,23 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fef95a8a8c6b917afd67f50d2152adf296c43d2dde018811ef1fe6ab42f13a56 -size 668 +import { NodeBase, SCALAR } from './Node.js'; +import { toJS } from './toJS.js'; + +const isScalarValue = (value) => !value || (typeof value !== 'function' && typeof value !== 'object'); +class Scalar extends NodeBase { + constructor(value) { + super(SCALAR); + this.value = value; + } + toJSON(arg, ctx) { + return ctx?.keep ? this.value : toJS(this.value, arg, ctx); + } + toString() { + return String(this.value); + } +} +Scalar.BLOCK_FOLDED = 'BLOCK_FOLDED'; +Scalar.BLOCK_LITERAL = 'BLOCK_LITERAL'; +Scalar.PLAIN = 'PLAIN'; +Scalar.QUOTE_DOUBLE = 'QUOTE_DOUBLE'; +Scalar.QUOTE_SINGLE = 'QUOTE_SINGLE'; + +export { Scalar, isScalarValue }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLMap.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLMap.js" index 5a6a16788294c043526f188224810ec77e44e177..dc8d3edc4a3174a6027d7101532e4344df0150a7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLMap.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLMap.js" @@ -1,3 +1,116 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c60f092d91193beced9bdd69dd751c10fdffde29674bfef15addd5c104b46baf -size 3906 +import { stringifyCollection } from '../stringify/stringifyCollection.js'; +import { addPairToJSMap } from './addPairToJSMap.js'; +import { Collection } from './Collection.js'; +import { isPair, isScalar, MAP } from './Node.js'; +import { Pair } from './Pair.js'; +import { isScalarValue } from './Scalar.js'; + +function findPair(items, key) { + const k = isScalar(key) ? key.value : key; + for (const it of items) { + if (isPair(it)) { + if (it.key === key || it.key === k) + return it; + if (isScalar(it.key) && it.key.value === k) + return it; + } + } + return undefined; +} +class YAMLMap extends Collection { + static get tagName() { + return 'tag:yaml.org,2002:map'; + } + constructor(schema) { + super(MAP, schema); + this.items = []; + } + /** + * Adds a value to the collection. + * + * @param overwrite - If not set `true`, using a key that is already in the + * collection will throw. Otherwise, overwrites the previous value. + */ + add(pair, overwrite) { + let _pair; + if (isPair(pair)) + _pair = pair; + else if (!pair || typeof pair !== 'object' || !('key' in pair)) { + // In TypeScript, this never happens. + _pair = new Pair(pair, pair?.value); + } + else + _pair = new Pair(pair.key, pair.value); + const prev = findPair(this.items, _pair.key); + const sortEntries = this.schema?.sortMapEntries; + if (prev) { + if (!overwrite) + throw new Error(`Key ${_pair.key} already set`); + // For scalars, keep the old node & its comments and anchors + if (isScalar(prev.value) && isScalarValue(_pair.value)) + prev.value.value = _pair.value; + else + prev.value = _pair.value; + } + else if (sortEntries) { + const i = this.items.findIndex(item => sortEntries(_pair, item) < 0); + if (i === -1) + this.items.push(_pair); + else + this.items.splice(i, 0, _pair); + } + else { + this.items.push(_pair); + } + } + delete(key) { + const it = findPair(this.items, key); + if (!it) + return false; + const del = this.items.splice(this.items.indexOf(it), 1); + return del.length > 0; + } + get(key, keepScalar) { + const it = findPair(this.items, key); + const node = it?.value; + return (!keepScalar && isScalar(node) ? node.value : node) ?? undefined; + } + has(key) { + return !!findPair(this.items, key); + } + set(key, value) { + this.add(new Pair(key, value), true); + } + /** + * @param ctx - Conversion context, originally set in Document#toJS() + * @param {Class} Type - If set, forces the returned collection type + * @returns Instance of Type, Map, or Object + */ + toJSON(_, ctx, Type) { + const map = Type ? new Type() : ctx?.mapAsMap ? new Map() : {}; + if (ctx?.onCreate) + ctx.onCreate(map); + for (const item of this.items) + addPairToJSMap(ctx, map, item); + return map; + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + for (const item of this.items) { + if (!isPair(item)) + throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`); + } + if (!ctx.allNullValues && this.hasAllNullValues(false)) + ctx = Object.assign({}, ctx, { allNullValues: true }); + return stringifyCollection(this, ctx, { + blockItemPrefix: '', + flowChars: { start: '{', end: '}' }, + itemIndent: ctx.indent || '', + onChompKeep, + onComment + }); + } +} + +export { YAMLMap, findPair }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLSeq.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLSeq.js" index 4827fd90e878baf24697f89818ddd2e89ef2f0cb..7eaf004ad3c39be81efe22d17a62fd1deeb4d191 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLSeq.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/YAMLSeq.js" @@ -1,3 +1,97 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:854a17fea853b6e56e731a5f39d8b6a0a5191af0b48f3b2a0d8a5f2fa699641a -size 2989 +import { stringifyCollection } from '../stringify/stringifyCollection.js'; +import { Collection } from './Collection.js'; +import { SEQ, isScalar } from './Node.js'; +import { isScalarValue } from './Scalar.js'; +import { toJS } from './toJS.js'; + +class YAMLSeq extends Collection { + static get tagName() { + return 'tag:yaml.org,2002:seq'; + } + constructor(schema) { + super(SEQ, schema); + this.items = []; + } + add(value) { + this.items.push(value); + } + /** + * Removes a value from the collection. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + * + * @returns `true` if the item was found and removed. + */ + delete(key) { + const idx = asItemIndex(key); + if (typeof idx !== 'number') + return false; + const del = this.items.splice(idx, 1); + return del.length > 0; + } + get(key, keepScalar) { + const idx = asItemIndex(key); + if (typeof idx !== 'number') + return undefined; + const it = this.items[idx]; + return !keepScalar && isScalar(it) ? it.value : it; + } + /** + * Checks if the collection includes a value with the key `key`. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + */ + has(key) { + const idx = asItemIndex(key); + return typeof idx === 'number' && idx < this.items.length; + } + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + * + * If `key` does not contain a representation of an integer, this will throw. + * It may be wrapped in a `Scalar`. + */ + set(key, value) { + const idx = asItemIndex(key); + if (typeof idx !== 'number') + throw new Error(`Expected a valid index, not ${key}.`); + const prev = this.items[idx]; + if (isScalar(prev) && isScalarValue(value)) + prev.value = value; + else + this.items[idx] = value; + } + toJSON(_, ctx) { + const seq = []; + if (ctx?.onCreate) + ctx.onCreate(seq); + let i = 0; + for (const item of this.items) + seq.push(toJS(item, String(i++), ctx)); + return seq; + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + return stringifyCollection(this, ctx, { + blockItemPrefix: '- ', + flowChars: { start: '[', end: ']' }, + itemIndent: (ctx.indent || '') + ' ', + onChompKeep, + onComment + }); + } +} +function asItemIndex(key) { + let idx = isScalar(key) ? key.value : key; + if (idx && typeof idx === 'string') + idx = Number(idx); + return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0 + ? idx + : null; +} + +export { YAMLSeq }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js" index f99fc3c7f832941d8995ccd4f402677d8d243cac..70deb4317c128bff9e78b8a43d59bb896b6d34c5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js" @@ -1,3 +1,104 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be8d036fc7fe0588b18e01d2be417a55ed4315aab79e193e604dc321faf262db -size 3880 +import { warn } from '../log.js'; +import { createStringifyContext } from '../stringify/stringify.js'; +import { isAlias, isSeq, isScalar, isMap, isNode } from './Node.js'; +import { Scalar } from './Scalar.js'; +import { toJS } from './toJS.js'; + +const MERGE_KEY = '<<'; +function addPairToJSMap(ctx, map, { key, value }) { + if (ctx?.doc.schema.merge && isMergeKey(key)) { + value = isAlias(value) ? value.resolve(ctx.doc) : value; + if (isSeq(value)) + for (const it of value.items) + mergeToJSMap(ctx, map, it); + else if (Array.isArray(value)) + for (const it of value) + mergeToJSMap(ctx, map, it); + else + mergeToJSMap(ctx, map, value); + } + else { + const jsKey = toJS(key, '', ctx); + if (map instanceof Map) { + map.set(jsKey, toJS(value, jsKey, ctx)); + } + else if (map instanceof Set) { + map.add(jsKey); + } + else { + const stringKey = stringifyKey(key, jsKey, ctx); + const jsValue = toJS(value, stringKey, ctx); + if (stringKey in map) + Object.defineProperty(map, stringKey, { + value: jsValue, + writable: true, + enumerable: true, + configurable: true + }); + else + map[stringKey] = jsValue; + } + } + return map; +} +const isMergeKey = (key) => key === MERGE_KEY || + (isScalar(key) && + key.value === MERGE_KEY && + (!key.type || key.type === Scalar.PLAIN)); +// If the value associated with a merge key is a single mapping node, each of +// its key/value pairs is inserted into the current mapping, unless the key +// already exists in it. If the value associated with the merge key is a +// sequence, then this sequence is expected to contain mapping nodes and each +// of these nodes is merged in turn according to its order in the sequence. +// Keys in mapping nodes earlier in the sequence override keys specified in +// later mapping nodes. -- http://yaml.org/type/merge.html +function mergeToJSMap(ctx, map, value) { + const source = ctx && isAlias(value) ? value.resolve(ctx.doc) : value; + if (!isMap(source)) + throw new Error('Merge sources must be maps or map aliases'); + const srcMap = source.toJSON(null, ctx, Map); + for (const [key, value] of srcMap) { + if (map instanceof Map) { + if (!map.has(key)) + map.set(key, value); + } + else if (map instanceof Set) { + map.add(key); + } + else if (!Object.prototype.hasOwnProperty.call(map, key)) { + Object.defineProperty(map, key, { + value, + writable: true, + enumerable: true, + configurable: true + }); + } + } + return map; +} +function stringifyKey(key, jsKey, ctx) { + if (jsKey === null) + return ''; + if (typeof jsKey !== 'object') + return String(jsKey); + if (isNode(key) && ctx && ctx.doc) { + const strCtx = createStringifyContext(ctx.doc, {}); + strCtx.anchors = new Set(); + for (const node of ctx.anchors.keys()) + strCtx.anchors.add(node.anchor); + strCtx.inFlow = true; + strCtx.inStringifyKey = true; + const strKey = key.toString(strCtx); + if (!ctx.mapKeyWarned) { + let jsonStr = JSON.stringify(strKey); + if (jsonStr.length > 40) + jsonStr = jsonStr.substring(0, 36) + '..."'; + warn(ctx.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${jsonStr}. Set mapAsMap: true to use object keys.`); + ctx.mapKeyWarned = true; + } + return strKey; + } + return JSON.stringify(jsKey); +} + +export { addPairToJSMap }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/toJS.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/toJS.js" index 9333de9ba2a528fdf786a1b60f8540f6d181f35e..a9f3681add97018af2955a267f76087980e05d05 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/toJS.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/nodes/toJS.js" @@ -1,3 +1,37 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7cfdba09ce1533bd15f47d5de88b83188e5b86da67c81b58514cb3cbc4542e13 -size 1262 +import { hasAnchor } from './Node.js'; + +/** + * Recursively convert any node or its contents to native JavaScript + * + * @param value - The input value + * @param arg - If `value` defines a `toJSON()` method, use this + * as its first argument + * @param ctx - Conversion context, originally set in Document#toJS(). If + * `{ keep: true }` is not set, output should be suitable for JSON + * stringification. + */ +function toJS(value, arg, ctx) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-return + if (Array.isArray(value)) + return value.map((v, i) => toJS(v, String(i), ctx)); + if (value && typeof value.toJSON === 'function') { + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + if (!ctx || !hasAnchor(value)) + return value.toJSON(arg, ctx); + const data = { aliasCount: 0, count: 1, res: undefined }; + ctx.anchors.set(value, data); + ctx.onCreate = res => { + data.res = res; + delete ctx.onCreate; + }; + const res = value.toJSON(arg, ctx); + if (ctx.onCreate) + ctx.onCreate(res); + return res; + } + if (typeof value === 'bigint' && !ctx?.keep) + return Number(value); + return value; +} + +export { toJS }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-scalar.js" index 6210b1da29897f52e1e48c76008345d27a4a1501..d4def9908273450ceb6f8c9c7beb10e4648f98d3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-scalar.js" @@ -1,3 +1,214 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e57c0fcff01d1f16fba297d1be11cb389b6ed6ac5734c5b3e23a3e91073158bd -size 9218 +import { resolveBlockScalar } from '../compose/resolve-block-scalar.js'; +import { resolveFlowScalar } from '../compose/resolve-flow-scalar.js'; +import { YAMLParseError } from '../errors.js'; +import { stringifyString } from '../stringify/stringifyString.js'; + +function resolveAsScalar(token, strict = true, onError) { + if (token) { + const _onError = (pos, code, message) => { + const offset = typeof pos === 'number' ? pos : Array.isArray(pos) ? pos[0] : pos.offset; + if (onError) + onError(offset, code, message); + else + throw new YAMLParseError([offset, offset + 1], code, message); + }; + switch (token.type) { + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + return resolveFlowScalar(token, strict, _onError); + case 'block-scalar': + return resolveBlockScalar(token, strict, _onError); + } + } + return null; +} +/** + * Create a new scalar token with `value` + * + * Values that represent an actual string but may be parsed as a different type should use a `type` other than `'PLAIN'`, + * as this function does not support any schema operations and won't check for such conflicts. + * + * @param value The string representation of the value, which will have its content properly indented. + * @param context.end Comments and whitespace after the end of the value, or after the block scalar header. If undefined, a newline will be added. + * @param context.implicitKey Being within an implicit key may affect the resolved type of the token's value. + * @param context.indent The indent level of the token. + * @param context.inFlow Is this scalar within a flow collection? This may affect the resolved type of the token's value. + * @param context.offset The offset position of the token. + * @param context.type The preferred type of the scalar token. If undefined, the previous type of the `token` will be used, defaulting to `'PLAIN'`. + */ +function createScalarToken(value, context) { + const { implicitKey = false, indent, inFlow = false, offset = -1, type = 'PLAIN' } = context; + const source = stringifyString({ type, value }, { + implicitKey, + indent: indent > 0 ? ' '.repeat(indent) : '', + inFlow, + options: { blockQuote: true, lineWidth: -1 } + }); + const end = context.end ?? [ + { type: 'newline', offset: -1, indent, source: '\n' } + ]; + switch (source[0]) { + case '|': + case '>': { + const he = source.indexOf('\n'); + const head = source.substring(0, he); + const body = source.substring(he + 1) + '\n'; + const props = [ + { type: 'block-scalar-header', offset, indent, source: head } + ]; + if (!addEndtoBlockProps(props, end)) + props.push({ type: 'newline', offset: -1, indent, source: '\n' }); + return { type: 'block-scalar', offset, indent, props, source: body }; + } + case '"': + return { type: 'double-quoted-scalar', offset, indent, source, end }; + case "'": + return { type: 'single-quoted-scalar', offset, indent, source, end }; + default: + return { type: 'scalar', offset, indent, source, end }; + } +} +/** + * Set the value of `token` to the given string `value`, overwriting any previous contents and type that it may have. + * + * Best efforts are made to retain any comments previously associated with the `token`, + * though all contents within a collection's `items` will be overwritten. + * + * Values that represent an actual string but may be parsed as a different type should use a `type` other than `'PLAIN'`, + * as this function does not support any schema operations and won't check for such conflicts. + * + * @param token Any token. If it does not include an `indent` value, the value will be stringified as if it were an implicit key. + * @param value The string representation of the value, which will have its content properly indented. + * @param context.afterKey In most cases, values after a key should have an additional level of indentation. + * @param context.implicitKey Being within an implicit key may affect the resolved type of the token's value. + * @param context.inFlow Being within a flow collection may affect the resolved type of the token's value. + * @param context.type The preferred type of the scalar token. If undefined, the previous type of the `token` will be used, defaulting to `'PLAIN'`. + */ +function setScalarValue(token, value, context = {}) { + let { afterKey = false, implicitKey = false, inFlow = false, type } = context; + let indent = 'indent' in token ? token.indent : null; + if (afterKey && typeof indent === 'number') + indent += 2; + if (!type) + switch (token.type) { + case 'single-quoted-scalar': + type = 'QUOTE_SINGLE'; + break; + case 'double-quoted-scalar': + type = 'QUOTE_DOUBLE'; + break; + case 'block-scalar': { + const header = token.props[0]; + if (header.type !== 'block-scalar-header') + throw new Error('Invalid block scalar header'); + type = header.source[0] === '>' ? 'BLOCK_FOLDED' : 'BLOCK_LITERAL'; + break; + } + default: + type = 'PLAIN'; + } + const source = stringifyString({ type, value }, { + implicitKey: implicitKey || indent === null, + indent: indent !== null && indent > 0 ? ' '.repeat(indent) : '', + inFlow, + options: { blockQuote: true, lineWidth: -1 } + }); + switch (source[0]) { + case '|': + case '>': + setBlockScalarValue(token, source); + break; + case '"': + setFlowScalarValue(token, source, 'double-quoted-scalar'); + break; + case "'": + setFlowScalarValue(token, source, 'single-quoted-scalar'); + break; + default: + setFlowScalarValue(token, source, 'scalar'); + } +} +function setBlockScalarValue(token, source) { + const he = source.indexOf('\n'); + const head = source.substring(0, he); + const body = source.substring(he + 1) + '\n'; + if (token.type === 'block-scalar') { + const header = token.props[0]; + if (header.type !== 'block-scalar-header') + throw new Error('Invalid block scalar header'); + header.source = head; + token.source = body; + } + else { + const { offset } = token; + const indent = 'indent' in token ? token.indent : -1; + const props = [ + { type: 'block-scalar-header', offset, indent, source: head } + ]; + if (!addEndtoBlockProps(props, 'end' in token ? token.end : undefined)) + props.push({ type: 'newline', offset: -1, indent, source: '\n' }); + for (const key of Object.keys(token)) + if (key !== 'type' && key !== 'offset') + delete token[key]; + Object.assign(token, { type: 'block-scalar', indent, props, source: body }); + } +} +/** @returns `true` if last token is a newline */ +function addEndtoBlockProps(props, end) { + if (end) + for (const st of end) + switch (st.type) { + case 'space': + case 'comment': + props.push(st); + break; + case 'newline': + props.push(st); + return true; + } + return false; +} +function setFlowScalarValue(token, source, type) { + switch (token.type) { + case 'scalar': + case 'double-quoted-scalar': + case 'single-quoted-scalar': + token.type = type; + token.source = source; + break; + case 'block-scalar': { + const end = token.props.slice(1); + let oa = source.length; + if (token.props[0].type === 'block-scalar-header') + oa -= token.props[0].source.length; + for (const tok of end) + tok.offset += oa; + delete token.props; + Object.assign(token, { type, source, end }); + break; + } + case 'block-map': + case 'block-seq': { + const offset = token.offset + source.length; + const nl = { type: 'newline', offset, indent: token.indent, source: '\n' }; + delete token.items; + Object.assign(token, { type, source, end: [nl] }); + break; + } + default: { + const indent = 'indent' in token ? token.indent : -1; + const end = 'end' in token && Array.isArray(token.end) + ? token.end.filter(st => st.type === 'space' || + st.type === 'comment' || + st.type === 'newline') + : []; + for (const key of Object.keys(token)) + if (key !== 'type' && key !== 'offset') + delete token[key]; + Object.assign(token, { type, indent, source, end }); + } + } +} + +export { createScalarToken, resolveAsScalar, setScalarValue }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-stringify.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-stringify.js" index e3cd9a1225bf6ee33f457faf4027955a224f7fea..d6ab58c3a57e501c19159fafef14984ffa4f314c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-stringify.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-stringify.js" @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:275b500e3f1a0067d5d8671af5c536963a46d4921e49cf156547f796067b8810 -size 1775 +/** + * Stringify a CST document, token, or collection item + * + * Fair warning: This applies no validation whatsoever, and + * simply concatenates the sources in their logical order. + */ +const stringify = (cst) => 'type' in cst ? stringifyToken(cst) : stringifyItem(cst); +function stringifyToken(token) { + switch (token.type) { + case 'block-scalar': { + let res = ''; + for (const tok of token.props) + res += stringifyToken(tok); + return res + token.source; + } + case 'block-map': + case 'block-seq': { + let res = ''; + for (const item of token.items) + res += stringifyItem(item); + return res; + } + case 'flow-collection': { + let res = token.start.source; + for (const item of token.items) + res += stringifyItem(item); + for (const st of token.end) + res += st.source; + return res; + } + case 'document': { + let res = stringifyItem(token); + if (token.end) + for (const st of token.end) + res += st.source; + return res; + } + default: { + let res = token.source; + if ('end' in token && token.end) + for (const st of token.end) + res += st.source; + return res; + } + } +} +function stringifyItem({ start, key, sep, value }) { + let res = ''; + for (const st of start) + res += st.source; + if (key) + res += stringifyToken(key); + if (sep) + for (const st of sep) + res += st.source; + if (value) + res += stringifyToken(value); + return res; +} + +export { stringify }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-visit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-visit.js" index 2b121145862519e0b7d68c1cb152f240c7a17199..deca086b7114ec5de999acda6ba1082df5fb0d8c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-visit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst-visit.js" @@ -1,3 +1,97 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0baadd57686b26163ba71e7323a9208fcba81978e9ecebbad80afaa8baa61788 -size 3966 +const BREAK = Symbol('break visit'); +const SKIP = Symbol('skip children'); +const REMOVE = Symbol('remove item'); +/** + * Apply a visitor to a CST document or item. + * + * Walks through the tree (depth-first) starting from the root, calling a + * `visitor` function with two arguments when entering each item: + * - `item`: The current item, which included the following members: + * - `start: SourceToken[]` – Source tokens before the key or value, + * possibly including its anchor or tag. + * - `key?: Token | null` – Set for pair values. May then be `null`, if + * the key before the `:` separator is empty. + * - `sep?: SourceToken[]` – Source tokens between the key and the value, + * which should include the `:` map value indicator if `value` is set. + * - `value?: Token` – The value of a sequence item, or of a map pair. + * - `path`: The steps from the root to the current node, as an array of + * `['key' | 'value', number]` tuples. + * + * The return value of the visitor may be used to control the traversal: + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this token, continue with + * next sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current item, then continue with the next one + * - `number`: Set the index of the next step. This is useful especially if + * the index of the current token has changed. + * - `function`: Define the next visitor for this item. After the original + * visitor is called on item entry, next visitors are called after handling + * a non-empty `key` and when exiting the item. + */ +function visit(cst, visitor) { + if ('type' in cst && cst.type === 'document') + cst = { start: cst.start, value: cst.value }; + _visit(Object.freeze([]), cst, visitor); +} +// Without the `as symbol` casts, TS declares these in the `visit` +// namespace using `var`, but then complains about that because +// `unique symbol` must be `const`. +/** Terminate visit traversal completely */ +visit.BREAK = BREAK; +/** Do not visit the children of the current item */ +visit.SKIP = SKIP; +/** Remove the current item */ +visit.REMOVE = REMOVE; +/** Find the item at `path` from `cst` as the root */ +visit.itemAtPath = (cst, path) => { + let item = cst; + for (const [field, index] of path) { + const tok = item?.[field]; + if (tok && 'items' in tok) { + item = tok.items[index]; + } + else + return undefined; + } + return item; +}; +/** + * Get the immediate parent collection of the item at `path` from `cst` as the root. + * + * Throws an error if the collection is not found, which should never happen if the item itself exists. + */ +visit.parentCollection = (cst, path) => { + const parent = visit.itemAtPath(cst, path.slice(0, -1)); + const field = path[path.length - 1][0]; + const coll = parent?.[field]; + if (coll && 'items' in coll) + return coll; + throw new Error('Parent collection not found'); +}; +function _visit(path, item, visitor) { + let ctrl = visitor(item, path); + if (typeof ctrl === 'symbol') + return ctrl; + for (const field of ['key', 'value']) { + const token = item[field]; + if (token && 'items' in token) { + for (let i = 0; i < token.items.length; ++i) { + const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + token.items.splice(i, 1); + i -= 1; + } + } + if (typeof ctrl === 'function' && field === 'key') + ctrl = ctrl(item, path); + } + } + return typeof ctrl === 'function' ? ctrl(item, path) : ctrl; +} + +export { visit }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst.js" index 31d179fd60ad95b949e14c46010c141bfb069899..8bb2f4ad953aef2e04bb7ca4476cc70dc385e218 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/cst.js" @@ -1,3 +1,98 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8bf6c87dc02b9375750d550a9099cb1cd1cd71ca9da68f1a0798844a0f76bf8f -size 2886 +export { createScalarToken, resolveAsScalar, setScalarValue } from './cst-scalar.js'; +export { stringify } from './cst-stringify.js'; +export { visit } from './cst-visit.js'; + +/** The byte order mark */ +const BOM = '\u{FEFF}'; +/** Start of doc-mode */ +const DOCUMENT = '\x02'; // C0: Start of Text +/** Unexpected end of flow-mode */ +const FLOW_END = '\x18'; // C0: Cancel +/** Next token is a scalar value */ +const SCALAR = '\x1f'; // C0: Unit Separator +/** @returns `true` if `token` is a flow or block collection */ +const isCollection = (token) => !!token && 'items' in token; +/** @returns `true` if `token` is a flow or block scalar; not an alias */ +const isScalar = (token) => !!token && + (token.type === 'scalar' || + token.type === 'single-quoted-scalar' || + token.type === 'double-quoted-scalar' || + token.type === 'block-scalar'); +/* istanbul ignore next */ +/** Get a printable representation of a lexer token */ +function prettyToken(token) { + switch (token) { + case BOM: + return ''; + case DOCUMENT: + return ''; + case FLOW_END: + return ''; + case SCALAR: + return ''; + default: + return JSON.stringify(token); + } +} +/** Identify the type of a lexer token. May return `null` for unknown tokens. */ +function tokenType(source) { + switch (source) { + case BOM: + return 'byte-order-mark'; + case DOCUMENT: + return 'doc-mode'; + case FLOW_END: + return 'flow-error-end'; + case SCALAR: + return 'scalar'; + case '---': + return 'doc-start'; + case '...': + return 'doc-end'; + case '': + case '\n': + case '\r\n': + return 'newline'; + case '-': + return 'seq-item-ind'; + case '?': + return 'explicit-key-ind'; + case ':': + return 'map-value-ind'; + case '{': + return 'flow-map-start'; + case '}': + return 'flow-map-end'; + case '[': + return 'flow-seq-start'; + case ']': + return 'flow-seq-end'; + case ',': + return 'comma'; + } + switch (source[0]) { + case ' ': + case '\t': + return 'space'; + case '#': + return 'comment'; + case '%': + return 'directive-line'; + case '*': + return 'alias'; + case '&': + return 'anchor'; + case '!': + return 'tag'; + case "'": + return 'single-quoted-scalar'; + case '"': + return 'double-quoted-scalar'; + case '|': + case '>': + return 'block-scalar-header'; + } + return null; +} + +export { BOM, DOCUMENT, FLOW_END, SCALAR, isCollection, isScalar, prettyToken, tokenType }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/lexer.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/lexer.js" index ec836615f20c77e4678631667056a3f5866434c8..20fe13c278c373e8e245647ff5b7fc13405b8e64 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/lexer.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/lexer.js" @@ -1,3 +1,701 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:59cafcf7e9b097dbc1d945ee23c4c14c028ce5dafd64b2b785146c650612b806 -size 23457 +import { BOM, DOCUMENT, FLOW_END, SCALAR } from './cst.js'; + +/* +START -> stream + +stream + directive -> line-end -> stream + indent + line-end -> stream + [else] -> line-start + +line-end + comment -> line-end + newline -> . + input-end -> END + +line-start + doc-start -> doc + doc-end -> stream + [else] -> indent -> block-start + +block-start + seq-item-start -> block-start + explicit-key-start -> block-start + map-value-start -> block-start + [else] -> doc + +doc + line-end -> line-start + spaces -> doc + anchor -> doc + tag -> doc + flow-start -> flow -> doc + flow-end -> error -> doc + seq-item-start -> error -> doc + explicit-key-start -> error -> doc + map-value-start -> doc + alias -> doc + quote-start -> quoted-scalar -> doc + block-scalar-header -> line-end -> block-scalar(min) -> line-start + [else] -> plain-scalar(false, min) -> doc + +flow + line-end -> flow + spaces -> flow + anchor -> flow + tag -> flow + flow-start -> flow -> flow + flow-end -> . + seq-item-start -> error -> flow + explicit-key-start -> flow + map-value-start -> flow + alias -> flow + quote-start -> quoted-scalar -> flow + comma -> flow + [else] -> plain-scalar(true, 0) -> flow + +quoted-scalar + quote-end -> . + [else] -> quoted-scalar + +block-scalar(min) + newline + peek(indent < min) -> . + [else] -> block-scalar(min) + +plain-scalar(is-flow, min) + scalar-end(is-flow) -> . + peek(newline + (indent < min)) -> . + [else] -> plain-scalar(min) +*/ +function isEmpty(ch) { + switch (ch) { + case undefined: + case ' ': + case '\n': + case '\r': + case '\t': + return true; + default: + return false; + } +} +const hexDigits = '0123456789ABCDEFabcdef'.split(''); +const tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(''); +const invalidFlowScalarChars = ',[]{}'.split(''); +const invalidAnchorChars = ' ,[]{}\n\r\t'.split(''); +const isNotAnchorChar = (ch) => !ch || invalidAnchorChars.includes(ch); +/** + * Splits an input string into lexical tokens, i.e. smaller strings that are + * easily identifiable by `tokens.tokenType()`. + * + * Lexing starts always in a "stream" context. Incomplete input may be buffered + * until a complete token can be emitted. + * + * In addition to slices of the original input, the following control characters + * may also be emitted: + * + * - `\x02` (Start of Text): A document starts with the next token + * - `\x18` (Cancel): Unexpected end of flow-mode (indicates an error) + * - `\x1f` (Unit Separator): Next token is a scalar value + * - `\u{FEFF}` (Byte order mark): Emitted separately outside documents + */ +class Lexer { + constructor() { + /** + * Flag indicating whether the end of the current buffer marks the end of + * all input + */ + this.atEnd = false; + /** + * Explicit indent set in block scalar header, as an offset from the current + * minimum indent, so e.g. set to 1 from a header `|2+`. Set to -1 if not + * explicitly set. + */ + this.blockScalarIndent = -1; + /** + * Block scalars that include a + (keep) chomping indicator in their header + * include trailing empty lines, which are otherwise excluded from the + * scalar's contents. + */ + this.blockScalarKeep = false; + /** Current input */ + this.buffer = ''; + /** + * Flag noting whether the map value indicator : can immediately follow this + * node within a flow context. + */ + this.flowKey = false; + /** Count of surrounding flow collection levels. */ + this.flowLevel = 0; + /** + * Minimum level of indentation required for next lines to be parsed as a + * part of the current scalar value. + */ + this.indentNext = 0; + /** Indentation level of the current line. */ + this.indentValue = 0; + /** Position of the next \n character. */ + this.lineEndPos = null; + /** Stores the state of the lexer if reaching the end of incpomplete input */ + this.next = null; + /** A pointer to `buffer`; the current position of the lexer. */ + this.pos = 0; + } + /** + * Generate YAML tokens from the `source` string. If `incomplete`, + * a part of the last line may be left as a buffer for the next call. + * + * @returns A generator of lexical tokens + */ + *lex(source, incomplete = false) { + if (source) { + this.buffer = this.buffer ? this.buffer + source : source; + this.lineEndPos = null; + } + this.atEnd = !incomplete; + let next = this.next ?? 'stream'; + while (next && (incomplete || this.hasChars(1))) + next = yield* this.parseNext(next); + } + atLineEnd() { + let i = this.pos; + let ch = this.buffer[i]; + while (ch === ' ' || ch === '\t') + ch = this.buffer[++i]; + if (!ch || ch === '#' || ch === '\n') + return true; + if (ch === '\r') + return this.buffer[i + 1] === '\n'; + return false; + } + charAt(n) { + return this.buffer[this.pos + n]; + } + continueScalar(offset) { + let ch = this.buffer[offset]; + if (this.indentNext > 0) { + let indent = 0; + while (ch === ' ') + ch = this.buffer[++indent + offset]; + if (ch === '\r') { + const next = this.buffer[indent + offset + 1]; + if (next === '\n' || (!next && !this.atEnd)) + return offset + indent + 1; + } + return ch === '\n' || indent >= this.indentNext || (!ch && !this.atEnd) + ? offset + indent + : -1; + } + if (ch === '-' || ch === '.') { + const dt = this.buffer.substr(offset, 3); + if ((dt === '---' || dt === '...') && isEmpty(this.buffer[offset + 3])) + return -1; + } + return offset; + } + getLine() { + let end = this.lineEndPos; + if (typeof end !== 'number' || (end !== -1 && end < this.pos)) { + end = this.buffer.indexOf('\n', this.pos); + this.lineEndPos = end; + } + if (end === -1) + return this.atEnd ? this.buffer.substring(this.pos) : null; + if (this.buffer[end - 1] === '\r') + end -= 1; + return this.buffer.substring(this.pos, end); + } + hasChars(n) { + return this.pos + n <= this.buffer.length; + } + setNext(state) { + this.buffer = this.buffer.substring(this.pos); + this.pos = 0; + this.lineEndPos = null; + this.next = state; + return null; + } + peek(n) { + return this.buffer.substr(this.pos, n); + } + *parseNext(next) { + switch (next) { + case 'stream': + return yield* this.parseStream(); + case 'line-start': + return yield* this.parseLineStart(); + case 'block-start': + return yield* this.parseBlockStart(); + case 'doc': + return yield* this.parseDocument(); + case 'flow': + return yield* this.parseFlowCollection(); + case 'quoted-scalar': + return yield* this.parseQuotedScalar(); + case 'block-scalar': + return yield* this.parseBlockScalar(); + case 'plain-scalar': + return yield* this.parsePlainScalar(); + } + } + *parseStream() { + let line = this.getLine(); + if (line === null) + return this.setNext('stream'); + if (line[0] === BOM) { + yield* this.pushCount(1); + line = line.substring(1); + } + if (line[0] === '%') { + let dirEnd = line.length; + const cs = line.indexOf('#'); + if (cs !== -1) { + const ch = line[cs - 1]; + if (ch === ' ' || ch === '\t') + dirEnd = cs - 1; + } + while (true) { + const ch = line[dirEnd - 1]; + if (ch === ' ' || ch === '\t') + dirEnd -= 1; + else + break; + } + const n = (yield* this.pushCount(dirEnd)) + (yield* this.pushSpaces(true)); + yield* this.pushCount(line.length - n); // possible comment + this.pushNewline(); + return 'stream'; + } + if (this.atLineEnd()) { + const sp = yield* this.pushSpaces(true); + yield* this.pushCount(line.length - sp); + yield* this.pushNewline(); + return 'stream'; + } + yield DOCUMENT; + return yield* this.parseLineStart(); + } + *parseLineStart() { + const ch = this.charAt(0); + if (!ch && !this.atEnd) + return this.setNext('line-start'); + if (ch === '-' || ch === '.') { + if (!this.atEnd && !this.hasChars(4)) + return this.setNext('line-start'); + const s = this.peek(3); + if (s === '---' && isEmpty(this.charAt(3))) { + yield* this.pushCount(3); + this.indentValue = 0; + this.indentNext = 0; + return 'doc'; + } + else if (s === '...' && isEmpty(this.charAt(3))) { + yield* this.pushCount(3); + return 'stream'; + } + } + this.indentValue = yield* this.pushSpaces(false); + if (this.indentNext > this.indentValue && !isEmpty(this.charAt(1))) + this.indentNext = this.indentValue; + return yield* this.parseBlockStart(); + } + *parseBlockStart() { + const [ch0, ch1] = this.peek(2); + if (!ch1 && !this.atEnd) + return this.setNext('block-start'); + if ((ch0 === '-' || ch0 === '?' || ch0 === ':') && isEmpty(ch1)) { + const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)); + this.indentNext = this.indentValue + 1; + this.indentValue += n; + return yield* this.parseBlockStart(); + } + return 'doc'; + } + *parseDocument() { + yield* this.pushSpaces(true); + const line = this.getLine(); + if (line === null) + return this.setNext('doc'); + let n = yield* this.pushIndicators(); + switch (line[n]) { + case '#': + yield* this.pushCount(line.length - n); + // fallthrough + case undefined: + yield* this.pushNewline(); + return yield* this.parseLineStart(); + case '{': + case '[': + yield* this.pushCount(1); + this.flowKey = false; + this.flowLevel = 1; + return 'flow'; + case '}': + case ']': + // this is an error + yield* this.pushCount(1); + return 'doc'; + case '*': + yield* this.pushUntil(isNotAnchorChar); + return 'doc'; + case '"': + case "'": + return yield* this.parseQuotedScalar(); + case '|': + case '>': + n += yield* this.parseBlockScalarHeader(); + n += yield* this.pushSpaces(true); + yield* this.pushCount(line.length - n); + yield* this.pushNewline(); + return yield* this.parseBlockScalar(); + default: + return yield* this.parsePlainScalar(); + } + } + *parseFlowCollection() { + let nl, sp; + let indent = -1; + do { + nl = yield* this.pushNewline(); + if (nl > 0) { + sp = yield* this.pushSpaces(false); + this.indentValue = indent = sp; + } + else { + sp = 0; + } + sp += yield* this.pushSpaces(true); + } while (nl + sp > 0); + const line = this.getLine(); + if (line === null) + return this.setNext('flow'); + if ((indent !== -1 && indent < this.indentNext && line[0] !== '#') || + (indent === 0 && + (line.startsWith('---') || line.startsWith('...')) && + isEmpty(line[3]))) { + // Allowing for the terminal ] or } at the same (rather than greater) + // indent level as the initial [ or { is technically invalid, but + // failing here would be surprising to users. + const atFlowEndMarker = indent === this.indentNext - 1 && + this.flowLevel === 1 && + (line[0] === ']' || line[0] === '}'); + if (!atFlowEndMarker) { + // this is an error + this.flowLevel = 0; + yield FLOW_END; + return yield* this.parseLineStart(); + } + } + let n = 0; + while (line[n] === ',') { + n += yield* this.pushCount(1); + n += yield* this.pushSpaces(true); + this.flowKey = false; + } + n += yield* this.pushIndicators(); + switch (line[n]) { + case undefined: + return 'flow'; + case '#': + yield* this.pushCount(line.length - n); + return 'flow'; + case '{': + case '[': + yield* this.pushCount(1); + this.flowKey = false; + this.flowLevel += 1; + return 'flow'; + case '}': + case ']': + yield* this.pushCount(1); + this.flowKey = true; + this.flowLevel -= 1; + return this.flowLevel ? 'flow' : 'doc'; + case '*': + yield* this.pushUntil(isNotAnchorChar); + return 'flow'; + case '"': + case "'": + this.flowKey = true; + return yield* this.parseQuotedScalar(); + case ':': { + const next = this.charAt(1); + if (this.flowKey || isEmpty(next) || next === ',') { + this.flowKey = false; + yield* this.pushCount(1); + yield* this.pushSpaces(true); + return 'flow'; + } + } + // fallthrough + default: + this.flowKey = false; + return yield* this.parsePlainScalar(); + } + } + *parseQuotedScalar() { + const quote = this.charAt(0); + let end = this.buffer.indexOf(quote, this.pos + 1); + if (quote === "'") { + while (end !== -1 && this.buffer[end + 1] === "'") + end = this.buffer.indexOf("'", end + 2); + } + else { + // double-quote + while (end !== -1) { + let n = 0; + while (this.buffer[end - 1 - n] === '\\') + n += 1; + if (n % 2 === 0) + break; + end = this.buffer.indexOf('"', end + 1); + } + } + // Only looking for newlines within the quotes + const qb = this.buffer.substring(0, end); + let nl = qb.indexOf('\n', this.pos); + if (nl !== -1) { + while (nl !== -1) { + const cs = this.continueScalar(nl + 1); + if (cs === -1) + break; + nl = qb.indexOf('\n', cs); + } + if (nl !== -1) { + // this is an error caused by an unexpected unindent + end = nl - (qb[nl - 1] === '\r' ? 2 : 1); + } + } + if (end === -1) { + if (!this.atEnd) + return this.setNext('quoted-scalar'); + end = this.buffer.length; + } + yield* this.pushToIndex(end + 1, false); + return this.flowLevel ? 'flow' : 'doc'; + } + *parseBlockScalarHeader() { + this.blockScalarIndent = -1; + this.blockScalarKeep = false; + let i = this.pos; + while (true) { + const ch = this.buffer[++i]; + if (ch === '+') + this.blockScalarKeep = true; + else if (ch > '0' && ch <= '9') + this.blockScalarIndent = Number(ch) - 1; + else if (ch !== '-') + break; + } + return yield* this.pushUntil(ch => isEmpty(ch) || ch === '#'); + } + *parseBlockScalar() { + let nl = this.pos - 1; // may be -1 if this.pos === 0 + let indent = 0; + let ch; + loop: for (let i = this.pos; (ch = this.buffer[i]); ++i) { + switch (ch) { + case ' ': + indent += 1; + break; + case '\n': + nl = i; + indent = 0; + break; + case '\r': { + const next = this.buffer[i + 1]; + if (!next && !this.atEnd) + return this.setNext('block-scalar'); + if (next === '\n') + break; + } // fallthrough + default: + break loop; + } + } + if (!ch && !this.atEnd) + return this.setNext('block-scalar'); + if (indent >= this.indentNext) { + if (this.blockScalarIndent === -1) + this.indentNext = indent; + else + this.indentNext += this.blockScalarIndent; + do { + const cs = this.continueScalar(nl + 1); + if (cs === -1) + break; + nl = this.buffer.indexOf('\n', cs); + } while (nl !== -1); + if (nl === -1) { + if (!this.atEnd) + return this.setNext('block-scalar'); + nl = this.buffer.length; + } + } + if (!this.blockScalarKeep) { + do { + let i = nl - 1; + let ch = this.buffer[i]; + if (ch === '\r') + ch = this.buffer[--i]; + const lastChar = i; // Drop the line if last char not more indented + while (ch === ' ' || ch === '\t') + ch = this.buffer[--i]; + if (ch === '\n' && i >= this.pos && i + 1 + indent > lastChar) + nl = i; + else + break; + } while (true); + } + yield SCALAR; + yield* this.pushToIndex(nl + 1, true); + return yield* this.parseLineStart(); + } + *parsePlainScalar() { + const inFlow = this.flowLevel > 0; + let end = this.pos - 1; + let i = this.pos - 1; + let ch; + while ((ch = this.buffer[++i])) { + if (ch === ':') { + const next = this.buffer[i + 1]; + if (isEmpty(next) || (inFlow && next === ',')) + break; + end = i; + } + else if (isEmpty(ch)) { + let next = this.buffer[i + 1]; + if (ch === '\r') { + if (next === '\n') { + i += 1; + ch = '\n'; + next = this.buffer[i + 1]; + } + else + end = i; + } + if (next === '#' || (inFlow && invalidFlowScalarChars.includes(next))) + break; + if (ch === '\n') { + const cs = this.continueScalar(i + 1); + if (cs === -1) + break; + i = Math.max(i, cs - 2); // to advance, but still account for ' #' + } + } + else { + if (inFlow && invalidFlowScalarChars.includes(ch)) + break; + end = i; + } + } + if (!ch && !this.atEnd) + return this.setNext('plain-scalar'); + yield SCALAR; + yield* this.pushToIndex(end + 1, true); + return inFlow ? 'flow' : 'doc'; + } + *pushCount(n) { + if (n > 0) { + yield this.buffer.substr(this.pos, n); + this.pos += n; + return n; + } + return 0; + } + *pushToIndex(i, allowEmpty) { + const s = this.buffer.slice(this.pos, i); + if (s) { + yield s; + this.pos += s.length; + return s.length; + } + else if (allowEmpty) + yield ''; + return 0; + } + *pushIndicators() { + switch (this.charAt(0)) { + case '!': + return ((yield* this.pushTag()) + + (yield* this.pushSpaces(true)) + + (yield* this.pushIndicators())); + case '&': + return ((yield* this.pushUntil(isNotAnchorChar)) + + (yield* this.pushSpaces(true)) + + (yield* this.pushIndicators())); + case '-': // this is an error + case '?': // this is an error outside flow collections + case ':': { + const inFlow = this.flowLevel > 0; + const ch1 = this.charAt(1); + if (isEmpty(ch1) || (inFlow && invalidFlowScalarChars.includes(ch1))) { + if (!inFlow) + this.indentNext = this.indentValue + 1; + else if (this.flowKey) + this.flowKey = false; + return ((yield* this.pushCount(1)) + + (yield* this.pushSpaces(true)) + + (yield* this.pushIndicators())); + } + } + } + return 0; + } + *pushTag() { + if (this.charAt(1) === '<') { + let i = this.pos + 2; + let ch = this.buffer[i]; + while (!isEmpty(ch) && ch !== '>') + ch = this.buffer[++i]; + return yield* this.pushToIndex(ch === '>' ? i + 1 : i, false); + } + else { + let i = this.pos + 1; + let ch = this.buffer[i]; + while (ch) { + if (tagChars.includes(ch)) + ch = this.buffer[++i]; + else if (ch === '%' && + hexDigits.includes(this.buffer[i + 1]) && + hexDigits.includes(this.buffer[i + 2])) { + ch = this.buffer[(i += 3)]; + } + else + break; + } + return yield* this.pushToIndex(i, false); + } + } + *pushNewline() { + const ch = this.buffer[this.pos]; + if (ch === '\n') + return yield* this.pushCount(1); + else if (ch === '\r' && this.charAt(1) === '\n') + return yield* this.pushCount(2); + else + return 0; + } + *pushSpaces(allowTabs) { + let i = this.pos - 1; + let ch; + do { + ch = this.buffer[++i]; + } while (ch === ' ' || (allowTabs && ch === '\t')); + const n = i - this.pos; + if (n > 0) { + yield this.buffer.substr(this.pos, n); + this.pos = i; + } + return n; + } + *pushUntil(test) { + let i = this.pos; + let ch = this.buffer[i]; + while (!test(ch)) + ch = this.buffer[++i]; + return yield* this.pushToIndex(i, false); + } +} + +export { Lexer }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/line-counter.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/line-counter.js" index ada35bdf6fcd581fd5f441bd76adc9169f105e9b..002ce246de9b1fc219a55da73c7df25df2815154 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/line-counter.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/line-counter.js" @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2428d1b9a18ad7d8dabc7e12276e0fd90446c9e3433f1501e6bb43e111ad63c0 -size 1419 +/** + * Tracks newlines during parsing in order to provide an efficient API for + * determining the one-indexed `{ line, col }` position for any offset + * within the input. + */ +class LineCounter { + constructor() { + this.lineStarts = []; + /** + * Should be called in ascending order. Otherwise, call + * `lineCounter.lineStarts.sort()` before calling `linePos()`. + */ + this.addNewLine = (offset) => this.lineStarts.push(offset); + /** + * Performs a binary search and returns the 1-indexed { line, col } + * position of `offset`. If `line === 0`, `addNewLine` has never been + * called or `offset` is before the first known newline. + */ + this.linePos = (offset) => { + let low = 0; + let high = this.lineStarts.length; + while (low < high) { + const mid = (low + high) >> 1; // Math.floor((low + high) / 2) + if (this.lineStarts[mid] < offset) + low = mid + 1; + else + high = mid; + } + if (this.lineStarts[low] === offset) + return { line: low + 1, col: 1 }; + if (low === 0) + return { line: 0, col: offset }; + const start = this.lineStarts[low - 1]; + return { line: low, col: offset - start + 1 }; + }; + } +} + +export { LineCounter }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/parser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/parser.js" index ef26674ea43ae5371851f25900c0c3a1629a985b..d75e1ee4718fc2b80d45d95a444815e04fd9ec07 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/parser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/parse/parser.js" @@ -1,3 +1,950 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4859df1a69737e111a1aacc20c3c77c1652fc14c2f26a46b260c48d84b525206 -size 34401 +import { tokenType } from './cst.js'; +import { Lexer } from './lexer.js'; + +function includesToken(list, type) { + for (let i = 0; i < list.length; ++i) + if (list[i].type === type) + return true; + return false; +} +function findNonEmptyIndex(list) { + for (let i = 0; i < list.length; ++i) { + switch (list[i].type) { + case 'space': + case 'comment': + case 'newline': + break; + default: + return i; + } + } + return -1; +} +function isFlowToken(token) { + switch (token?.type) { + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + case 'flow-collection': + return true; + default: + return false; + } +} +function getPrevProps(parent) { + switch (parent.type) { + case 'document': + return parent.start; + case 'block-map': { + const it = parent.items[parent.items.length - 1]; + return it.sep ?? it.start; + } + case 'block-seq': + return parent.items[parent.items.length - 1].start; + /* istanbul ignore next should not happen */ + default: + return []; + } +} +/** Note: May modify input array */ +function getFirstKeyStartProps(prev) { + if (prev.length === 0) + return []; + let i = prev.length; + loop: while (--i >= 0) { + switch (prev[i].type) { + case 'doc-start': + case 'explicit-key-ind': + case 'map-value-ind': + case 'seq-item-ind': + case 'newline': + break loop; + } + } + while (prev[++i]?.type === 'space') { + /* loop */ + } + return prev.splice(i, prev.length); +} +function fixFlowSeqItems(fc) { + if (fc.start.type === 'flow-seq-start') { + for (const it of fc.items) { + if (it.sep && + !it.value && + !includesToken(it.start, 'explicit-key-ind') && + !includesToken(it.sep, 'map-value-ind')) { + if (it.key) + it.value = it.key; + delete it.key; + if (isFlowToken(it.value)) { + if (it.value.end) + Array.prototype.push.apply(it.value.end, it.sep); + else + it.value.end = it.sep; + } + else + Array.prototype.push.apply(it.start, it.sep); + delete it.sep; + } + } + } +} +/** + * A YAML concrete syntax tree (CST) parser + * + * ```ts + * const src: string = ... + * for (const token of new Parser().parse(src)) { + * // token: Token + * } + * ``` + * + * To use the parser with a user-provided lexer: + * + * ```ts + * function* parse(source: string, lexer: Lexer) { + * const parser = new Parser() + * for (const lexeme of lexer.lex(source)) + * yield* parser.next(lexeme) + * yield* parser.end() + * } + * + * const src: string = ... + * const lexer = new Lexer() + * for (const token of parse(src, lexer)) { + * // token: Token + * } + * ``` + */ +class Parser { + /** + * @param onNewLine - If defined, called separately with the start position of + * each new line (in `parse()`, including the start of input). + */ + constructor(onNewLine) { + /** If true, space and sequence indicators count as indentation */ + this.atNewLine = true; + /** If true, next token is a scalar value */ + this.atScalar = false; + /** Current indentation level */ + this.indent = 0; + /** Current offset since the start of parsing */ + this.offset = 0; + /** On the same line with a block map key */ + this.onKeyLine = false; + /** Top indicates the node that's currently being built */ + this.stack = []; + /** The source of the current token, set in parse() */ + this.source = ''; + /** The type of the current token, set in parse() */ + this.type = ''; + // Must be defined after `next()` + this.lexer = new Lexer(); + this.onNewLine = onNewLine; + } + /** + * Parse `source` as a YAML stream. + * If `incomplete`, a part of the last line may be left as a buffer for the next call. + * + * Errors are not thrown, but yielded as `{ type: 'error', message }` tokens. + * + * @returns A generator of tokens representing each directive, document, and other structure. + */ + *parse(source, incomplete = false) { + if (this.onNewLine && this.offset === 0) + this.onNewLine(0); + for (const lexeme of this.lexer.lex(source, incomplete)) + yield* this.next(lexeme); + if (!incomplete) + yield* this.end(); + } + /** + * Advance the parser by the `source` of one lexical token. + */ + *next(source) { + this.source = source; + if (this.atScalar) { + this.atScalar = false; + yield* this.step(); + this.offset += source.length; + return; + } + const type = tokenType(source); + if (!type) { + const message = `Not a YAML token: ${source}`; + yield* this.pop({ type: 'error', offset: this.offset, message, source }); + this.offset += source.length; + } + else if (type === 'scalar') { + this.atNewLine = false; + this.atScalar = true; + this.type = 'scalar'; + } + else { + this.type = type; + yield* this.step(); + switch (type) { + case 'newline': + this.atNewLine = true; + this.indent = 0; + if (this.onNewLine) + this.onNewLine(this.offset + source.length); + break; + case 'space': + if (this.atNewLine && source[0] === ' ') + this.indent += source.length; + break; + case 'explicit-key-ind': + case 'map-value-ind': + case 'seq-item-ind': + if (this.atNewLine) + this.indent += source.length; + break; + case 'doc-mode': + case 'flow-error-end': + return; + default: + this.atNewLine = false; + } + this.offset += source.length; + } + } + /** Call at end of input to push out any remaining constructions */ + *end() { + while (this.stack.length > 0) + yield* this.pop(); + } + get sourceToken() { + const st = { + type: this.type, + offset: this.offset, + indent: this.indent, + source: this.source + }; + return st; + } + *step() { + const top = this.peek(1); + if (this.type === 'doc-end' && (!top || top.type !== 'doc-end')) { + while (this.stack.length > 0) + yield* this.pop(); + this.stack.push({ + type: 'doc-end', + offset: this.offset, + source: this.source + }); + return; + } + if (!top) + return yield* this.stream(); + switch (top.type) { + case 'document': + return yield* this.document(top); + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + return yield* this.scalar(top); + case 'block-scalar': + return yield* this.blockScalar(top); + case 'block-map': + return yield* this.blockMap(top); + case 'block-seq': + return yield* this.blockSequence(top); + case 'flow-collection': + return yield* this.flowCollection(top); + case 'doc-end': + return yield* this.documentEnd(top); + } + /* istanbul ignore next should not happen */ + yield* this.pop(); + } + peek(n) { + return this.stack[this.stack.length - n]; + } + *pop(error) { + const token = error ?? this.stack.pop(); + /* istanbul ignore if should not happen */ + if (!token) { + const message = 'Tried to pop an empty stack'; + yield { type: 'error', offset: this.offset, source: '', message }; + } + else if (this.stack.length === 0) { + yield token; + } + else { + const top = this.peek(1); + if (token.type === 'block-scalar') { + // Block scalars use their parent rather than header indent + token.indent = 'indent' in top ? top.indent : 0; + } + else if (token.type === 'flow-collection' && top.type === 'document') { + // Ignore all indent for top-level flow collections + token.indent = 0; + } + if (token.type === 'flow-collection') + fixFlowSeqItems(token); + switch (top.type) { + case 'document': + top.value = token; + break; + case 'block-scalar': + top.props.push(token); // error + break; + case 'block-map': { + const it = top.items[top.items.length - 1]; + if (it.value) { + top.items.push({ start: [], key: token, sep: [] }); + this.onKeyLine = true; + return; + } + else if (it.sep) { + it.value = token; + } + else { + Object.assign(it, { key: token, sep: [] }); + this.onKeyLine = !includesToken(it.start, 'explicit-key-ind'); + return; + } + break; + } + case 'block-seq': { + const it = top.items[top.items.length - 1]; + if (it.value) + top.items.push({ start: [], value: token }); + else + it.value = token; + break; + } + case 'flow-collection': { + const it = top.items[top.items.length - 1]; + if (!it || it.value) + top.items.push({ start: [], key: token, sep: [] }); + else if (it.sep) + it.value = token; + else + Object.assign(it, { key: token, sep: [] }); + return; + } + /* istanbul ignore next should not happen */ + default: + yield* this.pop(); + yield* this.pop(token); + } + if ((top.type === 'document' || + top.type === 'block-map' || + top.type === 'block-seq') && + (token.type === 'block-map' || token.type === 'block-seq')) { + const last = token.items[token.items.length - 1]; + if (last && + !last.sep && + !last.value && + last.start.length > 0 && + findNonEmptyIndex(last.start) === -1 && + (token.indent === 0 || + last.start.every(st => st.type !== 'comment' || st.indent < token.indent))) { + if (top.type === 'document') + top.end = last.start; + else + top.items.push({ start: last.start }); + token.items.splice(-1, 1); + } + } + } + } + *stream() { + switch (this.type) { + case 'directive-line': + yield { type: 'directive', offset: this.offset, source: this.source }; + return; + case 'byte-order-mark': + case 'space': + case 'comment': + case 'newline': + yield this.sourceToken; + return; + case 'doc-mode': + case 'doc-start': { + const doc = { + type: 'document', + offset: this.offset, + start: [] + }; + if (this.type === 'doc-start') + doc.start.push(this.sourceToken); + this.stack.push(doc); + return; + } + } + yield { + type: 'error', + offset: this.offset, + message: `Unexpected ${this.type} token in YAML stream`, + source: this.source + }; + } + *document(doc) { + if (doc.value) + return yield* this.lineEnd(doc); + switch (this.type) { + case 'doc-start': { + if (findNonEmptyIndex(doc.start) !== -1) { + yield* this.pop(); + yield* this.step(); + } + else + doc.start.push(this.sourceToken); + return; + } + case 'anchor': + case 'tag': + case 'space': + case 'comment': + case 'newline': + doc.start.push(this.sourceToken); + return; + } + const bv = this.startBlockValue(doc); + if (bv) + this.stack.push(bv); + else { + yield { + type: 'error', + offset: this.offset, + message: `Unexpected ${this.type} token in YAML document`, + source: this.source + }; + } + } + *scalar(scalar) { + if (this.type === 'map-value-ind') { + const prev = getPrevProps(this.peek(2)); + const start = getFirstKeyStartProps(prev); + let sep; + if (scalar.end) { + sep = scalar.end; + sep.push(this.sourceToken); + delete scalar.end; + } + else + sep = [this.sourceToken]; + const map = { + type: 'block-map', + offset: scalar.offset, + indent: scalar.indent, + items: [{ start, key: scalar, sep }] + }; + this.onKeyLine = true; + this.stack[this.stack.length - 1] = map; + } + else + yield* this.lineEnd(scalar); + } + *blockScalar(scalar) { + switch (this.type) { + case 'space': + case 'comment': + case 'newline': + scalar.props.push(this.sourceToken); + return; + case 'scalar': + scalar.source = this.source; + // block-scalar source includes trailing newline + this.atNewLine = true; + this.indent = 0; + if (this.onNewLine) { + let nl = this.source.indexOf('\n') + 1; + while (nl !== 0) { + this.onNewLine(this.offset + nl); + nl = this.source.indexOf('\n', nl) + 1; + } + } + yield* this.pop(); + break; + /* istanbul ignore next should not happen */ + default: + yield* this.pop(); + yield* this.step(); + } + } + *blockMap(map) { + const it = map.items[map.items.length - 1]; + // it.sep is true-ish if pair already has key or : separator + switch (this.type) { + case 'newline': + this.onKeyLine = false; + if (it.value) { + const end = 'end' in it.value ? it.value.end : undefined; + const last = Array.isArray(end) ? end[end.length - 1] : undefined; + if (last?.type === 'comment') + end?.push(this.sourceToken); + else + map.items.push({ start: [this.sourceToken] }); + } + else if (it.sep) { + it.sep.push(this.sourceToken); + } + else { + it.start.push(this.sourceToken); + } + return; + case 'space': + case 'comment': + if (it.value) { + map.items.push({ start: [this.sourceToken] }); + } + else if (it.sep) { + it.sep.push(this.sourceToken); + } + else { + if (this.atIndentedComment(it.start, map.indent)) { + const prev = map.items[map.items.length - 2]; + const end = prev?.value?.end; + if (Array.isArray(end)) { + Array.prototype.push.apply(end, it.start); + end.push(this.sourceToken); + map.items.pop(); + return; + } + } + it.start.push(this.sourceToken); + } + return; + } + if (this.indent >= map.indent) { + const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep; + // For empty nodes, assign newline-separated not indented empty tokens to following node + let start = []; + if (atNextItem && it.sep && !it.value) { + const nl = []; + for (let i = 0; i < it.sep.length; ++i) { + const st = it.sep[i]; + switch (st.type) { + case 'newline': + nl.push(i); + break; + case 'space': + break; + case 'comment': + if (st.indent > map.indent) + nl.length = 0; + break; + default: + nl.length = 0; + } + } + if (nl.length >= 2) + start = it.sep.splice(nl[1]); + } + switch (this.type) { + case 'anchor': + case 'tag': + if (atNextItem || it.value) { + start.push(this.sourceToken); + map.items.push({ start }); + this.onKeyLine = true; + } + else if (it.sep) { + it.sep.push(this.sourceToken); + } + else { + it.start.push(this.sourceToken); + } + return; + case 'explicit-key-ind': + if (!it.sep && !includesToken(it.start, 'explicit-key-ind')) { + it.start.push(this.sourceToken); + } + else if (atNextItem || it.value) { + start.push(this.sourceToken); + map.items.push({ start }); + } + else { + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start: [this.sourceToken] }] + }); + } + this.onKeyLine = true; + return; + case 'map-value-ind': + if (includesToken(it.start, 'explicit-key-ind')) { + if (!it.sep) { + if (includesToken(it.start, 'newline')) { + Object.assign(it, { key: null, sep: [this.sourceToken] }); + } + else { + const start = getFirstKeyStartProps(it.start); + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }); + } + } + else if (it.value) { + map.items.push({ start: [], key: null, sep: [this.sourceToken] }); + } + else if (includesToken(it.sep, 'map-value-ind')) { + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }); + } + else if (isFlowToken(it.key) && + !includesToken(it.sep, 'newline')) { + const start = getFirstKeyStartProps(it.start); + const key = it.key; + const sep = it.sep; + sep.push(this.sourceToken); + // @ts-expect-error type guard is wrong here + delete it.key, delete it.sep; + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key, sep }] + }); + } + else if (start.length > 0) { + // Not actually at next item + it.sep = it.sep.concat(start, this.sourceToken); + } + else { + it.sep.push(this.sourceToken); + } + } + else { + if (!it.sep) { + Object.assign(it, { key: null, sep: [this.sourceToken] }); + } + else if (it.value || atNextItem) { + map.items.push({ start, key: null, sep: [this.sourceToken] }); + } + else if (includesToken(it.sep, 'map-value-ind')) { + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start: [], key: null, sep: [this.sourceToken] }] + }); + } + else { + it.sep.push(this.sourceToken); + } + } + this.onKeyLine = true; + return; + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': { + const fs = this.flowScalar(this.type); + if (atNextItem || it.value) { + map.items.push({ start, key: fs, sep: [] }); + this.onKeyLine = true; + } + else if (it.sep) { + this.stack.push(fs); + } + else { + Object.assign(it, { key: fs, sep: [] }); + this.onKeyLine = true; + } + return; + } + default: { + const bv = this.startBlockValue(map); + if (bv) { + if (atNextItem && + bv.type !== 'block-seq' && + includesToken(it.start, 'explicit-key-ind')) { + map.items.push({ start }); + } + this.stack.push(bv); + return; + } + } + } + } + yield* this.pop(); + yield* this.step(); + } + *blockSequence(seq) { + const it = seq.items[seq.items.length - 1]; + switch (this.type) { + case 'newline': + if (it.value) { + const end = 'end' in it.value ? it.value.end : undefined; + const last = Array.isArray(end) ? end[end.length - 1] : undefined; + if (last?.type === 'comment') + end?.push(this.sourceToken); + else + seq.items.push({ start: [this.sourceToken] }); + } + else + it.start.push(this.sourceToken); + return; + case 'space': + case 'comment': + if (it.value) + seq.items.push({ start: [this.sourceToken] }); + else { + if (this.atIndentedComment(it.start, seq.indent)) { + const prev = seq.items[seq.items.length - 2]; + const end = prev?.value?.end; + if (Array.isArray(end)) { + Array.prototype.push.apply(end, it.start); + end.push(this.sourceToken); + seq.items.pop(); + return; + } + } + it.start.push(this.sourceToken); + } + return; + case 'anchor': + case 'tag': + if (it.value || this.indent <= seq.indent) + break; + it.start.push(this.sourceToken); + return; + case 'seq-item-ind': + if (this.indent !== seq.indent) + break; + if (it.value || includesToken(it.start, 'seq-item-ind')) + seq.items.push({ start: [this.sourceToken] }); + else + it.start.push(this.sourceToken); + return; + } + if (this.indent > seq.indent) { + const bv = this.startBlockValue(seq); + if (bv) { + this.stack.push(bv); + return; + } + } + yield* this.pop(); + yield* this.step(); + } + *flowCollection(fc) { + const it = fc.items[fc.items.length - 1]; + if (this.type === 'flow-error-end') { + let top; + do { + yield* this.pop(); + top = this.peek(1); + } while (top && top.type === 'flow-collection'); + } + else if (fc.end.length === 0) { + switch (this.type) { + case 'comma': + case 'explicit-key-ind': + if (!it || it.sep) + fc.items.push({ start: [this.sourceToken] }); + else + it.start.push(this.sourceToken); + return; + case 'map-value-ind': + if (!it || it.value) + fc.items.push({ start: [], key: null, sep: [this.sourceToken] }); + else if (it.sep) + it.sep.push(this.sourceToken); + else + Object.assign(it, { key: null, sep: [this.sourceToken] }); + return; + case 'space': + case 'comment': + case 'newline': + case 'anchor': + case 'tag': + if (!it || it.value) + fc.items.push({ start: [this.sourceToken] }); + else if (it.sep) + it.sep.push(this.sourceToken); + else + it.start.push(this.sourceToken); + return; + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': { + const fs = this.flowScalar(this.type); + if (!it || it.value) + fc.items.push({ start: [], key: fs, sep: [] }); + else if (it.sep) + this.stack.push(fs); + else + Object.assign(it, { key: fs, sep: [] }); + return; + } + case 'flow-map-end': + case 'flow-seq-end': + fc.end.push(this.sourceToken); + return; + } + const bv = this.startBlockValue(fc); + /* istanbul ignore else should not happen */ + if (bv) + this.stack.push(bv); + else { + yield* this.pop(); + yield* this.step(); + } + } + else { + const parent = this.peek(2); + if (parent.type === 'block-map' && + ((this.type === 'map-value-ind' && parent.indent === fc.indent) || + (this.type === 'newline' && + !parent.items[parent.items.length - 1].sep))) { + yield* this.pop(); + yield* this.step(); + } + else if (this.type === 'map-value-ind' && + parent.type !== 'flow-collection') { + const prev = getPrevProps(parent); + const start = getFirstKeyStartProps(prev); + fixFlowSeqItems(fc); + const sep = fc.end.splice(1, fc.end.length); + sep.push(this.sourceToken); + const map = { + type: 'block-map', + offset: fc.offset, + indent: fc.indent, + items: [{ start, key: fc, sep }] + }; + this.onKeyLine = true; + this.stack[this.stack.length - 1] = map; + } + else { + yield* this.lineEnd(fc); + } + } + } + flowScalar(type) { + if (this.onNewLine) { + let nl = this.source.indexOf('\n') + 1; + while (nl !== 0) { + this.onNewLine(this.offset + nl); + nl = this.source.indexOf('\n', nl) + 1; + } + } + return { + type, + offset: this.offset, + indent: this.indent, + source: this.source + }; + } + startBlockValue(parent) { + switch (this.type) { + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + return this.flowScalar(this.type); + case 'block-scalar-header': + return { + type: 'block-scalar', + offset: this.offset, + indent: this.indent, + props: [this.sourceToken], + source: '' + }; + case 'flow-map-start': + case 'flow-seq-start': + return { + type: 'flow-collection', + offset: this.offset, + indent: this.indent, + start: this.sourceToken, + items: [], + end: [] + }; + case 'seq-item-ind': + return { + type: 'block-seq', + offset: this.offset, + indent: this.indent, + items: [{ start: [this.sourceToken] }] + }; + case 'explicit-key-ind': { + this.onKeyLine = true; + const prev = getPrevProps(parent); + const start = getFirstKeyStartProps(prev); + start.push(this.sourceToken); + return { + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start }] + }; + } + case 'map-value-ind': { + this.onKeyLine = true; + const prev = getPrevProps(parent); + const start = getFirstKeyStartProps(prev); + return { + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }; + } + } + return null; + } + atIndentedComment(start, indent) { + if (this.type !== 'comment') + return false; + if (this.indent <= indent) + return false; + return start.every(st => st.type === 'newline' || st.type === 'space'); + } + *documentEnd(docEnd) { + if (this.type !== 'doc-mode') { + if (docEnd.end) + docEnd.end.push(this.sourceToken); + else + docEnd.end = [this.sourceToken]; + if (this.type === 'newline') + yield* this.pop(); + } + } + *lineEnd(token) { + switch (this.type) { + case 'comma': + case 'doc-start': + case 'doc-end': + case 'flow-seq-end': + case 'flow-map-end': + case 'map-value-ind': + yield* this.pop(); + yield* this.step(); + break; + case 'newline': + this.onKeyLine = false; + // fallthrough + case 'space': + case 'comment': + default: + // all other values are errors + if (token.end) + token.end.push(this.sourceToken); + else + token.end = [this.sourceToken]; + if (this.type === 'newline') + yield* this.pop(); + } + } +} + +export { Parser }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/public-api.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/public-api.js" index c0139d224ea882cfc5d7c84fced0caf5f428461e..b711aa0a058c69eaf2d203c4ba8ed87531537f00 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/public-api.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/public-api.js" @@ -1,3 +1,99 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2db1c30a981deb90e7df677d494d89a47822dbaf1a69a42a2cca8d52df2adedd -size 3861 +import { Composer } from './compose/composer.js'; +import { Document } from './doc/Document.js'; +import { prettifyError, YAMLParseError } from './errors.js'; +import { warn } from './log.js'; +import { LineCounter } from './parse/line-counter.js'; +import { Parser } from './parse/parser.js'; + +function parseOptions(options) { + const prettyErrors = options.prettyErrors !== false; + const lineCounter = options.lineCounter || (prettyErrors && new LineCounter()) || null; + return { lineCounter, prettyErrors }; +} +/** + * Parse the input as a stream of YAML documents. + * + * Documents should be separated from each other by `...` or `---` marker lines. + * + * @returns If an empty `docs` array is returned, it will be of type + * EmptyStream and contain additional stream information. In + * TypeScript, you should use `'empty' in docs` as a type guard for it. + */ +function parseAllDocuments(source, options = {}) { + const { lineCounter, prettyErrors } = parseOptions(options); + const parser = new Parser(lineCounter?.addNewLine); + const composer = new Composer(options); + const docs = Array.from(composer.compose(parser.parse(source))); + if (prettyErrors && lineCounter) + for (const doc of docs) { + doc.errors.forEach(prettifyError(source, lineCounter)); + doc.warnings.forEach(prettifyError(source, lineCounter)); + } + if (docs.length > 0) + return docs; + return Object.assign([], { empty: true }, composer.streamInfo()); +} +/** Parse an input string into a single YAML.Document */ +function parseDocument(source, options = {}) { + const { lineCounter, prettyErrors } = parseOptions(options); + const parser = new Parser(lineCounter?.addNewLine); + const composer = new Composer(options); + // `doc` is always set by compose.end(true) at the very latest + let doc = null; + for (const _doc of composer.compose(parser.parse(source), true, source.length)) { + if (!doc) + doc = _doc; + else if (doc.options.logLevel !== 'silent') { + doc.errors.push(new YAMLParseError(_doc.range.slice(0, 2), 'MULTIPLE_DOCS', 'Source contains multiple documents; please use YAML.parseAllDocuments()')); + break; + } + } + if (prettyErrors && lineCounter) { + doc.errors.forEach(prettifyError(source, lineCounter)); + doc.warnings.forEach(prettifyError(source, lineCounter)); + } + return doc; +} +function parse(src, reviver, options) { + let _reviver = undefined; + if (typeof reviver === 'function') { + _reviver = reviver; + } + else if (options === undefined && reviver && typeof reviver === 'object') { + options = reviver; + } + const doc = parseDocument(src, options); + if (!doc) + return null; + doc.warnings.forEach(warning => warn(doc.options.logLevel, warning)); + if (doc.errors.length > 0) { + if (doc.options.logLevel !== 'silent') + throw doc.errors[0]; + else + doc.errors = []; + } + return doc.toJS(Object.assign({ reviver: _reviver }, options)); +} +function stringify(value, replacer, options) { + let _replacer = null; + if (typeof replacer === 'function' || Array.isArray(replacer)) { + _replacer = replacer; + } + else if (options === undefined && replacer) { + options = replacer; + } + if (typeof options === 'string') + options = options.length; + if (typeof options === 'number') { + const indent = Math.round(options); + options = indent < 1 ? undefined : indent > 8 ? { indent: 8 } : { indent }; + } + if (value === undefined) { + const { keepUndefined } = options ?? replacer ?? {}; + if (!keepUndefined) + return undefined; + } + return new Document(value, _replacer, options).toString(options); +} + +export { parse, parseAllDocuments, parseDocument, stringify }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/Schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/Schema.js" index dff8c246a9b7e94a1d3201d77fff6a0a360717a2..9b8094b61171f68b1d79ac6b3b39a848a1ebf950 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/Schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/Schema.js" @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:582c93b956930ef3e752c89d4e4f26500a78e145a9a842b75845f066b7574be0 -size 1514 +import { MAP, SCALAR, SEQ } from '../nodes/Node.js'; +import { map } from './common/map.js'; +import { seq } from './common/seq.js'; +import { string } from './common/string.js'; +import { getTags, coreKnownTags } from './tags.js'; + +const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0; +class Schema { + constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) { + this.compat = Array.isArray(compat) + ? getTags(compat, 'compat') + : compat + ? getTags(null, compat) + : null; + this.merge = !!merge; + this.name = (typeof schema === 'string' && schema) || 'core'; + this.knownTags = resolveKnownTags ? coreKnownTags : {}; + this.tags = getTags(customTags, this.name); + this.toStringOptions = toStringDefaults ?? null; + Object.defineProperty(this, MAP, { value: map }); + Object.defineProperty(this, SCALAR, { value: string }); + Object.defineProperty(this, SEQ, { value: seq }); + // Used by createMap() + this.sortMapEntries = + typeof sortMapEntries === 'function' + ? sortMapEntries + : sortMapEntries === true + ? sortMapEntriesByKey + : null; + } + clone() { + const copy = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this)); + copy.tags = this.tags.slice(); + return copy; + } +} + +export { Schema }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/map.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/map.js" index c37560b751d7471ae15ffe1041ac5c3d1c05cba7..133d86189f8bf406f9fb7d63d7b61ba2c5995efb 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/map.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/map.js" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa2c96f61752f7df3203aa2a4892279c44898c7fdf051c78d26f30cb48b032e8 -size 1256 +import { isMap } from '../../nodes/Node.js'; +import { createPair } from '../../nodes/Pair.js'; +import { YAMLMap } from '../../nodes/YAMLMap.js'; + +function createMap(schema, obj, ctx) { + const { keepUndefined, replacer } = ctx; + const map = new YAMLMap(schema); + const add = (key, value) => { + if (typeof replacer === 'function') + value = replacer.call(obj, key, value); + else if (Array.isArray(replacer) && !replacer.includes(key)) + return; + if (value !== undefined || keepUndefined) + map.items.push(createPair(key, value, ctx)); + }; + if (obj instanceof Map) { + for (const [key, value] of obj) + add(key, value); + } + else if (obj && typeof obj === 'object') { + for (const key of Object.keys(obj)) + add(key, obj[key]); + } + if (typeof schema.sortMapEntries === 'function') { + map.items.sort(schema.sortMapEntries); + } + return map; +} +const map = { + collection: 'map', + createNode: createMap, + default: true, + nodeClass: YAMLMap, + tag: 'tag:yaml.org,2002:map', + resolve(map, onError) { + if (!isMap(map)) + onError('Expected a mapping for this tag'); + return map; + } +}; + +export { map }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/null.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/null.js" index 05eea0523c46c2ea59d66c10e2ab9c623d3c9ef4..fcbe1b7a553e9769d2f81d33b449d65338958ff6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/null.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/null.js" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6666e819b0dd4c9eac1498e8520e23943abf2c9d92cee72b9c5607557800eb14 -size 434 +import { Scalar } from '../../nodes/Scalar.js'; + +const nullTag = { + identify: value => value == null, + createNode: () => new Scalar(null), + default: true, + tag: 'tag:yaml.org,2002:null', + test: /^(?:~|[Nn]ull|NULL)?$/, + resolve: () => new Scalar(null), + stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source) + ? source + : ctx.options.nullStr +}; + +export { nullTag }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/seq.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/seq.js" index 1da16ce3eabb208d6b0de547fcfab770b276a6ba..2aa7639f4f0b94a82100cbefcc73f0870e011eed 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/seq.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/seq.js" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03253d9e5675eccbd682ce5823b180b7ab310b80351f34aabac571ad1c32c3ad -size 926 +import { createNode } from '../../doc/createNode.js'; +import { isSeq } from '../../nodes/Node.js'; +import { YAMLSeq } from '../../nodes/YAMLSeq.js'; + +function createSeq(schema, obj, ctx) { + const { replacer } = ctx; + const seq = new YAMLSeq(schema); + if (obj && Symbol.iterator in Object(obj)) { + let i = 0; + for (let it of obj) { + if (typeof replacer === 'function') { + const key = obj instanceof Set ? it : String(i++); + it = replacer.call(obj, key, it); + } + seq.items.push(createNode(it, undefined, ctx)); + } + } + return seq; +} +const seq = { + collection: 'seq', + createNode: createSeq, + default: true, + nodeClass: YAMLSeq, + tag: 'tag:yaml.org,2002:seq', + resolve(seq, onError) { + if (!isSeq(seq)) + onError('Expected a sequence for this tag'); + return seq; + } +}; + +export { seq }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/string.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/string.js" index 6c0c361906fcdddab7961b2804346bb23090f195..a064f7b31e54c97bedc87c34c8424cb7c4255a86 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/string.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/common/string.js" @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:830740273a4f0a39b94549377cb12183ab8ce558dfb12818f7b295fe261fc08e -size 421 +import { stringifyString } from '../../stringify/stringifyString.js'; + +const string = { + identify: value => typeof value === 'string', + default: true, + tag: 'tag:yaml.org,2002:str', + resolve: str => str, + stringify(item, ctx, onComment, onChompKeep) { + ctx = Object.assign({ actualString: true }, ctx); + return stringifyString(item, ctx, onComment, onChompKeep); + } +}; + +export { string }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/bool.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/bool.js" index 1c6690bdb1588d498f11ea6afb668cb38e352616..ab3c9430ae519838d20599b581d8c74360943f74 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/bool.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/bool.js" @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d4b1fe540d36d8e09cf5799b8abed53e4ee620425d3d6712e8a50c927752615 -size 607 +import { Scalar } from '../../nodes/Scalar.js'; + +const boolTag = { + identify: value => typeof value === 'boolean', + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/, + resolve: str => new Scalar(str[0] === 't' || str[0] === 'T'), + stringify({ source, value }, ctx) { + if (source && boolTag.test.test(source)) { + const sv = source[0] === 't' || source[0] === 'T'; + if (value === sv) + return source; + } + return value ? ctx.options.trueStr : ctx.options.falseStr; + } +}; + +export { boolTag }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/float.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/float.js" index 10fbb331429e685b7885d679568d2c8dc7d9bd2a..a632cb7c16b6c003d9234bd7d3f6fc458aa30aec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/float.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/float.js" @@ -1,3 +1,43 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:95d9d01600301615b44059102d50c4127fff2e3b0d431763032c70151138c265 -size 1393 +import { Scalar } from '../../nodes/Scalar.js'; +import { stringifyNumber } from '../../stringify/stringifyNumber.js'; + +const floatNaN = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/, + resolve: str => str.slice(-3).toLowerCase() === 'nan' + ? NaN + : str[0] === '-' + ? Number.NEGATIVE_INFINITY + : Number.POSITIVE_INFINITY, + stringify: stringifyNumber +}; +const floatExp = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + format: 'EXP', + test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/, + resolve: str => parseFloat(str), + stringify(node) { + const num = Number(node.value); + return isFinite(num) ? num.toExponential() : stringifyNumber(node); + } +}; +const float = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/, + resolve(str) { + const node = new Scalar(parseFloat(str)); + const dot = str.indexOf('.'); + if (dot !== -1 && str[str.length - 1] === '0') + node.minFractionDigits = str.length - dot - 1; + return node; + }, + stringify: stringifyNumber +}; + +export { float, floatExp, floatNaN }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/int.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/int.js" index 7e936c53c5a35150a841d12254f1d78f231ae211..7091235ff5c0a4db38e41ba888b24c01dde0f55d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/int.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/int.js" @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc7ae60f465273fd7e5dfd6b7f686ac47887fa02db3fe9ec603290003cc9baff -size 1324 +import { stringifyNumber } from '../../stringify/stringifyNumber.js'; + +const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value); +const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix)); +function intStringify(node, radix, prefix) { + const { value } = node; + if (intIdentify(value) && value >= 0) + return prefix + value.toString(radix); + return stringifyNumber(node); +} +const intOct = { + identify: value => intIdentify(value) && value >= 0, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'OCT', + test: /^0o[0-7]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt), + stringify: node => intStringify(node, 8, '0o') +}; +const int = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + test: /^[-+]?[0-9]+$/, + resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt), + stringify: stringifyNumber +}; +const intHex = { + identify: value => intIdentify(value) && value >= 0, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'HEX', + test: /^0x[0-9a-fA-F]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt), + stringify: node => intStringify(node, 16, '0x') +}; + +export { int, intHex, intOct }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/schema.js" index 02948df0f525693b61582be208084f7f96a16076..dd02b2e3d6ca5053ee55b7231ff61a6530074fc6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/core/schema.js" @@ -1,3 +1,23 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92e75125989595b02d9b9f8d6788076d4c1ec173bfa4b0f04eabaaff86153dd9 -size 480 +import { map } from '../common/map.js'; +import { nullTag } from '../common/null.js'; +import { seq } from '../common/seq.js'; +import { string } from '../common/string.js'; +import { boolTag } from './bool.js'; +import { floatNaN, floatExp, float } from './float.js'; +import { intOct, int, intHex } from './int.js'; + +const schema = [ + map, + seq, + string, + nullTag, + boolTag, + intOct, + int, + intHex, + floatNaN, + floatExp, + float +]; + +export { schema }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/json/schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/json/schema.js" index 9a5deb2ab999634837666c7eab4d3f49d2ed3dfb..16d75ce75043f9958f8176bcc900245d5b47f05c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/json/schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/json/schema.js" @@ -1,3 +1,62 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:57b8deebfeea67a60b750a5024376e658bf874b324f0fef169061838ad34364a -size 1865 +import { Scalar } from '../../nodes/Scalar.js'; +import { map } from '../common/map.js'; +import { seq } from '../common/seq.js'; + +function intIdentify(value) { + return typeof value === 'bigint' || Number.isInteger(value); +} +const stringifyJSON = ({ value }) => JSON.stringify(value); +const jsonScalars = [ + { + identify: value => typeof value === 'string', + default: true, + tag: 'tag:yaml.org,2002:str', + resolve: str => str, + stringify: stringifyJSON + }, + { + identify: value => value == null, + createNode: () => new Scalar(null), + default: true, + tag: 'tag:yaml.org,2002:null', + test: /^null$/, + resolve: () => null, + stringify: stringifyJSON + }, + { + identify: value => typeof value === 'boolean', + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^true|false$/, + resolve: str => str === 'true', + stringify: stringifyJSON + }, + { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + test: /^-?(?:0|[1-9][0-9]*)$/, + resolve: (str, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str, 10), + stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value) + }, + { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/, + resolve: str => parseFloat(str), + stringify: stringifyJSON + } +]; +const jsonError = { + default: true, + tag: '', + test: /^/, + resolve(str, onError) { + onError(`Unresolved plain scalar ${JSON.stringify(str)}`); + return str; + } +}; +const schema = [map, seq].concat(jsonScalars, jsonError); + +export { schema }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/tags.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/tags.js" index b5fff320a0a8cfe5ea9025ff33c85f6413b1f854..f67e3e075866d9385c9cc639add491a766a9f6ec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/tags.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/tags.js" @@ -1,3 +1,83 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:517b4b80323deaa15665ceb781fe14f2da98b445c11d82a4b6ac3d4b31b26156 -size 2463 +import { map } from './common/map.js'; +import { nullTag } from './common/null.js'; +import { seq } from './common/seq.js'; +import { string } from './common/string.js'; +import { boolTag } from './core/bool.js'; +import { float, floatExp, floatNaN } from './core/float.js'; +import { int, intHex, intOct } from './core/int.js'; +import { schema } from './core/schema.js'; +import { schema as schema$1 } from './json/schema.js'; +import { binary } from './yaml-1.1/binary.js'; +import { omap } from './yaml-1.1/omap.js'; +import { pairs } from './yaml-1.1/pairs.js'; +import { schema as schema$2 } from './yaml-1.1/schema.js'; +import { set } from './yaml-1.1/set.js'; +import { floatTime, intTime, timestamp } from './yaml-1.1/timestamp.js'; + +const schemas = new Map([ + ['core', schema], + ['failsafe', [map, seq, string]], + ['json', schema$1], + ['yaml11', schema$2], + ['yaml-1.1', schema$2] +]); +const tagsByName = { + binary, + bool: boolTag, + float, + floatExp, + floatNaN, + floatTime, + int, + intHex, + intOct, + intTime, + map, + null: nullTag, + omap, + pairs, + seq, + set, + timestamp +}; +const coreKnownTags = { + 'tag:yaml.org,2002:binary': binary, + 'tag:yaml.org,2002:omap': omap, + 'tag:yaml.org,2002:pairs': pairs, + 'tag:yaml.org,2002:set': set, + 'tag:yaml.org,2002:timestamp': timestamp +}; +function getTags(customTags, schemaName) { + let tags = schemas.get(schemaName); + if (!tags) { + if (Array.isArray(customTags)) + tags = []; + else { + const keys = Array.from(schemas.keys()) + .filter(key => key !== 'yaml11') + .map(key => JSON.stringify(key)) + .join(', '); + throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`); + } + } + if (Array.isArray(customTags)) { + for (const tag of customTags) + tags = tags.concat(tag); + } + else if (typeof customTags === 'function') { + tags = customTags(tags.slice()); + } + return tags.map(tag => { + if (typeof tag !== 'string') + return tag; + const tagObj = tagsByName[tag]; + if (tagObj) + return tagObj; + const keys = Object.keys(tagsByName) + .map(key => JSON.stringify(key)) + .join(', '); + throw new Error(`Unknown custom tag "${tag}"; use one of ${keys}`); + }); +} + +export { coreKnownTags, getTags }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js" index 895d9327e607305b91cc31b580bb6434f41d2b54..a7008193948d4f46fedc7cb90d11e0109e24223c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js" @@ -1,3 +1,66 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec505b2fc73fa64c558dfb7535d393e4b3f6d56b85af46d219d0cf590971d74e -size 2582 +import { Scalar } from '../../nodes/Scalar.js'; +import { stringifyString } from '../../stringify/stringifyString.js'; + +const binary = { + identify: value => value instanceof Uint8Array, + default: false, + tag: 'tag:yaml.org,2002:binary', + /** + * Returns a Buffer in node and an Uint8Array in browsers + * + * To use the resulting buffer as an image, you'll want to do something like: + * + * const blob = new Blob([buffer], { type: 'image/jpeg' }) + * document.querySelector('#photo').src = URL.createObjectURL(blob) + */ + resolve(src, onError) { + if (typeof Buffer === 'function') { + return Buffer.from(src, 'base64'); + } + else if (typeof atob === 'function') { + // On IE 11, atob() can't handle newlines + const str = atob(src.replace(/[\n\r]/g, '')); + const buffer = new Uint8Array(str.length); + for (let i = 0; i < str.length; ++i) + buffer[i] = str.charCodeAt(i); + return buffer; + } + else { + onError('This environment does not support reading binary tags; either Buffer or atob is required'); + return src; + } + }, + stringify({ comment, type, value }, ctx, onComment, onChompKeep) { + const buf = value; // checked earlier by binary.identify() + let str; + if (typeof Buffer === 'function') { + str = + buf instanceof Buffer + ? buf.toString('base64') + : Buffer.from(buf.buffer).toString('base64'); + } + else if (typeof btoa === 'function') { + let s = ''; + for (let i = 0; i < buf.length; ++i) + s += String.fromCharCode(buf[i]); + str = btoa(s); + } + else { + throw new Error('This environment does not support writing binary tags; either Buffer or btoa is required'); + } + if (!type) + type = Scalar.BLOCK_LITERAL; + if (type !== Scalar.QUOTE_DOUBLE) { + const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth); + const n = Math.ceil(str.length / lineWidth); + const lines = new Array(n); + for (let i = 0, o = 0; i < n; ++i, o += lineWidth) { + lines[i] = str.substr(o, lineWidth); + } + str = lines.join(type === Scalar.BLOCK_LITERAL ? '\n' : ' '); + } + return stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep); + } +}; + +export { binary }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js" index fe8baf230f4d86b83cd132729cc76fe18a607936..1ced791951650dd0dbed6be024325c7bef25d0f1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a2ab56ec51f305f0e3975a828bcaf491997f816a4e8f9dd9fdce310275b1ea9 -size 788 +import { Scalar } from '../../nodes/Scalar.js'; + +function boolStringify({ value, source }, ctx) { + const boolObj = value ? trueTag : falseTag; + if (source && boolObj.test.test(source)) + return source; + return value ? ctx.options.trueStr : ctx.options.falseStr; +} +const trueTag = { + identify: value => value === true, + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/, + resolve: () => new Scalar(true), + stringify: boolStringify +}; +const falseTag = { + identify: value => value === false, + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i, + resolve: () => new Scalar(false), + stringify: boolStringify +}; + +export { falseTag, trueTag }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js" index 18f5890f9aaf0eeeee4c38c9a33e1b3fd7ae0f8c..9097266b56d337edcec5d8341f9d1aceeacab3e2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js" @@ -1,3 +1,46 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19faf1fe844147975a3a866b7ccbbff1c9f49854d3d2df3c5c4390e2165c2f24 -size 1505 +import { Scalar } from '../../nodes/Scalar.js'; +import { stringifyNumber } from '../../stringify/stringifyNumber.js'; + +const floatNaN = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/, + resolve: (str) => str.slice(-3).toLowerCase() === 'nan' + ? NaN + : str[0] === '-' + ? Number.NEGATIVE_INFINITY + : Number.POSITIVE_INFINITY, + stringify: stringifyNumber +}; +const floatExp = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + format: 'EXP', + test: /^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/, + resolve: (str) => parseFloat(str.replace(/_/g, '')), + stringify(node) { + const num = Number(node.value); + return isFinite(num) ? num.toExponential() : stringifyNumber(node); + } +}; +const float = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/, + resolve(str) { + const node = new Scalar(parseFloat(str.replace(/_/g, ''))); + const dot = str.indexOf('.'); + if (dot !== -1) { + const f = str.substring(dot + 1).replace(/_/g, ''); + if (f[f.length - 1] === '0') + node.minFractionDigits = f.length; + } + return node; + }, + stringify: stringifyNumber +}; + +export { float, floatExp, floatNaN }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js" index 131ac10b51a67b6c9f88f3aa152b31cab6e8c2ba..f572823f9f43addebe4d415eb53713024b14caad 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js" @@ -1,3 +1,71 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c83bf34c4ecfa722eff2c252c8bdf95661777738c9971c4ccda3a5413218d80 -size 2132 +import { stringifyNumber } from '../../stringify/stringifyNumber.js'; + +const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value); +function intResolve(str, offset, radix, { intAsBigInt }) { + const sign = str[0]; + if (sign === '-' || sign === '+') + offset += 1; + str = str.substring(offset).replace(/_/g, ''); + if (intAsBigInt) { + switch (radix) { + case 2: + str = `0b${str}`; + break; + case 8: + str = `0o${str}`; + break; + case 16: + str = `0x${str}`; + break; + } + const n = BigInt(str); + return sign === '-' ? BigInt(-1) * n : n; + } + const n = parseInt(str, radix); + return sign === '-' ? -1 * n : n; +} +function intStringify(node, radix, prefix) { + const { value } = node; + if (intIdentify(value)) { + const str = value.toString(radix); + return value < 0 ? '-' + prefix + str.substr(1) : prefix + str; + } + return stringifyNumber(node); +} +const intBin = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'BIN', + test: /^[-+]?0b[0-1_]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt), + stringify: node => intStringify(node, 2, '0b') +}; +const intOct = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'OCT', + test: /^[-+]?0[0-7_]+$/, + resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt), + stringify: node => intStringify(node, 8, '0') +}; +const int = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + test: /^[-+]?[0-9][0-9_]*$/, + resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt), + stringify: stringifyNumber +}; +const intHex = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'HEX', + test: /^[-+]?0x[0-9a-fA-F_]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt), + stringify: node => intStringify(node, 16, '0x') +}; + +export { int, intBin, intHex, intOct }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js" index eab5967a827c0c24b165130496e3c2b145356b5e..de46d21cb40a53e32c5d2415dd851657442fc04d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js" @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca3e8fbeaa8ba1965f4aa6c527804e2169b55336f1c1aab955bd4af4531df52c -size 2392 +import { YAMLSeq } from '../../nodes/YAMLSeq.js'; +import { toJS } from '../../nodes/toJS.js'; +import { isScalar, isPair } from '../../nodes/Node.js'; +import { YAMLMap } from '../../nodes/YAMLMap.js'; +import { resolvePairs, createPairs } from './pairs.js'; + +class YAMLOMap extends YAMLSeq { + constructor() { + super(); + this.add = YAMLMap.prototype.add.bind(this); + this.delete = YAMLMap.prototype.delete.bind(this); + this.get = YAMLMap.prototype.get.bind(this); + this.has = YAMLMap.prototype.has.bind(this); + this.set = YAMLMap.prototype.set.bind(this); + this.tag = YAMLOMap.tag; + } + /** + * If `ctx` is given, the return type is actually `Map`, + * but TypeScript won't allow widening the signature of a child method. + */ + toJSON(_, ctx) { + if (!ctx) + return super.toJSON(_); + const map = new Map(); + if (ctx?.onCreate) + ctx.onCreate(map); + for (const pair of this.items) { + let key, value; + if (isPair(pair)) { + key = toJS(pair.key, '', ctx); + value = toJS(pair.value, key, ctx); + } + else { + key = toJS(pair, '', ctx); + } + if (map.has(key)) + throw new Error('Ordered maps must not include duplicate keys'); + map.set(key, value); + } + return map; + } +} +YAMLOMap.tag = 'tag:yaml.org,2002:omap'; +const omap = { + collection: 'seq', + identify: value => value instanceof Map, + nodeClass: YAMLOMap, + default: false, + tag: 'tag:yaml.org,2002:omap', + resolve(seq, onError) { + const pairs = resolvePairs(seq, onError); + const seenKeys = []; + for (const { key } of pairs.items) { + if (isScalar(key)) { + if (seenKeys.includes(key.value)) { + onError(`Ordered maps must not include duplicate keys: ${key.value}`); + } + else { + seenKeys.push(key.value); + } + } + } + return Object.assign(new YAMLOMap(), pairs); + }, + createNode(schema, iterable, ctx) { + const pairs = createPairs(schema, iterable, ctx); + const omap = new YAMLOMap(); + omap.items = pairs.items; + return omap; + } +}; + +export { YAMLOMap, omap }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js" index f99a093909ca7fe085d3ded9f48b48240c77ff13..dd73983678437917f5ac895fb0c877692048b8de 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js" @@ -1,3 +1,77 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25ffe45be358975efdbde61d82cfaf3ab9b3a8d2e11b2facfba0fb2433222d10 -size 2711 +import { isSeq, isPair, isMap } from '../../nodes/Node.js'; +import { Pair, createPair } from '../../nodes/Pair.js'; +import { Scalar } from '../../nodes/Scalar.js'; +import { YAMLSeq } from '../../nodes/YAMLSeq.js'; + +function resolvePairs(seq, onError) { + if (isSeq(seq)) { + for (let i = 0; i < seq.items.length; ++i) { + let item = seq.items[i]; + if (isPair(item)) + continue; + else if (isMap(item)) { + if (item.items.length > 1) + onError('Each pair must have its own sequence indicator'); + const pair = item.items[0] || new Pair(new Scalar(null)); + if (item.commentBefore) + pair.key.commentBefore = pair.key.commentBefore + ? `${item.commentBefore}\n${pair.key.commentBefore}` + : item.commentBefore; + if (item.comment) { + const cn = pair.value ?? pair.key; + cn.comment = cn.comment + ? `${item.comment}\n${cn.comment}` + : item.comment; + } + item = pair; + } + seq.items[i] = isPair(item) ? item : new Pair(item); + } + } + else + onError('Expected a sequence for this tag'); + return seq; +} +function createPairs(schema, iterable, ctx) { + const { replacer } = ctx; + const pairs = new YAMLSeq(schema); + pairs.tag = 'tag:yaml.org,2002:pairs'; + let i = 0; + if (iterable && Symbol.iterator in Object(iterable)) + for (let it of iterable) { + if (typeof replacer === 'function') + it = replacer.call(iterable, String(i++), it); + let key, value; + if (Array.isArray(it)) { + if (it.length === 2) { + key = it[0]; + value = it[1]; + } + else + throw new TypeError(`Expected [key, value] tuple: ${it}`); + } + else if (it && it instanceof Object) { + const keys = Object.keys(it); + if (keys.length === 1) { + key = keys[0]; + value = it[key]; + } + else + throw new TypeError(`Expected { key: value } tuple: ${it}`); + } + else { + key = it; + } + pairs.items.push(createPair(key, value, ctx)); + } + return pairs; +} +const pairs = { + collection: 'seq', + default: false, + tag: 'tag:yaml.org,2002:pairs', + resolve: resolvePairs, + createNode: createPairs +}; + +export { createPairs, pairs, resolvePairs }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js" index 7b3006bd725b3431ebe0c7c1150858abc9a3294d..dc5be5f2e0f8ba3d1912e6a26d2caee7d7e56953 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js" @@ -1,3 +1,37 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:318cd23c449908ca50395c551503d63ae5909761fe9fd60535e3761e7d86098b -size 813 +import { map } from '../common/map.js'; +import { nullTag } from '../common/null.js'; +import { seq } from '../common/seq.js'; +import { string } from '../common/string.js'; +import { binary } from './binary.js'; +import { trueTag, falseTag } from './bool.js'; +import { floatNaN, floatExp, float } from './float.js'; +import { intBin, intOct, int, intHex } from './int.js'; +import { omap } from './omap.js'; +import { pairs } from './pairs.js'; +import { set } from './set.js'; +import { intTime, floatTime, timestamp } from './timestamp.js'; + +const schema = [ + map, + seq, + string, + nullTag, + trueTag, + falseTag, + intBin, + intOct, + int, + intHex, + floatNaN, + floatExp, + float, + binary, + omap, + pairs, + set, + intTime, + floatTime, + timestamp +]; + +export { schema }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js" index beb43b1145155c6cfb8f83cc6a4746a2f4bc1e8c..9e43dadd9cdc55ae90b0cc053edd70df47bfe327 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js" @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9683666012ccaa48402b9f95ca4688a345b4dbd7b8c8f9e5493a8cf0b386c16b -size 2949 +import { isMap, isPair, isScalar } from '../../nodes/Node.js'; +import { createPair, Pair } from '../../nodes/Pair.js'; +import { YAMLMap, findPair } from '../../nodes/YAMLMap.js'; + +class YAMLSet extends YAMLMap { + constructor(schema) { + super(schema); + this.tag = YAMLSet.tag; + } + add(key) { + let pair; + if (isPair(key)) + pair = key; + else if (key && + typeof key === 'object' && + 'key' in key && + 'value' in key && + key.value === null) + pair = new Pair(key.key, null); + else + pair = new Pair(key, null); + const prev = findPair(this.items, pair.key); + if (!prev) + this.items.push(pair); + } + /** + * If `keepPair` is `true`, returns the Pair matching `key`. + * Otherwise, returns the value of that Pair's key. + */ + get(key, keepPair) { + const pair = findPair(this.items, key); + return !keepPair && isPair(pair) + ? isScalar(pair.key) + ? pair.key.value + : pair.key + : pair; + } + set(key, value) { + if (typeof value !== 'boolean') + throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value}`); + const prev = findPair(this.items, key); + if (prev && !value) { + this.items.splice(this.items.indexOf(prev), 1); + } + else if (!prev && value) { + this.items.push(new Pair(key)); + } + } + toJSON(_, ctx) { + return super.toJSON(_, ctx, Set); + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + if (this.hasAllNullValues(true)) + return super.toString(Object.assign({}, ctx, { allNullValues: true }), onComment, onChompKeep); + else + throw new Error('Set items must all have null values'); + } +} +YAMLSet.tag = 'tag:yaml.org,2002:set'; +const set = { + collection: 'map', + identify: value => value instanceof Set, + nodeClass: YAMLSet, + default: false, + tag: 'tag:yaml.org,2002:set', + resolve(map, onError) { + if (isMap(map)) { + if (map.hasAllNullValues(true)) + return Object.assign(new YAMLSet(), map); + else + onError('Set items must all have null values'); + } + else + onError('Expected a mapping for this tag'); + return map; + }, + createNode(schema, iterable, ctx) { + const { replacer } = ctx; + const set = new YAMLSet(schema); + if (iterable && Symbol.iterator in Object(iterable)) + for (let value of iterable) { + if (typeof replacer === 'function') + value = replacer.call(iterable, value, value); + set.items.push(createPair(value, null, ctx)); + } + return set; + } +}; + +export { YAMLSet, set }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js" index 794e535b86f78cfa3b3ced02ac1f86bc2754e37c..7013cda797d269341c666bd4758f6251c923d145 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js" @@ -1,3 +1,101 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a47df32601dac2c82b704b3d3c2ffdbdc63c083661ff14af31ab6f40e617556b -size 3706 +import { stringifyNumber } from '../../stringify/stringifyNumber.js'; + +/** Internal types handle bigint as number, because TS can't figure it out. */ +function parseSexagesimal(str, asBigInt) { + const sign = str[0]; + const parts = sign === '-' || sign === '+' ? str.substring(1) : str; + const num = (n) => asBigInt ? BigInt(n) : Number(n); + const res = parts + .replace(/_/g, '') + .split(':') + .reduce((res, p) => res * num(60) + num(p), num(0)); + return (sign === '-' ? num(-1) * res : res); +} +/** + * hhhh:mm:ss.sss + * + * Internal types handle bigint as number, because TS can't figure it out. + */ +function stringifySexagesimal(node) { + let { value } = node; + let num = (n) => n; + if (typeof value === 'bigint') + num = n => BigInt(n); + else if (isNaN(value) || !isFinite(value)) + return stringifyNumber(node); + let sign = ''; + if (value < 0) { + sign = '-'; + value *= num(-1); + } + const _60 = num(60); + const parts = [value % _60]; // seconds, including ms + if (value < 60) { + parts.unshift(0); // at least one : is required + } + else { + value = (value - parts[0]) / _60; + parts.unshift(value % _60); // minutes + if (value >= 60) { + value = (value - parts[0]) / _60; + parts.unshift(value); // hours + } + } + return (sign + + parts + .map(n => (n < 10 ? '0' + String(n) : String(n))) + .join(':') + .replace(/000000\d*$/, '') // % 60 may introduce error + ); +} +const intTime = { + identify: value => typeof value === 'bigint' || Number.isInteger(value), + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'TIME', + test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/, + resolve: (str, _onError, { intAsBigInt }) => parseSexagesimal(str, intAsBigInt), + stringify: stringifySexagesimal +}; +const floatTime = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + format: 'TIME', + test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/, + resolve: str => parseSexagesimal(str, false), + stringify: stringifySexagesimal +}; +const timestamp = { + identify: value => value instanceof Date, + default: true, + tag: 'tag:yaml.org,2002:timestamp', + // If the time zone is omitted, the timestamp is assumed to be specified in UTC. The time part + // may be omitted altogether, resulting in a date format. In such a case, the time part is + // assumed to be 00:00:00Z (start of day, UTC). + test: RegExp('^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})' + // YYYY-Mm-Dd + '(?:' + // time is optional + '(?:t|T|[ \\t]+)' + // t | T | whitespace + '([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)' + // Hh:Mm:Ss(.ss)? + '(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?' + // Z | +5 | -03:30 + ')?$'), + resolve(str) { + const match = str.match(timestamp.test); + if (!match) + throw new Error('!!timestamp expects a date, starting with yyyy-mm-dd'); + const [, year, month, day, hour, minute, second] = match.map(Number); + const millisec = match[7] ? Number((match[7] + '00').substr(1, 3)) : 0; + let date = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec); + const tz = match[8]; + if (tz && tz !== 'Z') { + let d = parseSexagesimal(tz, false); + if (Math.abs(d) < 30) + d *= 60; + date -= 60000 * d; + } + return new Date(date); + }, + stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '') +}; + +export { floatTime, intTime, timestamp }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/foldFlowLines.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/foldFlowLines.js" index 80f462e0416848d0317d87cefb3bf52ea74a9514..01fe7876d2dd58f5149d5a542c5304564fb48613 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/foldFlowLines.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/foldFlowLines.js" @@ -1,3 +1,135 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9156d6c2ca500670f30e385b0e9599270cbaac8d6c262ae31143c8be19a409cf -size 4476 +const FOLD_FLOW = 'flow'; +const FOLD_BLOCK = 'block'; +const FOLD_QUOTED = 'quoted'; +/** + * Tries to keep input at up to `lineWidth` characters, splitting only on spaces + * not followed by newlines or spaces unless `mode` is `'quoted'`. Lines are + * terminated with `\n` and started with `indent`. + */ +function foldFlowLines(text, indent, mode = 'flow', { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) { + if (!lineWidth || lineWidth < 0) + return text; + const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length); + if (text.length <= endStep) + return text; + const folds = []; + const escapedFolds = {}; + let end = lineWidth - indent.length; + if (typeof indentAtStart === 'number') { + if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) + folds.push(0); + else + end = lineWidth - indentAtStart; + } + let split = undefined; + let prev = undefined; + let overflow = false; + let i = -1; + let escStart = -1; + let escEnd = -1; + if (mode === FOLD_BLOCK) { + i = consumeMoreIndentedLines(text, i); + if (i !== -1) + end = i + endStep; + } + for (let ch; (ch = text[(i += 1)]);) { + if (mode === FOLD_QUOTED && ch === '\\') { + escStart = i; + switch (text[i + 1]) { + case 'x': + i += 3; + break; + case 'u': + i += 5; + break; + case 'U': + i += 9; + break; + default: + i += 1; + } + escEnd = i; + } + if (ch === '\n') { + if (mode === FOLD_BLOCK) + i = consumeMoreIndentedLines(text, i); + end = i + endStep; + split = undefined; + } + else { + if (ch === ' ' && + prev && + prev !== ' ' && + prev !== '\n' && + prev !== '\t') { + // space surrounded by non-space can be replaced with newline + indent + const next = text[i + 1]; + if (next && next !== ' ' && next !== '\n' && next !== '\t') + split = i; + } + if (i >= end) { + if (split) { + folds.push(split); + end = split + endStep; + split = undefined; + } + else if (mode === FOLD_QUOTED) { + // white-space collected at end may stretch past lineWidth + while (prev === ' ' || prev === '\t') { + prev = ch; + ch = text[(i += 1)]; + overflow = true; + } + // Account for newline escape, but don't break preceding escape + const j = i > escEnd + 1 ? i - 2 : escStart - 1; + // Bail out if lineWidth & minContentWidth are shorter than an escape string + if (escapedFolds[j]) + return text; + folds.push(j); + escapedFolds[j] = true; + end = j + endStep; + split = undefined; + } + else { + overflow = true; + } + } + } + prev = ch; + } + if (overflow && onOverflow) + onOverflow(); + if (folds.length === 0) + return text; + if (onFold) + onFold(); + let res = text.slice(0, folds[0]); + for (let i = 0; i < folds.length; ++i) { + const fold = folds[i]; + const end = folds[i + 1] || text.length; + if (fold === 0) + res = `\n${indent}${text.slice(0, end)}`; + else { + if (mode === FOLD_QUOTED && escapedFolds[fold]) + res += `${text[fold]}\\`; + res += `\n${indent}${text.slice(fold + 1, end)}`; + } + } + return res; +} +/** + * Presumes `i + 1` is at the start of a line + * @returns index of last newline in more-indented block + */ +function consumeMoreIndentedLines(text, i) { + let ch = text[i + 1]; + while (ch === ' ' || ch === '\t') { + do { + ch = text[(i += 1)]; + } while (ch && ch !== '\n'); + ch = text[i + 1]; + } + return i; +} + +export { FOLD_BLOCK, FOLD_FLOW, FOLD_QUOTED, foldFlowLines }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringify.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringify.js" index d350a7576a28b231f4da80ef22ee4db76c5f17e7..a57224907772438d8b57db8f07a03963b04a0c35 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringify.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringify.js" @@ -1,3 +1,124 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f8b4b2fa38a5fd24ee046c8ce0f5b66ac5ce582d8800ce163f4553e381b08a41 -size 4187 +import { anchorIsValid } from '../doc/anchors.js'; +import { isPair, isAlias, isNode, isScalar, isCollection } from '../nodes/Node.js'; +import { stringifyComment } from './stringifyComment.js'; +import { stringifyString } from './stringifyString.js'; + +function createStringifyContext(doc, options) { + const opt = Object.assign({ + blockQuote: true, + commentString: stringifyComment, + defaultKeyType: null, + defaultStringType: 'PLAIN', + directives: null, + doubleQuotedAsJSON: false, + doubleQuotedMinMultiLineLength: 40, + falseStr: 'false', + flowCollectionPadding: true, + indentSeq: true, + lineWidth: 80, + minContentWidth: 20, + nullStr: 'null', + simpleKeys: false, + singleQuote: null, + trueStr: 'true', + verifyAliasOrder: true + }, doc.schema.toStringOptions, options); + let inFlow; + switch (opt.collectionStyle) { + case 'block': + inFlow = false; + break; + case 'flow': + inFlow = true; + break; + default: + inFlow = null; + } + return { + anchors: new Set(), + doc, + flowCollectionPadding: opt.flowCollectionPadding ? ' ' : '', + indent: '', + indentStep: typeof opt.indent === 'number' ? ' '.repeat(opt.indent) : ' ', + inFlow, + options: opt + }; +} +function getTagObject(tags, item) { + if (item.tag) { + const match = tags.filter(t => t.tag === item.tag); + if (match.length > 0) + return match.find(t => t.format === item.format) ?? match[0]; + } + let tagObj = undefined; + let obj; + if (isScalar(item)) { + obj = item.value; + const match = tags.filter(t => t.identify?.(obj)); + tagObj = + match.find(t => t.format === item.format) ?? match.find(t => !t.format); + } + else { + obj = item; + tagObj = tags.find(t => t.nodeClass && obj instanceof t.nodeClass); + } + if (!tagObj) { + const name = obj?.constructor?.name ?? typeof obj; + throw new Error(`Tag not resolved for ${name} value`); + } + return tagObj; +} +// needs to be called before value stringifier to allow for circular anchor refs +function stringifyProps(node, tagObj, { anchors, doc }) { + if (!doc.directives) + return ''; + const props = []; + const anchor = (isScalar(node) || isCollection(node)) && node.anchor; + if (anchor && anchorIsValid(anchor)) { + anchors.add(anchor); + props.push(`&${anchor}`); + } + const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag; + if (tag) + props.push(doc.directives.tagString(tag)); + return props.join(' '); +} +function stringify(item, ctx, onComment, onChompKeep) { + if (isPair(item)) + return item.toString(ctx, onComment, onChompKeep); + if (isAlias(item)) { + if (ctx.doc.directives) + return item.toString(ctx); + if (ctx.resolvedAliases?.has(item)) { + throw new TypeError(`Cannot stringify circular structure without alias nodes`); + } + else { + if (ctx.resolvedAliases) + ctx.resolvedAliases.add(item); + else + ctx.resolvedAliases = new Set([item]); + item = item.resolve(ctx.doc); + } + } + let tagObj = undefined; + const node = isNode(item) + ? item + : ctx.doc.createNode(item, { onTagObj: o => (tagObj = o) }); + if (!tagObj) + tagObj = getTagObject(ctx.doc.schema.tags, node); + const props = stringifyProps(node, tagObj, ctx); + if (props.length > 0) + ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1; + const str = typeof tagObj.stringify === 'function' + ? tagObj.stringify(node, ctx, onComment, onChompKeep) + : isScalar(node) + ? stringifyString(node, ctx, onComment, onChompKeep) + : node.toString(ctx, onComment, onChompKeep); + if (!props) + return str; + return isScalar(node) || str[0] === '{' || str[0] === '[' + ? `${props} ${str}` + : `${props}\n${ctx.indent}${str}`; +} + +export { createStringifyContext, stringify }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyCollection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyCollection.js" index 356cf208f4a063926c7ec22e0ef8ad3551e2c016..ed673dbf171fd7d33c353533427f5aac301b1c70 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyCollection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyCollection.js" @@ -1,3 +1,151 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b290942f039506648abffb72671127df825e2985cff6b8487ef078cdc9a51def -size 5412 +import { Collection } from '../nodes/Collection.js'; +import { isNode, isPair } from '../nodes/Node.js'; +import { stringify } from './stringify.js'; +import { lineComment, indentComment } from './stringifyComment.js'; + +function stringifyCollection(collection, ctx, options) { + const flow = ctx.inFlow ?? collection.flow; + const stringify = flow ? stringifyFlowCollection : stringifyBlockCollection; + return stringify(collection, ctx, options); +} +function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) { + const { indent, options: { commentString } } = ctx; + const itemCtx = Object.assign({}, ctx, { indent: itemIndent, type: null }); + let chompKeep = false; // flag for the preceding node's status + const lines = []; + for (let i = 0; i < items.length; ++i) { + const item = items[i]; + let comment = null; + if (isNode(item)) { + if (!chompKeep && item.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, item.commentBefore, chompKeep); + if (item.comment) + comment = item.comment; + } + else if (isPair(item)) { + const ik = isNode(item.key) ? item.key : null; + if (ik) { + if (!chompKeep && ik.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, ik.commentBefore, chompKeep); + } + } + chompKeep = false; + let str = stringify(item, itemCtx, () => (comment = null), () => (chompKeep = true)); + if (comment) + str += lineComment(str, itemIndent, commentString(comment)); + if (chompKeep && comment) + chompKeep = false; + lines.push(blockItemPrefix + str); + } + let str; + if (lines.length === 0) { + str = flowChars.start + flowChars.end; + } + else { + str = lines[0]; + for (let i = 1; i < lines.length; ++i) { + const line = lines[i]; + str += line ? `\n${indent}${line}` : '\n'; + } + } + if (comment) { + str += '\n' + indentComment(commentString(comment), indent); + if (onComment) + onComment(); + } + else if (chompKeep && onChompKeep) + onChompKeep(); + return str; +} +function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemIndent, onComment }) { + const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx; + itemIndent += indentStep; + const itemCtx = Object.assign({}, ctx, { + indent: itemIndent, + inFlow: true, + type: null + }); + let reqNewline = false; + let linesAtValue = 0; + const lines = []; + for (let i = 0; i < items.length; ++i) { + const item = items[i]; + let comment = null; + if (isNode(item)) { + if (item.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, item.commentBefore, false); + if (item.comment) + comment = item.comment; + } + else if (isPair(item)) { + const ik = isNode(item.key) ? item.key : null; + if (ik) { + if (ik.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, ik.commentBefore, false); + if (ik.comment) + reqNewline = true; + } + const iv = isNode(item.value) ? item.value : null; + if (iv) { + if (iv.comment) + comment = iv.comment; + if (iv.commentBefore) + reqNewline = true; + } + else if (item.value == null && ik && ik.comment) { + comment = ik.comment; + } + } + if (comment) + reqNewline = true; + let str = stringify(item, itemCtx, () => (comment = null)); + if (i < items.length - 1) + str += ','; + if (comment) + str += lineComment(str, itemIndent, commentString(comment)); + if (!reqNewline && (lines.length > linesAtValue || str.includes('\n'))) + reqNewline = true; + lines.push(str); + linesAtValue = lines.length; + } + let str; + const { start, end } = flowChars; + if (lines.length === 0) { + str = start + end; + } + else { + if (!reqNewline) { + const len = lines.reduce((sum, line) => sum + line.length + 2, 2); + reqNewline = len > Collection.maxFlowStringSingleLineLength; + } + if (reqNewline) { + str = start; + for (const line of lines) + str += line ? `\n${indentStep}${indent}${line}` : '\n'; + str += `\n${indent}${end}`; + } + else { + str = `${start}${fcPadding}${lines.join(' ')}${fcPadding}${end}`; + } + } + if (comment) { + str += lineComment(str, indent, commentString(comment)); + if (onComment) + onComment(); + } + return str; +} +function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) { + if (comment && chompKeep) + comment = comment.replace(/^\n+/, ''); + if (comment) { + const ic = indentComment(commentString(comment), indent); + lines.push(ic.trimStart()); // Avoid double indent on first line + } +} + +export { stringifyCollection }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyComment.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyComment.js" index b2e14ea1bcf1c23a6c547353ecd145257dbe5df2..f16fc917ad3821e76e4e4a97ca06a9db17a6acbd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyComment.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyComment.js" @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20d3dc6bebda3efc2394ca162455ce9e4691b6c60995b5b4418b30659e09e03e -size 724 +/** + * Stringifies a comment. + * + * Empty comment lines are left empty, + * lines consisting of a single space are replaced by `#`, + * and all other lines are prefixed with a `#`. + */ +const stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, '#'); +function indentComment(comment, indent) { + if (/^\n+$/.test(comment)) + return comment.substring(1); + return indent ? comment.replace(/^(?! *$)/gm, indent) : comment; +} +const lineComment = (str, indent, comment) => str.endsWith('\n') + ? indentComment(comment, indent) + : comment.includes('\n') + ? '\n' + indentComment(comment, indent) + : (str.endsWith(' ') ? '' : ' ') + comment; + +export { indentComment, lineComment, stringifyComment }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyDocument.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyDocument.js" index aed777d8c43a55339fe93d768c2a01ca26a079dc..e288c5d74e0d5177f35b23814230d41e2850e66e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyDocument.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyDocument.js" @@ -1,3 +1,85 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c63a63bc844fdcb233044bce8fdfdab8629f7682290ee18c41aef02e888eccc -size 2979 +import { isNode } from '../nodes/Node.js'; +import { createStringifyContext, stringify } from './stringify.js'; +import { indentComment, lineComment } from './stringifyComment.js'; + +function stringifyDocument(doc, options) { + const lines = []; + let hasDirectives = options.directives === true; + if (options.directives !== false && doc.directives) { + const dir = doc.directives.toString(doc); + if (dir) { + lines.push(dir); + hasDirectives = true; + } + else if (doc.directives.docStart) + hasDirectives = true; + } + if (hasDirectives) + lines.push('---'); + const ctx = createStringifyContext(doc, options); + const { commentString } = ctx.options; + if (doc.commentBefore) { + if (lines.length !== 1) + lines.unshift(''); + const cs = commentString(doc.commentBefore); + lines.unshift(indentComment(cs, '')); + } + let chompKeep = false; + let contentComment = null; + if (doc.contents) { + if (isNode(doc.contents)) { + if (doc.contents.spaceBefore && hasDirectives) + lines.push(''); + if (doc.contents.commentBefore) { + const cs = commentString(doc.contents.commentBefore); + lines.push(indentComment(cs, '')); + } + // top-level block scalars need to be indented if followed by a comment + ctx.forceBlockIndent = !!doc.comment; + contentComment = doc.contents.comment; + } + const onChompKeep = contentComment ? undefined : () => (chompKeep = true); + let body = stringify(doc.contents, ctx, () => (contentComment = null), onChompKeep); + if (contentComment) + body += lineComment(body, '', commentString(contentComment)); + if ((body[0] === '|' || body[0] === '>') && + lines[lines.length - 1] === '---') { + // Top-level block scalars with a preceding doc marker ought to use the + // same line for their header. + lines[lines.length - 1] = `--- ${body}`; + } + else + lines.push(body); + } + else { + lines.push(stringify(doc.contents, ctx)); + } + if (doc.directives?.docEnd) { + if (doc.comment) { + const cs = commentString(doc.comment); + if (cs.includes('\n')) { + lines.push('...'); + lines.push(indentComment(cs, '')); + } + else { + lines.push(`... ${cs}`); + } + } + else { + lines.push('...'); + } + } + else { + let dc = doc.comment; + if (dc && chompKeep) + dc = dc.replace(/^\n+/, ''); + if (dc) { + if ((!chompKeep || contentComment) && lines[lines.length - 1] !== '') + lines.push(''); + lines.push(indentComment(commentString(dc), '')); + } + } + return lines.join('\n') + '\n'; +} + +export { stringifyDocument }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyNumber.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyNumber.js" index bb5c34c58759e007880c203b5b7f6455ba1fac16..3fa35f9293376da7c1172d21077c4866949edcc1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyNumber.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyNumber.js" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d59926ae5c3764a283ec0ee3de848157eb38cff84a69266a9425f661dee30619 -size 718 +function stringifyNumber({ format, minFractionDigits, tag, value }) { + if (typeof value === 'bigint') + return String(value); + const num = typeof value === 'number' ? value : Number(value); + if (!isFinite(num)) + return isNaN(num) ? '.nan' : num < 0 ? '-.inf' : '.inf'; + let n = JSON.stringify(value); + if (!format && + minFractionDigits && + (!tag || tag === 'tag:yaml.org,2002:float') && + /^\d/.test(n)) { + let i = n.indexOf('.'); + if (i < 0) { + i = n.length; + n += '.'; + } + let d = minFractionDigits - (n.length - i - 1); + while (d-- > 0) + n += '0'; + } + return n; +} + +export { stringifyNumber }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyPair.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyPair.js" index e0817d643a0aa8e8ad4c4ec6c12d045b92aeacf8..1ac07f1b35ba0cd52b88886bb5c5ee8e1113dc96 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyPair.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyPair.js" @@ -1,3 +1,150 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:abad53c828a5c2d782995a051a7b655409f8222def924e5611579debd82932e9 -size 5220 +import { isCollection, isNode, isScalar, isSeq } from '../nodes/Node.js'; +import { Scalar } from '../nodes/Scalar.js'; +import { stringify } from './stringify.js'; +import { lineComment, indentComment } from './stringifyComment.js'; + +function stringifyPair({ key, value }, ctx, onComment, onChompKeep) { + const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx; + let keyComment = (isNode(key) && key.comment) || null; + if (simpleKeys) { + if (keyComment) { + throw new Error('With simple keys, key nodes cannot have comments'); + } + if (isCollection(key)) { + const msg = 'With simple keys, collection cannot be used as a key value'; + throw new Error(msg); + } + } + let explicitKey = !simpleKeys && + (!key || + (keyComment && value == null && !ctx.inFlow) || + isCollection(key) || + (isScalar(key) + ? key.type === Scalar.BLOCK_FOLDED || key.type === Scalar.BLOCK_LITERAL + : typeof key === 'object')); + ctx = Object.assign({}, ctx, { + allNullValues: false, + implicitKey: !explicitKey && (simpleKeys || !allNullValues), + indent: indent + indentStep + }); + let keyCommentDone = false; + let chompKeep = false; + let str = stringify(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true)); + if (!explicitKey && !ctx.inFlow && str.length > 1024) { + if (simpleKeys) + throw new Error('With simple keys, single line scalar must not span more than 1024 characters'); + explicitKey = true; + } + if (ctx.inFlow) { + if (allNullValues || value == null) { + if (keyCommentDone && onComment) + onComment(); + return str === '' ? '?' : explicitKey ? `? ${str}` : str; + } + } + else if ((allNullValues && !simpleKeys) || (value == null && explicitKey)) { + str = `? ${str}`; + if (keyComment && !keyCommentDone) { + str += lineComment(str, ctx.indent, commentString(keyComment)); + } + else if (chompKeep && onChompKeep) + onChompKeep(); + return str; + } + if (keyCommentDone) + keyComment = null; + if (explicitKey) { + if (keyComment) + str += lineComment(str, ctx.indent, commentString(keyComment)); + str = `? ${str}\n${indent}:`; + } + else { + str = `${str}:`; + if (keyComment) + str += lineComment(str, ctx.indent, commentString(keyComment)); + } + let vsb, vcb, valueComment; + if (isNode(value)) { + vsb = !!value.spaceBefore; + vcb = value.commentBefore; + valueComment = value.comment; + } + else { + vsb = false; + vcb = null; + valueComment = null; + if (value && typeof value === 'object') + value = doc.createNode(value); + } + ctx.implicitKey = false; + if (!explicitKey && !keyComment && isScalar(value)) + ctx.indentAtStart = str.length + 1; + chompKeep = false; + if (!indentSeq && + indentStep.length >= 2 && + !ctx.inFlow && + !explicitKey && + isSeq(value) && + !value.flow && + !value.tag && + !value.anchor) { + // If indentSeq === false, consider '- ' as part of indentation where possible + ctx.indent = ctx.indent.substring(2); + } + let valueCommentDone = false; + const valueStr = stringify(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true)); + let ws = ' '; + if (keyComment || vsb || vcb) { + ws = vsb ? '\n' : ''; + if (vcb) { + const cs = commentString(vcb); + ws += `\n${indentComment(cs, ctx.indent)}`; + } + if (valueStr === '' && !ctx.inFlow) { + if (ws === '\n') + ws = '\n\n'; + } + else { + ws += `\n${ctx.indent}`; + } + } + else if (!explicitKey && isCollection(value)) { + const vs0 = valueStr[0]; + const nl0 = valueStr.indexOf('\n'); + const hasNewline = nl0 !== -1; + const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0; + if (hasNewline || !flow) { + let hasPropsLine = false; + if (hasNewline && (vs0 === '&' || vs0 === '!')) { + let sp0 = valueStr.indexOf(' '); + if (vs0 === '&' && + sp0 !== -1 && + sp0 < nl0 && + valueStr[sp0 + 1] === '!') { + sp0 = valueStr.indexOf(' ', sp0 + 1); + } + if (sp0 === -1 || nl0 < sp0) + hasPropsLine = true; + } + if (!hasPropsLine) + ws = `\n${ctx.indent}`; + } + } + else if (valueStr === '' || valueStr[0] === '\n') { + ws = ''; + } + str += ws + valueStr; + if (ctx.inFlow) { + if (valueCommentDone && onComment) + onComment(); + } + else if (valueComment && !valueCommentDone) { + str += lineComment(str, ctx.indent, commentString(valueComment)); + } + else if (chompKeep && onChompKeep) { + onChompKeep(); + } + return str; +} + +export { stringifyPair }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyString.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyString.js" index 3e779bd0336a777618c4fe613d9fae3833741df8..3fb59d8f493d73b2489b7cc7b23d1d82493b0402 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyString.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/stringify/stringifyString.js" @@ -1,3 +1,319 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:13e08d5cab276b31de0b38a3350e7090a206f3e802d04bf0ea11a7054cf97eac -size 12595 +import { Scalar } from '../nodes/Scalar.js'; +import { foldFlowLines, FOLD_QUOTED, FOLD_FLOW, FOLD_BLOCK } from './foldFlowLines.js'; + +const getFoldOptions = (ctx, isBlock) => ({ + indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart, + lineWidth: ctx.options.lineWidth, + minContentWidth: ctx.options.minContentWidth +}); +// Also checks for lines starting with %, as parsing the output as YAML 1.1 will +// presume that's starting a new document. +const containsDocumentMarker = (str) => /^(%|---|\.\.\.)/m.test(str); +function lineLengthOverLimit(str, lineWidth, indentLength) { + if (!lineWidth || lineWidth < 0) + return false; + const limit = lineWidth - indentLength; + const strLen = str.length; + if (strLen <= limit) + return false; + for (let i = 0, start = 0; i < strLen; ++i) { + if (str[i] === '\n') { + if (i - start > limit) + return true; + start = i + 1; + if (strLen - start <= limit) + return false; + } + } + return true; +} +function doubleQuotedString(value, ctx) { + const json = JSON.stringify(value); + if (ctx.options.doubleQuotedAsJSON) + return json; + const { implicitKey } = ctx; + const minMultiLineLength = ctx.options.doubleQuotedMinMultiLineLength; + const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : ''); + let str = ''; + let start = 0; + for (let i = 0, ch = json[i]; ch; ch = json[++i]) { + if (ch === ' ' && json[i + 1] === '\\' && json[i + 2] === 'n') { + // space before newline needs to be escaped to not be folded + str += json.slice(start, i) + '\\ '; + i += 1; + start = i; + ch = '\\'; + } + if (ch === '\\') + switch (json[i + 1]) { + case 'u': + { + str += json.slice(start, i); + const code = json.substr(i + 2, 4); + switch (code) { + case '0000': + str += '\\0'; + break; + case '0007': + str += '\\a'; + break; + case '000b': + str += '\\v'; + break; + case '001b': + str += '\\e'; + break; + case '0085': + str += '\\N'; + break; + case '00a0': + str += '\\_'; + break; + case '2028': + str += '\\L'; + break; + case '2029': + str += '\\P'; + break; + default: + if (code.substr(0, 2) === '00') + str += '\\x' + code.substr(2); + else + str += json.substr(i, 6); + } + i += 5; + start = i + 1; + } + break; + case 'n': + if (implicitKey || + json[i + 2] === '"' || + json.length < minMultiLineLength) { + i += 1; + } + else { + // folding will eat first newline + str += json.slice(start, i) + '\n\n'; + while (json[i + 2] === '\\' && + json[i + 3] === 'n' && + json[i + 4] !== '"') { + str += '\n'; + i += 2; + } + str += indent; + // space after newline needs to be escaped to not be folded + if (json[i + 2] === ' ') + str += '\\'; + i += 1; + start = i + 1; + } + break; + default: + i += 1; + } + } + str = start ? str + json.slice(start) : json; + return implicitKey + ? str + : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx, false)); +} +function singleQuotedString(value, ctx) { + if (ctx.options.singleQuote === false || + (ctx.implicitKey && value.includes('\n')) || + /[ \t]\n|\n[ \t]/.test(value) // single quoted string can't have leading or trailing whitespace around newline + ) + return doubleQuotedString(value, ctx); + const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : ''); + const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&\n${indent}`) + "'"; + return ctx.implicitKey + ? res + : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx, false)); +} +function quotedString(value, ctx) { + const { singleQuote } = ctx.options; + let qs; + if (singleQuote === false) + qs = doubleQuotedString; + else { + const hasDouble = value.includes('"'); + const hasSingle = value.includes("'"); + if (hasDouble && !hasSingle) + qs = singleQuotedString; + else if (hasSingle && !hasDouble) + qs = doubleQuotedString; + else + qs = singleQuote ? singleQuotedString : doubleQuotedString; + } + return qs(value, ctx); +} +function blockString({ comment, type, value }, ctx, onComment, onChompKeep) { + const { blockQuote, commentString, lineWidth } = ctx.options; + // 1. Block can't end in whitespace unless the last line is non-empty. + // 2. Strings consisting of only whitespace are best rendered explicitly. + if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) { + return quotedString(value, ctx); + } + const indent = ctx.indent || + (ctx.forceBlockIndent || containsDocumentMarker(value) ? ' ' : ''); + const literal = blockQuote === 'literal' + ? true + : blockQuote === 'folded' || type === Scalar.BLOCK_FOLDED + ? false + : type === Scalar.BLOCK_LITERAL + ? true + : !lineLengthOverLimit(value, lineWidth, indent.length); + if (!value) + return literal ? '|\n' : '>\n'; + // determine chomping from whitespace at value end + let chomp; + let endStart; + for (endStart = value.length; endStart > 0; --endStart) { + const ch = value[endStart - 1]; + if (ch !== '\n' && ch !== '\t' && ch !== ' ') + break; + } + let end = value.substring(endStart); + const endNlPos = end.indexOf('\n'); + if (endNlPos === -1) { + chomp = '-'; // strip + } + else if (value === end || endNlPos !== end.length - 1) { + chomp = '+'; // keep + if (onChompKeep) + onChompKeep(); + } + else { + chomp = ''; // clip + } + if (end) { + value = value.slice(0, -end.length); + if (end[end.length - 1] === '\n') + end = end.slice(0, -1); + end = end.replace(/\n+(?!\n|$)/g, `$&${indent}`); + } + // determine indent indicator from whitespace at value start + let startWithSpace = false; + let startEnd; + let startNlPos = -1; + for (startEnd = 0; startEnd < value.length; ++startEnd) { + const ch = value[startEnd]; + if (ch === ' ') + startWithSpace = true; + else if (ch === '\n') + startNlPos = startEnd; + else + break; + } + let start = value.substring(0, startNlPos < startEnd ? startNlPos + 1 : startEnd); + if (start) { + value = value.substring(start.length); + start = start.replace(/\n+/g, `$&${indent}`); + } + const indentSize = indent ? '2' : '1'; // root is at -1 + let header = (literal ? '|' : '>') + (startWithSpace ? indentSize : '') + chomp; + if (comment) { + header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' ')); + if (onComment) + onComment(); + } + if (literal) { + value = value.replace(/\n+/g, `$&${indent}`); + return `${header}\n${indent}${start}${value}${end}`; + } + value = value + .replace(/\n+/g, '\n$&') + .replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded + // ^ more-ind. ^ empty ^ capture next empty lines only at end of indent + .replace(/\n+/g, `$&${indent}`); + const body = foldFlowLines(`${start}${value}${end}`, indent, FOLD_BLOCK, getFoldOptions(ctx, true)); + return `${header}\n${indent}${body}`; +} +function plainString(item, ctx, onComment, onChompKeep) { + const { type, value } = item; + const { actualString, implicitKey, indent, indentStep, inFlow } = ctx; + if ((implicitKey && /[\n[\]{},]/.test(value)) || + (inFlow && /[[\]{},]/.test(value))) { + return quotedString(value, ctx); + } + if (!value || + /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) { + // not allowed: + // - empty string, '-' or '?' + // - start with an indicator character (except [?:-]) or /[?-] / + // - '\n ', ': ' or ' \n' anywhere + // - '#' not preceded by a non-space char + // - end with ' ' or ':' + return implicitKey || inFlow || !value.includes('\n') + ? quotedString(value, ctx) + : blockString(item, ctx, onComment, onChompKeep); + } + if (!implicitKey && + !inFlow && + type !== Scalar.PLAIN && + value.includes('\n')) { + // Where allowed & type not set explicitly, prefer block style for multiline strings + return blockString(item, ctx, onComment, onChompKeep); + } + if (containsDocumentMarker(value)) { + if (indent === '') { + ctx.forceBlockIndent = true; + return blockString(item, ctx, onComment, onChompKeep); + } + else if (implicitKey && indent === indentStep) { + return quotedString(value, ctx); + } + } + const str = value.replace(/\n+/g, `$&\n${indent}`); + // Verify that output will be parsed as a string, as e.g. plain numbers and + // booleans get parsed with those types in v1.2 (e.g. '42', 'true' & '0.9e-3'), + // and others in v1.1. + if (actualString) { + const test = (tag) => tag.default && tag.tag !== 'tag:yaml.org,2002:str' && tag.test?.test(str); + const { compat, tags } = ctx.doc.schema; + if (tags.some(test) || compat?.some(test)) + return quotedString(value, ctx); + } + return implicitKey + ? str + : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx, false)); +} +function stringifyString(item, ctx, onComment, onChompKeep) { + const { implicitKey, inFlow } = ctx; + const ss = typeof item.value === 'string' + ? item + : Object.assign({}, item, { value: String(item.value) }); + let { type } = item; + if (type !== Scalar.QUOTE_DOUBLE) { + // force double quotes on control characters & unpaired surrogates + if (/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(ss.value)) + type = Scalar.QUOTE_DOUBLE; + } + const _stringify = (_type) => { + switch (_type) { + case Scalar.BLOCK_FOLDED: + case Scalar.BLOCK_LITERAL: + return implicitKey || inFlow + ? quotedString(ss.value, ctx) // blocks are not valid inside flow containers + : blockString(ss, ctx, onComment, onChompKeep); + case Scalar.QUOTE_DOUBLE: + return doubleQuotedString(ss.value, ctx); + case Scalar.QUOTE_SINGLE: + return singleQuotedString(ss.value, ctx); + case Scalar.PLAIN: + return plainString(ss, ctx, onComment, onChompKeep); + default: + return null; + } + }; + let res = _stringify(type); + if (res === null) { + const { defaultKeyType, defaultStringType } = ctx.options; + const t = (implicitKey && defaultKeyType) || defaultStringType; + res = _stringify(t); + if (res === null) + throw new Error(`Unsupported default string type ${t}`); + } + return res; +} + +export { stringifyString }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/util.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/util.js" index ff944c0f9d761b378aa0b5608e0ed6e3b3aea502..eb104a52f81ae34a46b839ca54b427c7c9486210 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/util.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/util.js" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b831a59695b71a9c3ffec99018a2372d764ef6d4f849e78c812d40bc9b88dade -size 498 +export { debug, warn } from './log.js'; +export { findPair } from './nodes/YAMLMap.js'; +export { toJS } from './nodes/toJS.js'; +export { map as mapTag } from './schema/common/map.js'; +export { seq as seqTag } from './schema/common/seq.js'; +export { string as stringTag } from './schema/common/string.js'; +export { foldFlowLines } from './stringify/foldFlowLines.js'; +export { stringifyNumber } from './stringify/stringifyNumber.js'; +export { stringifyString } from './stringify/stringifyString.js'; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/visit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/visit.js" index 4382bd2934fe0452ad06c1b58e35d5162ff18cee..acabcab6f0baec6f6b0eb431460b099298b8a5a7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/visit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/dist/visit.js" @@ -1,3 +1,233 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0252d36569d0311b99d0b04b8c3e6b7d95bd11af32dfae7239851d175c1e6f9a -size 9103 +import { isDocument, isNode, isPair, isCollection, isMap, isSeq, isScalar, isAlias } from './nodes/Node.js'; + +const BREAK = Symbol('break visit'); +const SKIP = Symbol('skip children'); +const REMOVE = Symbol('remove node'); +/** + * Apply a visitor to an AST node or document. + * + * Walks through the tree (depth-first) starting from `node`, calling a + * `visitor` function with three arguments: + * - `key`: For sequence values and map `Pair`, the node's index in the + * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. + * `null` for the root node. + * - `node`: The current node. + * - `path`: The ancestry of the current node. + * + * The return value of the visitor may be used to control the traversal: + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this node, continue with next + * sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current node, then continue with the next one + * - `Node`: Replace the current node, then continue by visiting it + * - `number`: While iterating the items of a sequence or map, set the index + * of the next step. This is useful especially if the index of the current + * node has changed. + * + * If `visitor` is a single function, it will be called with all values + * encountered in the tree, including e.g. `null` values. Alternatively, + * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, + * `Alias` and `Scalar` node. To define the same visitor function for more than + * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) + * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most + * specific defined one will be used for each node. + */ +function visit(node, visitor) { + const visitor_ = initVisitor(visitor); + if (isDocument(node)) { + const cd = visit_(null, node.contents, visitor_, Object.freeze([node])); + if (cd === REMOVE) + node.contents = null; + } + else + visit_(null, node, visitor_, Object.freeze([])); +} +// Without the `as symbol` casts, TS declares these in the `visit` +// namespace using `var`, but then complains about that because +// `unique symbol` must be `const`. +/** Terminate visit traversal completely */ +visit.BREAK = BREAK; +/** Do not visit the children of the current node */ +visit.SKIP = SKIP; +/** Remove the current node */ +visit.REMOVE = REMOVE; +function visit_(key, node, visitor, path) { + const ctrl = callVisitor(key, node, visitor, path); + if (isNode(ctrl) || isPair(ctrl)) { + replaceNode(key, path, ctrl); + return visit_(key, ctrl, visitor, path); + } + if (typeof ctrl !== 'symbol') { + if (isCollection(node)) { + path = Object.freeze(path.concat(node)); + for (let i = 0; i < node.items.length; ++i) { + const ci = visit_(i, node.items[i], visitor, path); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + node.items.splice(i, 1); + i -= 1; + } + } + } + else if (isPair(node)) { + path = Object.freeze(path.concat(node)); + const ck = visit_('key', node.key, visitor, path); + if (ck === BREAK) + return BREAK; + else if (ck === REMOVE) + node.key = null; + const cv = visit_('value', node.value, visitor, path); + if (cv === BREAK) + return BREAK; + else if (cv === REMOVE) + node.value = null; + } + } + return ctrl; +} +/** + * Apply an async visitor to an AST node or document. + * + * Walks through the tree (depth-first) starting from `node`, calling a + * `visitor` function with three arguments: + * - `key`: For sequence values and map `Pair`, the node's index in the + * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. + * `null` for the root node. + * - `node`: The current node. + * - `path`: The ancestry of the current node. + * + * The return value of the visitor may be used to control the traversal: + * - `Promise`: Must resolve to one of the following values + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this node, continue with next + * sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current node, then continue with the next one + * - `Node`: Replace the current node, then continue by visiting it + * - `number`: While iterating the items of a sequence or map, set the index + * of the next step. This is useful especially if the index of the current + * node has changed. + * + * If `visitor` is a single function, it will be called with all values + * encountered in the tree, including e.g. `null` values. Alternatively, + * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, + * `Alias` and `Scalar` node. To define the same visitor function for more than + * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) + * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most + * specific defined one will be used for each node. + */ +async function visitAsync(node, visitor) { + const visitor_ = initVisitor(visitor); + if (isDocument(node)) { + const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node])); + if (cd === REMOVE) + node.contents = null; + } + else + await visitAsync_(null, node, visitor_, Object.freeze([])); +} +// Without the `as symbol` casts, TS declares these in the `visit` +// namespace using `var`, but then complains about that because +// `unique symbol` must be `const`. +/** Terminate visit traversal completely */ +visitAsync.BREAK = BREAK; +/** Do not visit the children of the current node */ +visitAsync.SKIP = SKIP; +/** Remove the current node */ +visitAsync.REMOVE = REMOVE; +async function visitAsync_(key, node, visitor, path) { + const ctrl = await callVisitor(key, node, visitor, path); + if (isNode(ctrl) || isPair(ctrl)) { + replaceNode(key, path, ctrl); + return visitAsync_(key, ctrl, visitor, path); + } + if (typeof ctrl !== 'symbol') { + if (isCollection(node)) { + path = Object.freeze(path.concat(node)); + for (let i = 0; i < node.items.length; ++i) { + const ci = await visitAsync_(i, node.items[i], visitor, path); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + node.items.splice(i, 1); + i -= 1; + } + } + } + else if (isPair(node)) { + path = Object.freeze(path.concat(node)); + const ck = await visitAsync_('key', node.key, visitor, path); + if (ck === BREAK) + return BREAK; + else if (ck === REMOVE) + node.key = null; + const cv = await visitAsync_('value', node.value, visitor, path); + if (cv === BREAK) + return BREAK; + else if (cv === REMOVE) + node.value = null; + } + } + return ctrl; +} +function initVisitor(visitor) { + if (typeof visitor === 'object' && + (visitor.Collection || visitor.Node || visitor.Value)) { + return Object.assign({ + Alias: visitor.Node, + Map: visitor.Node, + Scalar: visitor.Node, + Seq: visitor.Node + }, visitor.Value && { + Map: visitor.Value, + Scalar: visitor.Value, + Seq: visitor.Value + }, visitor.Collection && { + Map: visitor.Collection, + Seq: visitor.Collection + }, visitor); + } + return visitor; +} +function callVisitor(key, node, visitor, path) { + if (typeof visitor === 'function') + return visitor(key, node, path); + if (isMap(node)) + return visitor.Map?.(key, node, path); + if (isSeq(node)) + return visitor.Seq?.(key, node, path); + if (isPair(node)) + return visitor.Pair?.(key, node, path); + if (isScalar(node)) + return visitor.Scalar?.(key, node, path); + if (isAlias(node)) + return visitor.Alias?.(key, node, path); + return undefined; +} +function replaceNode(key, path, node) { + const parent = path[path.length - 1]; + if (isCollection(parent)) { + parent.items[key] = node; + } + else if (isPair(parent)) { + if (key === 'key') + parent.key = node; + else + parent.value = node; + } + else if (isDocument(parent)) { + parent.contents = node; + } + else { + const pt = isAlias(parent) ? 'alias' : 'scalar'; + throw new Error(`Cannot replace node with ${pt} parent`); + } +} + +export { visit, visitAsync }; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/index.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/index.js" index 82e4ae92564eed5d22b8fa4587eecc3fad0c03ad..5f7327183c6e882e13ea462ace9a74d38dc7cd25 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/index.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/index.js" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5ae196b7abe55bed1d4d11f7eeba63aeda0c49fb73eb3c7359e3d6b9a080696b -size 191 +// `export * as default from ...` fails on Webpack v4 +// https://github.com/eemeli/yaml/issues/228 +import * as YAML from './dist/index.js' +export default YAML +export * from './dist/index.js' diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/package.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/package.json" index 01f70c7a5a6ecf4072861dcbf6afc91eccfd1060..3dbc1ca591c0557e35b6004aeba250e6a70b56e3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/package.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/browser/package.json" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ca9d4afd21425087cf31893b8f9f63c81b0b8408db5e343ca76e5f8aa26ab9a -size 23 +{ + "type": "module" +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.d.ts" index 3466f4c8ccdeff95a024cdb907337062e487b63b..7ba83ac6e8d2f11eeb3d70a384b57e6bb8420a69 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33640bd256fd8823612bc514aaf1bb6c3d49463d06d49e1eaf2c3361f11c15bf -size 471 +import { ParsedNode } from '../nodes/Node.js'; +import type { BlockMap, BlockSequence, FlowCollection, SourceToken } from '../parse/cst.js'; +import type { ComposeContext, ComposeNode } from './compose-node.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function composeCollection(CN: ComposeNode, ctx: ComposeContext, token: BlockMap | BlockSequence | FlowCollection, tagToken: SourceToken | null, onError: ComposeErrorHandler): ParsedNode; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.js" index 217ffd74acc8a3530d3dff27e5d3413b313b900e..015eadd754a26ee153b9db6e06f6a94aed23a446 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-collection.js" @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c538d619e21d5b3217f2dc985b79adc86b3c77d8b0ed3a44231b8dabcc34c2b -size 2134 +'use strict'; + +var Node = require('../nodes/Node.js'); +var Scalar = require('../nodes/Scalar.js'); +var resolveBlockMap = require('./resolve-block-map.js'); +var resolveBlockSeq = require('./resolve-block-seq.js'); +var resolveFlowCollection = require('./resolve-flow-collection.js'); + +function composeCollection(CN, ctx, token, tagToken, onError) { + let coll; + switch (token.type) { + case 'block-map': { + coll = resolveBlockMap.resolveBlockMap(CN, ctx, token, onError); + break; + } + case 'block-seq': { + coll = resolveBlockSeq.resolveBlockSeq(CN, ctx, token, onError); + break; + } + case 'flow-collection': { + coll = resolveFlowCollection.resolveFlowCollection(CN, ctx, token, onError); + break; + } + } + if (!tagToken) + return coll; + const tagName = ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg)); + if (!tagName) + return coll; + // Cast needed due to: https://github.com/Microsoft/TypeScript/issues/3841 + const Coll = coll.constructor; + if (tagName === '!' || tagName === Coll.tagName) { + coll.tag = Coll.tagName; + return coll; + } + const expType = Node.isMap(coll) ? 'map' : 'seq'; + let tag = ctx.schema.tags.find(t => t.collection === expType && t.tag === tagName); + if (!tag) { + const kt = ctx.schema.knownTags[tagName]; + if (kt && kt.collection === expType) { + ctx.schema.tags.push(Object.assign({}, kt, { default: false })); + tag = kt; + } + else { + onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true); + coll.tag = tagName; + return coll; + } + } + const res = tag.resolve(coll, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg), ctx.options); + const node = Node.isNode(res) + ? res + : new Scalar.Scalar(res); + node.range = coll.range; + node.tag = tagName; + if (tag?.format) + node.format = tag.format; + return node; +} + +exports.composeCollection = composeCollection; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.d.ts" index 8afe6d77b9166668696eb452ed0128e3972dd282..2068f87a6e8de85a42b6d9a2029956a1f19ba30b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:600010981dfb0d5ae796c272e4552e7427528e0014a9879008ef6f991e53e95e -size 532 +import type { Directives } from '../doc/directives.js'; +import { Document } from '../doc/Document.js'; +import type { DocumentOptions, ParseOptions, SchemaOptions } from '../options.js'; +import type * as CST from '../parse/cst.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function composeDoc(options: ParseOptions & DocumentOptions & SchemaOptions, directives: Directives, { offset, start, value, end }: CST.Document, onError: ComposeErrorHandler): Document.Parsed; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.js" index 20808b7ea2d1321f5fafb913442a225439e40b71..02457bf1d1be7ad2e5d64cd965d03b548bcf697e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.js" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b22d37b46af500385132eb5881e93409fa9400639f0dc8a12cbe06a12e54862a -size 1503 +'use strict'; + +var Document = require('../doc/Document.js'); +var composeNode = require('./compose-node.js'); +var resolveEnd = require('./resolve-end.js'); +var resolveProps = require('./resolve-props.js'); + +function composeDoc(options, directives, { offset, start, value, end }, onError) { + const opts = Object.assign({ _directives: directives }, options); + const doc = new Document.Document(undefined, opts); + const ctx = { + atRoot: true, + directives: doc.directives, + options: doc.options, + schema: doc.schema + }; + const props = resolveProps.resolveProps(start, { + indicator: 'doc-start', + next: value ?? end?.[0], + offset, + onError, + startOnNewline: true + }); + if (props.found) { + doc.directives.docStart = true; + if (value && + (value.type === 'block-map' || value.type === 'block-seq') && + !props.hasNewline) + onError(props.end, 'MISSING_CHAR', 'Block collection cannot start on same line with directives-end marker'); + } + doc.contents = value + ? composeNode.composeNode(ctx, value, props, onError) + : composeNode.composeEmptyNode(ctx, props.end, start, null, props, onError); + const contentEnd = doc.contents.range[2]; + const re = resolveEnd.resolveEnd(end, contentEnd, false, onError); + if (re.comment) + doc.comment = re.comment; + doc.range = [offset, contentEnd, re.offset]; + return doc; +} + +exports.composeDoc = composeDoc; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.d.ts" index 104e40516475ab008b99fb8f80dbe5f2f58280ed..8d3e46738a92af7477b03fa2346c63b46ba88e1a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.d.ts" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d0cfb9dc6de8ada6d855cdce9450dfa64c96d51fc4f4bf07db60201e24969f14 -size 1184 +import type { Directives } from '../doc/directives.js'; +import type { ParsedNode } from '../nodes/Node.js'; +import type { ParseOptions } from '../options.js'; +import type { SourceToken, Token } from '../parse/cst.js'; +import type { Schema } from '../schema/Schema.js'; +import type { ComposeErrorHandler } from './composer.js'; +export interface ComposeContext { + atRoot: boolean; + directives: Directives; + options: Readonly>>; + schema: Readonly; +} +interface Props { + spaceBefore: boolean; + comment: string; + anchor: SourceToken | null; + tag: SourceToken | null; + end: number; +} +declare const CN: { + composeNode: typeof composeNode; + composeEmptyNode: typeof composeEmptyNode; +}; +export type ComposeNode = typeof CN; +export declare function composeNode(ctx: ComposeContext, token: Token, props: Props, onError: ComposeErrorHandler): ParsedNode; +export declare function composeEmptyNode(ctx: ComposeContext, offset: number, before: Token[] | undefined, pos: number | null, { spaceBefore, comment, anchor, tag, end }: Props, onError: ComposeErrorHandler): import("../index.js").Scalar.Parsed; +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.js" index cf0dd742ea39b12f8bd03509b261f48d4356824d..7eb1daf516c56e74c026b78a72332f5121270c31 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-node.js" @@ -1,3 +1,95 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f7de002635328be5427656be26bb883868fd0701a354eb18a92a1d6117bbe38 -size 3559 +'use strict'; + +var Alias = require('../nodes/Alias.js'); +var composeCollection = require('./compose-collection.js'); +var composeScalar = require('./compose-scalar.js'); +var resolveEnd = require('./resolve-end.js'); +var utilEmptyScalarPosition = require('./util-empty-scalar-position.js'); + +const CN = { composeNode, composeEmptyNode }; +function composeNode(ctx, token, props, onError) { + const { spaceBefore, comment, anchor, tag } = props; + let node; + let isSrcToken = true; + switch (token.type) { + case 'alias': + node = composeAlias(ctx, token, onError); + if (anchor || tag) + onError(token, 'ALIAS_PROPS', 'An alias node must not specify any properties'); + break; + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + case 'block-scalar': + node = composeScalar.composeScalar(ctx, token, tag, onError); + if (anchor) + node.anchor = anchor.source.substring(1); + break; + case 'block-map': + case 'block-seq': + case 'flow-collection': + node = composeCollection.composeCollection(CN, ctx, token, tag, onError); + if (anchor) + node.anchor = anchor.source.substring(1); + break; + default: { + const message = token.type === 'error' + ? token.message + : `Unsupported token (type: ${token.type})`; + onError(token, 'UNEXPECTED_TOKEN', message); + node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError); + isSrcToken = false; + } + } + if (anchor && node.anchor === '') + onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string'); + if (spaceBefore) + node.spaceBefore = true; + if (comment) { + if (token.type === 'scalar' && token.source === '') + node.comment = comment; + else + node.commentBefore = comment; + } + // @ts-expect-error Type checking misses meaning of isSrcToken + if (ctx.options.keepSourceTokens && isSrcToken) + node.srcToken = token; + return node; +} +function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) { + const token = { + type: 'scalar', + offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos), + indent: -1, + source: '' + }; + const node = composeScalar.composeScalar(ctx, token, tag, onError); + if (anchor) { + node.anchor = anchor.source.substring(1); + if (node.anchor === '') + onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string'); + } + if (spaceBefore) + node.spaceBefore = true; + if (comment) { + node.comment = comment; + node.range[2] = end; + } + return node; +} +function composeAlias({ options }, { offset, source, end }, onError) { + const alias = new Alias.Alias(source.substring(1)); + if (alias.source === '') + onError(offset, 'BAD_ALIAS', 'Alias cannot be an empty string'); + if (alias.source.endsWith(':')) + onError(offset + source.length - 1, 'BAD_ALIAS', 'Alias ending in : is ambiguous', true); + const valueEnd = offset + source.length; + const re = resolveEnd.resolveEnd(end, valueEnd, options.strict, onError); + alias.range = [offset, valueEnd, re.offset]; + if (re.comment) + alias.comment = re.comment; + return alias; +} + +exports.composeEmptyNode = composeEmptyNode; +exports.composeNode = composeNode; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.d.ts" index 0d3d9bd74eb5ca6f8fcd93e92f00dd885637f456..d5d0f79db8bc69833f96d62e7b7cf96718970b5d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3647dda1de049281a07cacd0bc3fb335b220aa0b0443451de3f3a7838d346c30 -size 405 +import { Scalar } from '../nodes/Scalar.js'; +import type { BlockScalar, FlowScalar, SourceToken } from '../parse/cst.js'; +import type { ComposeContext } from './compose-node.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function composeScalar(ctx: ComposeContext, token: FlowScalar | BlockScalar, tagToken: SourceToken | null, onError: ComposeErrorHandler): Scalar.Parsed; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.js" index 6ac205d79d99a43b344483ace55bd31e0b99d26c..d87bf9407535ed1efe70f08973ea5e2231936441 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/compose-scalar.js" @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:76cb636868be5e4d605b44c8e5abf9c944ff6b4548d079133ae455fe90ed3aea -size 3253 +'use strict'; + +var Node = require('../nodes/Node.js'); +var Scalar = require('../nodes/Scalar.js'); +var resolveBlockScalar = require('./resolve-block-scalar.js'); +var resolveFlowScalar = require('./resolve-flow-scalar.js'); + +function composeScalar(ctx, token, tagToken, onError) { + const { value, type, comment, range } = token.type === 'block-scalar' + ? resolveBlockScalar.resolveBlockScalar(token, ctx.options.strict, onError) + : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError); + const tagName = tagToken + ? ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg)) + : null; + const tag = tagToken && tagName + ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) + : token.type === 'scalar' + ? findScalarTagByTest(ctx, value, token, onError) + : ctx.schema[Node.SCALAR]; + let scalar; + try { + const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options); + scalar = Node.isScalar(res) ? res : new Scalar.Scalar(res); + } + catch (error) { + const msg = error instanceof Error ? error.message : String(error); + onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg); + scalar = new Scalar.Scalar(value); + } + scalar.range = range; + scalar.source = value; + if (type) + scalar.type = type; + if (tagName) + scalar.tag = tagName; + if (tag.format) + scalar.format = tag.format; + if (comment) + scalar.comment = comment; + return scalar; +} +function findScalarTagByName(schema, value, tagName, tagToken, onError) { + if (tagName === '!') + return schema[Node.SCALAR]; // non-specific tag + const matchWithTest = []; + for (const tag of schema.tags) { + if (!tag.collection && tag.tag === tagName) { + if (tag.default && tag.test) + matchWithTest.push(tag); + else + return tag; + } + } + for (const tag of matchWithTest) + if (tag.test?.test(value)) + return tag; + const kt = schema.knownTags[tagName]; + if (kt && !kt.collection) { + // Ensure that the known tag is available for stringifying, + // but does not get used by default. + schema.tags.push(Object.assign({}, kt, { default: false, test: undefined })); + return kt; + } + onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str'); + return schema[Node.SCALAR]; +} +function findScalarTagByTest({ directives, schema }, value, token, onError) { + const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[Node.SCALAR]; + if (schema.compat) { + const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ?? + schema[Node.SCALAR]; + if (tag.tag !== compat.tag) { + const ts = directives.tagString(tag.tag); + const cs = directives.tagString(compat.tag); + const msg = `Value may be parsed as either ${ts} or ${cs}`; + onError(token, 'TAG_RESOLVE_FAILED', msg, true); + } + } + return tag; +} + +exports.composeScalar = composeScalar; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.d.ts" index d6efc8d4bfd32e8e4b7103aa50cc467b6d7edaab..af51363c620a50d59bc5087271f22bc7c6c41dfa 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.d.ts" @@ -1,3 +1,62 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:581656e45b2555b764e2880a39859e25ac6c0c9a74cff83dd22d3859b2231982 -size 2610 +import { Directives } from '../doc/directives.js'; +import { Document } from '../doc/Document.js'; +import { ErrorCode, YAMLParseError, YAMLWarning } from '../errors.js'; +import { Range } from '../nodes/Node.js'; +import type { DocumentOptions, ParseOptions, SchemaOptions } from '../options.js'; +import type { Token } from '../parse/cst.js'; +type ErrorSource = number | [number, number] | Range | { + offset: number; + source?: string; +}; +export type ComposeErrorHandler = (source: ErrorSource, code: ErrorCode, message: string, warning?: boolean) => void; +/** + * Compose a stream of CST nodes into a stream of YAML Documents. + * + * ```ts + * import { Composer, Parser } from 'yaml' + * + * const src: string = ... + * const tokens = new Parser().parse(src) + * const docs = new Composer().compose(tokens) + * ``` + */ +export declare class Composer { + private directives; + private doc; + private options; + private atDirectives; + private prelude; + private errors; + private warnings; + constructor(options?: ParseOptions & DocumentOptions & SchemaOptions); + private onError; + private decorate; + /** + * Current stream status information. + * + * Mostly useful at the end of input for an empty stream. + */ + streamInfo(): { + comment: string; + directives: Directives; + errors: YAMLParseError[]; + warnings: YAMLWarning[]; + }; + /** + * Compose tokens into documents. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + compose(tokens: Iterable, forceDoc?: boolean, endOffset?: number): Generator, void, unknown>; + /** Advance the composer by one CST token. */ + next(token: Token): Generator, void, unknown>; + /** + * Call at end of input to yield any remaining document. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + end(forceDoc?: boolean, endOffset?: number): Generator, void, unknown>; +} +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.js" index 909a1872c594a6666defd9ecb71a96a8a55e8de3..508d896251f14ff3f7a9780fb3a26e8e9ba5ba7c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/composer.js" @@ -1,3 +1,221 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6a59d81da292405a0d31ecfa6288686d4e8c3a58c574bc4e8f375d3f20c909e3 -size 8548 +'use strict'; + +var directives = require('../doc/directives.js'); +var Document = require('../doc/Document.js'); +var errors = require('../errors.js'); +var Node = require('../nodes/Node.js'); +var composeDoc = require('./compose-doc.js'); +var resolveEnd = require('./resolve-end.js'); + +function getErrorPos(src) { + if (typeof src === 'number') + return [src, src + 1]; + if (Array.isArray(src)) + return src.length === 2 ? src : [src[0], src[1]]; + const { offset, source } = src; + return [offset, offset + (typeof source === 'string' ? source.length : 1)]; +} +function parsePrelude(prelude) { + let comment = ''; + let atComment = false; + let afterEmptyLine = false; + for (let i = 0; i < prelude.length; ++i) { + const source = prelude[i]; + switch (source[0]) { + case '#': + comment += + (comment === '' ? '' : afterEmptyLine ? '\n\n' : '\n') + + (source.substring(1) || ' '); + atComment = true; + afterEmptyLine = false; + break; + case '%': + if (prelude[i + 1]?.[0] !== '#') + i += 1; + atComment = false; + break; + default: + // This may be wrong after doc-end, but in that case it doesn't matter + if (!atComment) + afterEmptyLine = true; + atComment = false; + } + } + return { comment, afterEmptyLine }; +} +/** + * Compose a stream of CST nodes into a stream of YAML Documents. + * + * ```ts + * import { Composer, Parser } from 'yaml' + * + * const src: string = ... + * const tokens = new Parser().parse(src) + * const docs = new Composer().compose(tokens) + * ``` + */ +class Composer { + constructor(options = {}) { + this.doc = null; + this.atDirectives = false; + this.prelude = []; + this.errors = []; + this.warnings = []; + this.onError = (source, code, message, warning) => { + const pos = getErrorPos(source); + if (warning) + this.warnings.push(new errors.YAMLWarning(pos, code, message)); + else + this.errors.push(new errors.YAMLParseError(pos, code, message)); + }; + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + this.directives = new directives.Directives({ version: options.version || '1.2' }); + this.options = options; + } + decorate(doc, afterDoc) { + const { comment, afterEmptyLine } = parsePrelude(this.prelude); + //console.log({ dc: doc.comment, prelude, comment }) + if (comment) { + const dc = doc.contents; + if (afterDoc) { + doc.comment = doc.comment ? `${doc.comment}\n${comment}` : comment; + } + else if (afterEmptyLine || doc.directives.docStart || !dc) { + doc.commentBefore = comment; + } + else if (Node.isCollection(dc) && !dc.flow && dc.items.length > 0) { + let it = dc.items[0]; + if (Node.isPair(it)) + it = it.key; + const cb = it.commentBefore; + it.commentBefore = cb ? `${comment}\n${cb}` : comment; + } + else { + const cb = dc.commentBefore; + dc.commentBefore = cb ? `${comment}\n${cb}` : comment; + } + } + if (afterDoc) { + Array.prototype.push.apply(doc.errors, this.errors); + Array.prototype.push.apply(doc.warnings, this.warnings); + } + else { + doc.errors = this.errors; + doc.warnings = this.warnings; + } + this.prelude = []; + this.errors = []; + this.warnings = []; + } + /** + * Current stream status information. + * + * Mostly useful at the end of input for an empty stream. + */ + streamInfo() { + return { + comment: parsePrelude(this.prelude).comment, + directives: this.directives, + errors: this.errors, + warnings: this.warnings + }; + } + /** + * Compose tokens into documents. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + *compose(tokens, forceDoc = false, endOffset = -1) { + for (const token of tokens) + yield* this.next(token); + yield* this.end(forceDoc, endOffset); + } + /** Advance the composer by one CST token. */ + *next(token) { + if (process.env.LOG_STREAM) + console.dir(token, { depth: null }); + switch (token.type) { + case 'directive': + this.directives.add(token.source, (offset, message, warning) => { + const pos = getErrorPos(token); + pos[0] += offset; + this.onError(pos, 'BAD_DIRECTIVE', message, warning); + }); + this.prelude.push(token.source); + this.atDirectives = true; + break; + case 'document': { + const doc = composeDoc.composeDoc(this.options, this.directives, token, this.onError); + if (this.atDirectives && !doc.directives.docStart) + this.onError(token, 'MISSING_CHAR', 'Missing directives-end/doc-start indicator line'); + this.decorate(doc, false); + if (this.doc) + yield this.doc; + this.doc = doc; + this.atDirectives = false; + break; + } + case 'byte-order-mark': + case 'space': + break; + case 'comment': + case 'newline': + this.prelude.push(token.source); + break; + case 'error': { + const msg = token.source + ? `${token.message}: ${JSON.stringify(token.source)}` + : token.message; + const error = new errors.YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg); + if (this.atDirectives || !this.doc) + this.errors.push(error); + else + this.doc.errors.push(error); + break; + } + case 'doc-end': { + if (!this.doc) { + const msg = 'Unexpected doc-end without preceding document'; + this.errors.push(new errors.YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg)); + break; + } + this.doc.directives.docEnd = true; + const end = resolveEnd.resolveEnd(token.end, token.offset + token.source.length, this.doc.options.strict, this.onError); + this.decorate(this.doc, true); + if (end.comment) { + const dc = this.doc.comment; + this.doc.comment = dc ? `${dc}\n${end.comment}` : end.comment; + } + this.doc.range[2] = end.offset; + break; + } + default: + this.errors.push(new errors.YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', `Unsupported token ${token.type}`)); + } + } + /** + * Call at end of input to yield any remaining document. + * + * @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document. + * @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly. + */ + *end(forceDoc = false, endOffset = -1) { + if (this.doc) { + this.decorate(this.doc, true); + yield this.doc; + this.doc = null; + } + else if (forceDoc) { + const opts = Object.assign({ _directives: this.directives }, this.options); + const doc = new Document.Document(undefined, opts); + if (this.atDirectives) + this.onError(endOffset, 'MISSING_CHAR', 'Missing directives-end indicator line'); + doc.range = [0, endOffset, endOffset]; + this.decorate(doc, false); + yield doc; + } + } +} + +exports.Composer = Composer; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.d.ts" index 8382e74a4f004a341a9bc9281e9f44a1331d727c..dbcd3fa62d9574341071d5f06f954524b9427909 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:42af502f6d6a127e8a0caa6390fde0e5020cdcf7004917819dbc13dab4f6378b -size 477 +import type { ParsedNode } from '../nodes/Node.js'; +import { YAMLMap } from '../nodes/YAMLMap.js'; +import type { BlockMap } from '../parse/cst.js'; +import type { ComposeContext, ComposeNode } from './compose-node.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function resolveBlockMap({ composeNode, composeEmptyNode }: ComposeNode, ctx: ComposeContext, bm: BlockMap, onError: ComposeErrorHandler): YAMLMap.Parsed; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.js" index cbd6f647192a020a2bbe8434516f88fc1461d512..006dfaef827a4854e1ac21e45e3d022179f1d4e0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-map.js" @@ -1,3 +1,112 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:425992b520550d5421ff5c3876e5c91518d7e2be06718aebb143264326c951c9 -size 4891 +'use strict'; + +var Pair = require('../nodes/Pair.js'); +var YAMLMap = require('../nodes/YAMLMap.js'); +var resolveProps = require('./resolve-props.js'); +var utilContainsNewline = require('./util-contains-newline.js'); +var utilFlowIndentCheck = require('./util-flow-indent-check.js'); +var utilMapIncludes = require('./util-map-includes.js'); + +const startColMsg = 'All mapping items must start at the same column'; +function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError) { + const map = new YAMLMap.YAMLMap(ctx.schema); + if (ctx.atRoot) + ctx.atRoot = false; + let offset = bm.offset; + let commentEnd = null; + for (const collItem of bm.items) { + const { start, key, sep, value } = collItem; + // key properties + const keyProps = resolveProps.resolveProps(start, { + indicator: 'explicit-key-ind', + next: key ?? sep?.[0], + offset, + onError, + startOnNewline: true + }); + const implicitKey = !keyProps.found; + if (implicitKey) { + if (key) { + if (key.type === 'block-seq') + onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'A block sequence may not be used as an implicit map key'); + else if ('indent' in key && key.indent !== bm.indent) + onError(offset, 'BAD_INDENT', startColMsg); + } + if (!keyProps.anchor && !keyProps.tag && !sep) { + commentEnd = keyProps.end; + if (keyProps.comment) { + if (map.comment) + map.comment += '\n' + keyProps.comment; + else + map.comment = keyProps.comment; + } + continue; + } + if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) { + onError(key ?? start[start.length - 1], 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line'); + } + } + else if (keyProps.found?.indent !== bm.indent) { + onError(offset, 'BAD_INDENT', startColMsg); + } + // key value + const keyStart = keyProps.end; + const keyNode = key + ? composeNode(ctx, key, keyProps, onError) + : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError); + if (ctx.schema.compat) + utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError); + if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode)) + onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique'); + // value properties + const valueProps = resolveProps.resolveProps(sep ?? [], { + indicator: 'map-value-ind', + next: value, + offset: keyNode.range[2], + onError, + startOnNewline: !key || key.type === 'block-scalar' + }); + offset = valueProps.end; + if (valueProps.found) { + if (implicitKey) { + if (value?.type === 'block-map' && !valueProps.hasNewline) + onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'Nested mappings are not allowed in compact mappings'); + if (ctx.options.strict && + keyProps.start < valueProps.found.offset - 1024) + onError(keyNode.range, 'KEY_OVER_1024_CHARS', 'The : indicator must be at most 1024 chars after the start of an implicit block mapping key'); + } + // value value + const valueNode = value + ? composeNode(ctx, value, valueProps, onError) + : composeEmptyNode(ctx, offset, sep, null, valueProps, onError); + if (ctx.schema.compat) + utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError); + offset = valueNode.range[2]; + const pair = new Pair.Pair(keyNode, valueNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + map.items.push(pair); + } + else { + // key with no value + if (implicitKey) + onError(keyNode.range, 'MISSING_CHAR', 'Implicit map keys need to be followed by map values'); + if (valueProps.comment) { + if (keyNode.comment) + keyNode.comment += '\n' + valueProps.comment; + else + keyNode.comment = valueProps.comment; + } + const pair = new Pair.Pair(keyNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + map.items.push(pair); + } + } + if (commentEnd && commentEnd < offset) + onError(commentEnd, 'IMPOSSIBLE', 'Map comment with trailing content'); + map.range = [bm.offset, offset, commentEnd ?? offset]; + return map; +} + +exports.resolveBlockMap = resolveBlockMap; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts" index a7f06ac074461ac301ffe1f366340dab9e286a71..4855b193ece018cb918c6b7f5929422c4955544d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab62f8b62baeb2177a263f693428464698556570e08382d9f364f5ba8d58b954 -size 433 +import { Range } from '../nodes/Node.js'; +import { Scalar } from '../nodes/Scalar.js'; +import type { BlockScalar } from '../parse/cst.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function resolveBlockScalar(scalar: BlockScalar, strict: boolean, onError: ComposeErrorHandler): { + value: string; + type: Scalar.BLOCK_FOLDED | Scalar.BLOCK_LITERAL | null; + comment: string; + range: Range; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.js" index 8bf96b0dd6bd1a94559b93fe496c717f1a12bd2d..ba89f978f31898259fcde76d15aba183b2d68ace 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-scalar.js" @@ -1,3 +1,196 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:509bd69ef53e624ae4d12d45115c78ebcf0deecab025f6857868127312323ff7 -size 7283 +'use strict'; + +var Scalar = require('../nodes/Scalar.js'); + +function resolveBlockScalar(scalar, strict, onError) { + const start = scalar.offset; + const header = parseBlockScalarHeader(scalar, strict, onError); + if (!header) + return { value: '', type: null, comment: '', range: [start, start, start] }; + const type = header.mode === '>' ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL; + const lines = scalar.source ? splitLines(scalar.source) : []; + // determine the end of content & start of chomping + let chompStart = lines.length; + for (let i = lines.length - 1; i >= 0; --i) { + const content = lines[i][1]; + if (content === '' || content === '\r') + chompStart = i; + else + break; + } + // shortcut for empty contents + if (chompStart === 0) { + const value = header.chomp === '+' && lines.length > 0 + ? '\n'.repeat(Math.max(1, lines.length - 1)) + : ''; + let end = start + header.length; + if (scalar.source) + end += scalar.source.length; + return { value, type, comment: header.comment, range: [start, end, end] }; + } + // find the indentation level to trim from start + let trimIndent = scalar.indent + header.indent; + let offset = scalar.offset + header.length; + let contentStart = 0; + for (let i = 0; i < chompStart; ++i) { + const [indent, content] = lines[i]; + if (content === '' || content === '\r') { + if (header.indent === 0 && indent.length > trimIndent) + trimIndent = indent.length; + } + else { + if (indent.length < trimIndent) { + const message = 'Block scalars with more-indented leading empty lines must use an explicit indentation indicator'; + onError(offset + indent.length, 'MISSING_CHAR', message); + } + if (header.indent === 0) + trimIndent = indent.length; + contentStart = i; + break; + } + offset += indent.length + content.length + 1; + } + // include trailing more-indented empty lines in content + for (let i = lines.length - 1; i >= chompStart; --i) { + if (lines[i][0].length > trimIndent) + chompStart = i + 1; + } + let value = ''; + let sep = ''; + let prevMoreIndented = false; + // leading whitespace is kept intact + for (let i = 0; i < contentStart; ++i) + value += lines[i][0].slice(trimIndent) + '\n'; + for (let i = contentStart; i < chompStart; ++i) { + let [indent, content] = lines[i]; + offset += indent.length + content.length + 1; + const crlf = content[content.length - 1] === '\r'; + if (crlf) + content = content.slice(0, -1); + /* istanbul ignore if already caught in lexer */ + if (content && indent.length < trimIndent) { + const src = header.indent + ? 'explicit indentation indicator' + : 'first line'; + const message = `Block scalar lines must not be less indented than their ${src}`; + onError(offset - content.length - (crlf ? 2 : 1), 'BAD_INDENT', message); + indent = ''; + } + if (type === Scalar.Scalar.BLOCK_LITERAL) { + value += sep + indent.slice(trimIndent) + content; + sep = '\n'; + } + else if (indent.length > trimIndent || content[0] === '\t') { + // more-indented content within a folded block + if (sep === ' ') + sep = '\n'; + else if (!prevMoreIndented && sep === '\n') + sep = '\n\n'; + value += sep + indent.slice(trimIndent) + content; + sep = '\n'; + prevMoreIndented = true; + } + else if (content === '') { + // empty line + if (sep === '\n') + value += '\n'; + else + sep = '\n'; + } + else { + value += sep + content; + sep = ' '; + prevMoreIndented = false; + } + } + switch (header.chomp) { + case '-': + break; + case '+': + for (let i = chompStart; i < lines.length; ++i) + value += '\n' + lines[i][0].slice(trimIndent); + if (value[value.length - 1] !== '\n') + value += '\n'; + break; + default: + value += '\n'; + } + const end = start + header.length + scalar.source.length; + return { value, type, comment: header.comment, range: [start, end, end] }; +} +function parseBlockScalarHeader({ offset, props }, strict, onError) { + /* istanbul ignore if should not happen */ + if (props[0].type !== 'block-scalar-header') { + onError(props[0], 'IMPOSSIBLE', 'Block scalar header not found'); + return null; + } + const { source } = props[0]; + const mode = source[0]; + let indent = 0; + let chomp = ''; + let error = -1; + for (let i = 1; i < source.length; ++i) { + const ch = source[i]; + if (!chomp && (ch === '-' || ch === '+')) + chomp = ch; + else { + const n = Number(ch); + if (!indent && n) + indent = n; + else if (error === -1) + error = offset + i; + } + } + if (error !== -1) + onError(error, 'UNEXPECTED_TOKEN', `Block scalar header includes extra characters: ${source}`); + let hasSpace = false; + let comment = ''; + let length = source.length; + for (let i = 1; i < props.length; ++i) { + const token = props[i]; + switch (token.type) { + case 'space': + hasSpace = true; + // fallthrough + case 'newline': + length += token.source.length; + break; + case 'comment': + if (strict && !hasSpace) { + const message = 'Comments must be separated from other tokens by white space characters'; + onError(token, 'MISSING_CHAR', message); + } + length += token.source.length; + comment = token.source.substring(1); + break; + case 'error': + onError(token, 'UNEXPECTED_TOKEN', token.message); + length += token.source.length; + break; + /* istanbul ignore next should not happen */ + default: { + const message = `Unexpected token in block scalar header: ${token.type}`; + onError(token, 'UNEXPECTED_TOKEN', message); + const ts = token.source; + if (ts && typeof ts === 'string') + length += ts.length; + } + } + } + return { mode, indent, chomp, comment, length }; +} +/** @returns Array of lines split up as `[indent, content]` */ +function splitLines(source) { + const split = source.split(/\n( *)/); + const first = split[0]; + const m = first.match(/^( *)/); + const line0 = m?.[1] + ? [m[1], first.slice(m[1].length)] + : ['', first]; + const lines = [line0]; + for (let i = 1; i < split.length; i += 2) + lines.push([split[i], split[i + 1]]); + return lines; +} + +exports.resolveBlockScalar = resolveBlockScalar; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.d.ts" index ab024ad7a8d172a92b6cd74c2db14110793a943a..25ed55898b42c5a5406a7c822bce5a30b4d32e01 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a77857d922cbbfbd9fa99222059e41e4f8b93501978dcc763e61f6ef90ecb64e -size 438 +import { YAMLSeq } from '../nodes/YAMLSeq.js'; +import type { BlockSequence } from '../parse/cst.js'; +import type { ComposeContext, ComposeNode } from './compose-node.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function resolveBlockSeq({ composeNode, composeEmptyNode }: ComposeNode, ctx: ComposeContext, bs: BlockSequence, onError: ComposeErrorHandler): YAMLSeq.Parsed; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.js" index 40d7ea673b05bebe91836387b9936dc2c3186535..a6cabc45587bd100232e61e0e18dde85a2eda4c0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-block-seq.js" @@ -1,3 +1,47 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75b82ac3a210818f7d094ae852909a5556449c897aab2616778242e93c449a49 -size 1681 +'use strict'; + +var YAMLSeq = require('../nodes/YAMLSeq.js'); +var resolveProps = require('./resolve-props.js'); +var utilFlowIndentCheck = require('./util-flow-indent-check.js'); + +function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError) { + const seq = new YAMLSeq.YAMLSeq(ctx.schema); + if (ctx.atRoot) + ctx.atRoot = false; + let offset = bs.offset; + let commentEnd = null; + for (const { start, value } of bs.items) { + const props = resolveProps.resolveProps(start, { + indicator: 'seq-item-ind', + next: value, + offset, + onError, + startOnNewline: true + }); + if (!props.found) { + if (props.anchor || props.tag || value) { + if (value && value.type === 'block-seq') + onError(props.end, 'BAD_INDENT', 'All sequence items must start at the same column'); + else + onError(offset, 'MISSING_CHAR', 'Sequence item without - indicator'); + } + else { + commentEnd = props.end; + if (props.comment) + seq.comment = props.comment; + continue; + } + } + const node = value + ? composeNode(ctx, value, props, onError) + : composeEmptyNode(ctx, props.end, start, null, props, onError); + if (ctx.schema.compat) + utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError); + offset = node.range[2]; + seq.items.push(node); + } + seq.range = [bs.offset, offset, commentEnd ?? offset]; + return seq; +} + +exports.resolveBlockSeq = resolveBlockSeq; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.d.ts" index cac7f487212839007191cf2895bf39ba520f49da..bb2d0b897c2e18b8f09e0b91b598bb4eac9f24fb 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:04adaea21472dd7cc1a537217c9707ea8cb7de2b3e32daaf96afa1394b15a8bb -size 289 +import type { SourceToken } from '../parse/cst.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function resolveEnd(end: SourceToken[] | undefined, offset: number, reqSpace: boolean, onError: ComposeErrorHandler): { + comment: string; + offset: number; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.js" index 13ae60bda5c12f163047f04be126dbf2b36a95f8..3a583477acd5c1f1c653a7abc87f6052d68d7f43 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-end.js" @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:532bf56299183e75bb7c20db75321367c28393b66ecb8ffd540faedd9817f116 -size 1264 +'use strict'; + +function resolveEnd(end, offset, reqSpace, onError) { + let comment = ''; + if (end) { + let hasSpace = false; + let sep = ''; + for (const token of end) { + const { source, type } = token; + switch (type) { + case 'space': + hasSpace = true; + break; + case 'comment': { + if (reqSpace && !hasSpace) + onError(token, 'MISSING_CHAR', 'Comments must be separated from other tokens by white space characters'); + const cb = source.substring(1) || ' '; + if (!comment) + comment = cb; + else + comment += sep + cb; + sep = ''; + break; + } + case 'newline': + if (comment) + sep += source; + hasSpace = true; + break; + default: + onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${type} at node end`); + } + offset += source.length; + } + } + return { comment, offset }; +} + +exports.resolveEnd = resolveEnd; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts" index c351e5dd3968753f84ff014cdb1e002a2289a0fc..06d32f59ed9c9bc023d333b1e17ea76855c12bc8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e24f8a2c0dfa37583968cb6a58eed15f280a0c53b64d7f67d46362660df2c8b -size 600 +import { YAMLMap } from '../nodes/YAMLMap.js'; +import { YAMLSeq } from '../nodes/YAMLSeq.js'; +import type { FlowCollection } from '../parse/cst.js'; +import type { ComposeContext, ComposeNode } from './compose-node.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function resolveFlowCollection({ composeNode, composeEmptyNode }: ComposeNode, ctx: ComposeContext, fc: FlowCollection, onError: ComposeErrorHandler): YAMLMap.Parsed | YAMLSeq.Parsed; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.js" index b164b383d0c7d7276b8c56fd1af53b85474bb32e..54eb2a5259fdd78e421d4dc63fb675bf6ea82f46 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-collection.js" @@ -1,3 +1,202 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:933afb1d6b044c9811b9c91f954029ab41a39897a5df4c7be3394fe2021408a7 -size 8584 +'use strict'; + +var Node = require('../nodes/Node.js'); +var Pair = require('../nodes/Pair.js'); +var YAMLMap = require('../nodes/YAMLMap.js'); +var YAMLSeq = require('../nodes/YAMLSeq.js'); +var resolveEnd = require('./resolve-end.js'); +var resolveProps = require('./resolve-props.js'); +var utilContainsNewline = require('./util-contains-newline.js'); +var utilMapIncludes = require('./util-map-includes.js'); + +const blockMsg = 'Block collections are not allowed within flow collections'; +const isBlock = (token) => token && (token.type === 'block-map' || token.type === 'block-seq'); +function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError) { + const isMap = fc.start.source === '{'; + const fcName = isMap ? 'flow map' : 'flow sequence'; + const coll = isMap + ? new YAMLMap.YAMLMap(ctx.schema) + : new YAMLSeq.YAMLSeq(ctx.schema); + coll.flow = true; + const atRoot = ctx.atRoot; + if (atRoot) + ctx.atRoot = false; + let offset = fc.offset + fc.start.source.length; + for (let i = 0; i < fc.items.length; ++i) { + const collItem = fc.items[i]; + const { start, key, sep, value } = collItem; + const props = resolveProps.resolveProps(start, { + flow: fcName, + indicator: 'explicit-key-ind', + next: key ?? sep?.[0], + offset, + onError, + startOnNewline: false + }); + if (!props.found) { + if (!props.anchor && !props.tag && !sep && !value) { + if (i === 0 && props.comma) + onError(props.comma, 'UNEXPECTED_TOKEN', `Unexpected , in ${fcName}`); + else if (i < fc.items.length - 1) + onError(props.start, 'UNEXPECTED_TOKEN', `Unexpected empty item in ${fcName}`); + if (props.comment) { + if (coll.comment) + coll.comment += '\n' + props.comment; + else + coll.comment = props.comment; + } + offset = props.end; + continue; + } + if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key)) + onError(key, // checked by containsNewline() + 'MULTILINE_IMPLICIT_KEY', 'Implicit keys of flow sequence pairs need to be on a single line'); + } + if (i === 0) { + if (props.comma) + onError(props.comma, 'UNEXPECTED_TOKEN', `Unexpected , in ${fcName}`); + } + else { + if (!props.comma) + onError(props.start, 'MISSING_CHAR', `Missing , between ${fcName} items`); + if (props.comment) { + let prevItemComment = ''; + loop: for (const st of start) { + switch (st.type) { + case 'comma': + case 'space': + break; + case 'comment': + prevItemComment = st.source.substring(1); + break loop; + default: + break loop; + } + } + if (prevItemComment) { + let prev = coll.items[coll.items.length - 1]; + if (Node.isPair(prev)) + prev = prev.value ?? prev.key; + if (prev.comment) + prev.comment += '\n' + prevItemComment; + else + prev.comment = prevItemComment; + props.comment = props.comment.substring(prevItemComment.length + 1); + } + } + } + if (!isMap && !sep && !props.found) { + // item is a value in a seq + // → key & sep are empty, start does not include ? or : + const valueNode = value + ? composeNode(ctx, value, props, onError) + : composeEmptyNode(ctx, props.end, sep, null, props, onError); + coll.items.push(valueNode); + offset = valueNode.range[2]; + if (isBlock(value)) + onError(valueNode.range, 'BLOCK_IN_FLOW', blockMsg); + } + else { + // item is a key+value pair + // key value + const keyStart = props.end; + const keyNode = key + ? composeNode(ctx, key, props, onError) + : composeEmptyNode(ctx, keyStart, start, null, props, onError); + if (isBlock(key)) + onError(keyNode.range, 'BLOCK_IN_FLOW', blockMsg); + // value properties + const valueProps = resolveProps.resolveProps(sep ?? [], { + flow: fcName, + indicator: 'map-value-ind', + next: value, + offset: keyNode.range[2], + onError, + startOnNewline: false + }); + if (valueProps.found) { + if (!isMap && !props.found && ctx.options.strict) { + if (sep) + for (const st of sep) { + if (st === valueProps.found) + break; + if (st.type === 'newline') { + onError(st, 'MULTILINE_IMPLICIT_KEY', 'Implicit keys of flow sequence pairs need to be on a single line'); + break; + } + } + if (props.start < valueProps.found.offset - 1024) + onError(valueProps.found, 'KEY_OVER_1024_CHARS', 'The : indicator must be at most 1024 chars after the start of an implicit flow sequence key'); + } + } + else if (value) { + if ('source' in value && value.source && value.source[0] === ':') + onError(value, 'MISSING_CHAR', `Missing space after : in ${fcName}`); + else + onError(valueProps.start, 'MISSING_CHAR', `Missing , or : between ${fcName} items`); + } + // value value + const valueNode = value + ? composeNode(ctx, value, valueProps, onError) + : valueProps.found + ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) + : null; + if (valueNode) { + if (isBlock(value)) + onError(valueNode.range, 'BLOCK_IN_FLOW', blockMsg); + } + else if (valueProps.comment) { + if (keyNode.comment) + keyNode.comment += '\n' + valueProps.comment; + else + keyNode.comment = valueProps.comment; + } + const pair = new Pair.Pair(keyNode, valueNode); + if (ctx.options.keepSourceTokens) + pair.srcToken = collItem; + if (isMap) { + const map = coll; + if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode)) + onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique'); + map.items.push(pair); + } + else { + const map = new YAMLMap.YAMLMap(ctx.schema); + map.flow = true; + map.items.push(pair); + coll.items.push(map); + } + offset = valueNode ? valueNode.range[2] : valueProps.end; + } + } + const expectedEnd = isMap ? '}' : ']'; + const [ce, ...ee] = fc.end; + let cePos = offset; + if (ce && ce.source === expectedEnd) + cePos = ce.offset + ce.source.length; + else { + const name = fcName[0].toUpperCase() + fcName.substring(1); + const msg = atRoot + ? `${name} must end with a ${expectedEnd}` + : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`; + onError(offset, atRoot ? 'MISSING_CHAR' : 'BAD_INDENT', msg); + if (ce && ce.source.length !== 1) + ee.unshift(ce); + } + if (ee.length > 0) { + const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError); + if (end.comment) { + if (coll.comment) + coll.comment += '\n' + end.comment; + else + coll.comment = end.comment; + } + coll.range = [fc.offset, cePos, end.offset]; + } + else { + coll.range = [fc.offset, cePos, cePos]; + } + return coll; +} + +exports.resolveFlowCollection = resolveFlowCollection; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts" index ec9cbc92d80dbe6ebeb5ff08009a1fb6f0286707..0c9204dc50ab79943304b8244972c1f987d34b86 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db0fa8bb8db1cbe178bbe6850b2637ad2acea9c84cd353a4ab0a132f77aa70e9 -size 444 +import { Range } from '../nodes/Node.js'; +import { Scalar } from '../nodes/Scalar.js'; +import type { FlowScalar } from '../parse/cst.js'; +import type { ComposeErrorHandler } from './composer.js'; +export declare function resolveFlowScalar(scalar: FlowScalar, strict: boolean, onError: ComposeErrorHandler): { + value: string; + type: Scalar.PLAIN | Scalar.QUOTE_DOUBLE | Scalar.QUOTE_SINGLE | null; + comment: string; + range: Range; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.js" index 610f7a9f05959355ef8063088711123dea221e1d..cf6257ce5f29b5a200896cad653471f8b52bd12d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-flow-scalar.js" @@ -1,3 +1,225 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09a2f4ac4e3bdf089f1e3571dfad08fc13dcd564c508b46d6f97d6fd9a663705 -size 7112 +'use strict'; + +var Scalar = require('../nodes/Scalar.js'); +var resolveEnd = require('./resolve-end.js'); + +function resolveFlowScalar(scalar, strict, onError) { + const { offset, type, source, end } = scalar; + let _type; + let value; + const _onError = (rel, code, msg) => onError(offset + rel, code, msg); + switch (type) { + case 'scalar': + _type = Scalar.Scalar.PLAIN; + value = plainValue(source, _onError); + break; + case 'single-quoted-scalar': + _type = Scalar.Scalar.QUOTE_SINGLE; + value = singleQuotedValue(source, _onError); + break; + case 'double-quoted-scalar': + _type = Scalar.Scalar.QUOTE_DOUBLE; + value = doubleQuotedValue(source, _onError); + break; + /* istanbul ignore next should not happen */ + default: + onError(scalar, 'UNEXPECTED_TOKEN', `Expected a flow scalar value, but found: ${type}`); + return { + value: '', + type: null, + comment: '', + range: [offset, offset + source.length, offset + source.length] + }; + } + const valueEnd = offset + source.length; + const re = resolveEnd.resolveEnd(end, valueEnd, strict, onError); + return { + value, + type: _type, + comment: re.comment, + range: [offset, valueEnd, re.offset] + }; +} +function plainValue(source, onError) { + let badChar = ''; + switch (source[0]) { + /* istanbul ignore next should not happen */ + case '\t': + badChar = 'a tab character'; + break; + case ',': + badChar = 'flow indicator character ,'; + break; + case '%': + badChar = 'directive indicator character %'; + break; + case '|': + case '>': { + badChar = `block scalar indicator ${source[0]}`; + break; + } + case '@': + case '`': { + badChar = `reserved character ${source[0]}`; + break; + } + } + if (badChar) + onError(0, 'BAD_SCALAR_START', `Plain value cannot start with ${badChar}`); + return foldLines(source); +} +function singleQuotedValue(source, onError) { + if (source[source.length - 1] !== "'" || source.length === 1) + onError(source.length, 'MISSING_CHAR', "Missing closing 'quote"); + return foldLines(source.slice(1, -1)).replace(/''/g, "'"); +} +function foldLines(source) { + /** + * The negative lookbehind here and in the `re` RegExp is to + * prevent causing a polynomial search time in certain cases. + * + * The try-catch is for Safari, which doesn't support this yet: + * https://caniuse.com/js-regexp-lookbehind + */ + let first, line; + try { + first = new RegExp('(.*?)(? wsStart ? source.slice(wsStart, i + 1) : ch; + } + else { + res += ch; + } + } + if (source[source.length - 1] !== '"' || source.length === 1) + onError(source.length, 'MISSING_CHAR', 'Missing closing "quote'); + return res; +} +/** + * Fold a single newline into a space, multiple newlines to N - 1 newlines. + * Presumes `source[offset] === '\n'` + */ +function foldNewline(source, offset) { + let fold = ''; + let ch = source[offset + 1]; + while (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') { + if (ch === '\r' && source[offset + 2] !== '\n') + break; + if (ch === '\n') + fold += '\n'; + offset += 1; + ch = source[offset + 1]; + } + if (!fold) + fold = ' '; + return { fold, offset }; +} +const escapeCodes = { + '0': '\0', + a: '\x07', + b: '\b', + e: '\x1b', + f: '\f', + n: '\n', + r: '\r', + t: '\t', + v: '\v', + N: '\u0085', + _: '\u00a0', + L: '\u2028', + P: '\u2029', + ' ': ' ', + '"': '"', + '/': '/', + '\\': '\\', + '\t': '\t' +}; +function parseCharCode(source, offset, length, onError) { + const cc = source.substr(offset, length); + const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc); + const code = ok ? parseInt(cc, 16) : NaN; + if (isNaN(code)) { + const raw = source.substr(offset - 2, length + 2); + onError(offset - 2, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`); + return raw; + } + return String.fromCodePoint(code); +} + +exports.resolveFlowScalar = resolveFlowScalar; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.d.ts" index 440ffac705f0850e55d27e9853b8dbc6769ab3cd..fba44cf7910877af9c11b44b484fff23b5154053 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.d.ts" @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:826bb49dce36417e508d74fc334bf245eccbfc463c41bb178d846f726b6d70a2 -size 806 +import type { SourceToken, Token } from '../parse/cst.js'; +import type { ComposeErrorHandler } from './composer.js'; +export interface ResolvePropsArg { + flow?: 'flow map' | 'flow sequence'; + indicator: 'doc-start' | 'explicit-key-ind' | 'map-value-ind' | 'seq-item-ind'; + next: Token | null | undefined; + offset: number; + onError: ComposeErrorHandler; + startOnNewline: boolean; +} +export declare function resolveProps(tokens: SourceToken[], { flow, indicator, next, offset, onError, startOnNewline }: ResolvePropsArg): { + comma: SourceToken | null; + found: SourceToken | null; + spaceBefore: boolean; + comment: string; + hasNewline: boolean; + hasNewlineAfterProp: boolean; + anchor: SourceToken | null; + tag: SourceToken | null; + end: number; + start: number; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.js" index 29b3626612a065f4eb9931c595eecd4e376ea128..bc2ef22d0dfc5163fe8a5adda13ed50af13b12c4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/resolve-props.js" @@ -1,3 +1,136 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5a4aafcd2e0d8d05cfcb3a2c91a4edf63d66414bf820558343caa6b97f3babc -size 5044 +'use strict'; + +function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnNewline }) { + let spaceBefore = false; + let atNewline = startOnNewline; + let hasSpace = startOnNewline; + let comment = ''; + let commentSep = ''; + let hasNewline = false; + let hasNewlineAfterProp = false; + let reqSpace = false; + let anchor = null; + let tag = null; + let comma = null; + let found = null; + let start = null; + for (const token of tokens) { + if (reqSpace) { + if (token.type !== 'space' && + token.type !== 'newline' && + token.type !== 'comma') + onError(token.offset, 'MISSING_CHAR', 'Tags and anchors must be separated from the next token by white space'); + reqSpace = false; + } + switch (token.type) { + case 'space': + // At the doc level, tabs at line start may be parsed + // as leading white space rather than indentation. + // In a flow collection, only the parser handles indent. + if (!flow && + atNewline && + indicator !== 'doc-start' && + token.source[0] === '\t') + onError(token, 'TAB_AS_INDENT', 'Tabs are not allowed as indentation'); + hasSpace = true; + break; + case 'comment': { + if (!hasSpace) + onError(token, 'MISSING_CHAR', 'Comments must be separated from other tokens by white space characters'); + const cb = token.source.substring(1) || ' '; + if (!comment) + comment = cb; + else + comment += commentSep + cb; + commentSep = ''; + atNewline = false; + break; + } + case 'newline': + if (atNewline) { + if (comment) + comment += token.source; + else + spaceBefore = true; + } + else + commentSep += token.source; + atNewline = true; + hasNewline = true; + if (anchor || tag) + hasNewlineAfterProp = true; + hasSpace = true; + break; + case 'anchor': + if (anchor) + onError(token, 'MULTIPLE_ANCHORS', 'A node can have at most one anchor'); + if (token.source.endsWith(':')) + onError(token.offset + token.source.length - 1, 'BAD_ALIAS', 'Anchor ending in : is ambiguous', true); + anchor = token; + if (start === null) + start = token.offset; + atNewline = false; + hasSpace = false; + reqSpace = true; + break; + case 'tag': { + if (tag) + onError(token, 'MULTIPLE_TAGS', 'A node can have at most one tag'); + tag = token; + if (start === null) + start = token.offset; + atNewline = false; + hasSpace = false; + reqSpace = true; + break; + } + case indicator: + // Could here handle preceding comments differently + if (anchor || tag) + onError(token, 'BAD_PROP_ORDER', `Anchors and tags must be after the ${token.source} indicator`); + if (found) + onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${token.source} in ${flow ?? 'collection'}`); + found = token; + atNewline = false; + hasSpace = false; + break; + case 'comma': + if (flow) { + if (comma) + onError(token, 'UNEXPECTED_TOKEN', `Unexpected , in ${flow}`); + comma = token; + atNewline = false; + hasSpace = false; + break; + } + // else fallthrough + default: + onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${token.type} token`); + atNewline = false; + hasSpace = false; + } + } + const last = tokens[tokens.length - 1]; + const end = last ? last.offset + last.source.length : offset; + if (reqSpace && + next && + next.type !== 'space' && + next.type !== 'newline' && + next.type !== 'comma' && + (next.type !== 'scalar' || next.source !== '')) + onError(next.offset, 'MISSING_CHAR', 'Tags and anchors must be separated from the next token by white space'); + return { + comma, + found, + spaceBefore, + comment, + hasNewline, + hasNewlineAfterProp, + anchor, + tag, + end, + start: start ?? end + }; +} + +exports.resolveProps = resolveProps; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.d.ts" index 7c90c7d43a4e1a088de037690b0f9b772f686464..8155be0a5a9d2fcb03aa3c27b7dc282f34fefa72 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0ede5c86526ebad38c90f5cc03cd2d311d8eec9b4cb15cb347180301b9f3f8c -size 134 +import type { Token } from '../parse/cst.js'; +export declare function containsNewline(key: Token | null | undefined): boolean | null; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.js" index 967bde2892e4d02cd92babe7a6ac8e23d6a4b74e..e7aa82d87c523a3e7927609533a87c85a28f4439 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-contains-newline.js" @@ -1,3 +1,36 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:60182618fc9fa669e74ab74f4231c15b5d24bc52ab0a419684bb827a00d69be6 -size 1081 +'use strict'; + +function containsNewline(key) { + if (!key) + return null; + switch (key.type) { + case 'alias': + case 'scalar': + case 'double-quoted-scalar': + case 'single-quoted-scalar': + if (key.source.includes('\n')) + return true; + if (key.end) + for (const st of key.end) + if (st.type === 'newline') + return true; + return false; + case 'flow-collection': + for (const it of key.items) { + for (const st of it.start) + if (st.type === 'newline') + return true; + if (it.sep) + for (const st of it.sep) + if (st.type === 'newline') + return true; + if (containsNewline(it.key) || containsNewline(it.value)) + return true; + } + return false; + default: + return true; + } +} + +exports.containsNewline = containsNewline; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts" index 22f075017ecd67043dc3c6e8e7f52bc4df415bd8..90499b85c4ea661871398b510c07cfad66738d48 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cec3ff72ff4f8d4c8311d4ce3a27032a2d2c1509b0aac863e677d9642bbceb79 -size 164 +import type { Token } from '../parse/cst.js'; +export declare function emptyScalarPosition(offset: number, before: Token[] | undefined, pos: number | null): number; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.js" index c078b03d39554894c60102827fc01b5cae23e227..b2cd8499939e2c5244f705dd5b059816ecd183d0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-empty-scalar-position.js" @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cdd64927e5d5e0621c7113642704013092b81c97695d55c0712efd3abdf4e9ad -size 871 +'use strict'; + +function emptyScalarPosition(offset, before, pos) { + if (before) { + if (pos === null) + pos = before.length; + for (let i = pos - 1; i >= 0; --i) { + let st = before[i]; + switch (st.type) { + case 'space': + case 'comment': + case 'newline': + offset -= st.source.length; + continue; + } + // Technically, an empty scalar is immediately after the last non-empty + // node, but it's more useful to place it after any whitespace. + st = before[++i]; + while (st?.type === 'space') { + offset += st.source.length; + st = before[++i]; + } + break; + } + } + return offset; +} + +exports.emptyScalarPosition = emptyScalarPosition; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts" index 631895e9d212b2b67459c2cef55358e0b116758a..64ed1fcb6847da6f62111a450942da20fe773074 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5fa59a8412d1aaa31662efe51167088fb1f87bcda9bc2244e3cc7ba4edc415b4 -size 211 +import { Token } from '../parse/cst'; +import { ComposeErrorHandler } from './composer'; +export declare function flowIndentCheck(indent: number, fc: Token | null | undefined, onError: ComposeErrorHandler): void; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.js" index f2171b336dcbd6c82b7b8141e0916a423f9c017b..1e6b06f8ecab2c4f841d138c0f94555ae5256e68 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-flow-indent-check.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7c0c9837a1f828de19eb3ee0947dff39c4f69222c762aed9fa2fe14fc46ee3e -size 547 +'use strict'; + +var utilContainsNewline = require('./util-contains-newline.js'); + +function flowIndentCheck(indent, fc, onError) { + if (fc?.type === 'flow-collection') { + const end = fc.end[0]; + if (end.indent === indent && + (end.source === ']' || end.source === '}') && + utilContainsNewline.containsNewline(fc)) { + const msg = 'Flow end indicator should be more indented than parent'; + onError(end, 'BAD_INDENT', msg, true); + } + } +} + +exports.flowIndentCheck = flowIndentCheck; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.d.ts" index f61d34979191104e470c16c38eea79007c7745ac..5d2c4b310e4b6b7a4b406501ef673745d25ba300 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88ceba8ca94ae19d43433e564a8acf72155b5d6e70502fa7b497bf2fc51954ad -size 245 +import { ParsedNode } from '../nodes/Node'; +import { Pair } from '../nodes/Pair'; +import { ComposeContext } from './compose-node'; +export declare function mapIncludes(ctx: ComposeContext, items: Pair[], search: ParsedNode): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.js" index 73893bdae5fe946eda0e7fff243648f3d464c94a..ab03be1e765a2ce4f6967afa0a0246f54b88f641 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/compose/util-map-includes.js" @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0fa3819c5583fc5e457d354d01d65ba812f728dc462b43ff624cc1c7320debf -size 558 +'use strict'; + +var Node = require('../nodes/Node.js'); + +function mapIncludes(ctx, items, search) { + const { uniqueKeys } = ctx.options; + if (uniqueKeys === false) + return false; + const isEqual = typeof uniqueKeys === 'function' + ? uniqueKeys + : (a, b) => a === b || + (Node.isScalar(a) && + Node.isScalar(b) && + a.value === b.value && + !(a.value === '<<' && ctx.schema.merge)); + return items.some(pair => isEqual(pair.key, search)); +} + +exports.mapIncludes = mapIncludes; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.d.ts" index 1da179add3951d259ea6e05721dfa929d177d021..cfdefd7f41f23a9684f63deb6facfa1a05244abe 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.d.ts" @@ -1,3 +1,139 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:284147c679272283a4bea7ccaecbbab198bb1854e19269b2e59d4b5cedd5894a -size 6186 +import type { YAMLError, YAMLWarning } from '../errors.js'; +import { Alias } from '../nodes/Alias.js'; +import { Node, NodeType, NODE_TYPE, ParsedNode, Range } from '../nodes/Node.js'; +import { Pair } from '../nodes/Pair.js'; +import type { Scalar } from '../nodes/Scalar.js'; +import type { YAMLMap } from '../nodes/YAMLMap.js'; +import type { YAMLSeq } from '../nodes/YAMLSeq.js'; +import type { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions, ToStringOptions } from '../options.js'; +import { Schema } from '../schema/Schema.js'; +import { Directives } from './directives.js'; +export type Replacer = any[] | ((key: any, value: any) => unknown); +export declare namespace Document { + interface Parsed extends Document { + directives: Directives; + range: Range; + } +} +export declare class Document { + readonly [NODE_TYPE]: symbol; + /** A comment before this Document */ + commentBefore: string | null; + /** A comment immediately after this Document */ + comment: string | null; + /** The document contents. */ + contents: T | null; + directives?: Directives; + /** Errors encountered during parsing. */ + errors: YAMLError[]; + options: Required>; + /** + * The `[start, value-end, node-end]` character offsets for the part of the + * source parsed into this document (undefined if not parsed). The `value-end` + * and `node-end` positions are themselves not included in their respective + * ranges. + */ + range?: Range; + /** The schema used with the document. Use `setSchema()` to change. */ + schema: Schema; + /** Warnings encountered during parsing. */ + warnings: YAMLWarning[]; + /** + * @param value - The initial value for the document, which will be wrapped + * in a Node container. + */ + constructor(value?: any, options?: DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions); + constructor(value: any, replacer: null | Replacer, options?: DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions); + /** + * Create a deep copy of this Document and its contents. + * + * Custom Node values that inherit from `Object` still refer to their original instances. + */ + clone(): Document; + /** Adds a value to the document. */ + add(value: any): void; + /** Adds a value to the document. */ + addIn(path: Iterable, value: unknown): void; + /** + * Create a new `Alias` node, ensuring that the target `node` has the required anchor. + * + * If `node` already has an anchor, `name` is ignored. + * Otherwise, the `node.anchor` value will be set to `name`, + * or if an anchor with that name is already present in the document, + * `name` will be used as a prefix for a new unique anchor. + * If `name` is undefined, the generated anchor will use 'a' as a prefix. + */ + createAlias(node: Scalar | YAMLMap | YAMLSeq, name?: string): Alias; + /** + * Convert any value into a `Node` using the current schema, recursively + * turning objects into collections. + */ + createNode(value: T, options?: CreateNodeOptions): NodeType; + createNode(value: T, replacer: Replacer | CreateNodeOptions | null, options?: CreateNodeOptions): NodeType; + /** + * Convert a key and a value into a `Pair` using the current schema, + * recursively wrapping all values as `Scalar` or `Collection` nodes. + */ + createPair(key: unknown, value: unknown, options?: CreateNodeOptions): Pair; + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + delete(key: unknown): boolean; + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + deleteIn(path: Iterable | null): boolean; + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + get(key: unknown, keepScalar?: boolean): unknown; + /** + * Returns item at `path`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path: Iterable | null, keepScalar?: boolean): unknown; + /** + * Checks if the document includes a value with the key `key`. + */ + has(key: unknown): boolean; + /** + * Checks if the document includes a value at `path`. + */ + hasIn(path: Iterable | null): boolean; + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + set(key: any, value: unknown): void; + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path: Iterable | null, value: unknown): void; + /** + * Change the YAML version and schema used by the document. + * A `null` version disables support for directives, explicit tags, anchors, and aliases. + * It also requires the `schema` option to be given as a `Schema` instance value. + * + * Overrides all previously set schema options. + */ + setSchema(version: '1.1' | '1.2' | 'next' | null, options?: SchemaOptions): void; + /** A plain JavaScript representation of the document `contents`. */ + toJS(opt?: ToJSOptions & { + [ignored: string]: unknown; + }): any; + /** + * A JSON representation of the document `contents`. + * + * @param jsonArg Used by `JSON.stringify` to indicate the array index or + * property name. + */ + toJSON(jsonArg?: string | null, onAnchor?: ToJSOptions['onAnchor']): any; + /** A YAML representation of the document. */ + toString(options?: ToStringOptions): string; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.js" index a155eaa15c9d6af042133803086a642bcd17fa25..3df7bb4c3ff2adf140ab217bac65d3b64f64f6dd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/Document.js" @@ -1,3 +1,334 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc8b10202128adf926081278f68e9579aaac811995842afa931aa9522c08a617 -size 12722 +'use strict'; + +var Alias = require('../nodes/Alias.js'); +var Collection = require('../nodes/Collection.js'); +var Node = require('../nodes/Node.js'); +var Pair = require('../nodes/Pair.js'); +var toJS = require('../nodes/toJS.js'); +var Schema = require('../schema/Schema.js'); +var stringify = require('../stringify/stringify.js'); +var stringifyDocument = require('../stringify/stringifyDocument.js'); +var anchors = require('./anchors.js'); +var applyReviver = require('./applyReviver.js'); +var createNode = require('./createNode.js'); +var directives = require('./directives.js'); + +class Document { + constructor(value, replacer, options) { + /** A comment before this Document */ + this.commentBefore = null; + /** A comment immediately after this Document */ + this.comment = null; + /** Errors encountered during parsing. */ + this.errors = []; + /** Warnings encountered during parsing. */ + this.warnings = []; + Object.defineProperty(this, Node.NODE_TYPE, { value: Node.DOC }); + let _replacer = null; + if (typeof replacer === 'function' || Array.isArray(replacer)) { + _replacer = replacer; + } + else if (options === undefined && replacer) { + options = replacer; + replacer = undefined; + } + const opt = Object.assign({ + intAsBigInt: false, + keepSourceTokens: false, + logLevel: 'warn', + prettyErrors: true, + strict: true, + uniqueKeys: true, + version: '1.2' + }, options); + this.options = opt; + let { version } = opt; + if (options?._directives) { + this.directives = options._directives.atDocument(); + if (this.directives.yaml.explicit) + version = this.directives.yaml.version; + } + else + this.directives = new directives.Directives({ version }); + this.setSchema(version, options); + if (value === undefined) + this.contents = null; + else { + this.contents = this.createNode(value, _replacer, options); + } + } + /** + * Create a deep copy of this Document and its contents. + * + * Custom Node values that inherit from `Object` still refer to their original instances. + */ + clone() { + const copy = Object.create(Document.prototype, { + [Node.NODE_TYPE]: { value: Node.DOC } + }); + copy.commentBefore = this.commentBefore; + copy.comment = this.comment; + copy.errors = this.errors.slice(); + copy.warnings = this.warnings.slice(); + copy.options = Object.assign({}, this.options); + if (this.directives) + copy.directives = this.directives.clone(); + copy.schema = this.schema.clone(); + copy.contents = Node.isNode(this.contents) + ? this.contents.clone(copy.schema) + : this.contents; + if (this.range) + copy.range = this.range.slice(); + return copy; + } + /** Adds a value to the document. */ + add(value) { + if (assertCollection(this.contents)) + this.contents.add(value); + } + /** Adds a value to the document. */ + addIn(path, value) { + if (assertCollection(this.contents)) + this.contents.addIn(path, value); + } + /** + * Create a new `Alias` node, ensuring that the target `node` has the required anchor. + * + * If `node` already has an anchor, `name` is ignored. + * Otherwise, the `node.anchor` value will be set to `name`, + * or if an anchor with that name is already present in the document, + * `name` will be used as a prefix for a new unique anchor. + * If `name` is undefined, the generated anchor will use 'a' as a prefix. + */ + createAlias(node, name) { + if (!node.anchor) { + const prev = anchors.anchorNames(this); + node.anchor = + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + !name || prev.has(name) ? anchors.findNewAnchor(name || 'a', prev) : name; + } + return new Alias.Alias(node.anchor); + } + createNode(value, replacer, options) { + let _replacer = undefined; + if (typeof replacer === 'function') { + value = replacer.call({ '': value }, '', value); + _replacer = replacer; + } + else if (Array.isArray(replacer)) { + const keyToStr = (v) => typeof v === 'number' || v instanceof String || v instanceof Number; + const asStr = replacer.filter(keyToStr).map(String); + if (asStr.length > 0) + replacer = replacer.concat(asStr); + _replacer = replacer; + } + else if (options === undefined && replacer) { + options = replacer; + replacer = undefined; + } + const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options ?? {}; + const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(this, + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + anchorPrefix || 'a'); + const ctx = { + aliasDuplicateObjects: aliasDuplicateObjects ?? true, + keepUndefined: keepUndefined ?? false, + onAnchor, + onTagObj, + replacer: _replacer, + schema: this.schema, + sourceObjects + }; + const node = createNode.createNode(value, tag, ctx); + if (flow && Node.isCollection(node)) + node.flow = true; + setAnchors(); + return node; + } + /** + * Convert a key and a value into a `Pair` using the current schema, + * recursively wrapping all values as `Scalar` or `Collection` nodes. + */ + createPair(key, value, options = {}) { + const k = this.createNode(key, null, options); + const v = this.createNode(value, null, options); + return new Pair.Pair(k, v); + } + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + delete(key) { + return assertCollection(this.contents) ? this.contents.delete(key) : false; + } + /** + * Removes a value from the document. + * @returns `true` if the item was found and removed. + */ + deleteIn(path) { + if (Collection.isEmptyPath(path)) { + if (this.contents == null) + return false; + this.contents = null; + return true; + } + return assertCollection(this.contents) + ? this.contents.deleteIn(path) + : false; + } + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + get(key, keepScalar) { + return Node.isCollection(this.contents) + ? this.contents.get(key, keepScalar) + : undefined; + } + /** + * Returns item at `path`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path, keepScalar) { + if (Collection.isEmptyPath(path)) + return !keepScalar && Node.isScalar(this.contents) + ? this.contents.value + : this.contents; + return Node.isCollection(this.contents) + ? this.contents.getIn(path, keepScalar) + : undefined; + } + /** + * Checks if the document includes a value with the key `key`. + */ + has(key) { + return Node.isCollection(this.contents) ? this.contents.has(key) : false; + } + /** + * Checks if the document includes a value at `path`. + */ + hasIn(path) { + if (Collection.isEmptyPath(path)) + return this.contents !== undefined; + return Node.isCollection(this.contents) ? this.contents.hasIn(path) : false; + } + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + set(key, value) { + if (this.contents == null) { + this.contents = Collection.collectionFromPath(this.schema, [key], value); + } + else if (assertCollection(this.contents)) { + this.contents.set(key, value); + } + } + /** + * Sets a value in this document. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path, value) { + if (Collection.isEmptyPath(path)) + this.contents = value; + else if (this.contents == null) { + this.contents = Collection.collectionFromPath(this.schema, Array.from(path), value); + } + else if (assertCollection(this.contents)) { + this.contents.setIn(path, value); + } + } + /** + * Change the YAML version and schema used by the document. + * A `null` version disables support for directives, explicit tags, anchors, and aliases. + * It also requires the `schema` option to be given as a `Schema` instance value. + * + * Overrides all previously set schema options. + */ + setSchema(version, options = {}) { + if (typeof version === 'number') + version = String(version); + let opt; + switch (version) { + case '1.1': + if (this.directives) + this.directives.yaml.version = '1.1'; + else + this.directives = new directives.Directives({ version: '1.1' }); + opt = { merge: true, resolveKnownTags: false, schema: 'yaml-1.1' }; + break; + case '1.2': + case 'next': + if (this.directives) + this.directives.yaml.version = version; + else + this.directives = new directives.Directives({ version }); + opt = { merge: false, resolveKnownTags: true, schema: 'core' }; + break; + case null: + if (this.directives) + delete this.directives; + opt = null; + break; + default: { + const sv = JSON.stringify(version); + throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`); + } + } + // Not using `instanceof Schema` to allow for duck typing + if (options.schema instanceof Object) + this.schema = options.schema; + else if (opt) + this.schema = new Schema.Schema(Object.assign(opt, options)); + else + throw new Error(`With a null YAML version, the { schema: Schema } option is required`); + } + // json & jsonArg are only used from toJSON() + toJS({ json, jsonArg, mapAsMap, maxAliasCount, onAnchor, reviver } = {}) { + const ctx = { + anchors: new Map(), + doc: this, + keep: !json, + mapAsMap: mapAsMap === true, + mapKeyWarned: false, + maxAliasCount: typeof maxAliasCount === 'number' ? maxAliasCount : 100, + stringify: stringify.stringify + }; + const res = toJS.toJS(this.contents, jsonArg ?? '', ctx); + if (typeof onAnchor === 'function') + for (const { count, res } of ctx.anchors.values()) + onAnchor(res, count); + return typeof reviver === 'function' + ? applyReviver.applyReviver(reviver, { '': res }, '', res) + : res; + } + /** + * A JSON representation of the document `contents`. + * + * @param jsonArg Used by `JSON.stringify` to indicate the array index or + * property name. + */ + toJSON(jsonArg, onAnchor) { + return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor }); + } + /** A YAML representation of the document. */ + toString(options = {}) { + if (this.errors.length > 0) + throw new Error('Document with errors cannot be stringified'); + if ('indent' in options && + (!Number.isInteger(options.indent) || Number(options.indent) <= 0)) { + const s = JSON.stringify(options.indent); + throw new Error(`"indent" option must be a positive integer, not ${s}`); + } + return stringifyDocument.stringifyDocument(this, options); + } +} +function assertCollection(contents) { + if (Node.isCollection(contents)) + return true; + throw new Error('Expected a YAML collection as document contents'); +} + +exports.Document = Document; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.d.ts" index 0cc5322f1ab4f80308eed8e1719aff0e0a235cb5..fac66be7e585b59866cf867da8813142888db9fb 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.d.ts" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b8940b84557954a627c4c19a249ab8e66dfaa413c0268f96f83ad3821fb41cb -size 938 +import { Node } from '../nodes/Node.js'; +import type { Document } from './Document.js'; +/** + * Verify that the input string is a valid anchor. + * + * Will throw on errors. + */ +export declare function anchorIsValid(anchor: string): true; +export declare function anchorNames(root: Document | Node): Set; +/** Find a new anchor name with the given `prefix` and a one-indexed suffix. */ +export declare function findNewAnchor(prefix: string, exclude: Set): string; +export declare function createNodeAnchors(doc: Document, prefix: string): { + onAnchor: (source: unknown) => string; + /** + * With circular references, the source node is only resolved after all + * of its child nodes are. This is why anchors are set only after all of + * the nodes have been created. + */ + setAnchors: () => void; + sourceObjects: Map | null; + }>; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.js" index 2e09012372648bb27d516953677b3623c4e2b338..5c51bdbaa16753b01143270cf971f6c01a4b0a2c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/anchors.js" @@ -1,3 +1,77 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6a618ede963d894666042cdaa8f23704971e85fb2aeb5f47ba4a4509253af0ce -size 2387 +'use strict'; + +var Node = require('../nodes/Node.js'); +var visit = require('../visit.js'); + +/** + * Verify that the input string is a valid anchor. + * + * Will throw on errors. + */ +function anchorIsValid(anchor) { + if (/[\x00-\x19\s,[\]{}]/.test(anchor)) { + const sa = JSON.stringify(anchor); + const msg = `Anchor must not contain whitespace or control characters: ${sa}`; + throw new Error(msg); + } + return true; +} +function anchorNames(root) { + const anchors = new Set(); + visit.visit(root, { + Value(_key, node) { + if (node.anchor) + anchors.add(node.anchor); + } + }); + return anchors; +} +/** Find a new anchor name with the given `prefix` and a one-indexed suffix. */ +function findNewAnchor(prefix, exclude) { + for (let i = 1; true; ++i) { + const name = `${prefix}${i}`; + if (!exclude.has(name)) + return name; + } +} +function createNodeAnchors(doc, prefix) { + const aliasObjects = []; + const sourceObjects = new Map(); + let prevAnchors = null; + return { + onAnchor: (source) => { + aliasObjects.push(source); + if (!prevAnchors) + prevAnchors = anchorNames(doc); + const anchor = findNewAnchor(prefix, prevAnchors); + prevAnchors.add(anchor); + return anchor; + }, + /** + * With circular references, the source node is only resolved after all + * of its child nodes are. This is why anchors are set only after all of + * the nodes have been created. + */ + setAnchors: () => { + for (const source of aliasObjects) { + const ref = sourceObjects.get(source); + if (typeof ref === 'object' && + ref.anchor && + (Node.isScalar(ref.node) || Node.isCollection(ref.node))) { + ref.node.anchor = ref.anchor; + } + else { + const error = new Error('Failed to resolve repeated object (this should not happen)'); + error.source = source; + throw error; + } + } + }, + sourceObjects + }; +} + +exports.anchorIsValid = anchorIsValid; +exports.anchorNames = anchorNames; +exports.createNodeAnchors = createNodeAnchors; +exports.findNewAnchor = findNewAnchor; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.d.ts" index 7e66a93c9bfa846a67820798f6e9fd48ea42fac0..e125b0870fe5fb5baaf4decfaaf6864044280aa7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bc41a8e33caf4d193b0c49ec70d1e8db5ce3312eafe5447c6c1d5a2084fece12 -size 445 +export type Reviver = (key: unknown, value: unknown) => unknown; +/** + * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec, + * in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the + * 2021 edition: https://tc39.es/ecma262/#sec-json.parse + * + * Includes extensions for handling Map and Set objects. + */ +export declare function applyReviver(reviver: Reviver, obj: unknown, key: unknown, val: any): unknown; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.js" index ae8be65026f9ced1ceb5cdc6e20f6bada0598a9f..8734579227eeb889422a1660c01fa50fc1758740 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/applyReviver.js" @@ -1,3 +1,56 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2264f8b39534551aa037671d9c176a8da6094bf9f89365857743cef45eae7997 -size 1871 +'use strict'; + +/** + * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec, + * in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the + * 2021 edition: https://tc39.es/ecma262/#sec-json.parse + * + * Includes extensions for handling Map and Set objects. + */ +function applyReviver(reviver, obj, key, val) { + if (val && typeof val === 'object') { + if (Array.isArray(val)) { + for (let i = 0, len = val.length; i < len; ++i) { + const v0 = val[i]; + const v1 = applyReviver(reviver, val, String(i), v0); + if (v1 === undefined) + delete val[i]; + else if (v1 !== v0) + val[i] = v1; + } + } + else if (val instanceof Map) { + for (const k of Array.from(val.keys())) { + const v0 = val.get(k); + const v1 = applyReviver(reviver, val, k, v0); + if (v1 === undefined) + val.delete(k); + else if (v1 !== v0) + val.set(k, v1); + } + } + else if (val instanceof Set) { + for (const v0 of Array.from(val)) { + const v1 = applyReviver(reviver, val, v0, v0); + if (v1 === undefined) + val.delete(v0); + else if (v1 !== v0) { + val.delete(v0); + val.add(v1); + } + } + } + else { + for (const [k, v0] of Object.entries(val)) { + const v1 = applyReviver(reviver, val, k, v0); + if (v1 === undefined) + delete val[k]; + else if (v1 !== v0) + val[k] = v1; + } + } + } + return reviver.call(obj, key, val); +} + +exports.applyReviver = applyReviver; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.d.ts" index 241ca4bf806bac5faff1760878a86f43cb7fa014..cfbd35cfd3a737f68661ac7d774a297a21b4ccf5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.d.ts" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6de9d8858034d3197c1525e1c29c942cf7912f807d4d7f14dea247b7c05b59b0 -size 669 +import { Node } from '../nodes/Node.js'; +import type { Schema } from '../schema/Schema.js'; +import type { CollectionTag, ScalarTag } from '../schema/types.js'; +import type { Replacer } from './Document.js'; +export interface CreateNodeContext { + aliasDuplicateObjects: boolean; + keepUndefined: boolean; + onAnchor: (source: unknown) => string; + onTagObj?: (tagObj: ScalarTag | CollectionTag) => void; + sourceObjects: Map; + replacer?: Replacer; + schema: Schema; +} +export declare function createNode(value: unknown, tagName: string | undefined, ctx: CreateNodeContext): Node; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.js" index 2c7d050e85299705f00114c361a732e7e79caf33..0b1bc3f0e7534110635c5a46668d7343e7466e7c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/createNode.js" @@ -1,3 +1,87 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34f3e229c1b80ac75ab839fdd18a23a7457bcbbff7c6aa8130e7a4de235ef0b5 -size 2938 +'use strict'; + +var Alias = require('../nodes/Alias.js'); +var Node = require('../nodes/Node.js'); +var Scalar = require('../nodes/Scalar.js'); + +const defaultTagPrefix = 'tag:yaml.org,2002:'; +function findTagObject(value, tagName, tags) { + if (tagName) { + const match = tags.filter(t => t.tag === tagName); + const tagObj = match.find(t => !t.format) ?? match[0]; + if (!tagObj) + throw new Error(`Tag ${tagName} not found`); + return tagObj; + } + return tags.find(t => t.identify?.(value) && !t.format); +} +function createNode(value, tagName, ctx) { + if (Node.isDocument(value)) + value = value.contents; + if (Node.isNode(value)) + return value; + if (Node.isPair(value)) { + const map = ctx.schema[Node.MAP].createNode?.(ctx.schema, null, ctx); + map.items.push(value); + return map; + } + if (value instanceof String || + value instanceof Number || + value instanceof Boolean || + (typeof BigInt !== 'undefined' && value instanceof BigInt) // not supported everywhere + ) { + // https://tc39.es/ecma262/#sec-serializejsonproperty + value = value.valueOf(); + } + const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx; + // Detect duplicate references to the same object & use Alias nodes for all + // after first. The `ref` wrapper allows for circular references to resolve. + let ref = undefined; + if (aliasDuplicateObjects && value && typeof value === 'object') { + ref = sourceObjects.get(value); + if (ref) { + if (!ref.anchor) + ref.anchor = onAnchor(value); + return new Alias.Alias(ref.anchor); + } + else { + ref = { anchor: null, node: null }; + sourceObjects.set(value, ref); + } + } + if (tagName?.startsWith('!!')) + tagName = defaultTagPrefix + tagName.slice(2); + let tagObj = findTagObject(value, tagName, schema.tags); + if (!tagObj) { + if (value && typeof value.toJSON === 'function') { + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + value = value.toJSON(); + } + if (!value || typeof value !== 'object') { + const node = new Scalar.Scalar(value); + if (ref) + ref.node = node; + return node; + } + tagObj = + value instanceof Map + ? schema[Node.MAP] + : Symbol.iterator in Object(value) + ? schema[Node.SEQ] + : schema[Node.MAP]; + } + if (onTagObj) { + onTagObj(tagObj); + delete ctx.onTagObj; + } + const node = tagObj?.createNode + ? tagObj.createNode(ctx.schema, value, ctx) + : new Scalar.Scalar(value); + if (tagName) + node.tag = tagName; + if (ref) + ref.node = node; + return node; +} + +exports.createNode = createNode; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.d.ts" index e2b53a69b68275893fec60fccbd003b4d64bc666..ff8a2cbb3cf9009b59319e52aecab86afef501f5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.d.ts" @@ -1,3 +1,49 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:325994b6f6c7598c73bbd0294bf1e3f1e229772669b3c8a08fe3170442f600b8 -size 1913 +import type { Document } from './Document.js'; +export declare class Directives { + static defaultYaml: Directives['yaml']; + static defaultTags: Directives['tags']; + yaml: { + version: '1.1' | '1.2' | 'next'; + explicit?: boolean; + }; + tags: Record; + /** + * The directives-end/doc-start marker `---`. If `null`, a marker may still be + * included in the document's stringified representation. + */ + docStart: true | null; + /** The doc-end marker `...`. */ + docEnd: boolean; + /** + * Used when parsing YAML 1.1, where: + * > If the document specifies no directives, it is parsed using the same + * > settings as the previous document. If the document does specify any + * > directives, all directives of previous documents, if any, are ignored. + */ + private atNextDocument?; + constructor(yaml?: Directives['yaml'], tags?: Directives['tags']); + clone(): Directives; + /** + * During parsing, get a Directives instance for the current document and + * update the stream state according to the current version's spec. + */ + atDocument(): Directives; + /** + * @param onError - May be called even if the action was successful + * @returns `true` on success + */ + add(line: string, onError: (offset: number, message: string, warning?: boolean) => void): boolean; + /** + * Resolves a tag, matching handles to those defined in %TAG directives. + * + * @returns Resolved tag, which may also be the non-specific tag `'!'` or a + * `'!local'` tag, or `null` if unresolvable. + */ + tagName(source: string, onError: (message: string) => void): string | null; + /** + * Given a fully resolved tag, returns its printable string form, + * taking into account current tag prefixes and defaults. + */ + tagString(tag: string): string; + toString(doc?: Document): string; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.js" index c3adef2d8c72ffcf3f2f59e5e2dea4ddb9e31e66..0fa911c9838f8532023e38a8cbb043b067ed8da2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/doc/directives.js" @@ -1,3 +1,171 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:804f4591ffdf916a4e3cce7addcaa94d56ed06d78c2c400e6a2078d76e6d7e15 -size 6061 +'use strict'; + +var Node = require('../nodes/Node.js'); +var visit = require('../visit.js'); + +const escapeChars = { + '!': '%21', + ',': '%2C', + '[': '%5B', + ']': '%5D', + '{': '%7B', + '}': '%7D' +}; +const escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, ch => escapeChars[ch]); +class Directives { + constructor(yaml, tags) { + /** + * The directives-end/doc-start marker `---`. If `null`, a marker may still be + * included in the document's stringified representation. + */ + this.docStart = null; + /** The doc-end marker `...`. */ + this.docEnd = false; + this.yaml = Object.assign({}, Directives.defaultYaml, yaml); + this.tags = Object.assign({}, Directives.defaultTags, tags); + } + clone() { + const copy = new Directives(this.yaml, this.tags); + copy.docStart = this.docStart; + return copy; + } + /** + * During parsing, get a Directives instance for the current document and + * update the stream state according to the current version's spec. + */ + atDocument() { + const res = new Directives(this.yaml, this.tags); + switch (this.yaml.version) { + case '1.1': + this.atNextDocument = true; + break; + case '1.2': + this.atNextDocument = false; + this.yaml = { + explicit: Directives.defaultYaml.explicit, + version: '1.2' + }; + this.tags = Object.assign({}, Directives.defaultTags); + break; + } + return res; + } + /** + * @param onError - May be called even if the action was successful + * @returns `true` on success + */ + add(line, onError) { + if (this.atNextDocument) { + this.yaml = { explicit: Directives.defaultYaml.explicit, version: '1.1' }; + this.tags = Object.assign({}, Directives.defaultTags); + this.atNextDocument = false; + } + const parts = line.trim().split(/[ \t]+/); + const name = parts.shift(); + switch (name) { + case '%TAG': { + if (parts.length !== 2) { + onError(0, '%TAG directive should contain exactly two parts'); + if (parts.length < 2) + return false; + } + const [handle, prefix] = parts; + this.tags[handle] = prefix; + return true; + } + case '%YAML': { + this.yaml.explicit = true; + if (parts.length !== 1) { + onError(0, '%YAML directive should contain exactly one part'); + return false; + } + const [version] = parts; + if (version === '1.1' || version === '1.2') { + this.yaml.version = version; + return true; + } + else { + const isValid = /^\d+\.\d+$/.test(version); + onError(6, `Unsupported YAML version ${version}`, isValid); + return false; + } + } + default: + onError(0, `Unknown directive ${name}`, true); + return false; + } + } + /** + * Resolves a tag, matching handles to those defined in %TAG directives. + * + * @returns Resolved tag, which may also be the non-specific tag `'!'` or a + * `'!local'` tag, or `null` if unresolvable. + */ + tagName(source, onError) { + if (source === '!') + return '!'; // non-specific tag + if (source[0] !== '!') { + onError(`Not a valid tag: ${source}`); + return null; + } + if (source[1] === '<') { + const verbatim = source.slice(2, -1); + if (verbatim === '!' || verbatim === '!!') { + onError(`Verbatim tags aren't resolved, so ${source} is invalid.`); + return null; + } + if (source[source.length - 1] !== '>') + onError('Verbatim tags must end with a >'); + return verbatim; + } + const [, handle, suffix] = source.match(/^(.*!)([^!]*)$/); + if (!suffix) + onError(`The ${source} tag has no suffix`); + const prefix = this.tags[handle]; + if (prefix) + return prefix + decodeURIComponent(suffix); + if (handle === '!') + return source; // local tag + onError(`Could not resolve tag: ${source}`); + return null; + } + /** + * Given a fully resolved tag, returns its printable string form, + * taking into account current tag prefixes and defaults. + */ + tagString(tag) { + for (const [handle, prefix] of Object.entries(this.tags)) { + if (tag.startsWith(prefix)) + return handle + escapeTagName(tag.substring(prefix.length)); + } + return tag[0] === '!' ? tag : `!<${tag}>`; + } + toString(doc) { + const lines = this.yaml.explicit + ? [`%YAML ${this.yaml.version || '1.2'}`] + : []; + const tagEntries = Object.entries(this.tags); + let tagNames; + if (doc && tagEntries.length > 0 && Node.isNode(doc.contents)) { + const tags = {}; + visit.visit(doc.contents, (_key, node) => { + if (Node.isNode(node) && node.tag) + tags[node.tag] = true; + }); + tagNames = Object.keys(tags); + } + else + tagNames = []; + for (const [handle, prefix] of tagEntries) { + if (handle === '!!' && prefix === 'tag:yaml.org,2002:') + continue; + if (!doc || tagNames.some(tn => tn.startsWith(prefix))) + lines.push(`%TAG ${handle} ${prefix}`); + } + return lines.join('\n'); + } +} +Directives.defaultYaml = { explicit: false, version: '1.2' }; +Directives.defaultTags = { '!!': 'tag:yaml.org,2002:' }; + +exports.Directives = Directives; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.d.ts" index 50469a0cef96b5c48aff045a95ebfb335e13ba0c..b479e72c5be3ab99cd9b98c772a1a0a3db36e14b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.d.ts" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b26f93d773cf3aa4dc421c45323adccaead92598594a56f4a84d77910ee4f510 -size 1193 +import type { LineCounter } from './parse/line-counter'; +export type ErrorCode = 'ALIAS_PROPS' | 'BAD_ALIAS' | 'BAD_DIRECTIVE' | 'BAD_DQ_ESCAPE' | 'BAD_INDENT' | 'BAD_PROP_ORDER' | 'BAD_SCALAR_START' | 'BLOCK_AS_IMPLICIT_KEY' | 'BLOCK_IN_FLOW' | 'DUPLICATE_KEY' | 'IMPOSSIBLE' | 'KEY_OVER_1024_CHARS' | 'MISSING_CHAR' | 'MULTILINE_IMPLICIT_KEY' | 'MULTIPLE_ANCHORS' | 'MULTIPLE_DOCS' | 'MULTIPLE_TAGS' | 'TAB_AS_INDENT' | 'TAG_RESOLVE_FAILED' | 'UNEXPECTED_TOKEN'; +export type LinePos = { + line: number; + col: number; +}; +export declare class YAMLError extends Error { + name: 'YAMLParseError' | 'YAMLWarning'; + code: ErrorCode; + message: string; + pos: [number, number]; + linePos?: [LinePos] | [LinePos, LinePos]; + constructor(name: YAMLError['name'], pos: [number, number], code: ErrorCode, message: string); +} +export declare class YAMLParseError extends YAMLError { + constructor(pos: [number, number], code: ErrorCode, message: string); +} +export declare class YAMLWarning extends YAMLError { + constructor(pos: [number, number], code: ErrorCode, message: string); +} +export declare const prettifyError: (src: string, lc: LineCounter) => (error: YAMLError) => void; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.js" index 98c82dd5eca74fee0ddec9df27659733d3675052..9d04c60036ae8840a1e7bc505d5aea352e8d44b8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/errors.js" @@ -1,3 +1,62 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f31ad440590d74419544eb9cb09e1c4fdce282364a1261c8728fd5347f68ff53 -size 2124 +'use strict'; + +class YAMLError extends Error { + constructor(name, pos, code, message) { + super(); + this.name = name; + this.code = code; + this.message = message; + this.pos = pos; + } +} +class YAMLParseError extends YAMLError { + constructor(pos, code, message) { + super('YAMLParseError', pos, code, message); + } +} +class YAMLWarning extends YAMLError { + constructor(pos, code, message) { + super('YAMLWarning', pos, code, message); + } +} +const prettifyError = (src, lc) => (error) => { + if (error.pos[0] === -1) + return; + error.linePos = error.pos.map(pos => lc.linePos(pos)); + const { line, col } = error.linePos[0]; + error.message += ` at line ${line}, column ${col}`; + let ci = col - 1; + let lineStr = src + .substring(lc.lineStarts[line - 1], lc.lineStarts[line]) + .replace(/[\n\r]+$/, ''); + // Trim to max 80 chars, keeping col position near the middle + if (ci >= 60 && lineStr.length > 80) { + const trimStart = Math.min(ci - 39, lineStr.length - 79); + lineStr = 'â€Ĥ' + lineStr.substring(trimStart); + ci -= trimStart - 1; + } + if (lineStr.length > 80) + lineStr = lineStr.substring(0, 79) + 'â€Ĥ'; + // Include previous line in context if pointing at line start + if (line > 1 && /^ *$/.test(lineStr.substring(0, ci))) { + // Regexp won't match if start is trimmed + let prev = src.substring(lc.lineStarts[line - 2], lc.lineStarts[line - 1]); + if (prev.length > 80) + prev = prev.substring(0, 79) + 'â€Ĥ\n'; + lineStr = prev + lineStr; + } + if (/[^ ]/.test(lineStr)) { + let count = 1; + const end = error.linePos[1]; + if (end && end.line === line && end.col > col) { + count = Math.max(1, Math.min(end.col - col, 80 - ci)); + } + const pointer = ' '.repeat(ci) + '^'.repeat(count); + error.message += `:\n\n${lineStr}\n${pointer}\n`; + } +}; + +exports.YAMLError = YAMLError; +exports.YAMLParseError = YAMLParseError; +exports.YAMLWarning = YAMLWarning; +exports.prettifyError = prettifyError; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.d.ts" index 66c64caf8ded1467861ac18b875b6fefdaea07df..0c6ca6ebf930182d7f59685d95844ab46dea5c9b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.d.ts" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5a1755f317ac2c0d708fbf7c1dbf076ba3a31f624c534b44275c9c43033fdc2e -size 1306 +export { Composer } from './compose/composer.js'; +export { Document } from './doc/Document.js'; +export { Schema } from './schema/Schema.js'; +export { ErrorCode, YAMLError, YAMLParseError, YAMLWarning } from './errors.js'; +export { Alias } from './nodes/Alias.js'; +export { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq, Node, ParsedNode, Range } from './nodes/Node.js'; +export { Pair } from './nodes/Pair.js'; +export { Scalar } from './nodes/Scalar.js'; +export { YAMLMap } from './nodes/YAMLMap.js'; +export { YAMLSeq } from './nodes/YAMLSeq.js'; +export type { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions, ToStringOptions } from './options.js'; +export * as CST from './parse/cst.js'; +export { Lexer } from './parse/lexer.js'; +export { LineCounter } from './parse/line-counter.js'; +export { Parser } from './parse/parser.js'; +export { EmptyStream, parse, parseAllDocuments, parseDocument, stringify } from './public-api.js'; +export type { TagId, Tags } from './schema/tags'; +export type { CollectionTag, ScalarTag } from './schema/types'; +export type { YAMLOMap } from './schema/yaml-1.1/omap'; +export type { YAMLSet } from './schema/yaml-1.1/set'; +export { asyncVisitor, asyncVisitorFn, visit, visitAsync, visitor, visitorFn } from './visit.js'; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.js" index 74dca7ebe6a3b3437720f69f369b00d791e035be..b013fae765a452060f045d902c11d4e285979d93 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/index.js" @@ -1,3 +1,50 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f2e2e40d42e5bfc5c8ee4eddde062e7006b7983cf082058c4bf73272e09cf66 -size 1729 +'use strict'; + +var composer = require('./compose/composer.js'); +var Document = require('./doc/Document.js'); +var Schema = require('./schema/Schema.js'); +var errors = require('./errors.js'); +var Alias = require('./nodes/Alias.js'); +var Node = require('./nodes/Node.js'); +var Pair = require('./nodes/Pair.js'); +var Scalar = require('./nodes/Scalar.js'); +var YAMLMap = require('./nodes/YAMLMap.js'); +var YAMLSeq = require('./nodes/YAMLSeq.js'); +var cst = require('./parse/cst.js'); +var lexer = require('./parse/lexer.js'); +var lineCounter = require('./parse/line-counter.js'); +var parser = require('./parse/parser.js'); +var publicApi = require('./public-api.js'); +var visit = require('./visit.js'); + + + +exports.Composer = composer.Composer; +exports.Document = Document.Document; +exports.Schema = Schema.Schema; +exports.YAMLError = errors.YAMLError; +exports.YAMLParseError = errors.YAMLParseError; +exports.YAMLWarning = errors.YAMLWarning; +exports.Alias = Alias.Alias; +exports.isAlias = Node.isAlias; +exports.isCollection = Node.isCollection; +exports.isDocument = Node.isDocument; +exports.isMap = Node.isMap; +exports.isNode = Node.isNode; +exports.isPair = Node.isPair; +exports.isScalar = Node.isScalar; +exports.isSeq = Node.isSeq; +exports.Pair = Pair.Pair; +exports.Scalar = Scalar.Scalar; +exports.YAMLMap = YAMLMap.YAMLMap; +exports.YAMLSeq = YAMLSeq.YAMLSeq; +exports.CST = cst; +exports.Lexer = lexer.Lexer; +exports.LineCounter = lineCounter.LineCounter; +exports.Parser = parser.Parser; +exports.parse = publicApi.parse; +exports.parseAllDocuments = publicApi.parseAllDocuments; +exports.parseDocument = publicApi.parseDocument; +exports.stringify = publicApi.stringify; +exports.visit = visit.visit; +exports.visitAsync = visit.visitAsync; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.d.ts" index 3134796415b836cc2101c0c298a7a032530c8d2f..5e216121a588b86acbb08ba7bc268f9fec2d67c3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c33f11a56ba4e79efc4ddae85f8a4a888e216d2bf66c863f344d403437ffc74 -size 226 +export type LogLevelId = 'silent' | 'error' | 'warn' | 'debug'; +export declare function debug(logLevel: LogLevelId, ...messages: any[]): void; +export declare function warn(logLevel: LogLevelId, warning: string | Error): void; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.js" index ce519f64394fcc6f1e3aaa9655346bd43f13217a..fac7d5a57901eaee335f35d6f20de96b1ee91974 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/log.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c29fa1fe7ef2a75295298c1498c972f9cc3efe97688deeaa32eca167de35b61d -size 421 +'use strict'; + +function debug(logLevel, ...messages) { + if (logLevel === 'debug') + console.log(...messages); +} +function warn(logLevel, warning) { + if (logLevel === 'debug' || logLevel === 'warn') { + if (typeof process !== 'undefined' && process.emitWarning) + process.emitWarning(warning); + else + console.warn(warning); + } +} + +exports.debug = debug; +exports.warn = warn; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.d.ts" index 52fbca623cb7d673d2e0408bac15019acc3125c5..4d05aec22719d657bb3062afca8374969360f0f6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.d.ts" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:052854468e3d8142f440fa9a0da1d743abef903dff09597025d07703c25b601e -size 1051 +import type { Document } from '../doc/Document.js'; +import type { FlowScalar } from '../parse/cst.js'; +import type { StringifyContext } from '../stringify/stringify.js'; +import { NodeBase, Range } from './Node.js'; +import type { Scalar } from './Scalar'; +import type { ToJSContext } from './toJS.js'; +import type { YAMLMap } from './YAMLMap.js'; +import type { YAMLSeq } from './YAMLSeq.js'; +export declare namespace Alias { + interface Parsed extends Alias { + range: Range; + srcToken?: FlowScalar & { + type: 'alias'; + }; + } +} +export declare class Alias extends NodeBase { + source: string; + anchor?: never; + constructor(source: string); + /** + * Resolve the value of this alias within `doc`, finding the last + * instance of the `source` anchor before this node. + */ + resolve(doc: Document): Scalar | YAMLMap | YAMLSeq | undefined; + toJSON(_arg?: unknown, ctx?: ToJSContext): {} | null; + toString(ctx?: StringifyContext, _onComment?: () => void, _onChompKeep?: () => void): string; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.js" index 56e44212d047e5d66dd1bad8d8d0659de3e5cf75..75853cf5704a194957e9ad1a40e0fcec3eb922f3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Alias.js" @@ -1,3 +1,96 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca15419bb2e56cfbba9f221520b11e5f3be0f015d98846facdcb5572cceb814c -size 3161 +'use strict'; + +var anchors = require('../doc/anchors.js'); +var visit = require('../visit.js'); +var Node = require('./Node.js'); + +class Alias extends Node.NodeBase { + constructor(source) { + super(Node.ALIAS); + this.source = source; + Object.defineProperty(this, 'tag', { + set() { + throw new Error('Alias nodes cannot have tags'); + } + }); + } + /** + * Resolve the value of this alias within `doc`, finding the last + * instance of the `source` anchor before this node. + */ + resolve(doc) { + let found = undefined; + visit.visit(doc, { + Node: (_key, node) => { + if (node === this) + return visit.visit.BREAK; + if (node.anchor === this.source) + found = node; + } + }); + return found; + } + toJSON(_arg, ctx) { + if (!ctx) + return { source: this.source }; + const { anchors, doc, maxAliasCount } = ctx; + const source = this.resolve(doc); + if (!source) { + const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`; + throw new ReferenceError(msg); + } + const data = anchors.get(source); + /* istanbul ignore if */ + if (!data || data.res === undefined) { + const msg = 'This should not happen: Alias anchor was not resolved?'; + throw new ReferenceError(msg); + } + if (maxAliasCount >= 0) { + data.count += 1; + if (data.aliasCount === 0) + data.aliasCount = getAliasCount(doc, source, anchors); + if (data.count * data.aliasCount > maxAliasCount) { + const msg = 'Excessive alias count indicates a resource exhaustion attack'; + throw new ReferenceError(msg); + } + } + return data.res; + } + toString(ctx, _onComment, _onChompKeep) { + const src = `*${this.source}`; + if (ctx) { + anchors.anchorIsValid(this.source); + if (ctx.options.verifyAliasOrder && !ctx.anchors.has(this.source)) { + const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`; + throw new Error(msg); + } + if (ctx.implicitKey) + return `${src} `; + } + return src; + } +} +function getAliasCount(doc, node, anchors) { + if (Node.isAlias(node)) { + const source = node.resolve(doc); + const anchor = anchors && source && anchors.get(source); + return anchor ? anchor.count * anchor.aliasCount : 0; + } + else if (Node.isCollection(node)) { + let count = 0; + for (const item of node.items) { + const c = getAliasCount(doc, item, anchors); + if (c > count) + count = c; + } + return count; + } + else if (Node.isPair(node)) { + const kc = getAliasCount(doc, node.key, anchors); + const vc = getAliasCount(doc, node.value, anchors); + return Math.max(kc, vc); + } + return 1; +} + +exports.Alias = Alias; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.d.ts" index 3a4210e866e19b1cfb8eeab0aa0c1b1759f20777..0ac656834070462d642c66fc7c7ae916c5cb74e5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.d.ts" @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:37c1aeea4ec8df37bbe5d96bda46831acab3f70b2001ec9f51cb3146a101de89 -size 2948 +import type { Schema } from '../schema/Schema.js'; +import { NodeBase, NODE_TYPE } from './Node.js'; +export declare function collectionFromPath(schema: Schema, path: unknown[], value: unknown): import("./Node.js").Node; +export declare const isEmptyPath: (path: Iterable | null | undefined) => path is null | undefined; +export declare abstract class Collection extends NodeBase { + static maxFlowStringSingleLineLength: number; + schema: Schema | undefined; + [NODE_TYPE]: symbol; + items: unknown[]; + /** An optional anchor on this node. Used by alias nodes. */ + anchor?: string; + /** + * If true, stringify this and all child nodes using flow rather than + * block styles. + */ + flow?: boolean; + constructor(type: symbol, schema?: Schema); + /** + * Create a copy of this collection. + * + * @param schema - If defined, overwrites the original's schema + */ + clone(schema?: Schema): Collection; + /** Adds a value to the collection. */ + abstract add(value: unknown): void; + /** + * Removes a value from the collection. + * @returns `true` if the item was found and removed. + */ + abstract delete(key: unknown): boolean; + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + abstract get(key: unknown, keepScalar?: boolean): unknown; + /** + * Checks if the collection includes a value with the key `key`. + */ + abstract has(key: unknown): boolean; + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + abstract set(key: unknown, value: unknown): void; + /** + * Adds a value to the collection. For `!!map` and `!!omap` the value must + * be a Pair instance or a `{ key, value }` object, which may not have a key + * that already exists in the map. + */ + addIn(path: Iterable, value: unknown): void; + /** + * Removes a value from the collection. + * @returns `true` if the item was found and removed. + */ + deleteIn(path: Iterable): boolean; + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path: Iterable, keepScalar?: boolean): unknown; + hasAllNullValues(allowScalar?: boolean): boolean; + /** + * Checks if the collection includes a value with the key `key`. + */ + hasIn(path: Iterable): boolean; + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path: Iterable, value: unknown): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.js" index ccdf6122fabcb4c2cbf58d35db90fa8c71b7b0fe..f9d25711a935d535b3307f2d381742f863e451b6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Collection.js" @@ -1,3 +1,151 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e080ecd49ef5d0d47fc4d7afbef5fb887571823bcc711812b67a354a065ce70f -size 5187 +'use strict'; + +var createNode = require('../doc/createNode.js'); +var Node = require('./Node.js'); + +function collectionFromPath(schema, path, value) { + let v = value; + for (let i = path.length - 1; i >= 0; --i) { + const k = path[i]; + if (typeof k === 'number' && Number.isInteger(k) && k >= 0) { + const a = []; + a[k] = v; + v = a; + } + else { + v = new Map([[k, v]]); + } + } + return createNode.createNode(v, undefined, { + aliasDuplicateObjects: false, + keepUndefined: false, + onAnchor: () => { + throw new Error('This should not happen, please report a bug.'); + }, + schema, + sourceObjects: new Map() + }); +} +// Type guard is intentionally a little wrong so as to be more useful, +// as it does not cover untypable empty non-string iterables (e.g. []). +const isEmptyPath = (path) => path == null || + (typeof path === 'object' && !!path[Symbol.iterator]().next().done); +class Collection extends Node.NodeBase { + constructor(type, schema) { + super(type); + Object.defineProperty(this, 'schema', { + value: schema, + configurable: true, + enumerable: false, + writable: true + }); + } + /** + * Create a copy of this collection. + * + * @param schema - If defined, overwrites the original's schema + */ + clone(schema) { + const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this)); + if (schema) + copy.schema = schema; + copy.items = copy.items.map(it => Node.isNode(it) || Node.isPair(it) ? it.clone(schema) : it); + if (this.range) + copy.range = this.range.slice(); + return copy; + } + /** + * Adds a value to the collection. For `!!map` and `!!omap` the value must + * be a Pair instance or a `{ key, value }` object, which may not have a key + * that already exists in the map. + */ + addIn(path, value) { + if (isEmptyPath(path)) + this.add(value); + else { + const [key, ...rest] = path; + const node = this.get(key, true); + if (Node.isCollection(node)) + node.addIn(rest, value); + else if (node === undefined && this.schema) + this.set(key, collectionFromPath(this.schema, rest, value)); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + } + /** + * Removes a value from the collection. + * @returns `true` if the item was found and removed. + */ + deleteIn(path) { + const [key, ...rest] = path; + if (rest.length === 0) + return this.delete(key); + const node = this.get(key, true); + if (Node.isCollection(node)) + return node.deleteIn(rest); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + */ + getIn(path, keepScalar) { + const [key, ...rest] = path; + const node = this.get(key, true); + if (rest.length === 0) + return !keepScalar && Node.isScalar(node) ? node.value : node; + else + return Node.isCollection(node) ? node.getIn(rest, keepScalar) : undefined; + } + hasAllNullValues(allowScalar) { + return this.items.every(node => { + if (!Node.isPair(node)) + return false; + const n = node.value; + return (n == null || + (allowScalar && + Node.isScalar(n) && + n.value == null && + !n.commentBefore && + !n.comment && + !n.tag)); + }); + } + /** + * Checks if the collection includes a value with the key `key`. + */ + hasIn(path) { + const [key, ...rest] = path; + if (rest.length === 0) + return this.has(key); + const node = this.get(key, true); + return Node.isCollection(node) ? node.hasIn(rest) : false; + } + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + */ + setIn(path, value) { + const [key, ...rest] = path; + if (rest.length === 0) { + this.set(key, value); + } + else { + const node = this.get(key, true); + if (Node.isCollection(node)) + node.setIn(rest, value); + else if (node === undefined && this.schema) + this.set(key, collectionFromPath(this.schema, rest, value)); + else + throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); + } + } +} +Collection.maxFlowStringSingleLineLength = 60; + +exports.Collection = Collection; +exports.collectionFromPath = collectionFromPath; +exports.isEmptyPath = isEmptyPath; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.d.ts" index b9234dc049de7cb8f2ec4cf8c4ed1d21862ea4b2..4a12ecc7bf846590fd085387e4c0456282f534b2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.d.ts" @@ -1,3 +1,59 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1db170e5dad144b639ddf3d32710491c583f48c6e522580c8d5a8c249a611338 -size 3102 +import type { Document } from '../doc/Document.js'; +import { Token } from '../parse/cst.js'; +import type { StringifyContext } from '../stringify/stringify.js'; +import type { Alias } from './Alias.js'; +import type { Pair } from './Pair.js'; +import type { Scalar } from './Scalar.js'; +import type { YAMLMap } from './YAMLMap.js'; +import type { YAMLSeq } from './YAMLSeq.js'; +export type Node = Alias | Scalar | YAMLMap | YAMLSeq; +/** Utility type mapper */ +export type NodeType = T extends string | number | bigint | boolean | null ? Scalar : T extends Array ? YAMLSeq> : T extends { + [key: string]: any; +} ? YAMLMap, NodeType> : T extends { + [key: number]: any; +} ? YAMLMap, NodeType> : Node; +export type ParsedNode = Alias.Parsed | Scalar.Parsed | YAMLMap.Parsed | YAMLSeq.Parsed; +export type Range = [number, number, number]; +export declare const ALIAS: unique symbol; +export declare const DOC: unique symbol; +export declare const MAP: unique symbol; +export declare const PAIR: unique symbol; +export declare const SCALAR: unique symbol; +export declare const SEQ: unique symbol; +export declare const NODE_TYPE: unique symbol; +export declare const isAlias: (node: any) => node is Alias; +export declare const isDocument: = Node>(node: any) => node is Document; +export declare const isMap: (node: any) => node is YAMLMap; +export declare const isPair: (node: any) => node is Pair; +export declare const isScalar: (node: any) => node is Scalar; +export declare const isSeq: (node: any) => node is YAMLSeq; +export declare function isCollection(node: any): node is YAMLMap | YAMLSeq; +export declare function isNode(node: any): node is Node; +export declare const hasAnchor: (node: unknown) => node is Scalar | YAMLMap | YAMLSeq; +export declare abstract class NodeBase { + readonly [NODE_TYPE]: symbol; + /** A comment on or immediately after this */ + comment?: string | null; + /** A comment before this */ + commentBefore?: string | null; + /** + * The `[start, value-end, node-end]` character offsets for the part of the + * source parsed into this node (undefined if not parsed). The `value-end` + * and `node-end` positions are themselves not included in their respective + * ranges. + */ + range?: Range | null; + /** A blank line before this node and its commentBefore */ + spaceBefore?: boolean; + /** The CST token that was composed into this node. */ + srcToken?: Token; + /** A fully qualified tag, if required */ + tag?: string; + /** A plain JS representation of this node */ + abstract toJSON(): any; + abstract toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; + constructor(type: symbol); + /** Create a copy of this node. */ + clone(): NodeBase; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.js" index f81a48c06009e491850162ba31de6ed781de7756..4ddff6a2fffc397b63aa3b4da4ab18bbc6ce104d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Node.js" @@ -1,3 +1,66 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:27e9968470500643ffcf8bfc4e8870d1aa45a8774c67349beb903270401167c5 -size 2192 +'use strict'; + +const ALIAS = Symbol.for('yaml.alias'); +const DOC = Symbol.for('yaml.document'); +const MAP = Symbol.for('yaml.map'); +const PAIR = Symbol.for('yaml.pair'); +const SCALAR = Symbol.for('yaml.scalar'); +const SEQ = Symbol.for('yaml.seq'); +const NODE_TYPE = Symbol.for('yaml.node.type'); +const isAlias = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === ALIAS; +const isDocument = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === DOC; +const isMap = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === MAP; +const isPair = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === PAIR; +const isScalar = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR; +const isSeq = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SEQ; +function isCollection(node) { + if (node && typeof node === 'object') + switch (node[NODE_TYPE]) { + case MAP: + case SEQ: + return true; + } + return false; +} +function isNode(node) { + if (node && typeof node === 'object') + switch (node[NODE_TYPE]) { + case ALIAS: + case MAP: + case SCALAR: + case SEQ: + return true; + } + return false; +} +const hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor; +class NodeBase { + constructor(type) { + Object.defineProperty(this, NODE_TYPE, { value: type }); + } + /** Create a copy of this node. */ + clone() { + const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this)); + if (this.range) + copy.range = this.range.slice(); + return copy; + } +} + +exports.ALIAS = ALIAS; +exports.DOC = DOC; +exports.MAP = MAP; +exports.NODE_TYPE = NODE_TYPE; +exports.NodeBase = NodeBase; +exports.PAIR = PAIR; +exports.SCALAR = SCALAR; +exports.SEQ = SEQ; +exports.hasAnchor = hasAnchor; +exports.isAlias = isAlias; +exports.isCollection = isCollection; +exports.isDocument = isDocument; +exports.isMap = isMap; +exports.isNode = isNode; +exports.isPair = isPair; +exports.isScalar = isScalar; +exports.isSeq = isSeq; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.d.ts" index d78f39dd9e9c2f78f63d793d6fca02de07f7b931..f7bef971498cfc9ef694725eedbb030ad4481df9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.d.ts" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1adcc285d2d477ec6c51d0282d891fdf9d04a5fa8dfa479eab153ae17376f1b4 -size 1278 +import { CreateNodeContext } from '../doc/createNode.js'; +import type { CollectionItem } from '../parse/cst.js'; +import type { Schema } from '../schema/Schema.js'; +import type { StringifyContext } from '../stringify/stringify.js'; +import { addPairToJSMap } from './addPairToJSMap.js'; +import { NODE_TYPE } from './Node.js'; +import type { ToJSContext } from './toJS.js'; +export declare function createPair(key: unknown, value: unknown, ctx: CreateNodeContext): Pair, import("./Alias.js").Alias | import("./Scalar.js").Scalar | import("./YAMLMap.js").YAMLMap | import("./YAMLSeq.js").YAMLSeq>; +export declare class Pair { + readonly [NODE_TYPE]: symbol; + /** Always Node or null when parsed, but can be set to anything. */ + key: K; + /** Always Node or null when parsed, but can be set to anything. */ + value: V | null; + /** The CST token that was composed into this pair. */ + srcToken?: CollectionItem; + constructor(key: K, value?: V | null); + clone(schema?: Schema): Pair; + toJSON(_?: unknown, ctx?: ToJSContext): ReturnType; + toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.js" index 0995feb44788969892efdf3585e1612797b95453..815ced2c8d53ec1e7f8b3fe174106eb86abcf9c1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Pair.js" @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e4fded1a10529e440c3d1f57393796004e475801a3b44fedfefa00dddc5de19 -size 1208 +'use strict'; + +var createNode = require('../doc/createNode.js'); +var stringifyPair = require('../stringify/stringifyPair.js'); +var addPairToJSMap = require('./addPairToJSMap.js'); +var Node = require('./Node.js'); + +function createPair(key, value, ctx) { + const k = createNode.createNode(key, undefined, ctx); + const v = createNode.createNode(value, undefined, ctx); + return new Pair(k, v); +} +class Pair { + constructor(key, value = null) { + Object.defineProperty(this, Node.NODE_TYPE, { value: Node.PAIR }); + this.key = key; + this.value = value; + } + clone(schema) { + let { key, value } = this; + if (Node.isNode(key)) + key = key.clone(schema); + if (Node.isNode(value)) + value = value.clone(schema); + return new Pair(key, value); + } + toJSON(_, ctx) { + const pair = ctx?.mapAsMap ? new Map() : {}; + return addPairToJSMap.addPairToJSMap(ctx, pair, this); + } + toString(ctx, onComment, onChompKeep) { + return ctx?.doc + ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) + : JSON.stringify(this); + } +} + +exports.Pair = Pair; +exports.createPair = createPair; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.d.ts" index dd069e45f6e1ce32bfe3c4fd9f8e03bcdd5b5604..dd330b2b1404da95a765d8984e6a3c407003fecd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.d.ts" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc9d4e784c9e7569911d8a6a01e1de90617942639c7c260beffdef1548b1ce06 -size 1663 +import type { BlockScalar, FlowScalar } from '../parse/cst.js'; +import { NodeBase, Range } from './Node.js'; +import { ToJSContext } from './toJS.js'; +export declare const isScalarValue: (value: unknown) => boolean; +export declare namespace Scalar { + interface Parsed extends Scalar { + range: Range; + source: string; + srcToken?: FlowScalar | BlockScalar; + } + type BLOCK_FOLDED = 'BLOCK_FOLDED'; + type BLOCK_LITERAL = 'BLOCK_LITERAL'; + type PLAIN = 'PLAIN'; + type QUOTE_DOUBLE = 'QUOTE_DOUBLE'; + type QUOTE_SINGLE = 'QUOTE_SINGLE'; + type Type = BLOCK_FOLDED | BLOCK_LITERAL | PLAIN | QUOTE_DOUBLE | QUOTE_SINGLE; +} +export declare class Scalar extends NodeBase { + static readonly BLOCK_FOLDED = "BLOCK_FOLDED"; + static readonly BLOCK_LITERAL = "BLOCK_LITERAL"; + static readonly PLAIN = "PLAIN"; + static readonly QUOTE_DOUBLE = "QUOTE_DOUBLE"; + static readonly QUOTE_SINGLE = "QUOTE_SINGLE"; + value: T; + /** An optional anchor on this node. Used by alias nodes. */ + anchor?: string; + /** + * By default (undefined), numbers use decimal notation. + * The YAML 1.2 core schema only supports 'HEX' and 'OCT'. + * The YAML 1.1 schema also supports 'BIN' and 'TIME' + */ + format?: string; + /** If `value` is a number, use this value when stringifying this node. */ + minFractionDigits?: number; + /** Set during parsing to the source string value */ + source?: string; + /** The scalar style used for the node's string representation */ + type?: Scalar.Type; + constructor(value: T); + toJSON(arg?: any, ctx?: ToJSContext): any; + toString(): string; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.js" index 1d43069c54248b9cc0616996fa689aedcb7a2c4e..255291363796264fa395c0c6795199245f38ae74 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/Scalar.js" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b8ae6bdf2cf60e06dd39a1c948746ae5929f37c7aa3186a114785bc2c6641f5c -size 714 +'use strict'; + +var Node = require('./Node.js'); +var toJS = require('./toJS.js'); + +const isScalarValue = (value) => !value || (typeof value !== 'function' && typeof value !== 'object'); +class Scalar extends Node.NodeBase { + constructor(value) { + super(Node.SCALAR); + this.value = value; + } + toJSON(arg, ctx) { + return ctx?.keep ? this.value : toJS.toJS(this.value, arg, ctx); + } + toString() { + return String(this.value); + } +} +Scalar.BLOCK_FOLDED = 'BLOCK_FOLDED'; +Scalar.BLOCK_LITERAL = 'BLOCK_LITERAL'; +Scalar.PLAIN = 'PLAIN'; +Scalar.QUOTE_DOUBLE = 'QUOTE_DOUBLE'; +Scalar.QUOTE_SINGLE = 'QUOTE_SINGLE'; + +exports.Scalar = Scalar; +exports.isScalarValue = isScalarValue; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.d.ts" index 454ff2fcfffea8999e450456742cf8983ec9dc8e..6e717815473f4cefe35814de1b00ab04cf6e753e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.d.ts" @@ -1,3 +1,47 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5ac83af1a323158abc8627462fe987f7c67f957f88cdcf2237ae4dddc26677a8 -size 2125 +import type { BlockMap, FlowCollection } from '../parse/cst.js'; +import type { Schema } from '../schema/Schema.js'; +import type { StringifyContext } from '../stringify/stringify.js'; +import { Collection } from './Collection.js'; +import { ParsedNode, Range } from './Node.js'; +import { Pair } from './Pair.js'; +import { Scalar } from './Scalar.js'; +import type { ToJSContext } from './toJS.js'; +export type MapLike = Map | Set | Record; +export declare function findPair(items: Iterable>, key: unknown): Pair | undefined; +export declare namespace YAMLMap { + interface Parsed extends YAMLMap { + items: Pair[]; + range: Range; + srcToken?: BlockMap | FlowCollection; + } +} +export declare class YAMLMap extends Collection { + static get tagName(): 'tag:yaml.org,2002:map'; + items: Pair[]; + constructor(schema?: Schema); + /** + * Adds a value to the collection. + * + * @param overwrite - If not set `true`, using a key that is already in the + * collection will throw. Otherwise, overwrites the previous value. + */ + add(pair: Pair | { + key: K; + value: V; + }, overwrite?: boolean): void; + delete(key: unknown): boolean; + get(key: unknown, keepScalar: true): Scalar | undefined; + get(key: unknown, keepScalar?: false): V | undefined; + get(key: unknown, keepScalar?: boolean): V | Scalar | undefined; + has(key: unknown): boolean; + set(key: K, value: V): void; + /** + * @param ctx - Conversion context, originally set in Document#toJS() + * @param {Class} Type - If set, forces the returned collection type + * @returns Instance of Type, Map, or Object + */ + toJSON>(_?: unknown, ctx?: ToJSContext, Type?: { + new (): T; + }): any; + toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.js" index 4d8567dcc29d0e97eb2705e9a458bfc80b706e39..6cab2465e59408388c6cc68ce2468dfe0ce22b79 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLMap.js" @@ -1,3 +1,119 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d8dcc8bb9027ebc720374fee8afff04d4f00286a2a0303e84bbad21143b6570 -size 4025 +'use strict'; + +var stringifyCollection = require('../stringify/stringifyCollection.js'); +var addPairToJSMap = require('./addPairToJSMap.js'); +var Collection = require('./Collection.js'); +var Node = require('./Node.js'); +var Pair = require('./Pair.js'); +var Scalar = require('./Scalar.js'); + +function findPair(items, key) { + const k = Node.isScalar(key) ? key.value : key; + for (const it of items) { + if (Node.isPair(it)) { + if (it.key === key || it.key === k) + return it; + if (Node.isScalar(it.key) && it.key.value === k) + return it; + } + } + return undefined; +} +class YAMLMap extends Collection.Collection { + static get tagName() { + return 'tag:yaml.org,2002:map'; + } + constructor(schema) { + super(Node.MAP, schema); + this.items = []; + } + /** + * Adds a value to the collection. + * + * @param overwrite - If not set `true`, using a key that is already in the + * collection will throw. Otherwise, overwrites the previous value. + */ + add(pair, overwrite) { + let _pair; + if (Node.isPair(pair)) + _pair = pair; + else if (!pair || typeof pair !== 'object' || !('key' in pair)) { + // In TypeScript, this never happens. + _pair = new Pair.Pair(pair, pair?.value); + } + else + _pair = new Pair.Pair(pair.key, pair.value); + const prev = findPair(this.items, _pair.key); + const sortEntries = this.schema?.sortMapEntries; + if (prev) { + if (!overwrite) + throw new Error(`Key ${_pair.key} already set`); + // For scalars, keep the old node & its comments and anchors + if (Node.isScalar(prev.value) && Scalar.isScalarValue(_pair.value)) + prev.value.value = _pair.value; + else + prev.value = _pair.value; + } + else if (sortEntries) { + const i = this.items.findIndex(item => sortEntries(_pair, item) < 0); + if (i === -1) + this.items.push(_pair); + else + this.items.splice(i, 0, _pair); + } + else { + this.items.push(_pair); + } + } + delete(key) { + const it = findPair(this.items, key); + if (!it) + return false; + const del = this.items.splice(this.items.indexOf(it), 1); + return del.length > 0; + } + get(key, keepScalar) { + const it = findPair(this.items, key); + const node = it?.value; + return (!keepScalar && Node.isScalar(node) ? node.value : node) ?? undefined; + } + has(key) { + return !!findPair(this.items, key); + } + set(key, value) { + this.add(new Pair.Pair(key, value), true); + } + /** + * @param ctx - Conversion context, originally set in Document#toJS() + * @param {Class} Type - If set, forces the returned collection type + * @returns Instance of Type, Map, or Object + */ + toJSON(_, ctx, Type) { + const map = Type ? new Type() : ctx?.mapAsMap ? new Map() : {}; + if (ctx?.onCreate) + ctx.onCreate(map); + for (const item of this.items) + addPairToJSMap.addPairToJSMap(ctx, map, item); + return map; + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + for (const item of this.items) { + if (!Node.isPair(item)) + throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`); + } + if (!ctx.allNullValues && this.hasAllNullValues(false)) + ctx = Object.assign({}, ctx, { allNullValues: true }); + return stringifyCollection.stringifyCollection(this, ctx, { + blockItemPrefix: '', + flowChars: { start: '{', end: '}' }, + itemIndent: ctx.indent || '', + onChompKeep, + onComment + }); + } +} + +exports.YAMLMap = YAMLMap; +exports.findPair = findPair; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.d.ts" index 34e026f83de538071611f185f761784c7a845982..df50233806633894136a52c31850123d73b81342 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.d.ts" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:df486e591f21d229d75df323fb9cf34f4b5cdbccee6a9b42227be738a13755d6 -size 2380 +import type { BlockSequence, FlowCollection } from '../parse/cst.js'; +import type { Schema } from '../schema/Schema.js'; +import type { StringifyContext } from '../stringify/stringify.js'; +import { Collection } from './Collection.js'; +import { ParsedNode, Range } from './Node.js'; +import type { Pair } from './Pair.js'; +import { Scalar } from './Scalar.js'; +import { ToJSContext } from './toJS.js'; +export declare namespace YAMLSeq { + interface Parsed = ParsedNode> extends YAMLSeq { + items: T[]; + range: Range; + srcToken?: BlockSequence | FlowCollection; + } +} +export declare class YAMLSeq extends Collection { + static get tagName(): 'tag:yaml.org,2002:seq'; + items: T[]; + constructor(schema?: Schema); + add(value: T): void; + /** + * Removes a value from the collection. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + * + * @returns `true` if the item was found and removed. + */ + delete(key: unknown): boolean; + /** + * Returns item at `key`, or `undefined` if not found. By default unwraps + * scalar values from their surrounding node; to disable set `keepScalar` to + * `true` (collections are always returned intact). + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + */ + get(key: unknown, keepScalar: true): Scalar | undefined; + get(key: unknown, keepScalar?: false): T | undefined; + get(key: unknown, keepScalar?: boolean): T | Scalar | undefined; + /** + * Checks if the collection includes a value with the key `key`. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + */ + has(key: unknown): boolean; + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + * + * If `key` does not contain a representation of an integer, this will throw. + * It may be wrapped in a `Scalar`. + */ + set(key: unknown, value: T): void; + toJSON(_?: unknown, ctx?: ToJSContext): unknown[]; + toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.js" index da77136068b017a5c18933a19d992f79199df3ac..5d8b9352d043c81d9e26fbc01d51ebe34e2ff1a2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/YAMLSeq.js" @@ -1,3 +1,99 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b72f5be9e1c67cf307ba96338488d3280d489741f3ddc349b68124fffeddb3c -size 3053 +'use strict'; + +var stringifyCollection = require('../stringify/stringifyCollection.js'); +var Collection = require('./Collection.js'); +var Node = require('./Node.js'); +var Scalar = require('./Scalar.js'); +var toJS = require('./toJS.js'); + +class YAMLSeq extends Collection.Collection { + static get tagName() { + return 'tag:yaml.org,2002:seq'; + } + constructor(schema) { + super(Node.SEQ, schema); + this.items = []; + } + add(value) { + this.items.push(value); + } + /** + * Removes a value from the collection. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + * + * @returns `true` if the item was found and removed. + */ + delete(key) { + const idx = asItemIndex(key); + if (typeof idx !== 'number') + return false; + const del = this.items.splice(idx, 1); + return del.length > 0; + } + get(key, keepScalar) { + const idx = asItemIndex(key); + if (typeof idx !== 'number') + return undefined; + const it = this.items[idx]; + return !keepScalar && Node.isScalar(it) ? it.value : it; + } + /** + * Checks if the collection includes a value with the key `key`. + * + * `key` must contain a representation of an integer for this to succeed. + * It may be wrapped in a `Scalar`. + */ + has(key) { + const idx = asItemIndex(key); + return typeof idx === 'number' && idx < this.items.length; + } + /** + * Sets a value in this collection. For `!!set`, `value` needs to be a + * boolean to add/remove the item from the set. + * + * If `key` does not contain a representation of an integer, this will throw. + * It may be wrapped in a `Scalar`. + */ + set(key, value) { + const idx = asItemIndex(key); + if (typeof idx !== 'number') + throw new Error(`Expected a valid index, not ${key}.`); + const prev = this.items[idx]; + if (Node.isScalar(prev) && Scalar.isScalarValue(value)) + prev.value = value; + else + this.items[idx] = value; + } + toJSON(_, ctx) { + const seq = []; + if (ctx?.onCreate) + ctx.onCreate(seq); + let i = 0; + for (const item of this.items) + seq.push(toJS.toJS(item, String(i++), ctx)); + return seq; + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + return stringifyCollection.stringifyCollection(this, ctx, { + blockItemPrefix: '- ', + flowChars: { start: '[', end: ']' }, + itemIndent: (ctx.indent || '') + ' ', + onChompKeep, + onComment + }); + } +} +function asItemIndex(key) { + let idx = Node.isScalar(key) ? key.value : key; + if (idx && typeof idx === 'string') + idx = Number(idx); + return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0 + ? idx + : null; +} + +exports.YAMLSeq = YAMLSeq; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts" index a50437e304385d9db937dc6f824eb96b073012fc..70d9e626d5c39475d127f49bbfb7f3eb48a2edd8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:394b4927dcc6eda44eb759f395da17b6e07f4daf272216b5cfc92eb32239f561 -size 240 +import type { Pair } from './Pair.js'; +import { ToJSContext } from './toJS.js'; +import type { MapLike } from './YAMLMap.js'; +export declare function addPairToJSMap(ctx: ToJSContext | undefined, map: MapLike, { key, value }: Pair): MapLike; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.js" index 535272cf4ace9ec9a8b8a2019e9ee95ff2f85aaf..2d3ab5c366e60a46f508a00581970c3987c09160 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/addPairToJSMap.js" @@ -1,3 +1,106 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f945e2ad11ed168dc3b2f45edb1a5c7d354fe927a02e726ce3619778012e7191 -size 3921 +'use strict'; + +var log = require('../log.js'); +var stringify = require('../stringify/stringify.js'); +var Node = require('./Node.js'); +var Scalar = require('./Scalar.js'); +var toJS = require('./toJS.js'); + +const MERGE_KEY = '<<'; +function addPairToJSMap(ctx, map, { key, value }) { + if (ctx?.doc.schema.merge && isMergeKey(key)) { + value = Node.isAlias(value) ? value.resolve(ctx.doc) : value; + if (Node.isSeq(value)) + for (const it of value.items) + mergeToJSMap(ctx, map, it); + else if (Array.isArray(value)) + for (const it of value) + mergeToJSMap(ctx, map, it); + else + mergeToJSMap(ctx, map, value); + } + else { + const jsKey = toJS.toJS(key, '', ctx); + if (map instanceof Map) { + map.set(jsKey, toJS.toJS(value, jsKey, ctx)); + } + else if (map instanceof Set) { + map.add(jsKey); + } + else { + const stringKey = stringifyKey(key, jsKey, ctx); + const jsValue = toJS.toJS(value, stringKey, ctx); + if (stringKey in map) + Object.defineProperty(map, stringKey, { + value: jsValue, + writable: true, + enumerable: true, + configurable: true + }); + else + map[stringKey] = jsValue; + } + } + return map; +} +const isMergeKey = (key) => key === MERGE_KEY || + (Node.isScalar(key) && + key.value === MERGE_KEY && + (!key.type || key.type === Scalar.Scalar.PLAIN)); +// If the value associated with a merge key is a single mapping node, each of +// its key/value pairs is inserted into the current mapping, unless the key +// already exists in it. If the value associated with the merge key is a +// sequence, then this sequence is expected to contain mapping nodes and each +// of these nodes is merged in turn according to its order in the sequence. +// Keys in mapping nodes earlier in the sequence override keys specified in +// later mapping nodes. -- http://yaml.org/type/merge.html +function mergeToJSMap(ctx, map, value) { + const source = ctx && Node.isAlias(value) ? value.resolve(ctx.doc) : value; + if (!Node.isMap(source)) + throw new Error('Merge sources must be maps or map aliases'); + const srcMap = source.toJSON(null, ctx, Map); + for (const [key, value] of srcMap) { + if (map instanceof Map) { + if (!map.has(key)) + map.set(key, value); + } + else if (map instanceof Set) { + map.add(key); + } + else if (!Object.prototype.hasOwnProperty.call(map, key)) { + Object.defineProperty(map, key, { + value, + writable: true, + enumerable: true, + configurable: true + }); + } + } + return map; +} +function stringifyKey(key, jsKey, ctx) { + if (jsKey === null) + return ''; + if (typeof jsKey !== 'object') + return String(jsKey); + if (Node.isNode(key) && ctx && ctx.doc) { + const strCtx = stringify.createStringifyContext(ctx.doc, {}); + strCtx.anchors = new Set(); + for (const node of ctx.anchors.keys()) + strCtx.anchors.add(node.anchor); + strCtx.inFlow = true; + strCtx.inStringifyKey = true; + const strKey = key.toString(strCtx); + if (!ctx.mapKeyWarned) { + let jsonStr = JSON.stringify(strKey); + if (jsonStr.length > 40) + jsonStr = jsonStr.substring(0, 36) + '..."'; + log.warn(ctx.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${jsonStr}. Set mapAsMap: true to use object keys.`); + ctx.mapKeyWarned = true; + } + return strKey; + } + return JSON.stringify(jsKey); +} + +exports.addPairToJSMap = addPairToJSMap; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.d.ts" index 4458f33f44d6b0a82e9f25ce271be9ca0851962b..85d794d18c35af6066d568f115baafd39850affe 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.d.ts" @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2bb86e343b4109c784b11070735fa881af5c870a409a3b87b13800ca2afef421 -size 1030 +import type { Document } from '../doc/Document.js'; +import type { stringify } from '../stringify/stringify.js'; +import { Node } from './Node.js'; +export interface AnchorData { + aliasCount: number; + count: number; + res: unknown; +} +export interface ToJSContext { + anchors: Map; + doc: Document; + keep: boolean; + mapAsMap: boolean; + mapKeyWarned: boolean; + maxAliasCount: number; + onCreate?: (res: unknown) => void; + /** Requiring this directly in Pair would create circular dependencies */ + stringify: typeof stringify; +} +/** + * Recursively convert any node or its contents to native JavaScript + * + * @param value - The input value + * @param arg - If `value` defines a `toJSON()` method, use this + * as its first argument + * @param ctx - Conversion context, originally set in Document#toJS(). If + * `{ keep: true }` is not set, output should be suitable for JSON + * stringification. + */ +export declare function toJS(value: any, arg: string | null, ctx?: ToJSContext): any; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.js" index 142c0801a9785383494d87372ed4ddd2fd181c99..e7404d5ba074ba6e82a58ad88ce2c7b6fe242e51 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/nodes/toJS.js" @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f09fdb8cbcbb50d31d78ae9ac6cc3ebc076ff017d3aaa69c111f93cf7e87eeb -size 1280 +'use strict'; + +var Node = require('./Node.js'); + +/** + * Recursively convert any node or its contents to native JavaScript + * + * @param value - The input value + * @param arg - If `value` defines a `toJSON()` method, use this + * as its first argument + * @param ctx - Conversion context, originally set in Document#toJS(). If + * `{ keep: true }` is not set, output should be suitable for JSON + * stringification. + */ +function toJS(value, arg, ctx) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-return + if (Array.isArray(value)) + return value.map((v, i) => toJS(v, String(i), ctx)); + if (value && typeof value.toJSON === 'function') { + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + if (!ctx || !Node.hasAnchor(value)) + return value.toJSON(arg, ctx); + const data = { aliasCount: 0, count: 1, res: undefined }; + ctx.anchors.set(value, data); + ctx.onCreate = res => { + data.res = res; + delete ctx.onCreate; + }; + const res = value.toJSON(arg, ctx); + if (ctx.onCreate) + ctx.onCreate(res); + return res; + } + if (typeof value === 'bigint' && !ctx?.keep) + return Number(value); + return value; +} + +exports.toJS = toJS; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/options.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/options.d.ts" index 7b0387fcc5cbed741dd251c4ce13efca5f44a7e0..85bec7ee7697b4c75e9775dfcb86adf6fd7f4502 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/options.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/options.d.ts" @@ -1,3 +1,338 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3956f34170e48abf902bc81055fb35a7e8b87109dbf3ca272d096d6d42cf7b84 -size 10870 +import type { Reviver } from './doc/applyReviver.js'; +import type { Directives } from './doc/directives.js'; +import type { LogLevelId } from './log.js'; +import type { ParsedNode } from './nodes/Node.js'; +import type { Pair } from './nodes/Pair.js'; +import type { Scalar } from './nodes/Scalar.js'; +import type { LineCounter } from './parse/line-counter.js'; +import type { Schema } from './schema/Schema.js'; +import type { Tags } from './schema/tags.js'; +import type { CollectionTag, ScalarTag } from './schema/types.js'; +export type ParseOptions = { + /** + * Whether integers should be parsed into BigInt rather than number values. + * + * Default: `false` + * + * https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/BigInt + */ + intAsBigInt?: boolean; + /** + * Include a `srcToken` value on each parsed `Node`, containing the CST token + * that was composed into this node. + * + * Default: `false` + */ + keepSourceTokens?: boolean; + /** + * If set, newlines will be tracked, to allow for `lineCounter.linePos(offset)` + * to provide the `{ line, col }` positions within the input. + */ + lineCounter?: LineCounter; + /** + * Include line/col position & node type directly in parse errors. + * + * Default: `true` + */ + prettyErrors?: boolean; + /** + * Detect and report errors that are required by the YAML 1.2 spec, + * but are caused by unambiguous content. + * + * Default: `true` + */ + strict?: boolean; + /** + * YAML requires map keys to be unique. By default, this is checked by + * comparing scalar values with `===`; deep equality is not checked for + * aliases or collections. If merge keys are enabled by the schema, + * multiple `<<` keys are allowed. + * + * Set `false` to disable, or provide your own comparator function to + * customise. The comparator will be passed two `ParsedNode` values, and + * is expected to return a `boolean` indicating their equality. + * + * Default: `true` + */ + uniqueKeys?: boolean | ((a: ParsedNode, b: ParsedNode) => boolean); +}; +export type DocumentOptions = { + /** + * @internal + * Used internally by Composer. If set and includes an explicit version, + * that overrides the `version` option. + */ + _directives?: Directives; + /** + * Control the logging level during parsing + * + * Default: `'warn'` + */ + logLevel?: LogLevelId; + /** + * The YAML version used by documents without a `%YAML` directive. + * + * Default: `"1.2"` + */ + version?: '1.1' | '1.2' | 'next'; +}; +export type SchemaOptions = { + /** + * When parsing, warn about compatibility issues with the given schema. + * When stringifying, use scalar styles that are parsed correctly + * by the `compat` schema as well as the actual schema. + * + * Default: `null` + */ + compat?: string | Tags | null; + /** + * Array of additional tags to include in the schema, or a function that may + * modify the schema's base tag array. + */ + customTags?: Tags | ((tags: Tags) => Tags) | null; + /** + * Enable support for `<<` merge keys. + * + * Default: `false` for YAML 1.2, `true` for earlier versions + */ + merge?: boolean; + /** + * When using the `'core'` schema, support parsing values with these + * explicit YAML 1.1 tags: + * + * `!!binary`, `!!omap`, `!!pairs`, `!!set`, `!!timestamp`. + * + * Default `true` + */ + resolveKnownTags?: boolean; + /** + * The base schema to use. + * + * The core library has built-in support for the following: + * - `'failsafe'`: A minimal schema that parses all scalars as strings + * - `'core'`: The YAML 1.2 core schema + * - `'json'`: The YAML 1.2 JSON schema, with minimal rules for JSON compatibility + * - `'yaml-1.1'`: The YAML 1.1 schema + * + * If using another (custom) schema, the `customTags` array needs to + * fully define the schema's tags. + * + * Default: `'core'` for YAML 1.2, `'yaml-1.1'` for earlier versions + */ + schema?: string | Schema; + /** + * When adding to or stringifying a map, sort the entries. + * If `true`, sort by comparing key values with `<`. + * Does not affect item order when parsing. + * + * Default: `false` + */ + sortMapEntries?: boolean | ((a: Pair, b: Pair) => number); + /** + * Override default values for `toString()` options. + */ + toStringDefaults?: ToStringOptions; +}; +export type CreateNodeOptions = { + /** + * During node construction, use anchors and aliases to keep strictly equal + * non-null objects as equivalent in YAML. + * + * Default: `true` + */ + aliasDuplicateObjects?: boolean; + /** + * Default prefix for anchors. + * + * Default: `'a'`, resulting in anchors `a1`, `a2`, etc. + */ + anchorPrefix?: string; + /** Force the top-level collection node to use flow style. */ + flow?: boolean; + /** + * Keep `undefined` object values when creating mappings, rather than + * discarding them. + * + * Default: `false` + */ + keepUndefined?: boolean | null; + onTagObj?: (tagObj: ScalarTag | CollectionTag) => void; + /** + * Specify the top-level collection type, e.g. `"!!omap"`. Note that this + * requires the corresponding tag to be available in this document's schema. + */ + tag?: string; +}; +export type ToJSOptions = { + /** + * Use Map rather than Object to represent mappings. + * + * Default: `false` + */ + mapAsMap?: boolean; + /** + * Prevent exponential entity expansion attacks by limiting data aliasing count; + * set to `-1` to disable checks; `0` disallows all alias nodes. + * + * Default: `100` + */ + maxAliasCount?: number; + /** + * If defined, called with the resolved `value` and reference `count` for + * each anchor in the document. + */ + onAnchor?: (value: unknown, count: number) => void; + /** + * Optional function that may filter or modify the output JS value + * + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#using_the_reviver_parameter + */ + reviver?: Reviver; +}; +export type ToStringOptions = { + /** + * Use block quote styles for scalar values where applicable. + * Set to `false` to disable block quotes completely. + * + * Default: `true` + */ + blockQuote?: boolean | 'folded' | 'literal'; + /** + * Enforce `'block'` or `'flow'` style on maps and sequences. + * Empty collections will always be stringified as `{}` or `[]`. + * + * Default: `'any'`, allowing each node to set its style separately + * with its `flow: boolean` (default `false`) property. + */ + collectionStyle?: 'any' | 'block' | 'flow'; + /** + * Comment stringifier. + * Output should be valid for the current schema. + * + * By default, empty comment lines are left empty, + * lines consisting of a single space are replaced by `#`, + * and all other lines are prefixed with a `#`. + */ + commentString?: (comment: string) => string; + /** + * The default type of string literal used to stringify implicit key values. + * Output may use other types if required to fully represent the value. + * + * If `null`, the value of `defaultStringType` is used. + * + * Default: `null` + */ + defaultKeyType?: Scalar.Type | null; + /** + * The default type of string literal used to stringify values in general. + * Output may use other types if required to fully represent the value. + * + * Default: `'PLAIN'` + */ + defaultStringType?: Scalar.Type; + /** + * Include directives in the output. + * + * - If `true`, at least the document-start marker `---` is always included. + * This does not force the `%YAML` directive to be included. To do that, + * set `doc.directives.yaml.explicit = true`. + * - If `false`, no directives or marker is ever included. If using the `%TAG` + * directive, you are expected to include it manually in the stream before + * its use. + * - If `null`, directives and marker may be included if required. + * + * Default: `null` + */ + directives?: boolean | null; + /** + * Restrict double-quoted strings to use JSON-compatible syntax. + * + * Default: `false` + */ + doubleQuotedAsJSON?: boolean; + /** + * Minimum length for double-quoted strings to use multiple lines to + * represent the value. Ignored if `doubleQuotedAsJSON` is set. + * + * Default: `40` + */ + doubleQuotedMinMultiLineLength?: number; + /** + * String representation for `false`. + * With the core schema, use `'false'`, `'False'`, or `'FALSE'`. + * + * Default: `'false'` + */ + falseStr?: string; + /** + * When true, a single space of padding will be added inside the delimiters + * of non-empty single-line flow collections. + * + * Default: `true` + */ + flowCollectionPadding?: boolean; + /** + * The number of spaces to use when indenting code. + * + * Default: `2` + */ + indent?: number; + /** + * Whether block sequences should be indented. + * + * Default: `true` + */ + indentSeq?: boolean; + /** + * Maximum line width (set to `0` to disable folding). + * + * This is a soft limit, as only double-quoted semantics allow for inserting + * a line break in the middle of a word, as well as being influenced by the + * `minContentWidth` option. + * + * Default: `80` + */ + lineWidth?: number; + /** + * Minimum line width for highly-indented content (set to `0` to disable). + * + * Default: `20` + */ + minContentWidth?: number; + /** + * String representation for `null`. + * With the core schema, use `'null'`, `'Null'`, `'NULL'`, `'~'`, or an empty + * string `''`. + * + * Default: `'null'` + */ + nullStr?: string; + /** + * Require keys to be scalars and to use implicit rather than explicit notation. + * + * Default: `false` + */ + simpleKeys?: boolean; + /** + * Use 'single quote' rather than "double quote" where applicable. + * Set to `false` to disable single quotes completely. + * + * Default: `null` + */ + singleQuote?: boolean | null; + /** + * String representation for `true`. + * With the core schema, use `'true'`, `'True'`, or `'TRUE'`. + * + * Default: `'true'` + */ + trueStr?: string; + /** + * The anchor used by an alias must be defined before the alias node. As it's + * possible for the document to be modified manually, the order may be + * verified during stringification. + * + * Default: `'true'` + */ + verifyAliasOrder?: boolean; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.d.ts" index 4ca65e8523a0f4f7c187a5a3864452052747f9f1..a7bd1d602fa519f9de35fa6541ce36de9212048f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.d.ts" @@ -1,3 +1,64 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:960923ce078ecfef6e5c34468cdba5c552b064c0db7cb0fdd3eafd1bb9d3d7e9 -size 3530 +import { ErrorCode } from '../errors.js'; +import { Range } from '../nodes/Node.js'; +import type { Scalar } from '../nodes/Scalar.js'; +import type { BlockScalar, FlowScalar, SourceToken, Token } from './cst.js'; +/** + * If `token` is a CST flow or block scalar, determine its string value and a few other attributes. + * Otherwise, return `null`. + */ +export declare function resolveAsScalar(token: FlowScalar | BlockScalar, strict?: boolean, onError?: (offset: number, code: ErrorCode, message: string) => void): { + value: string; + type: Scalar.Type | null; + comment: string; + range: Range; +}; +export declare function resolveAsScalar(token: Token | null | undefined, strict?: boolean, onError?: (offset: number, code: ErrorCode, message: string) => void): { + value: string; + type: Scalar.Type | null; + comment: string; + range: Range; +} | null; +/** + * Create a new scalar token with `value` + * + * Values that represent an actual string but may be parsed as a different type should use a `type` other than `'PLAIN'`, + * as this function does not support any schema operations and won't check for such conflicts. + * + * @param value The string representation of the value, which will have its content properly indented. + * @param context.end Comments and whitespace after the end of the value, or after the block scalar header. If undefined, a newline will be added. + * @param context.implicitKey Being within an implicit key may affect the resolved type of the token's value. + * @param context.indent The indent level of the token. + * @param context.inFlow Is this scalar within a flow collection? This may affect the resolved type of the token's value. + * @param context.offset The offset position of the token. + * @param context.type The preferred type of the scalar token. If undefined, the previous type of the `token` will be used, defaulting to `'PLAIN'`. + */ +export declare function createScalarToken(value: string, context: { + end?: SourceToken[]; + implicitKey?: boolean; + indent: number; + inFlow?: boolean; + offset?: number; + type?: Scalar.Type; +}): BlockScalar | FlowScalar; +/** + * Set the value of `token` to the given string `value`, overwriting any previous contents and type that it may have. + * + * Best efforts are made to retain any comments previously associated with the `token`, + * though all contents within a collection's `items` will be overwritten. + * + * Values that represent an actual string but may be parsed as a different type should use a `type` other than `'PLAIN'`, + * as this function does not support any schema operations and won't check for such conflicts. + * + * @param token Any token. If it does not include an `indent` value, the value will be stringified as if it were an implicit key. + * @param value The string representation of the value, which will have its content properly indented. + * @param context.afterKey In most cases, values after a key should have an additional level of indentation. + * @param context.implicitKey Being within an implicit key may affect the resolved type of the token's value. + * @param context.inFlow Being within a flow collection may affect the resolved type of the token's value. + * @param context.type The preferred type of the scalar token. If undefined, the previous type of the `token` will be used, defaulting to `'PLAIN'`. + */ +export declare function setScalarValue(token: Token, value: string, context?: { + afterKey?: boolean; + implicitKey?: boolean; + inFlow?: boolean; + type?: Scalar.Type; +}): void; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.js" index e6abbbab83fffd2c0818ddc165920222d4996cea..11c5fccb721968fa56cbd7cc325637f2b5b125e0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-scalar.js" @@ -1,3 +1,218 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b7504a332f4152e40f623c623f2d44d24a8379d94837cbbbe06d4ebaf8ffba8 -size 9365 +'use strict'; + +var resolveBlockScalar = require('../compose/resolve-block-scalar.js'); +var resolveFlowScalar = require('../compose/resolve-flow-scalar.js'); +var errors = require('../errors.js'); +var stringifyString = require('../stringify/stringifyString.js'); + +function resolveAsScalar(token, strict = true, onError) { + if (token) { + const _onError = (pos, code, message) => { + const offset = typeof pos === 'number' ? pos : Array.isArray(pos) ? pos[0] : pos.offset; + if (onError) + onError(offset, code, message); + else + throw new errors.YAMLParseError([offset, offset + 1], code, message); + }; + switch (token.type) { + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + return resolveFlowScalar.resolveFlowScalar(token, strict, _onError); + case 'block-scalar': + return resolveBlockScalar.resolveBlockScalar(token, strict, _onError); + } + } + return null; +} +/** + * Create a new scalar token with `value` + * + * Values that represent an actual string but may be parsed as a different type should use a `type` other than `'PLAIN'`, + * as this function does not support any schema operations and won't check for such conflicts. + * + * @param value The string representation of the value, which will have its content properly indented. + * @param context.end Comments and whitespace after the end of the value, or after the block scalar header. If undefined, a newline will be added. + * @param context.implicitKey Being within an implicit key may affect the resolved type of the token's value. + * @param context.indent The indent level of the token. + * @param context.inFlow Is this scalar within a flow collection? This may affect the resolved type of the token's value. + * @param context.offset The offset position of the token. + * @param context.type The preferred type of the scalar token. If undefined, the previous type of the `token` will be used, defaulting to `'PLAIN'`. + */ +function createScalarToken(value, context) { + const { implicitKey = false, indent, inFlow = false, offset = -1, type = 'PLAIN' } = context; + const source = stringifyString.stringifyString({ type, value }, { + implicitKey, + indent: indent > 0 ? ' '.repeat(indent) : '', + inFlow, + options: { blockQuote: true, lineWidth: -1 } + }); + const end = context.end ?? [ + { type: 'newline', offset: -1, indent, source: '\n' } + ]; + switch (source[0]) { + case '|': + case '>': { + const he = source.indexOf('\n'); + const head = source.substring(0, he); + const body = source.substring(he + 1) + '\n'; + const props = [ + { type: 'block-scalar-header', offset, indent, source: head } + ]; + if (!addEndtoBlockProps(props, end)) + props.push({ type: 'newline', offset: -1, indent, source: '\n' }); + return { type: 'block-scalar', offset, indent, props, source: body }; + } + case '"': + return { type: 'double-quoted-scalar', offset, indent, source, end }; + case "'": + return { type: 'single-quoted-scalar', offset, indent, source, end }; + default: + return { type: 'scalar', offset, indent, source, end }; + } +} +/** + * Set the value of `token` to the given string `value`, overwriting any previous contents and type that it may have. + * + * Best efforts are made to retain any comments previously associated with the `token`, + * though all contents within a collection's `items` will be overwritten. + * + * Values that represent an actual string but may be parsed as a different type should use a `type` other than `'PLAIN'`, + * as this function does not support any schema operations and won't check for such conflicts. + * + * @param token Any token. If it does not include an `indent` value, the value will be stringified as if it were an implicit key. + * @param value The string representation of the value, which will have its content properly indented. + * @param context.afterKey In most cases, values after a key should have an additional level of indentation. + * @param context.implicitKey Being within an implicit key may affect the resolved type of the token's value. + * @param context.inFlow Being within a flow collection may affect the resolved type of the token's value. + * @param context.type The preferred type of the scalar token. If undefined, the previous type of the `token` will be used, defaulting to `'PLAIN'`. + */ +function setScalarValue(token, value, context = {}) { + let { afterKey = false, implicitKey = false, inFlow = false, type } = context; + let indent = 'indent' in token ? token.indent : null; + if (afterKey && typeof indent === 'number') + indent += 2; + if (!type) + switch (token.type) { + case 'single-quoted-scalar': + type = 'QUOTE_SINGLE'; + break; + case 'double-quoted-scalar': + type = 'QUOTE_DOUBLE'; + break; + case 'block-scalar': { + const header = token.props[0]; + if (header.type !== 'block-scalar-header') + throw new Error('Invalid block scalar header'); + type = header.source[0] === '>' ? 'BLOCK_FOLDED' : 'BLOCK_LITERAL'; + break; + } + default: + type = 'PLAIN'; + } + const source = stringifyString.stringifyString({ type, value }, { + implicitKey: implicitKey || indent === null, + indent: indent !== null && indent > 0 ? ' '.repeat(indent) : '', + inFlow, + options: { blockQuote: true, lineWidth: -1 } + }); + switch (source[0]) { + case '|': + case '>': + setBlockScalarValue(token, source); + break; + case '"': + setFlowScalarValue(token, source, 'double-quoted-scalar'); + break; + case "'": + setFlowScalarValue(token, source, 'single-quoted-scalar'); + break; + default: + setFlowScalarValue(token, source, 'scalar'); + } +} +function setBlockScalarValue(token, source) { + const he = source.indexOf('\n'); + const head = source.substring(0, he); + const body = source.substring(he + 1) + '\n'; + if (token.type === 'block-scalar') { + const header = token.props[0]; + if (header.type !== 'block-scalar-header') + throw new Error('Invalid block scalar header'); + header.source = head; + token.source = body; + } + else { + const { offset } = token; + const indent = 'indent' in token ? token.indent : -1; + const props = [ + { type: 'block-scalar-header', offset, indent, source: head } + ]; + if (!addEndtoBlockProps(props, 'end' in token ? token.end : undefined)) + props.push({ type: 'newline', offset: -1, indent, source: '\n' }); + for (const key of Object.keys(token)) + if (key !== 'type' && key !== 'offset') + delete token[key]; + Object.assign(token, { type: 'block-scalar', indent, props, source: body }); + } +} +/** @returns `true` if last token is a newline */ +function addEndtoBlockProps(props, end) { + if (end) + for (const st of end) + switch (st.type) { + case 'space': + case 'comment': + props.push(st); + break; + case 'newline': + props.push(st); + return true; + } + return false; +} +function setFlowScalarValue(token, source, type) { + switch (token.type) { + case 'scalar': + case 'double-quoted-scalar': + case 'single-quoted-scalar': + token.type = type; + token.source = source; + break; + case 'block-scalar': { + const end = token.props.slice(1); + let oa = source.length; + if (token.props[0].type === 'block-scalar-header') + oa -= token.props[0].source.length; + for (const tok of end) + tok.offset += oa; + delete token.props; + Object.assign(token, { type, source, end }); + break; + } + case 'block-map': + case 'block-seq': { + const offset = token.offset + source.length; + const nl = { type: 'newline', offset, indent: token.indent, source: '\n' }; + delete token.items; + Object.assign(token, { type, source, end: [nl] }); + break; + } + default: { + const indent = 'indent' in token ? token.indent : -1; + const end = 'end' in token && Array.isArray(token.end) + ? token.end.filter(st => st.type === 'space' || + st.type === 'comment' || + st.type === 'newline') + : []; + for (const key of Object.keys(token)) + if (key !== 'type' && key !== 'offset') + delete token[key]; + Object.assign(token, { type, indent, source, end }); + } + } +} + +exports.createScalarToken = createScalarToken; +exports.resolveAsScalar = resolveAsScalar; +exports.setScalarValue = setScalarValue; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.d.ts" index d25ee65943018c5de313c22e5c5d26ddd0510044..dbf66d687afa26f5a2e0f75b634e63ed2b477215 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.d.ts" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:42f034630b3a866d4a88b37cf0f8357b36af2f7298b319d536b7413ba99f979b -size 313 +import type { CollectionItem, Token } from './cst.js'; +/** + * Stringify a CST document, token, or collection item + * + * Fair warning: This applies no validation whatsoever, and + * simply concatenates the sources in their logical order. + */ +export declare const stringify: (cst: Token | CollectionItem) => string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.js" index e7a74437b2716b87caaf111e5cbd33e864767d5d..78e8c3722129713613b1eed34ec7f974a0978a32 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-stringify.js" @@ -1,3 +1,63 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d14a7a286cff9c1a578ab15839388ea76f77ae79293db25b235394bcc377b51 -size 1799 +'use strict'; + +/** + * Stringify a CST document, token, or collection item + * + * Fair warning: This applies no validation whatsoever, and + * simply concatenates the sources in their logical order. + */ +const stringify = (cst) => 'type' in cst ? stringifyToken(cst) : stringifyItem(cst); +function stringifyToken(token) { + switch (token.type) { + case 'block-scalar': { + let res = ''; + for (const tok of token.props) + res += stringifyToken(tok); + return res + token.source; + } + case 'block-map': + case 'block-seq': { + let res = ''; + for (const item of token.items) + res += stringifyItem(item); + return res; + } + case 'flow-collection': { + let res = token.start.source; + for (const item of token.items) + res += stringifyItem(item); + for (const st of token.end) + res += st.source; + return res; + } + case 'document': { + let res = stringifyItem(token); + if (token.end) + for (const st of token.end) + res += st.source; + return res; + } + default: { + let res = token.source; + if ('end' in token && token.end) + for (const st of token.end) + res += st.source; + return res; + } + } +} +function stringifyItem({ start, key, sep, value }) { + let res = ''; + for (const st of start) + res += st.source; + if (key) + res += stringifyToken(key); + if (sep) + for (const st of sep) + res += st.source; + if (value) + res += stringifyToken(value); + return res; +} + +exports.stringify = stringify; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.d.ts" index 17c06d48e49b6dc90ead3146d8c5c35b1d24a4f1..4f21f05bb501b3192cf9c75bb28aab6a07ff842c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.d.ts" @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33d1d46d7789bebdf9b78cd54f39022aad5d7d1d03a58bdad4fe98658acfef06 -size 2260 +import type { CollectionItem, Document } from './cst.js'; +export type VisitPath = readonly ['key' | 'value', number][]; +export type Visitor = (item: CollectionItem, path: VisitPath) => number | symbol | Visitor | void; +/** + * Apply a visitor to a CST document or item. + * + * Walks through the tree (depth-first) starting from the root, calling a + * `visitor` function with two arguments when entering each item: + * - `item`: The current item, which included the following members: + * - `start: SourceToken[]` – Source tokens before the key or value, + * possibly including its anchor or tag. + * - `key?: Token | null` – Set for pair values. May then be `null`, if + * the key before the `:` separator is empty. + * - `sep?: SourceToken[]` – Source tokens between the key and the value, + * which should include the `:` map value indicator if `value` is set. + * - `value?: Token` – The value of a sequence item, or of a map pair. + * - `path`: The steps from the root to the current node, as an array of + * `['key' | 'value', number]` tuples. + * + * The return value of the visitor may be used to control the traversal: + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this token, continue with + * next sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current item, then continue with the next one + * - `number`: Set the index of the next step. This is useful especially if + * the index of the current token has changed. + * - `function`: Define the next visitor for this item. After the original + * visitor is called on item entry, next visitors are called after handling + * a non-empty `key` and when exiting the item. + */ +export declare function visit(cst: Document | CollectionItem, visitor: Visitor): void; +export declare namespace visit { + var BREAK: symbol; + var SKIP: symbol; + var REMOVE: symbol; + var itemAtPath: (cst: Document | CollectionItem, path: VisitPath) => CollectionItem | undefined; + var parentCollection: (cst: Document | CollectionItem, path: VisitPath) => import("./cst.js").BlockMap | import("./cst.js").BlockSequence | import("./cst.js").FlowCollection; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.js" index e400127f23f896a33ac6030686d50743d8fee47e..9ceee936bce831a95ad6f539f2bbe632faa7c4ba 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst-visit.js" @@ -1,3 +1,99 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:525535fc05841407420be6505804c74d873eb3aaa9319679896f7a24a474ca01 -size 3986 +'use strict'; + +const BREAK = Symbol('break visit'); +const SKIP = Symbol('skip children'); +const REMOVE = Symbol('remove item'); +/** + * Apply a visitor to a CST document or item. + * + * Walks through the tree (depth-first) starting from the root, calling a + * `visitor` function with two arguments when entering each item: + * - `item`: The current item, which included the following members: + * - `start: SourceToken[]` – Source tokens before the key or value, + * possibly including its anchor or tag. + * - `key?: Token | null` – Set for pair values. May then be `null`, if + * the key before the `:` separator is empty. + * - `sep?: SourceToken[]` – Source tokens between the key and the value, + * which should include the `:` map value indicator if `value` is set. + * - `value?: Token` – The value of a sequence item, or of a map pair. + * - `path`: The steps from the root to the current node, as an array of + * `['key' | 'value', number]` tuples. + * + * The return value of the visitor may be used to control the traversal: + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this token, continue with + * next sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current item, then continue with the next one + * - `number`: Set the index of the next step. This is useful especially if + * the index of the current token has changed. + * - `function`: Define the next visitor for this item. After the original + * visitor is called on item entry, next visitors are called after handling + * a non-empty `key` and when exiting the item. + */ +function visit(cst, visitor) { + if ('type' in cst && cst.type === 'document') + cst = { start: cst.start, value: cst.value }; + _visit(Object.freeze([]), cst, visitor); +} +// Without the `as symbol` casts, TS declares these in the `visit` +// namespace using `var`, but then complains about that because +// `unique symbol` must be `const`. +/** Terminate visit traversal completely */ +visit.BREAK = BREAK; +/** Do not visit the children of the current item */ +visit.SKIP = SKIP; +/** Remove the current item */ +visit.REMOVE = REMOVE; +/** Find the item at `path` from `cst` as the root */ +visit.itemAtPath = (cst, path) => { + let item = cst; + for (const [field, index] of path) { + const tok = item?.[field]; + if (tok && 'items' in tok) { + item = tok.items[index]; + } + else + return undefined; + } + return item; +}; +/** + * Get the immediate parent collection of the item at `path` from `cst` as the root. + * + * Throws an error if the collection is not found, which should never happen if the item itself exists. + */ +visit.parentCollection = (cst, path) => { + const parent = visit.itemAtPath(cst, path.slice(0, -1)); + const field = path[path.length - 1][0]; + const coll = parent?.[field]; + if (coll && 'items' in coll) + return coll; + throw new Error('Parent collection not found'); +}; +function _visit(path, item, visitor) { + let ctrl = visitor(item, path); + if (typeof ctrl === 'symbol') + return ctrl; + for (const field of ['key', 'value']) { + const token = item[field]; + if (token && 'items' in token) { + for (let i = 0; i < token.items.length; ++i) { + const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + token.items.splice(i, 1); + i -= 1; + } + } + if (typeof ctrl === 'function' && field === 'key') + ctrl = ctrl(item, path); + } + } + return typeof ctrl === 'function' ? ctrl(item, path) : ctrl; +} + +exports.visit = visit; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.d.ts" index d93a6fb795877b9912241ae02d9d0df2b4048dc3..bfe7fc14425d0ecad512f3d18f5486c0254c4d2b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.d.ts" @@ -1,3 +1,106 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3956ba310c0bcd45b1c77455a9754a35b49642be91bfbb412e04d378fad83a1 -size 3418 +export { createScalarToken, resolveAsScalar, setScalarValue } from './cst-scalar.js'; +export { stringify } from './cst-stringify.js'; +export { visit, Visitor, VisitPath } from './cst-visit.js'; +export interface SourceToken { + type: 'byte-order-mark' | 'doc-mode' | 'doc-start' | 'space' | 'comment' | 'newline' | 'directive-line' | 'anchor' | 'tag' | 'seq-item-ind' | 'explicit-key-ind' | 'map-value-ind' | 'flow-map-start' | 'flow-map-end' | 'flow-seq-start' | 'flow-seq-end' | 'flow-error-end' | 'comma' | 'block-scalar-header'; + offset: number; + indent: number; + source: string; +} +export interface ErrorToken { + type: 'error'; + offset: number; + source: string; + message: string; +} +export interface Directive { + type: 'directive'; + offset: number; + source: string; +} +export interface Document { + type: 'document'; + offset: number; + start: SourceToken[]; + value?: Token; + end?: SourceToken[]; +} +export interface DocumentEnd { + type: 'doc-end'; + offset: number; + source: string; + end?: SourceToken[]; +} +export interface FlowScalar { + type: 'alias' | 'scalar' | 'single-quoted-scalar' | 'double-quoted-scalar'; + offset: number; + indent: number; + source: string; + end?: SourceToken[]; +} +export interface BlockScalar { + type: 'block-scalar'; + offset: number; + indent: number; + props: Token[]; + source: string; +} +export interface BlockMap { + type: 'block-map'; + offset: number; + indent: number; + items: Array<{ + start: SourceToken[]; + key?: never; + sep?: never; + value?: never; + } | { + start: SourceToken[]; + key: Token | null; + sep: SourceToken[]; + value?: Token; + }>; +} +export interface BlockSequence { + type: 'block-seq'; + offset: number; + indent: number; + items: Array<{ + start: SourceToken[]; + key?: never; + sep?: never; + value?: Token; + }>; +} +export type CollectionItem = { + start: SourceToken[]; + key?: Token | null; + sep?: SourceToken[]; + value?: Token; +}; +export interface FlowCollection { + type: 'flow-collection'; + offset: number; + indent: number; + start: SourceToken; + items: CollectionItem[]; + end: SourceToken[]; +} +export type Token = SourceToken | ErrorToken | Directive | Document | DocumentEnd | FlowScalar | BlockScalar | BlockMap | BlockSequence | FlowCollection; +export type TokenType = SourceToken['type'] | DocumentEnd['type'] | FlowScalar['type']; +/** The byte order mark */ +export declare const BOM = "\uFEFF"; +/** Start of doc-mode */ +export declare const DOCUMENT = "\u0002"; +/** Unexpected end of flow-mode */ +export declare const FLOW_END = "\u0018"; +/** Next token is a scalar value */ +export declare const SCALAR = "\u001F"; +/** @returns `true` if `token` is a flow or block collection */ +export declare const isCollection: (token: Token | null | undefined) => token is BlockMap | BlockSequence | FlowCollection; +/** @returns `true` if `token` is a flow or block scalar; not an alias */ +export declare const isScalar: (token: Token | null | undefined) => token is BlockScalar | FlowScalar; +/** Get a printable representation of a lexer token */ +export declare function prettyToken(token: string): string; +/** Identify the type of a lexer token. May return `null` for unknown tokens. */ +export declare function tokenType(source: string): TokenType | null; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.js" index a0c2710efc8cd4c14cbed847424ca03fe25f2bac..613c229b270c5fdef313eb219027a61e9b7a8637 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/cst.js" @@ -1,3 +1,112 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:acc25760d010068844f36f4aefc7fe6f5f6048fd7f8fcc29d4290e154819d1a4 -size 3242 +'use strict'; + +var cstScalar = require('./cst-scalar.js'); +var cstStringify = require('./cst-stringify.js'); +var cstVisit = require('./cst-visit.js'); + +/** The byte order mark */ +const BOM = '\u{FEFF}'; +/** Start of doc-mode */ +const DOCUMENT = '\x02'; // C0: Start of Text +/** Unexpected end of flow-mode */ +const FLOW_END = '\x18'; // C0: Cancel +/** Next token is a scalar value */ +const SCALAR = '\x1f'; // C0: Unit Separator +/** @returns `true` if `token` is a flow or block collection */ +const isCollection = (token) => !!token && 'items' in token; +/** @returns `true` if `token` is a flow or block scalar; not an alias */ +const isScalar = (token) => !!token && + (token.type === 'scalar' || + token.type === 'single-quoted-scalar' || + token.type === 'double-quoted-scalar' || + token.type === 'block-scalar'); +/* istanbul ignore next */ +/** Get a printable representation of a lexer token */ +function prettyToken(token) { + switch (token) { + case BOM: + return ''; + case DOCUMENT: + return ''; + case FLOW_END: + return ''; + case SCALAR: + return ''; + default: + return JSON.stringify(token); + } +} +/** Identify the type of a lexer token. May return `null` for unknown tokens. */ +function tokenType(source) { + switch (source) { + case BOM: + return 'byte-order-mark'; + case DOCUMENT: + return 'doc-mode'; + case FLOW_END: + return 'flow-error-end'; + case SCALAR: + return 'scalar'; + case '---': + return 'doc-start'; + case '...': + return 'doc-end'; + case '': + case '\n': + case '\r\n': + return 'newline'; + case '-': + return 'seq-item-ind'; + case '?': + return 'explicit-key-ind'; + case ':': + return 'map-value-ind'; + case '{': + return 'flow-map-start'; + case '}': + return 'flow-map-end'; + case '[': + return 'flow-seq-start'; + case ']': + return 'flow-seq-end'; + case ',': + return 'comma'; + } + switch (source[0]) { + case ' ': + case '\t': + return 'space'; + case '#': + return 'comment'; + case '%': + return 'directive-line'; + case '*': + return 'alias'; + case '&': + return 'anchor'; + case '!': + return 'tag'; + case "'": + return 'single-quoted-scalar'; + case '"': + return 'double-quoted-scalar'; + case '|': + case '>': + return 'block-scalar-header'; + } + return null; +} + +exports.createScalarToken = cstScalar.createScalarToken; +exports.resolveAsScalar = cstScalar.resolveAsScalar; +exports.setScalarValue = cstScalar.setScalarValue; +exports.stringify = cstStringify.stringify; +exports.visit = cstVisit.visit; +exports.BOM = BOM; +exports.DOCUMENT = DOCUMENT; +exports.FLOW_END = FLOW_END; +exports.SCALAR = SCALAR; +exports.isCollection = isCollection; +exports.isScalar = isScalar; +exports.prettyToken = prettyToken; +exports.tokenType = tokenType; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.d.ts" index d7aa12d0ae56a73cd83023c57dce39881b517f74..238e7b54dd2c15440185b4cad1260b22e6c8325f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.d.ts" @@ -1,3 +1,87 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:843563f951d16e850a0be806010f630a4a71f0a55810bb9aced67c6d7774bf2f -size 2930 +/** + * Splits an input string into lexical tokens, i.e. smaller strings that are + * easily identifiable by `tokens.tokenType()`. + * + * Lexing starts always in a "stream" context. Incomplete input may be buffered + * until a complete token can be emitted. + * + * In addition to slices of the original input, the following control characters + * may also be emitted: + * + * - `\x02` (Start of Text): A document starts with the next token + * - `\x18` (Cancel): Unexpected end of flow-mode (indicates an error) + * - `\x1f` (Unit Separator): Next token is a scalar value + * - `\u{FEFF}` (Byte order mark): Emitted separately outside documents + */ +export declare class Lexer { + /** + * Flag indicating whether the end of the current buffer marks the end of + * all input + */ + private atEnd; + /** + * Explicit indent set in block scalar header, as an offset from the current + * minimum indent, so e.g. set to 1 from a header `|2+`. Set to -1 if not + * explicitly set. + */ + private blockScalarIndent; + /** + * Block scalars that include a + (keep) chomping indicator in their header + * include trailing empty lines, which are otherwise excluded from the + * scalar's contents. + */ + private blockScalarKeep; + /** Current input */ + private buffer; + /** + * Flag noting whether the map value indicator : can immediately follow this + * node within a flow context. + */ + private flowKey; + /** Count of surrounding flow collection levels. */ + private flowLevel; + /** + * Minimum level of indentation required for next lines to be parsed as a + * part of the current scalar value. + */ + private indentNext; + /** Indentation level of the current line. */ + private indentValue; + /** Position of the next \n character. */ + private lineEndPos; + /** Stores the state of the lexer if reaching the end of incpomplete input */ + private next; + /** A pointer to `buffer`; the current position of the lexer. */ + private pos; + /** + * Generate YAML tokens from the `source` string. If `incomplete`, + * a part of the last line may be left as a buffer for the next call. + * + * @returns A generator of lexical tokens + */ + lex(source: string, incomplete?: boolean): Generator; + private atLineEnd; + private charAt; + private continueScalar; + private getLine; + private hasChars; + private setNext; + private peek; + private parseNext; + private parseStream; + private parseLineStart; + private parseBlockStart; + private parseDocument; + private parseFlowCollection; + private parseQuotedScalar; + private parseBlockScalarHeader; + private parseBlockScalar; + private parsePlainScalar; + private pushCount; + private pushToIndex; + private pushIndicators; + private pushTag; + private pushNewline; + private pushSpaces; + private pushUntil; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.js" index dfca812678d0cc441f3eca91f160cde53049e05a..f408ce49004a27d48de2ed38c2ebf491be2b9910 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/lexer.js" @@ -1,3 +1,703 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb2758b441a0c7d7a749810a8d20070c4296bdc84156ae3d21f527f4b81444b6 -size 23468 +'use strict'; + +var cst = require('./cst.js'); + +/* +START -> stream + +stream + directive -> line-end -> stream + indent + line-end -> stream + [else] -> line-start + +line-end + comment -> line-end + newline -> . + input-end -> END + +line-start + doc-start -> doc + doc-end -> stream + [else] -> indent -> block-start + +block-start + seq-item-start -> block-start + explicit-key-start -> block-start + map-value-start -> block-start + [else] -> doc + +doc + line-end -> line-start + spaces -> doc + anchor -> doc + tag -> doc + flow-start -> flow -> doc + flow-end -> error -> doc + seq-item-start -> error -> doc + explicit-key-start -> error -> doc + map-value-start -> doc + alias -> doc + quote-start -> quoted-scalar -> doc + block-scalar-header -> line-end -> block-scalar(min) -> line-start + [else] -> plain-scalar(false, min) -> doc + +flow + line-end -> flow + spaces -> flow + anchor -> flow + tag -> flow + flow-start -> flow -> flow + flow-end -> . + seq-item-start -> error -> flow + explicit-key-start -> flow + map-value-start -> flow + alias -> flow + quote-start -> quoted-scalar -> flow + comma -> flow + [else] -> plain-scalar(true, 0) -> flow + +quoted-scalar + quote-end -> . + [else] -> quoted-scalar + +block-scalar(min) + newline + peek(indent < min) -> . + [else] -> block-scalar(min) + +plain-scalar(is-flow, min) + scalar-end(is-flow) -> . + peek(newline + (indent < min)) -> . + [else] -> plain-scalar(min) +*/ +function isEmpty(ch) { + switch (ch) { + case undefined: + case ' ': + case '\n': + case '\r': + case '\t': + return true; + default: + return false; + } +} +const hexDigits = '0123456789ABCDEFabcdef'.split(''); +const tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(''); +const invalidFlowScalarChars = ',[]{}'.split(''); +const invalidAnchorChars = ' ,[]{}\n\r\t'.split(''); +const isNotAnchorChar = (ch) => !ch || invalidAnchorChars.includes(ch); +/** + * Splits an input string into lexical tokens, i.e. smaller strings that are + * easily identifiable by `tokens.tokenType()`. + * + * Lexing starts always in a "stream" context. Incomplete input may be buffered + * until a complete token can be emitted. + * + * In addition to slices of the original input, the following control characters + * may also be emitted: + * + * - `\x02` (Start of Text): A document starts with the next token + * - `\x18` (Cancel): Unexpected end of flow-mode (indicates an error) + * - `\x1f` (Unit Separator): Next token is a scalar value + * - `\u{FEFF}` (Byte order mark): Emitted separately outside documents + */ +class Lexer { + constructor() { + /** + * Flag indicating whether the end of the current buffer marks the end of + * all input + */ + this.atEnd = false; + /** + * Explicit indent set in block scalar header, as an offset from the current + * minimum indent, so e.g. set to 1 from a header `|2+`. Set to -1 if not + * explicitly set. + */ + this.blockScalarIndent = -1; + /** + * Block scalars that include a + (keep) chomping indicator in their header + * include trailing empty lines, which are otherwise excluded from the + * scalar's contents. + */ + this.blockScalarKeep = false; + /** Current input */ + this.buffer = ''; + /** + * Flag noting whether the map value indicator : can immediately follow this + * node within a flow context. + */ + this.flowKey = false; + /** Count of surrounding flow collection levels. */ + this.flowLevel = 0; + /** + * Minimum level of indentation required for next lines to be parsed as a + * part of the current scalar value. + */ + this.indentNext = 0; + /** Indentation level of the current line. */ + this.indentValue = 0; + /** Position of the next \n character. */ + this.lineEndPos = null; + /** Stores the state of the lexer if reaching the end of incpomplete input */ + this.next = null; + /** A pointer to `buffer`; the current position of the lexer. */ + this.pos = 0; + } + /** + * Generate YAML tokens from the `source` string. If `incomplete`, + * a part of the last line may be left as a buffer for the next call. + * + * @returns A generator of lexical tokens + */ + *lex(source, incomplete = false) { + if (source) { + this.buffer = this.buffer ? this.buffer + source : source; + this.lineEndPos = null; + } + this.atEnd = !incomplete; + let next = this.next ?? 'stream'; + while (next && (incomplete || this.hasChars(1))) + next = yield* this.parseNext(next); + } + atLineEnd() { + let i = this.pos; + let ch = this.buffer[i]; + while (ch === ' ' || ch === '\t') + ch = this.buffer[++i]; + if (!ch || ch === '#' || ch === '\n') + return true; + if (ch === '\r') + return this.buffer[i + 1] === '\n'; + return false; + } + charAt(n) { + return this.buffer[this.pos + n]; + } + continueScalar(offset) { + let ch = this.buffer[offset]; + if (this.indentNext > 0) { + let indent = 0; + while (ch === ' ') + ch = this.buffer[++indent + offset]; + if (ch === '\r') { + const next = this.buffer[indent + offset + 1]; + if (next === '\n' || (!next && !this.atEnd)) + return offset + indent + 1; + } + return ch === '\n' || indent >= this.indentNext || (!ch && !this.atEnd) + ? offset + indent + : -1; + } + if (ch === '-' || ch === '.') { + const dt = this.buffer.substr(offset, 3); + if ((dt === '---' || dt === '...') && isEmpty(this.buffer[offset + 3])) + return -1; + } + return offset; + } + getLine() { + let end = this.lineEndPos; + if (typeof end !== 'number' || (end !== -1 && end < this.pos)) { + end = this.buffer.indexOf('\n', this.pos); + this.lineEndPos = end; + } + if (end === -1) + return this.atEnd ? this.buffer.substring(this.pos) : null; + if (this.buffer[end - 1] === '\r') + end -= 1; + return this.buffer.substring(this.pos, end); + } + hasChars(n) { + return this.pos + n <= this.buffer.length; + } + setNext(state) { + this.buffer = this.buffer.substring(this.pos); + this.pos = 0; + this.lineEndPos = null; + this.next = state; + return null; + } + peek(n) { + return this.buffer.substr(this.pos, n); + } + *parseNext(next) { + switch (next) { + case 'stream': + return yield* this.parseStream(); + case 'line-start': + return yield* this.parseLineStart(); + case 'block-start': + return yield* this.parseBlockStart(); + case 'doc': + return yield* this.parseDocument(); + case 'flow': + return yield* this.parseFlowCollection(); + case 'quoted-scalar': + return yield* this.parseQuotedScalar(); + case 'block-scalar': + return yield* this.parseBlockScalar(); + case 'plain-scalar': + return yield* this.parsePlainScalar(); + } + } + *parseStream() { + let line = this.getLine(); + if (line === null) + return this.setNext('stream'); + if (line[0] === cst.BOM) { + yield* this.pushCount(1); + line = line.substring(1); + } + if (line[0] === '%') { + let dirEnd = line.length; + const cs = line.indexOf('#'); + if (cs !== -1) { + const ch = line[cs - 1]; + if (ch === ' ' || ch === '\t') + dirEnd = cs - 1; + } + while (true) { + const ch = line[dirEnd - 1]; + if (ch === ' ' || ch === '\t') + dirEnd -= 1; + else + break; + } + const n = (yield* this.pushCount(dirEnd)) + (yield* this.pushSpaces(true)); + yield* this.pushCount(line.length - n); // possible comment + this.pushNewline(); + return 'stream'; + } + if (this.atLineEnd()) { + const sp = yield* this.pushSpaces(true); + yield* this.pushCount(line.length - sp); + yield* this.pushNewline(); + return 'stream'; + } + yield cst.DOCUMENT; + return yield* this.parseLineStart(); + } + *parseLineStart() { + const ch = this.charAt(0); + if (!ch && !this.atEnd) + return this.setNext('line-start'); + if (ch === '-' || ch === '.') { + if (!this.atEnd && !this.hasChars(4)) + return this.setNext('line-start'); + const s = this.peek(3); + if (s === '---' && isEmpty(this.charAt(3))) { + yield* this.pushCount(3); + this.indentValue = 0; + this.indentNext = 0; + return 'doc'; + } + else if (s === '...' && isEmpty(this.charAt(3))) { + yield* this.pushCount(3); + return 'stream'; + } + } + this.indentValue = yield* this.pushSpaces(false); + if (this.indentNext > this.indentValue && !isEmpty(this.charAt(1))) + this.indentNext = this.indentValue; + return yield* this.parseBlockStart(); + } + *parseBlockStart() { + const [ch0, ch1] = this.peek(2); + if (!ch1 && !this.atEnd) + return this.setNext('block-start'); + if ((ch0 === '-' || ch0 === '?' || ch0 === ':') && isEmpty(ch1)) { + const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)); + this.indentNext = this.indentValue + 1; + this.indentValue += n; + return yield* this.parseBlockStart(); + } + return 'doc'; + } + *parseDocument() { + yield* this.pushSpaces(true); + const line = this.getLine(); + if (line === null) + return this.setNext('doc'); + let n = yield* this.pushIndicators(); + switch (line[n]) { + case '#': + yield* this.pushCount(line.length - n); + // fallthrough + case undefined: + yield* this.pushNewline(); + return yield* this.parseLineStart(); + case '{': + case '[': + yield* this.pushCount(1); + this.flowKey = false; + this.flowLevel = 1; + return 'flow'; + case '}': + case ']': + // this is an error + yield* this.pushCount(1); + return 'doc'; + case '*': + yield* this.pushUntil(isNotAnchorChar); + return 'doc'; + case '"': + case "'": + return yield* this.parseQuotedScalar(); + case '|': + case '>': + n += yield* this.parseBlockScalarHeader(); + n += yield* this.pushSpaces(true); + yield* this.pushCount(line.length - n); + yield* this.pushNewline(); + return yield* this.parseBlockScalar(); + default: + return yield* this.parsePlainScalar(); + } + } + *parseFlowCollection() { + let nl, sp; + let indent = -1; + do { + nl = yield* this.pushNewline(); + if (nl > 0) { + sp = yield* this.pushSpaces(false); + this.indentValue = indent = sp; + } + else { + sp = 0; + } + sp += yield* this.pushSpaces(true); + } while (nl + sp > 0); + const line = this.getLine(); + if (line === null) + return this.setNext('flow'); + if ((indent !== -1 && indent < this.indentNext && line[0] !== '#') || + (indent === 0 && + (line.startsWith('---') || line.startsWith('...')) && + isEmpty(line[3]))) { + // Allowing for the terminal ] or } at the same (rather than greater) + // indent level as the initial [ or { is technically invalid, but + // failing here would be surprising to users. + const atFlowEndMarker = indent === this.indentNext - 1 && + this.flowLevel === 1 && + (line[0] === ']' || line[0] === '}'); + if (!atFlowEndMarker) { + // this is an error + this.flowLevel = 0; + yield cst.FLOW_END; + return yield* this.parseLineStart(); + } + } + let n = 0; + while (line[n] === ',') { + n += yield* this.pushCount(1); + n += yield* this.pushSpaces(true); + this.flowKey = false; + } + n += yield* this.pushIndicators(); + switch (line[n]) { + case undefined: + return 'flow'; + case '#': + yield* this.pushCount(line.length - n); + return 'flow'; + case '{': + case '[': + yield* this.pushCount(1); + this.flowKey = false; + this.flowLevel += 1; + return 'flow'; + case '}': + case ']': + yield* this.pushCount(1); + this.flowKey = true; + this.flowLevel -= 1; + return this.flowLevel ? 'flow' : 'doc'; + case '*': + yield* this.pushUntil(isNotAnchorChar); + return 'flow'; + case '"': + case "'": + this.flowKey = true; + return yield* this.parseQuotedScalar(); + case ':': { + const next = this.charAt(1); + if (this.flowKey || isEmpty(next) || next === ',') { + this.flowKey = false; + yield* this.pushCount(1); + yield* this.pushSpaces(true); + return 'flow'; + } + } + // fallthrough + default: + this.flowKey = false; + return yield* this.parsePlainScalar(); + } + } + *parseQuotedScalar() { + const quote = this.charAt(0); + let end = this.buffer.indexOf(quote, this.pos + 1); + if (quote === "'") { + while (end !== -1 && this.buffer[end + 1] === "'") + end = this.buffer.indexOf("'", end + 2); + } + else { + // double-quote + while (end !== -1) { + let n = 0; + while (this.buffer[end - 1 - n] === '\\') + n += 1; + if (n % 2 === 0) + break; + end = this.buffer.indexOf('"', end + 1); + } + } + // Only looking for newlines within the quotes + const qb = this.buffer.substring(0, end); + let nl = qb.indexOf('\n', this.pos); + if (nl !== -1) { + while (nl !== -1) { + const cs = this.continueScalar(nl + 1); + if (cs === -1) + break; + nl = qb.indexOf('\n', cs); + } + if (nl !== -1) { + // this is an error caused by an unexpected unindent + end = nl - (qb[nl - 1] === '\r' ? 2 : 1); + } + } + if (end === -1) { + if (!this.atEnd) + return this.setNext('quoted-scalar'); + end = this.buffer.length; + } + yield* this.pushToIndex(end + 1, false); + return this.flowLevel ? 'flow' : 'doc'; + } + *parseBlockScalarHeader() { + this.blockScalarIndent = -1; + this.blockScalarKeep = false; + let i = this.pos; + while (true) { + const ch = this.buffer[++i]; + if (ch === '+') + this.blockScalarKeep = true; + else if (ch > '0' && ch <= '9') + this.blockScalarIndent = Number(ch) - 1; + else if (ch !== '-') + break; + } + return yield* this.pushUntil(ch => isEmpty(ch) || ch === '#'); + } + *parseBlockScalar() { + let nl = this.pos - 1; // may be -1 if this.pos === 0 + let indent = 0; + let ch; + loop: for (let i = this.pos; (ch = this.buffer[i]); ++i) { + switch (ch) { + case ' ': + indent += 1; + break; + case '\n': + nl = i; + indent = 0; + break; + case '\r': { + const next = this.buffer[i + 1]; + if (!next && !this.atEnd) + return this.setNext('block-scalar'); + if (next === '\n') + break; + } // fallthrough + default: + break loop; + } + } + if (!ch && !this.atEnd) + return this.setNext('block-scalar'); + if (indent >= this.indentNext) { + if (this.blockScalarIndent === -1) + this.indentNext = indent; + else + this.indentNext += this.blockScalarIndent; + do { + const cs = this.continueScalar(nl + 1); + if (cs === -1) + break; + nl = this.buffer.indexOf('\n', cs); + } while (nl !== -1); + if (nl === -1) { + if (!this.atEnd) + return this.setNext('block-scalar'); + nl = this.buffer.length; + } + } + if (!this.blockScalarKeep) { + do { + let i = nl - 1; + let ch = this.buffer[i]; + if (ch === '\r') + ch = this.buffer[--i]; + const lastChar = i; // Drop the line if last char not more indented + while (ch === ' ' || ch === '\t') + ch = this.buffer[--i]; + if (ch === '\n' && i >= this.pos && i + 1 + indent > lastChar) + nl = i; + else + break; + } while (true); + } + yield cst.SCALAR; + yield* this.pushToIndex(nl + 1, true); + return yield* this.parseLineStart(); + } + *parsePlainScalar() { + const inFlow = this.flowLevel > 0; + let end = this.pos - 1; + let i = this.pos - 1; + let ch; + while ((ch = this.buffer[++i])) { + if (ch === ':') { + const next = this.buffer[i + 1]; + if (isEmpty(next) || (inFlow && next === ',')) + break; + end = i; + } + else if (isEmpty(ch)) { + let next = this.buffer[i + 1]; + if (ch === '\r') { + if (next === '\n') { + i += 1; + ch = '\n'; + next = this.buffer[i + 1]; + } + else + end = i; + } + if (next === '#' || (inFlow && invalidFlowScalarChars.includes(next))) + break; + if (ch === '\n') { + const cs = this.continueScalar(i + 1); + if (cs === -1) + break; + i = Math.max(i, cs - 2); // to advance, but still account for ' #' + } + } + else { + if (inFlow && invalidFlowScalarChars.includes(ch)) + break; + end = i; + } + } + if (!ch && !this.atEnd) + return this.setNext('plain-scalar'); + yield cst.SCALAR; + yield* this.pushToIndex(end + 1, true); + return inFlow ? 'flow' : 'doc'; + } + *pushCount(n) { + if (n > 0) { + yield this.buffer.substr(this.pos, n); + this.pos += n; + return n; + } + return 0; + } + *pushToIndex(i, allowEmpty) { + const s = this.buffer.slice(this.pos, i); + if (s) { + yield s; + this.pos += s.length; + return s.length; + } + else if (allowEmpty) + yield ''; + return 0; + } + *pushIndicators() { + switch (this.charAt(0)) { + case '!': + return ((yield* this.pushTag()) + + (yield* this.pushSpaces(true)) + + (yield* this.pushIndicators())); + case '&': + return ((yield* this.pushUntil(isNotAnchorChar)) + + (yield* this.pushSpaces(true)) + + (yield* this.pushIndicators())); + case '-': // this is an error + case '?': // this is an error outside flow collections + case ':': { + const inFlow = this.flowLevel > 0; + const ch1 = this.charAt(1); + if (isEmpty(ch1) || (inFlow && invalidFlowScalarChars.includes(ch1))) { + if (!inFlow) + this.indentNext = this.indentValue + 1; + else if (this.flowKey) + this.flowKey = false; + return ((yield* this.pushCount(1)) + + (yield* this.pushSpaces(true)) + + (yield* this.pushIndicators())); + } + } + } + return 0; + } + *pushTag() { + if (this.charAt(1) === '<') { + let i = this.pos + 2; + let ch = this.buffer[i]; + while (!isEmpty(ch) && ch !== '>') + ch = this.buffer[++i]; + return yield* this.pushToIndex(ch === '>' ? i + 1 : i, false); + } + else { + let i = this.pos + 1; + let ch = this.buffer[i]; + while (ch) { + if (tagChars.includes(ch)) + ch = this.buffer[++i]; + else if (ch === '%' && + hexDigits.includes(this.buffer[i + 1]) && + hexDigits.includes(this.buffer[i + 2])) { + ch = this.buffer[(i += 3)]; + } + else + break; + } + return yield* this.pushToIndex(i, false); + } + } + *pushNewline() { + const ch = this.buffer[this.pos]; + if (ch === '\n') + return yield* this.pushCount(1); + else if (ch === '\r' && this.charAt(1) === '\n') + return yield* this.pushCount(2); + else + return 0; + } + *pushSpaces(allowTabs) { + let i = this.pos - 1; + let ch; + do { + ch = this.buffer[++i]; + } while (ch === ' ' || (allowTabs && ch === '\t')); + const n = i - this.pos; + if (n > 0) { + yield this.buffer.substr(this.pos, n); + this.pos = i; + } + return n; + } + *pushUntil(test) { + let i = this.pos; + let ch = this.buffer[i]; + while (!test(ch)) + ch = this.buffer[++i]; + return yield* this.pushToIndex(i, false); + } +} + +exports.Lexer = Lexer; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.d.ts" index 6a5a5e6124d9d118e7c3c13bf1e1506c6155e6b2..b4690958ab3d10f179522152099c190a1597f3fd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.d.ts" @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3dfcd0a3bfa70b53135db3cf2e4ddcb7eccc3e4418ce833ae24eecd06928328f -size 733 +/** + * Tracks newlines during parsing in order to provide an efficient API for + * determining the one-indexed `{ line, col }` position for any offset + * within the input. + */ +export declare class LineCounter { + lineStarts: number[]; + /** + * Should be called in ascending order. Otherwise, call + * `lineCounter.lineStarts.sort()` before calling `linePos()`. + */ + addNewLine: (offset: number) => number; + /** + * Performs a binary search and returns the 1-indexed { line, col } + * position of `offset`. If `line === 0`, `addNewLine` has never been + * called or `offset` is before the first known newline. + */ + linePos: (offset: number) => { + line: number; + col: number; + }; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.js" index 1df68f8e7f9aa05fac14e35572f40e2d93534012..0e7383bde663cfe4564cafa5c638d0e7450dc941 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/line-counter.js" @@ -1,3 +1,41 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ddfd11ca2cdd42d36bc6c3090a31c21e6bbcc90bf3498bf6aacfbb30c5d79436 -size 1445 +'use strict'; + +/** + * Tracks newlines during parsing in order to provide an efficient API for + * determining the one-indexed `{ line, col }` position for any offset + * within the input. + */ +class LineCounter { + constructor() { + this.lineStarts = []; + /** + * Should be called in ascending order. Otherwise, call + * `lineCounter.lineStarts.sort()` before calling `linePos()`. + */ + this.addNewLine = (offset) => this.lineStarts.push(offset); + /** + * Performs a binary search and returns the 1-indexed { line, col } + * position of `offset`. If `line === 0`, `addNewLine` has never been + * called or `offset` is before the first known newline. + */ + this.linePos = (offset) => { + let low = 0; + let high = this.lineStarts.length; + while (low < high) { + const mid = (low + high) >> 1; // Math.floor((low + high) / 2) + if (this.lineStarts[mid] < offset) + low = mid + 1; + else + high = mid; + } + if (this.lineStarts[low] === offset) + return { line: low + 1, col: 1 }; + if (low === 0) + return { line: 0, col: offset }; + const start = this.lineStarts[low - 1]; + return { line: low, col: offset - start + 1 }; + }; + } +} + +exports.LineCounter = LineCounter; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.d.ts" index 6779225d1017668537624c728fc25d0d1234825a..8f3159f6ff9b93265ad5d292cfbf307078a9db93 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.d.ts" @@ -1,3 +1,84 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9af1c478e5403b39b922df9132d779bc6e1ef88cafec17fcecf26356d90ecbd6 -size 2559 +import { Token } from './cst.js'; +/** + * A YAML concrete syntax tree (CST) parser + * + * ```ts + * const src: string = ... + * for (const token of new Parser().parse(src)) { + * // token: Token + * } + * ``` + * + * To use the parser with a user-provided lexer: + * + * ```ts + * function* parse(source: string, lexer: Lexer) { + * const parser = new Parser() + * for (const lexeme of lexer.lex(source)) + * yield* parser.next(lexeme) + * yield* parser.end() + * } + * + * const src: string = ... + * const lexer = new Lexer() + * for (const token of parse(src, lexer)) { + * // token: Token + * } + * ``` + */ +export declare class Parser { + private onNewLine?; + /** If true, space and sequence indicators count as indentation */ + private atNewLine; + /** If true, next token is a scalar value */ + private atScalar; + /** Current indentation level */ + private indent; + /** Current offset since the start of parsing */ + offset: number; + /** On the same line with a block map key */ + private onKeyLine; + /** Top indicates the node that's currently being built */ + stack: Token[]; + /** The source of the current token, set in parse() */ + private source; + /** The type of the current token, set in parse() */ + private type; + /** + * @param onNewLine - If defined, called separately with the start position of + * each new line (in `parse()`, including the start of input). + */ + constructor(onNewLine?: (offset: number) => void); + /** + * Parse `source` as a YAML stream. + * If `incomplete`, a part of the last line may be left as a buffer for the next call. + * + * Errors are not thrown, but yielded as `{ type: 'error', message }` tokens. + * + * @returns A generator of tokens representing each directive, document, and other structure. + */ + parse(source: string, incomplete?: boolean): Generator; + /** + * Advance the parser by the `source` of one lexical token. + */ + next(source: string): Generator; + private lexer; + /** Call at end of input to push out any remaining constructions */ + end(): Generator; + private get sourceToken(); + private step; + private peek; + private pop; + private stream; + private document; + private scalar; + private blockScalar; + private blockMap; + private blockSequence; + private flowCollection; + private flowScalar; + private startBlockValue; + private atIndentedComment; + private documentEnd; + private lineEnd; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.js" index 29c188b3729ec1f330f58334b25d37335a02ce59..8dcdf5dc38f7dc16947a9ba64995262b88efa780 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/parse/parser.js" @@ -1,3 +1,954 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:63ac3419c1ae5b1ce4d1fd212fba44b0072e495957874ef6a68e5dfa724250f8 -size 34515 +'use strict'; + +var cst = require('./cst.js'); +var lexer = require('./lexer.js'); + +function includesToken(list, type) { + for (let i = 0; i < list.length; ++i) + if (list[i].type === type) + return true; + return false; +} +function findNonEmptyIndex(list) { + for (let i = 0; i < list.length; ++i) { + switch (list[i].type) { + case 'space': + case 'comment': + case 'newline': + break; + default: + return i; + } + } + return -1; +} +function isFlowToken(token) { + switch (token?.type) { + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + case 'flow-collection': + return true; + default: + return false; + } +} +function getPrevProps(parent) { + switch (parent.type) { + case 'document': + return parent.start; + case 'block-map': { + const it = parent.items[parent.items.length - 1]; + return it.sep ?? it.start; + } + case 'block-seq': + return parent.items[parent.items.length - 1].start; + /* istanbul ignore next should not happen */ + default: + return []; + } +} +/** Note: May modify input array */ +function getFirstKeyStartProps(prev) { + if (prev.length === 0) + return []; + let i = prev.length; + loop: while (--i >= 0) { + switch (prev[i].type) { + case 'doc-start': + case 'explicit-key-ind': + case 'map-value-ind': + case 'seq-item-ind': + case 'newline': + break loop; + } + } + while (prev[++i]?.type === 'space') { + /* loop */ + } + return prev.splice(i, prev.length); +} +function fixFlowSeqItems(fc) { + if (fc.start.type === 'flow-seq-start') { + for (const it of fc.items) { + if (it.sep && + !it.value && + !includesToken(it.start, 'explicit-key-ind') && + !includesToken(it.sep, 'map-value-ind')) { + if (it.key) + it.value = it.key; + delete it.key; + if (isFlowToken(it.value)) { + if (it.value.end) + Array.prototype.push.apply(it.value.end, it.sep); + else + it.value.end = it.sep; + } + else + Array.prototype.push.apply(it.start, it.sep); + delete it.sep; + } + } + } +} +/** + * A YAML concrete syntax tree (CST) parser + * + * ```ts + * const src: string = ... + * for (const token of new Parser().parse(src)) { + * // token: Token + * } + * ``` + * + * To use the parser with a user-provided lexer: + * + * ```ts + * function* parse(source: string, lexer: Lexer) { + * const parser = new Parser() + * for (const lexeme of lexer.lex(source)) + * yield* parser.next(lexeme) + * yield* parser.end() + * } + * + * const src: string = ... + * const lexer = new Lexer() + * for (const token of parse(src, lexer)) { + * // token: Token + * } + * ``` + */ +class Parser { + /** + * @param onNewLine - If defined, called separately with the start position of + * each new line (in `parse()`, including the start of input). + */ + constructor(onNewLine) { + /** If true, space and sequence indicators count as indentation */ + this.atNewLine = true; + /** If true, next token is a scalar value */ + this.atScalar = false; + /** Current indentation level */ + this.indent = 0; + /** Current offset since the start of parsing */ + this.offset = 0; + /** On the same line with a block map key */ + this.onKeyLine = false; + /** Top indicates the node that's currently being built */ + this.stack = []; + /** The source of the current token, set in parse() */ + this.source = ''; + /** The type of the current token, set in parse() */ + this.type = ''; + // Must be defined after `next()` + this.lexer = new lexer.Lexer(); + this.onNewLine = onNewLine; + } + /** + * Parse `source` as a YAML stream. + * If `incomplete`, a part of the last line may be left as a buffer for the next call. + * + * Errors are not thrown, but yielded as `{ type: 'error', message }` tokens. + * + * @returns A generator of tokens representing each directive, document, and other structure. + */ + *parse(source, incomplete = false) { + if (this.onNewLine && this.offset === 0) + this.onNewLine(0); + for (const lexeme of this.lexer.lex(source, incomplete)) + yield* this.next(lexeme); + if (!incomplete) + yield* this.end(); + } + /** + * Advance the parser by the `source` of one lexical token. + */ + *next(source) { + this.source = source; + if (process.env.LOG_TOKENS) + console.log('|', cst.prettyToken(source)); + if (this.atScalar) { + this.atScalar = false; + yield* this.step(); + this.offset += source.length; + return; + } + const type = cst.tokenType(source); + if (!type) { + const message = `Not a YAML token: ${source}`; + yield* this.pop({ type: 'error', offset: this.offset, message, source }); + this.offset += source.length; + } + else if (type === 'scalar') { + this.atNewLine = false; + this.atScalar = true; + this.type = 'scalar'; + } + else { + this.type = type; + yield* this.step(); + switch (type) { + case 'newline': + this.atNewLine = true; + this.indent = 0; + if (this.onNewLine) + this.onNewLine(this.offset + source.length); + break; + case 'space': + if (this.atNewLine && source[0] === ' ') + this.indent += source.length; + break; + case 'explicit-key-ind': + case 'map-value-ind': + case 'seq-item-ind': + if (this.atNewLine) + this.indent += source.length; + break; + case 'doc-mode': + case 'flow-error-end': + return; + default: + this.atNewLine = false; + } + this.offset += source.length; + } + } + /** Call at end of input to push out any remaining constructions */ + *end() { + while (this.stack.length > 0) + yield* this.pop(); + } + get sourceToken() { + const st = { + type: this.type, + offset: this.offset, + indent: this.indent, + source: this.source + }; + return st; + } + *step() { + const top = this.peek(1); + if (this.type === 'doc-end' && (!top || top.type !== 'doc-end')) { + while (this.stack.length > 0) + yield* this.pop(); + this.stack.push({ + type: 'doc-end', + offset: this.offset, + source: this.source + }); + return; + } + if (!top) + return yield* this.stream(); + switch (top.type) { + case 'document': + return yield* this.document(top); + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + return yield* this.scalar(top); + case 'block-scalar': + return yield* this.blockScalar(top); + case 'block-map': + return yield* this.blockMap(top); + case 'block-seq': + return yield* this.blockSequence(top); + case 'flow-collection': + return yield* this.flowCollection(top); + case 'doc-end': + return yield* this.documentEnd(top); + } + /* istanbul ignore next should not happen */ + yield* this.pop(); + } + peek(n) { + return this.stack[this.stack.length - n]; + } + *pop(error) { + const token = error ?? this.stack.pop(); + /* istanbul ignore if should not happen */ + if (!token) { + const message = 'Tried to pop an empty stack'; + yield { type: 'error', offset: this.offset, source: '', message }; + } + else if (this.stack.length === 0) { + yield token; + } + else { + const top = this.peek(1); + if (token.type === 'block-scalar') { + // Block scalars use their parent rather than header indent + token.indent = 'indent' in top ? top.indent : 0; + } + else if (token.type === 'flow-collection' && top.type === 'document') { + // Ignore all indent for top-level flow collections + token.indent = 0; + } + if (token.type === 'flow-collection') + fixFlowSeqItems(token); + switch (top.type) { + case 'document': + top.value = token; + break; + case 'block-scalar': + top.props.push(token); // error + break; + case 'block-map': { + const it = top.items[top.items.length - 1]; + if (it.value) { + top.items.push({ start: [], key: token, sep: [] }); + this.onKeyLine = true; + return; + } + else if (it.sep) { + it.value = token; + } + else { + Object.assign(it, { key: token, sep: [] }); + this.onKeyLine = !includesToken(it.start, 'explicit-key-ind'); + return; + } + break; + } + case 'block-seq': { + const it = top.items[top.items.length - 1]; + if (it.value) + top.items.push({ start: [], value: token }); + else + it.value = token; + break; + } + case 'flow-collection': { + const it = top.items[top.items.length - 1]; + if (!it || it.value) + top.items.push({ start: [], key: token, sep: [] }); + else if (it.sep) + it.value = token; + else + Object.assign(it, { key: token, sep: [] }); + return; + } + /* istanbul ignore next should not happen */ + default: + yield* this.pop(); + yield* this.pop(token); + } + if ((top.type === 'document' || + top.type === 'block-map' || + top.type === 'block-seq') && + (token.type === 'block-map' || token.type === 'block-seq')) { + const last = token.items[token.items.length - 1]; + if (last && + !last.sep && + !last.value && + last.start.length > 0 && + findNonEmptyIndex(last.start) === -1 && + (token.indent === 0 || + last.start.every(st => st.type !== 'comment' || st.indent < token.indent))) { + if (top.type === 'document') + top.end = last.start; + else + top.items.push({ start: last.start }); + token.items.splice(-1, 1); + } + } + } + } + *stream() { + switch (this.type) { + case 'directive-line': + yield { type: 'directive', offset: this.offset, source: this.source }; + return; + case 'byte-order-mark': + case 'space': + case 'comment': + case 'newline': + yield this.sourceToken; + return; + case 'doc-mode': + case 'doc-start': { + const doc = { + type: 'document', + offset: this.offset, + start: [] + }; + if (this.type === 'doc-start') + doc.start.push(this.sourceToken); + this.stack.push(doc); + return; + } + } + yield { + type: 'error', + offset: this.offset, + message: `Unexpected ${this.type} token in YAML stream`, + source: this.source + }; + } + *document(doc) { + if (doc.value) + return yield* this.lineEnd(doc); + switch (this.type) { + case 'doc-start': { + if (findNonEmptyIndex(doc.start) !== -1) { + yield* this.pop(); + yield* this.step(); + } + else + doc.start.push(this.sourceToken); + return; + } + case 'anchor': + case 'tag': + case 'space': + case 'comment': + case 'newline': + doc.start.push(this.sourceToken); + return; + } + const bv = this.startBlockValue(doc); + if (bv) + this.stack.push(bv); + else { + yield { + type: 'error', + offset: this.offset, + message: `Unexpected ${this.type} token in YAML document`, + source: this.source + }; + } + } + *scalar(scalar) { + if (this.type === 'map-value-ind') { + const prev = getPrevProps(this.peek(2)); + const start = getFirstKeyStartProps(prev); + let sep; + if (scalar.end) { + sep = scalar.end; + sep.push(this.sourceToken); + delete scalar.end; + } + else + sep = [this.sourceToken]; + const map = { + type: 'block-map', + offset: scalar.offset, + indent: scalar.indent, + items: [{ start, key: scalar, sep }] + }; + this.onKeyLine = true; + this.stack[this.stack.length - 1] = map; + } + else + yield* this.lineEnd(scalar); + } + *blockScalar(scalar) { + switch (this.type) { + case 'space': + case 'comment': + case 'newline': + scalar.props.push(this.sourceToken); + return; + case 'scalar': + scalar.source = this.source; + // block-scalar source includes trailing newline + this.atNewLine = true; + this.indent = 0; + if (this.onNewLine) { + let nl = this.source.indexOf('\n') + 1; + while (nl !== 0) { + this.onNewLine(this.offset + nl); + nl = this.source.indexOf('\n', nl) + 1; + } + } + yield* this.pop(); + break; + /* istanbul ignore next should not happen */ + default: + yield* this.pop(); + yield* this.step(); + } + } + *blockMap(map) { + const it = map.items[map.items.length - 1]; + // it.sep is true-ish if pair already has key or : separator + switch (this.type) { + case 'newline': + this.onKeyLine = false; + if (it.value) { + const end = 'end' in it.value ? it.value.end : undefined; + const last = Array.isArray(end) ? end[end.length - 1] : undefined; + if (last?.type === 'comment') + end?.push(this.sourceToken); + else + map.items.push({ start: [this.sourceToken] }); + } + else if (it.sep) { + it.sep.push(this.sourceToken); + } + else { + it.start.push(this.sourceToken); + } + return; + case 'space': + case 'comment': + if (it.value) { + map.items.push({ start: [this.sourceToken] }); + } + else if (it.sep) { + it.sep.push(this.sourceToken); + } + else { + if (this.atIndentedComment(it.start, map.indent)) { + const prev = map.items[map.items.length - 2]; + const end = prev?.value?.end; + if (Array.isArray(end)) { + Array.prototype.push.apply(end, it.start); + end.push(this.sourceToken); + map.items.pop(); + return; + } + } + it.start.push(this.sourceToken); + } + return; + } + if (this.indent >= map.indent) { + const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep; + // For empty nodes, assign newline-separated not indented empty tokens to following node + let start = []; + if (atNextItem && it.sep && !it.value) { + const nl = []; + for (let i = 0; i < it.sep.length; ++i) { + const st = it.sep[i]; + switch (st.type) { + case 'newline': + nl.push(i); + break; + case 'space': + break; + case 'comment': + if (st.indent > map.indent) + nl.length = 0; + break; + default: + nl.length = 0; + } + } + if (nl.length >= 2) + start = it.sep.splice(nl[1]); + } + switch (this.type) { + case 'anchor': + case 'tag': + if (atNextItem || it.value) { + start.push(this.sourceToken); + map.items.push({ start }); + this.onKeyLine = true; + } + else if (it.sep) { + it.sep.push(this.sourceToken); + } + else { + it.start.push(this.sourceToken); + } + return; + case 'explicit-key-ind': + if (!it.sep && !includesToken(it.start, 'explicit-key-ind')) { + it.start.push(this.sourceToken); + } + else if (atNextItem || it.value) { + start.push(this.sourceToken); + map.items.push({ start }); + } + else { + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start: [this.sourceToken] }] + }); + } + this.onKeyLine = true; + return; + case 'map-value-ind': + if (includesToken(it.start, 'explicit-key-ind')) { + if (!it.sep) { + if (includesToken(it.start, 'newline')) { + Object.assign(it, { key: null, sep: [this.sourceToken] }); + } + else { + const start = getFirstKeyStartProps(it.start); + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }); + } + } + else if (it.value) { + map.items.push({ start: [], key: null, sep: [this.sourceToken] }); + } + else if (includesToken(it.sep, 'map-value-ind')) { + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }); + } + else if (isFlowToken(it.key) && + !includesToken(it.sep, 'newline')) { + const start = getFirstKeyStartProps(it.start); + const key = it.key; + const sep = it.sep; + sep.push(this.sourceToken); + // @ts-expect-error type guard is wrong here + delete it.key, delete it.sep; + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key, sep }] + }); + } + else if (start.length > 0) { + // Not actually at next item + it.sep = it.sep.concat(start, this.sourceToken); + } + else { + it.sep.push(this.sourceToken); + } + } + else { + if (!it.sep) { + Object.assign(it, { key: null, sep: [this.sourceToken] }); + } + else if (it.value || atNextItem) { + map.items.push({ start, key: null, sep: [this.sourceToken] }); + } + else if (includesToken(it.sep, 'map-value-ind')) { + this.stack.push({ + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start: [], key: null, sep: [this.sourceToken] }] + }); + } + else { + it.sep.push(this.sourceToken); + } + } + this.onKeyLine = true; + return; + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': { + const fs = this.flowScalar(this.type); + if (atNextItem || it.value) { + map.items.push({ start, key: fs, sep: [] }); + this.onKeyLine = true; + } + else if (it.sep) { + this.stack.push(fs); + } + else { + Object.assign(it, { key: fs, sep: [] }); + this.onKeyLine = true; + } + return; + } + default: { + const bv = this.startBlockValue(map); + if (bv) { + if (atNextItem && + bv.type !== 'block-seq' && + includesToken(it.start, 'explicit-key-ind')) { + map.items.push({ start }); + } + this.stack.push(bv); + return; + } + } + } + } + yield* this.pop(); + yield* this.step(); + } + *blockSequence(seq) { + const it = seq.items[seq.items.length - 1]; + switch (this.type) { + case 'newline': + if (it.value) { + const end = 'end' in it.value ? it.value.end : undefined; + const last = Array.isArray(end) ? end[end.length - 1] : undefined; + if (last?.type === 'comment') + end?.push(this.sourceToken); + else + seq.items.push({ start: [this.sourceToken] }); + } + else + it.start.push(this.sourceToken); + return; + case 'space': + case 'comment': + if (it.value) + seq.items.push({ start: [this.sourceToken] }); + else { + if (this.atIndentedComment(it.start, seq.indent)) { + const prev = seq.items[seq.items.length - 2]; + const end = prev?.value?.end; + if (Array.isArray(end)) { + Array.prototype.push.apply(end, it.start); + end.push(this.sourceToken); + seq.items.pop(); + return; + } + } + it.start.push(this.sourceToken); + } + return; + case 'anchor': + case 'tag': + if (it.value || this.indent <= seq.indent) + break; + it.start.push(this.sourceToken); + return; + case 'seq-item-ind': + if (this.indent !== seq.indent) + break; + if (it.value || includesToken(it.start, 'seq-item-ind')) + seq.items.push({ start: [this.sourceToken] }); + else + it.start.push(this.sourceToken); + return; + } + if (this.indent > seq.indent) { + const bv = this.startBlockValue(seq); + if (bv) { + this.stack.push(bv); + return; + } + } + yield* this.pop(); + yield* this.step(); + } + *flowCollection(fc) { + const it = fc.items[fc.items.length - 1]; + if (this.type === 'flow-error-end') { + let top; + do { + yield* this.pop(); + top = this.peek(1); + } while (top && top.type === 'flow-collection'); + } + else if (fc.end.length === 0) { + switch (this.type) { + case 'comma': + case 'explicit-key-ind': + if (!it || it.sep) + fc.items.push({ start: [this.sourceToken] }); + else + it.start.push(this.sourceToken); + return; + case 'map-value-ind': + if (!it || it.value) + fc.items.push({ start: [], key: null, sep: [this.sourceToken] }); + else if (it.sep) + it.sep.push(this.sourceToken); + else + Object.assign(it, { key: null, sep: [this.sourceToken] }); + return; + case 'space': + case 'comment': + case 'newline': + case 'anchor': + case 'tag': + if (!it || it.value) + fc.items.push({ start: [this.sourceToken] }); + else if (it.sep) + it.sep.push(this.sourceToken); + else + it.start.push(this.sourceToken); + return; + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': { + const fs = this.flowScalar(this.type); + if (!it || it.value) + fc.items.push({ start: [], key: fs, sep: [] }); + else if (it.sep) + this.stack.push(fs); + else + Object.assign(it, { key: fs, sep: [] }); + return; + } + case 'flow-map-end': + case 'flow-seq-end': + fc.end.push(this.sourceToken); + return; + } + const bv = this.startBlockValue(fc); + /* istanbul ignore else should not happen */ + if (bv) + this.stack.push(bv); + else { + yield* this.pop(); + yield* this.step(); + } + } + else { + const parent = this.peek(2); + if (parent.type === 'block-map' && + ((this.type === 'map-value-ind' && parent.indent === fc.indent) || + (this.type === 'newline' && + !parent.items[parent.items.length - 1].sep))) { + yield* this.pop(); + yield* this.step(); + } + else if (this.type === 'map-value-ind' && + parent.type !== 'flow-collection') { + const prev = getPrevProps(parent); + const start = getFirstKeyStartProps(prev); + fixFlowSeqItems(fc); + const sep = fc.end.splice(1, fc.end.length); + sep.push(this.sourceToken); + const map = { + type: 'block-map', + offset: fc.offset, + indent: fc.indent, + items: [{ start, key: fc, sep }] + }; + this.onKeyLine = true; + this.stack[this.stack.length - 1] = map; + } + else { + yield* this.lineEnd(fc); + } + } + } + flowScalar(type) { + if (this.onNewLine) { + let nl = this.source.indexOf('\n') + 1; + while (nl !== 0) { + this.onNewLine(this.offset + nl); + nl = this.source.indexOf('\n', nl) + 1; + } + } + return { + type, + offset: this.offset, + indent: this.indent, + source: this.source + }; + } + startBlockValue(parent) { + switch (this.type) { + case 'alias': + case 'scalar': + case 'single-quoted-scalar': + case 'double-quoted-scalar': + return this.flowScalar(this.type); + case 'block-scalar-header': + return { + type: 'block-scalar', + offset: this.offset, + indent: this.indent, + props: [this.sourceToken], + source: '' + }; + case 'flow-map-start': + case 'flow-seq-start': + return { + type: 'flow-collection', + offset: this.offset, + indent: this.indent, + start: this.sourceToken, + items: [], + end: [] + }; + case 'seq-item-ind': + return { + type: 'block-seq', + offset: this.offset, + indent: this.indent, + items: [{ start: [this.sourceToken] }] + }; + case 'explicit-key-ind': { + this.onKeyLine = true; + const prev = getPrevProps(parent); + const start = getFirstKeyStartProps(prev); + start.push(this.sourceToken); + return { + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start }] + }; + } + case 'map-value-ind': { + this.onKeyLine = true; + const prev = getPrevProps(parent); + const start = getFirstKeyStartProps(prev); + return { + type: 'block-map', + offset: this.offset, + indent: this.indent, + items: [{ start, key: null, sep: [this.sourceToken] }] + }; + } + } + return null; + } + atIndentedComment(start, indent) { + if (this.type !== 'comment') + return false; + if (this.indent <= indent) + return false; + return start.every(st => st.type === 'newline' || st.type === 'space'); + } + *documentEnd(docEnd) { + if (this.type !== 'doc-mode') { + if (docEnd.end) + docEnd.end.push(this.sourceToken); + else + docEnd.end = [this.sourceToken]; + if (this.type === 'newline') + yield* this.pop(); + } + } + *lineEnd(token) { + switch (this.type) { + case 'comma': + case 'doc-start': + case 'doc-end': + case 'flow-seq-end': + case 'flow-map-end': + case 'map-value-ind': + yield* this.pop(); + yield* this.step(); + break; + case 'newline': + this.onKeyLine = false; + // fallthrough + case 'space': + case 'comment': + default: + // all other values are errors + if (token.end) + token.end.push(this.sourceToken); + else + token.end = [this.sourceToken]; + if (this.type === 'newline') + yield* this.pop(); + } + } +} + +exports.Parser = Parser; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.d.ts" index c6887cbb5b11d3196ca25a1871be06e4f9c75bdc..82a4d4fbe0ca856dcb2f81767f7d83b39f12f1ea 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.d.ts" @@ -1,3 +1,43 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a95a6135f2d195c93d930ba01049c33579328e55612477c0ae5652429d3974ad -size 2618 +import { Composer } from './compose/composer.js'; +import type { Reviver } from './doc/applyReviver.js'; +import { Document, Replacer } from './doc/Document.js'; +import type { ParsedNode } from './nodes/Node.js'; +import type { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions, ToStringOptions } from './options.js'; +export interface EmptyStream extends Array, ReturnType { + empty: true; +} +/** + * Parse the input as a stream of YAML documents. + * + * Documents should be separated from each other by `...` or `---` marker lines. + * + * @returns If an empty `docs` array is returned, it will be of type + * EmptyStream and contain additional stream information. In + * TypeScript, you should use `'empty' in docs` as a type guard for it. + */ +export declare function parseAllDocuments(source: string, options?: ParseOptions & DocumentOptions & SchemaOptions): Document.Parsed[] | EmptyStream; +/** Parse an input string into a single YAML.Document */ +export declare function parseDocument(source: string, options?: ParseOptions & DocumentOptions & SchemaOptions): Document.Parsed; +/** + * Parse an input string into JavaScript. + * + * Only supports input consisting of a single YAML document; for multi-document + * support you should use `YAML.parseAllDocuments`. May throw on error, and may + * log warnings using `console.warn`. + * + * @param str - A string with YAML formatting. + * @param reviver - A reviver function, as in `JSON.parse()` + * @returns The value will match the type of the root value of the parsed YAML + * document, so Maps become objects, Sequences arrays, and scalars result in + * nulls, booleans, numbers and strings. + */ +export declare function parse(src: string, options?: ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions): any; +export declare function parse(src: string, reviver: Reviver, options?: ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions): any; +/** + * Stringify a value as a YAML document. + * + * @param replacer - A replacer array or function, as in `JSON.stringify()` + * @returns Will always include `\n` as the last character, as is expected of YAML documents. + */ +export declare function stringify(value: any, options?: DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions & ToStringOptions): string; +export declare function stringify(value: any, replacer?: Replacer | null, options?: string | number | (DocumentOptions & SchemaOptions & ParseOptions & CreateNodeOptions & ToStringOptions)): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.js" index 288158a932ae1d6af6b74c80034e69a9b0cc09d1..38aad922f75cbfbd8e03ec50efc2b95fc7054291 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/public-api.js" @@ -1,3 +1,104 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d3a5381a953333f0cebbeb1a54fa22d480fe02140e1ebffa6efc9ed3ce9e4d8 -size 4050 +'use strict'; + +var composer = require('./compose/composer.js'); +var Document = require('./doc/Document.js'); +var errors = require('./errors.js'); +var log = require('./log.js'); +var lineCounter = require('./parse/line-counter.js'); +var parser = require('./parse/parser.js'); + +function parseOptions(options) { + const prettyErrors = options.prettyErrors !== false; + const lineCounter$1 = options.lineCounter || (prettyErrors && new lineCounter.LineCounter()) || null; + return { lineCounter: lineCounter$1, prettyErrors }; +} +/** + * Parse the input as a stream of YAML documents. + * + * Documents should be separated from each other by `...` or `---` marker lines. + * + * @returns If an empty `docs` array is returned, it will be of type + * EmptyStream and contain additional stream information. In + * TypeScript, you should use `'empty' in docs` as a type guard for it. + */ +function parseAllDocuments(source, options = {}) { + const { lineCounter, prettyErrors } = parseOptions(options); + const parser$1 = new parser.Parser(lineCounter?.addNewLine); + const composer$1 = new composer.Composer(options); + const docs = Array.from(composer$1.compose(parser$1.parse(source))); + if (prettyErrors && lineCounter) + for (const doc of docs) { + doc.errors.forEach(errors.prettifyError(source, lineCounter)); + doc.warnings.forEach(errors.prettifyError(source, lineCounter)); + } + if (docs.length > 0) + return docs; + return Object.assign([], { empty: true }, composer$1.streamInfo()); +} +/** Parse an input string into a single YAML.Document */ +function parseDocument(source, options = {}) { + const { lineCounter, prettyErrors } = parseOptions(options); + const parser$1 = new parser.Parser(lineCounter?.addNewLine); + const composer$1 = new composer.Composer(options); + // `doc` is always set by compose.end(true) at the very latest + let doc = null; + for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) { + if (!doc) + doc = _doc; + else if (doc.options.logLevel !== 'silent') { + doc.errors.push(new errors.YAMLParseError(_doc.range.slice(0, 2), 'MULTIPLE_DOCS', 'Source contains multiple documents; please use YAML.parseAllDocuments()')); + break; + } + } + if (prettyErrors && lineCounter) { + doc.errors.forEach(errors.prettifyError(source, lineCounter)); + doc.warnings.forEach(errors.prettifyError(source, lineCounter)); + } + return doc; +} +function parse(src, reviver, options) { + let _reviver = undefined; + if (typeof reviver === 'function') { + _reviver = reviver; + } + else if (options === undefined && reviver && typeof reviver === 'object') { + options = reviver; + } + const doc = parseDocument(src, options); + if (!doc) + return null; + doc.warnings.forEach(warning => log.warn(doc.options.logLevel, warning)); + if (doc.errors.length > 0) { + if (doc.options.logLevel !== 'silent') + throw doc.errors[0]; + else + doc.errors = []; + } + return doc.toJS(Object.assign({ reviver: _reviver }, options)); +} +function stringify(value, replacer, options) { + let _replacer = null; + if (typeof replacer === 'function' || Array.isArray(replacer)) { + _replacer = replacer; + } + else if (options === undefined && replacer) { + options = replacer; + } + if (typeof options === 'string') + options = options.length; + if (typeof options === 'number') { + const indent = Math.round(options); + options = indent < 1 ? undefined : indent > 8 ? { indent: 8 } : { indent }; + } + if (value === undefined) { + const { keepUndefined } = options ?? replacer ?? {}; + if (!keepUndefined) + return undefined; + } + return new Document.Document(value, _replacer, options).toString(options); +} + +exports.parse = parse; +exports.parseAllDocuments = parseAllDocuments; +exports.parseDocument = parseDocument; +exports.stringify = stringify; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.d.ts" index c1f51377c2f111c35385d664ec96315c335a5569..0d53d5b1f2d59b46ef733ebef5fab7625081bfdd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.d.ts" @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ae8189514ed306971ac9aa7d917487ee51dc3590aa5735f23c1d71811c373ea6 -size 815 +import { MAP, SCALAR, SEQ } from '../nodes/Node.js'; +import type { Pair } from '../nodes/Pair.js'; +import type { SchemaOptions, ToStringOptions } from '../options.js'; +import type { CollectionTag, ScalarTag } from './types.js'; +export declare class Schema { + compat: Array | null; + knownTags: Record; + merge: boolean; + name: string; + sortMapEntries: ((a: Pair, b: Pair) => number) | null; + tags: Array; + toStringOptions: Readonly | null; + readonly [MAP]: CollectionTag; + readonly [SCALAR]: ScalarTag; + readonly [SEQ]: CollectionTag; + constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }: SchemaOptions); + clone(): Schema; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.js" index 5ec0366352721d1f5cfcb0cf18680e7b5c1cfc4e..f31b1a9777c1e4d9fe05f1eccf5af2667926fde1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/Schema.js" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d183be3715319c5a52ce51243508a28fe68f2bff17bbebe52cd884944b1876fa -size 1550 +'use strict'; + +var Node = require('../nodes/Node.js'); +var map = require('./common/map.js'); +var seq = require('./common/seq.js'); +var string = require('./common/string.js'); +var tags = require('./tags.js'); + +const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0; +class Schema { + constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) { + this.compat = Array.isArray(compat) + ? tags.getTags(compat, 'compat') + : compat + ? tags.getTags(null, compat) + : null; + this.merge = !!merge; + this.name = (typeof schema === 'string' && schema) || 'core'; + this.knownTags = resolveKnownTags ? tags.coreKnownTags : {}; + this.tags = tags.getTags(customTags, this.name); + this.toStringOptions = toStringDefaults ?? null; + Object.defineProperty(this, Node.MAP, { value: map.map }); + Object.defineProperty(this, Node.SCALAR, { value: string.string }); + Object.defineProperty(this, Node.SEQ, { value: seq.seq }); + // Used by createMap() + this.sortMapEntries = + typeof sortMapEntries === 'function' + ? sortMapEntries + : sortMapEntries === true + ? sortMapEntriesByKey + : null; + } + clone() { + const copy = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this)); + copy.tags = this.tags.slice(); + return copy; + } +} + +exports.Schema = Schema; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.d.ts" index 01b384a65bce697c54abe77e0d81094c4de3fd81..9b300f88139ea5764cdc0bd0700361678ef22ba2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:585b6a3e27da0624e1d7d370aa56de47405f63443557d05fc1628a65684f2db6 -size 91 +import type { CollectionTag } from '../types.js'; +export declare const map: CollectionTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.js" index 23448aa2e1deb37c2587eb8595e54d7b28813d6b..46dab3c62bcd713c6fbf8cc4ffb8fea709c1b20d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/map.js" @@ -1,3 +1,44 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bebbabfa9857ee13ead7bdfdbd638386feabeb8e611cc69a3017dac2e0965830 -size 1290 +'use strict'; + +var Node = require('../../nodes/Node.js'); +var Pair = require('../../nodes/Pair.js'); +var YAMLMap = require('../../nodes/YAMLMap.js'); + +function createMap(schema, obj, ctx) { + const { keepUndefined, replacer } = ctx; + const map = new YAMLMap.YAMLMap(schema); + const add = (key, value) => { + if (typeof replacer === 'function') + value = replacer.call(obj, key, value); + else if (Array.isArray(replacer) && !replacer.includes(key)) + return; + if (value !== undefined || keepUndefined) + map.items.push(Pair.createPair(key, value, ctx)); + }; + if (obj instanceof Map) { + for (const [key, value] of obj) + add(key, value); + } + else if (obj && typeof obj === 'object') { + for (const key of Object.keys(obj)) + add(key, obj[key]); + } + if (typeof schema.sortMapEntries === 'function') { + map.items.sort(schema.sortMapEntries); + } + return map; +} +const map = { + collection: 'map', + createNode: createMap, + default: true, + nodeClass: YAMLMap.YAMLMap, + tag: 'tag:yaml.org,2002:map', + resolve(map, onError) { + if (!Node.isMap(map)) + onError('Expected a mapping for this tag'); + return map; + } +}; + +exports.map = map; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.d.ts" index 9a73d738e9d4c1428923375b91a3725409dbcdd1..66abea5a665ee40767c19ef0f08c3385e3c2d7d9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8c2e0639e35557ce9958015b5cc56246609683766e39bc516303b5747c06fa9b -size 111 +import type { ScalarTag } from '../types.js'; +export declare const nullTag: ScalarTag & { + test: RegExp; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.js" index 8dd92e160380eb337ac390e7bca621c0b85674ff..cb353a7a7e6198e8c577e2c5ea1709df77784e49 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/null.js" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f5d5f694ea3a42ef136e0fbcc674dfd7aa0a3da2b8d62183fb750166a12e52bb -size 469 +'use strict'; + +var Scalar = require('../../nodes/Scalar.js'); + +const nullTag = { + identify: value => value == null, + createNode: () => new Scalar.Scalar(null), + default: true, + tag: 'tag:yaml.org,2002:null', + test: /^(?:~|[Nn]ull|NULL)?$/, + resolve: () => new Scalar.Scalar(null), + stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source) + ? source + : ctx.options.nullStr +}; + +exports.nullTag = nullTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.d.ts" index 86cbdfc05e59e116bcd8af11b85bad67c1536954..c038d30a4181544c3c12ebac210611d119d25362 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2bce192bfd015f614ed990644618ca6d9d58e1d17eaf427f943d03d823be7a3 -size 91 +import type { CollectionTag } from '../types.js'; +export declare const seq: CollectionTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.js" index 730bb477e335a0c2c28f6ddab40d9a2b5d2c0814..0c48bdedc23da68b34f864c411a5475dd716d147 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/seq.js" @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:32ef365bd6764dc5490e5ddbe941a40e29907423bca78ad72355a543df34d84b -size 972 +'use strict'; + +var createNode = require('../../doc/createNode.js'); +var Node = require('../../nodes/Node.js'); +var YAMLSeq = require('../../nodes/YAMLSeq.js'); + +function createSeq(schema, obj, ctx) { + const { replacer } = ctx; + const seq = new YAMLSeq.YAMLSeq(schema); + if (obj && Symbol.iterator in Object(obj)) { + let i = 0; + for (let it of obj) { + if (typeof replacer === 'function') { + const key = obj instanceof Set ? it : String(i++); + it = replacer.call(obj, key, it); + } + seq.items.push(createNode.createNode(it, undefined, ctx)); + } + } + return seq; +} +const seq = { + collection: 'seq', + createNode: createSeq, + default: true, + nodeClass: YAMLSeq.YAMLSeq, + tag: 'tag:yaml.org,2002:seq', + resolve(seq, onError) { + if (!Node.isSeq(seq)) + onError('Expected a sequence for this tag'); + return seq; + } +}; + +exports.seq = seq; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.d.ts" index 6982b49e0dd7a74fb6072573b5334adc83ce924f..539c9b17b97d69ca8b0c75663b0ebb9d0f03564c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c2be5af341b5c92d4c26e1d4451394c7ac3d7db081d9e08d99ba4abf67fed2e1 -size 86 +import type { ScalarTag } from '../types.js'; +export declare const string: ScalarTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.js" index e5d2d51a6711af1c0c11495e177a13163ea13fe2..760142009b836c4105325958fce482a7f7b58f18 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/common/string.js" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51d0b3aafab2ffa4ad9d86656a3b92c4b4824d0a8806423882ea5f92a1bf8d11 -size 457 +'use strict'; + +var stringifyString = require('../../stringify/stringifyString.js'); + +const string = { + identify: value => typeof value === 'string', + default: true, + tag: 'tag:yaml.org,2002:str', + resolve: str => str, + stringify(item, ctx, onComment, onChompKeep) { + ctx = Object.assign({ actualString: true }, ctx); + return stringifyString.stringifyString(item, ctx, onComment, onChompKeep); + } +}; + +exports.string = string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.d.ts" index 05519cfabe74deab7ff2a52ee5e4e1d1fea8f1ca..e4bdc4c86fb09d494ce7231d1a7b57b91a47211f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6f7a36fc15588e39c9c653b0c25b2ad32b329f38fb6e18b08085e42b3d6b7dd4 -size 111 +import type { ScalarTag } from '../types.js'; +export declare const boolTag: ScalarTag & { + test: RegExp; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.js" index bf8a962dc439841b06b257f83fbd93555d13157b..4def73c7fed24ad59fc6dce2abb11e283e8f826c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/bool.js" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9fa696b1efc38cf8c73a398f30d9f9841658aa5afd0b7a6b0822947c3991ba7a -size 635 +'use strict'; + +var Scalar = require('../../nodes/Scalar.js'); + +const boolTag = { + identify: value => typeof value === 'boolean', + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/, + resolve: str => new Scalar.Scalar(str[0] === 't' || str[0] === 'T'), + stringify({ source, value }, ctx) { + if (source && boolTag.test.test(source)) { + const sv = source[0] === 't' || source[0] === 'T'; + if (value === sv) + return source; + } + return value ? ctx.options.trueStr : ctx.options.falseStr; + } +}; + +exports.boolTag = boolTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.d.ts" index 17dbda6a2d4b10be00fbe063b4fe10922ae900df..22f024999f6da204b12e5afc3c3e537228785a20 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1a6868936b7d7d44b7a148e6ebfa92d116daf36dc1d2a8a41094e4234c48380 -size 169 +import type { ScalarTag } from '../types.js'; +export declare const floatNaN: ScalarTag; +export declare const floatExp: ScalarTag; +export declare const float: ScalarTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.js" index 9595cf89a8aea67555ab8c5810e20988a44c8e6e..a1c96ddb83b29e745cf09693a10680d34714d8fc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/float.js" @@ -1,3 +1,47 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0543e63e957cb434cfd75ba56494c7006cf48fcd36ccd55cdf2e20049c97deb4 -size 1504 +'use strict'; + +var Scalar = require('../../nodes/Scalar.js'); +var stringifyNumber = require('../../stringify/stringifyNumber.js'); + +const floatNaN = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/, + resolve: str => str.slice(-3).toLowerCase() === 'nan' + ? NaN + : str[0] === '-' + ? Number.NEGATIVE_INFINITY + : Number.POSITIVE_INFINITY, + stringify: stringifyNumber.stringifyNumber +}; +const floatExp = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + format: 'EXP', + test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/, + resolve: str => parseFloat(str), + stringify(node) { + const num = Number(node.value); + return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node); + } +}; +const float = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/, + resolve(str) { + const node = new Scalar.Scalar(parseFloat(str)); + const dot = str.indexOf('.'); + if (dot !== -1 && str[str.length - 1] === '0') + node.minFractionDigits = str.length - dot - 1; + return node; + }, + stringify: stringifyNumber.stringifyNumber +}; + +exports.float = float; +exports.floatExp = floatExp; +exports.floatNaN = floatNaN; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.d.ts" index 9e641a6f4aea15a42ab7b0caee5d1fcaca01587d..35e2d4bec3ca1eb6016714d4d7a811a9b17c988a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c52ba11b0a18c2841b3d53b8df454956d2be581e3e3d79699d8505f688fed1ce -size 163 +import type { ScalarTag } from '../types.js'; +export declare const intOct: ScalarTag; +export declare const int: ScalarTag; +export declare const intHex: ScalarTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.js" index 06d065515add10003a1e1cb938e462f243ae20cf..fe4c9ca1a4108d6f3d33a5f3737255c618ae5eb7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/int.js" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f0e474254f6877d5dd23bb57017980931ab333a7eaa3d33872247a80d11f754d -size 1407 +'use strict'; + +var stringifyNumber = require('../../stringify/stringifyNumber.js'); + +const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value); +const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix)); +function intStringify(node, radix, prefix) { + const { value } = node; + if (intIdentify(value) && value >= 0) + return prefix + value.toString(radix); + return stringifyNumber.stringifyNumber(node); +} +const intOct = { + identify: value => intIdentify(value) && value >= 0, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'OCT', + test: /^0o[0-7]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt), + stringify: node => intStringify(node, 8, '0o') +}; +const int = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + test: /^[-+]?[0-9]+$/, + resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt), + stringify: stringifyNumber.stringifyNumber +}; +const intHex = { + identify: value => intIdentify(value) && value >= 0, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'HEX', + test: /^0x[0-9a-fA-F]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt), + stringify: node => intStringify(node, 16, '0x') +}; + +exports.int = int; +exports.intHex = intHex; +exports.intOct = intOct; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.d.ts" index d6cdb2aa1ea8c6cb0cdec528d1dbd6f0aa2960de..7663949169cf449faafadc9d4564f55b2ce601be 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:476abc785aea458e601ee8ac8cb98365b9a08aa8a54467422791bc81ba6dfc8b -size 104 +export declare const schema: (import("../types.js").ScalarTag | import("../types.js").CollectionTag)[]; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.js" index 86a70ef1d7d90e4b92ffb446114016b19d29bf1f..6ab87f2cc932bb591b378bbfd796b2d453560b29 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/core/schema.js" @@ -1,3 +1,25 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:481d7c64817b40090d519fb65bd83730dadd4c6baec1440b9bf85d29e52c046e -size 509 +'use strict'; + +var map = require('../common/map.js'); +var _null = require('../common/null.js'); +var seq = require('../common/seq.js'); +var string = require('../common/string.js'); +var bool = require('./bool.js'); +var float = require('./float.js'); +var int = require('./int.js'); + +const schema = [ + map.map, + seq.seq, + string.string, + _null.nullTag, + bool.boolTag, + int.intOct, + int.int, + int.intHex, + float.floatNaN, + float.floatExp, + float.float +]; + +exports.schema = schema; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json-schema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json-schema.d.ts" index 481f15a319fdea545bd4ef4b1634310cd945a629..6d51f40b514ab64a4e08c086221607476c806eff 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json-schema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json-schema.d.ts" @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c82708af4dcb3fb9dfacbadc6faf9cad4f2d07ffce12407f8cf9778af37bbefe -size 1998 +type JsonSchema = boolean | ArraySchema | ObjectSchema | NumberSchema | StringSchema; +type JsonType = 'array' | 'object' | 'string' | 'number' | 'integer' | 'boolean' | 'null'; +interface CommonSchema { + type?: JsonType | JsonType[]; + const?: unknown; + enum?: unknown[]; + format?: string; + allOf?: JsonSchema[]; + anyOf?: JsonSchema[]; + oneOf?: JsonSchema[]; + not?: JsonSchema; + if?: JsonSchema; + then?: JsonSchema; + else?: JsonSchema; + $id?: string; + $defs?: Record; + $anchor?: string; + $dynamicAnchor?: string; + $ref?: string; + $dynamicRef?: string; + $schema?: string; + $vocabulary?: Record; + $comment?: string; + default?: unknown; + deprecated?: boolean; + readOnly?: boolean; + writeOnly?: boolean; + title?: string; + description?: string; + examples?: unknown[]; +} +interface ArraySchema extends CommonSchema { + prefixItems?: JsonSchema[]; + items?: JsonSchema; + contains?: JsonSchema; + unevaluatedItems?: JsonSchema; + maxItems?: number; + minItems?: number; + uniqueItems?: boolean; + maxContains?: number; + minContains?: number; +} +interface ObjectSchema extends CommonSchema { + properties?: Record; + patternProperties?: Record; + additionalProperties?: JsonSchema; + propertyNames?: JsonSchema; + unevaluatedProperties?: JsonSchema; + maxProperties?: number; + minProperties?: number; + required?: string[]; + dependentRequired?: Record; + dependentSchemas?: Record; +} +interface StringSchema extends CommonSchema { + maxLength?: number; + minLength?: number; + patter?: string; + contentEncoding?: string; + contentMediaType?: string; + contentSchema?: JsonSchema; +} +interface NumberSchema extends CommonSchema { + multipleOf?: number; + maximum?: number; + exclusiveMaximum?: number; + minimum?: number; + exclusiveMinimum?: number; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.d.ts" index 14fa321cefedfcab7b2b8dc8a21730e5b6b7f0e8..a166ca2afed7f42e202f139b0c67ed123a71f624 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9dc74dfb5712ff44b5f5d5807f578dfe53ad6b76c3f540ab10d7dc903753f890 -size 116 +import { CollectionTag, ScalarTag } from '../types.js'; +export declare const schema: (ScalarTag | CollectionTag)[]; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.js" index 872c2bcd597ea90ac080cbfb52b8bfa46ef7a6ba..31d0b4dc4187b4a3230651e992149bd10754ff57 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/json/schema.js" @@ -1,3 +1,64 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65f81c86c319135f6338e325ed19bb1263bf44ab9d59ee398ed9c17dc558862c -size 1898 +'use strict'; + +var Scalar = require('../../nodes/Scalar.js'); +var map = require('../common/map.js'); +var seq = require('../common/seq.js'); + +function intIdentify(value) { + return typeof value === 'bigint' || Number.isInteger(value); +} +const stringifyJSON = ({ value }) => JSON.stringify(value); +const jsonScalars = [ + { + identify: value => typeof value === 'string', + default: true, + tag: 'tag:yaml.org,2002:str', + resolve: str => str, + stringify: stringifyJSON + }, + { + identify: value => value == null, + createNode: () => new Scalar.Scalar(null), + default: true, + tag: 'tag:yaml.org,2002:null', + test: /^null$/, + resolve: () => null, + stringify: stringifyJSON + }, + { + identify: value => typeof value === 'boolean', + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^true|false$/, + resolve: str => str === 'true', + stringify: stringifyJSON + }, + { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + test: /^-?(?:0|[1-9][0-9]*)$/, + resolve: (str, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str, 10), + stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value) + }, + { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/, + resolve: str => parseFloat(str), + stringify: stringifyJSON + } +]; +const jsonError = { + default: true, + tag: '', + test: /^/, + resolve(str, onError) { + onError(`Unresolved plain scalar ${JSON.stringify(str)}`); + return str; + } +}; +const schema = [map.map, seq.seq].concat(jsonScalars, jsonError); + +exports.schema = schema; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.d.ts" index 2d5aa09caa221d179df899a38cc5fd403a681b41..ddedb25d98c9f7eb403df37bab4c8c3025d0afc1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.d.ts" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ad294cdc42fb1f99cc94db8f77364ddc516643d9c69d4e66942f2cfd783213b -size 1187 +import { SchemaOptions } from '../options.js'; +import type { CollectionTag, ScalarTag } from './types.js'; +declare const tagsByName: { + binary: ScalarTag; + bool: ScalarTag & { + test: RegExp; + }; + float: ScalarTag; + floatExp: ScalarTag; + floatNaN: ScalarTag; + floatTime: ScalarTag; + int: ScalarTag; + intHex: ScalarTag; + intOct: ScalarTag; + intTime: ScalarTag; + map: CollectionTag; + null: ScalarTag & { + test: RegExp; + }; + omap: CollectionTag; + pairs: CollectionTag; + seq: CollectionTag; + set: CollectionTag; + timestamp: ScalarTag & { + test: RegExp; + }; +}; +export type TagId = keyof typeof tagsByName; +export type Tags = Array; +export declare const coreKnownTags: { + 'tag:yaml.org,2002:binary': ScalarTag; + 'tag:yaml.org,2002:omap': CollectionTag; + 'tag:yaml.org,2002:pairs': CollectionTag; + 'tag:yaml.org,2002:set': CollectionTag; + 'tag:yaml.org,2002:timestamp': ScalarTag & { + test: RegExp; + }; +}; +export declare function getTags(customTags: SchemaOptions['customTags'] | undefined, schemaName: string): (ScalarTag | CollectionTag)[]; +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.js" index 07030e870e37da181f6e651fd7bdd186f078e18b..e49d2b0cf8a7274deab474df5363542d43d9d3e2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/tags.js" @@ -1,3 +1,86 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd95749d67f3c3aa7fb9055cdaa608d0d6c83822f7abdb095eb235f985ab31c7 -size 2704 +'use strict'; + +var map = require('./common/map.js'); +var _null = require('./common/null.js'); +var seq = require('./common/seq.js'); +var string = require('./common/string.js'); +var bool = require('./core/bool.js'); +var float = require('./core/float.js'); +var int = require('./core/int.js'); +var schema = require('./core/schema.js'); +var schema$1 = require('./json/schema.js'); +var binary = require('./yaml-1.1/binary.js'); +var omap = require('./yaml-1.1/omap.js'); +var pairs = require('./yaml-1.1/pairs.js'); +var schema$2 = require('./yaml-1.1/schema.js'); +var set = require('./yaml-1.1/set.js'); +var timestamp = require('./yaml-1.1/timestamp.js'); + +const schemas = new Map([ + ['core', schema.schema], + ['failsafe', [map.map, seq.seq, string.string]], + ['json', schema$1.schema], + ['yaml11', schema$2.schema], + ['yaml-1.1', schema$2.schema] +]); +const tagsByName = { + binary: binary.binary, + bool: bool.boolTag, + float: float.float, + floatExp: float.floatExp, + floatNaN: float.floatNaN, + floatTime: timestamp.floatTime, + int: int.int, + intHex: int.intHex, + intOct: int.intOct, + intTime: timestamp.intTime, + map: map.map, + null: _null.nullTag, + omap: omap.omap, + pairs: pairs.pairs, + seq: seq.seq, + set: set.set, + timestamp: timestamp.timestamp +}; +const coreKnownTags = { + 'tag:yaml.org,2002:binary': binary.binary, + 'tag:yaml.org,2002:omap': omap.omap, + 'tag:yaml.org,2002:pairs': pairs.pairs, + 'tag:yaml.org,2002:set': set.set, + 'tag:yaml.org,2002:timestamp': timestamp.timestamp +}; +function getTags(customTags, schemaName) { + let tags = schemas.get(schemaName); + if (!tags) { + if (Array.isArray(customTags)) + tags = []; + else { + const keys = Array.from(schemas.keys()) + .filter(key => key !== 'yaml11') + .map(key => JSON.stringify(key)) + .join(', '); + throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`); + } + } + if (Array.isArray(customTags)) { + for (const tag of customTags) + tags = tags.concat(tag); + } + else if (typeof customTags === 'function') { + tags = customTags(tags.slice()); + } + return tags.map(tag => { + if (typeof tag !== 'string') + return tag; + const tagObj = tagsByName[tag]; + if (tagObj) + return tagObj; + const keys = Object.keys(tagsByName) + .map(key => JSON.stringify(key)) + .join(', '); + throw new Error(`Unknown custom tag "${tag}"; use one of ${keys}`); + }); +} + +exports.coreKnownTags = coreKnownTags; +exports.getTags = getTags; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/types.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/types.d.ts" index bb1eaa7ec0ed07474f392ced4be4db60cec0ba16..566f1a65238d09fd902ccee80f52856c084f503a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/types.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/types.d.ts" @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69ebf923204206eecef4310dc8bf28ab07feddaa3542066cdafbe67adf45f811 -size 3371 +import type { CreateNodeContext } from '../doc/createNode.js'; +import type { Schema } from './Schema.js'; +import type { Node } from '../nodes/Node.js'; +import type { Scalar } from '../nodes/Scalar.js'; +import type { YAMLMap } from '../nodes/YAMLMap.js'; +import type { YAMLSeq } from '../nodes/YAMLSeq.js'; +import type { ParseOptions } from '../options.js'; +import type { StringifyContext } from '../stringify/stringify.js'; +interface TagBase { + /** + * An optional factory function, used e.g. by collections when wrapping JS objects as AST nodes. + */ + createNode?: (schema: Schema, value: unknown, ctx: CreateNodeContext) => Node; + /** + * If `true`, together with `test` allows for values to be stringified without + * an explicit tag. For most cases, it's unlikely that you'll actually want to + * use this, even if you first think you do. + */ + default?: boolean; + /** + * If a tag has multiple forms that should be parsed and/or stringified + * differently, use `format` to identify them. + */ + format?: string; + /** + * Used by `YAML.createNode` to detect your data type, e.g. using `typeof` or + * `instanceof`. + */ + identify?: (value: unknown) => boolean; + /** + * The identifier for your data type, with which its stringified form will be + * prefixed. Should either be a !-prefixed local `!tag`, or a fully qualified + * `tag:domain,date:foo`. + */ + tag: string; +} +export interface ScalarTag extends TagBase { + collection?: never; + nodeClass?: never; + /** + * Turns a value into an AST node. + * If returning a non-`Node` value, the output will be wrapped as a `Scalar`. + */ + resolve(value: string, onError: (message: string) => void, options: ParseOptions): unknown; + /** + * Optional function stringifying a Scalar node. If your data includes a + * suitable `.toString()` method, you can probably leave this undefined and + * use the default stringifier. + * + * @param item The node being stringified. + * @param ctx Contains the stringifying context variables. + * @param onComment Callback to signal that the stringifier includes the + * item's comment in its output. + * @param onChompKeep Callback to signal that the output uses a block scalar + * type with the `+` chomping indicator. + */ + stringify?: (item: Scalar, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void) => string; + /** + * Together with `default` allows for values to be stringified without an + * explicit tag and detected using a regular expression. For most cases, it's + * unlikely that you'll actually want to use these, even if you first think + * you do. + */ + test?: RegExp; +} +export interface CollectionTag extends TagBase { + stringify?: never; + test?: never; + /** The source collection type supported by this tag. */ + collection: 'map' | 'seq'; + /** + * The `Node` child class that implements this tag. + * If set, used to select this tag when stringifying. + */ + nodeClass?: new () => Node; + /** + * Turns a value into an AST node. + * If returning a non-`Node` value, the output will be wrapped as a `Scalar`. + */ + resolve(value: YAMLMap.Parsed | YAMLSeq.Parsed, onError: (message: string) => void, options: ParseOptions): unknown; +} +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts" index 166888bf557893937e477f430ae66d65613954d3..20549705a0fcfc7a01d84f668585300106cab5f9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:257a4913421cac26348e01adf92a40f62172c6b4f1843036ba6c0cbaf01471ee -size 86 +import type { ScalarTag } from '../types.js'; +export declare const binary: ScalarTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.js" index 9e6cbb2ac0464cf7979fb1e67da43fb50f54f0c6..df93e05b4774b5ff6033058ce29401f355d06a3b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/binary.js" @@ -1,3 +1,68 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:87b9514dba67f598706a1cf2f47a696a26624df9781887533589a848c73c2d21 -size 2638 +'use strict'; + +var Scalar = require('../../nodes/Scalar.js'); +var stringifyString = require('../../stringify/stringifyString.js'); + +const binary = { + identify: value => value instanceof Uint8Array, + default: false, + tag: 'tag:yaml.org,2002:binary', + /** + * Returns a Buffer in node and an Uint8Array in browsers + * + * To use the resulting buffer as an image, you'll want to do something like: + * + * const blob = new Blob([buffer], { type: 'image/jpeg' }) + * document.querySelector('#photo').src = URL.createObjectURL(blob) + */ + resolve(src, onError) { + if (typeof Buffer === 'function') { + return Buffer.from(src, 'base64'); + } + else if (typeof atob === 'function') { + // On IE 11, atob() can't handle newlines + const str = atob(src.replace(/[\n\r]/g, '')); + const buffer = new Uint8Array(str.length); + for (let i = 0; i < str.length; ++i) + buffer[i] = str.charCodeAt(i); + return buffer; + } + else { + onError('This environment does not support reading binary tags; either Buffer or atob is required'); + return src; + } + }, + stringify({ comment, type, value }, ctx, onComment, onChompKeep) { + const buf = value; // checked earlier by binary.identify() + let str; + if (typeof Buffer === 'function') { + str = + buf instanceof Buffer + ? buf.toString('base64') + : Buffer.from(buf.buffer).toString('base64'); + } + else if (typeof btoa === 'function') { + let s = ''; + for (let i = 0; i < buf.length; ++i) + s += String.fromCharCode(buf[i]); + str = btoa(s); + } + else { + throw new Error('This environment does not support writing binary tags; either Buffer or btoa is required'); + } + if (!type) + type = Scalar.Scalar.BLOCK_LITERAL; + if (type !== Scalar.Scalar.QUOTE_DOUBLE) { + const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth); + const n = Math.ceil(str.length / lineWidth); + const lines = new Array(n); + for (let i = 0, o = 0; i < n; ++i, o += lineWidth) { + lines[i] = str.substr(o, lineWidth); + } + str = lines.join(type === Scalar.Scalar.BLOCK_LITERAL ? '\n' : ' '); + } + return stringifyString.stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep); + } +}; + +exports.binary = binary; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts" index f02b6e3823a8e2c29d574486429550a6ce6488da..587b55b9b0330cef01784b42549a50036ea5dbce 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61bffed1b39310a568146a8c702e7f72066703b03f2108044ac5895755d99207 -size 177 +import type { ScalarTag } from '../types.js'; +export declare const trueTag: ScalarTag & { + test: RegExp; +}; +export declare const falseTag: ScalarTag & { + test: RegExp; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.js" index 7c47cc642f2878de1ddf8dba7e87e264599f15a7..fdb3b460be52d430e5b5be444824f7d5733346c7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/bool.js" @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:551c1756cc39075c83ae2b97deefb3266d4b710714682aa3430f08dddab2ad1e -size 842 +'use strict'; + +var Scalar = require('../../nodes/Scalar.js'); + +function boolStringify({ value, source }, ctx) { + const boolObj = value ? trueTag : falseTag; + if (source && boolObj.test.test(source)) + return source; + return value ? ctx.options.trueStr : ctx.options.falseStr; +} +const trueTag = { + identify: value => value === true, + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/, + resolve: () => new Scalar.Scalar(true), + stringify: boolStringify +}; +const falseTag = { + identify: value => value === false, + default: true, + tag: 'tag:yaml.org,2002:bool', + test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i, + resolve: () => new Scalar.Scalar(false), + stringify: boolStringify +}; + +exports.falseTag = falseTag; +exports.trueTag = trueTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts" index 17dbda6a2d4b10be00fbe063b4fe10922ae900df..22f024999f6da204b12e5afc3c3e537228785a20 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1a6868936b7d7d44b7a148e6ebfa92d116daf36dc1d2a8a41094e4234c48380 -size 169 +import type { ScalarTag } from '../types.js'; +export declare const floatNaN: ScalarTag; +export declare const floatExp: ScalarTag; +export declare const float: ScalarTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.js" index 5d5970deedfc589d029206504e7f7f5944e3ea0d..4aea19a4d959b1ec53627ac8af147e3d129da701 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/float.js" @@ -1,3 +1,50 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2027835dd5494116072c7bbb91c98d6b7edd00553084a20a0af58f2592487378 -size 1616 +'use strict'; + +var Scalar = require('../../nodes/Scalar.js'); +var stringifyNumber = require('../../stringify/stringifyNumber.js'); + +const floatNaN = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/, + resolve: (str) => str.slice(-3).toLowerCase() === 'nan' + ? NaN + : str[0] === '-' + ? Number.NEGATIVE_INFINITY + : Number.POSITIVE_INFINITY, + stringify: stringifyNumber.stringifyNumber +}; +const floatExp = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + format: 'EXP', + test: /^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/, + resolve: (str) => parseFloat(str.replace(/_/g, '')), + stringify(node) { + const num = Number(node.value); + return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node); + } +}; +const float = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/, + resolve(str) { + const node = new Scalar.Scalar(parseFloat(str.replace(/_/g, ''))); + const dot = str.indexOf('.'); + if (dot !== -1) { + const f = str.substring(dot + 1).replace(/_/g, ''); + if (f[f.length - 1] === '0') + node.minFractionDigits = f.length; + } + return node; + }, + stringify: stringifyNumber.stringifyNumber +}; + +exports.float = float; +exports.floatExp = floatExp; +exports.floatNaN = floatNaN; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts" index f7d14fc5723d689ddf7cbf591116ab4ba2b29831..3d92f37436306661f0e3fd8e3716d576ab8569c5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35bc1635b38f9abaeef932aabac35ed17b8bcf51aa52902fb0009d7b49527c9d -size 203 +import type { ScalarTag } from '../types.js'; +export declare const intBin: ScalarTag; +export declare const intOct: ScalarTag; +export declare const int: ScalarTag; +export declare const intHex: ScalarTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.js" index 95a4cfc73425d903ee59a3e7ce90d433fb547430..fdf47ca68b5159b1cb4d6d02b50008fcdef1781a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/int.js" @@ -1,3 +1,76 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5ff72b08fecc3a924d4a76658a304859db5edb4fadf8893ee837aa06bba60a52 -size 2232 +'use strict'; + +var stringifyNumber = require('../../stringify/stringifyNumber.js'); + +const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value); +function intResolve(str, offset, radix, { intAsBigInt }) { + const sign = str[0]; + if (sign === '-' || sign === '+') + offset += 1; + str = str.substring(offset).replace(/_/g, ''); + if (intAsBigInt) { + switch (radix) { + case 2: + str = `0b${str}`; + break; + case 8: + str = `0o${str}`; + break; + case 16: + str = `0x${str}`; + break; + } + const n = BigInt(str); + return sign === '-' ? BigInt(-1) * n : n; + } + const n = parseInt(str, radix); + return sign === '-' ? -1 * n : n; +} +function intStringify(node, radix, prefix) { + const { value } = node; + if (intIdentify(value)) { + const str = value.toString(radix); + return value < 0 ? '-' + prefix + str.substr(1) : prefix + str; + } + return stringifyNumber.stringifyNumber(node); +} +const intBin = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'BIN', + test: /^[-+]?0b[0-1_]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt), + stringify: node => intStringify(node, 2, '0b') +}; +const intOct = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'OCT', + test: /^[-+]?0[0-7_]+$/, + resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt), + stringify: node => intStringify(node, 8, '0') +}; +const int = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + test: /^[-+]?[0-9][0-9_]*$/, + resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt), + stringify: stringifyNumber.stringifyNumber +}; +const intHex = { + identify: intIdentify, + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'HEX', + test: /^[-+]?0x[0-9a-fA-F_]+$/, + resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt), + stringify: node => intStringify(node, 16, '0x') +}; + +exports.int = int; +exports.intBin = intBin; +exports.intHex = intHex; +exports.intOct = intOct; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts" index 4a27b0fba8b9c653ff9f3bb8b62cfdcda1fff375..a5a37cdeaf38e3088aae7419089b1d7a430c4d3d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts" @@ -1,3 +1,25 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24ead5861f4400218aeaafa477082022f244e3df46d18831411f3a47fc3ff515 -size 1004 +import { YAMLSeq } from '../../nodes/YAMLSeq.js'; +import { ToJSContext } from '../../nodes/toJS.js'; +import { CollectionTag } from '../types.js'; +export declare class YAMLOMap extends YAMLSeq { + static tag: string; + constructor(); + add: (pair: import("../../index.js").Pair | { + key: any; + value: any; + }, overwrite?: boolean | undefined) => void; + delete: (key: unknown) => boolean; + get: { + (key: unknown, keepScalar: true): import("../../index.js").Scalar | undefined; + (key: unknown, keepScalar?: false | undefined): any; + (key: unknown, keepScalar?: boolean | undefined): any; + }; + has: (key: unknown) => boolean; + set: (key: any, value: any) => void; + /** + * If `ctx` is given, the return type is actually `Map`, + * but TypeScript won't allow widening the signature of a child method. + */ + toJSON(_?: unknown, ctx?: ToJSContext): unknown[]; +} +export declare const omap: CollectionTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.js" index 96ae23a621e8f5f55dc3aab2909e818cf5fc4a83..eb69d5ac3d6116c7597c584706b73a316e301c31 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/omap.js" @@ -1,3 +1,76 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:291a2a8302e47969eadc57bffbabee24da0718f870bcf8ad35819156a7e65313 -size 2488 +'use strict'; + +var YAMLSeq = require('../../nodes/YAMLSeq.js'); +var toJS = require('../../nodes/toJS.js'); +var Node = require('../../nodes/Node.js'); +var YAMLMap = require('../../nodes/YAMLMap.js'); +var pairs = require('./pairs.js'); + +class YAMLOMap extends YAMLSeq.YAMLSeq { + constructor() { + super(); + this.add = YAMLMap.YAMLMap.prototype.add.bind(this); + this.delete = YAMLMap.YAMLMap.prototype.delete.bind(this); + this.get = YAMLMap.YAMLMap.prototype.get.bind(this); + this.has = YAMLMap.YAMLMap.prototype.has.bind(this); + this.set = YAMLMap.YAMLMap.prototype.set.bind(this); + this.tag = YAMLOMap.tag; + } + /** + * If `ctx` is given, the return type is actually `Map`, + * but TypeScript won't allow widening the signature of a child method. + */ + toJSON(_, ctx) { + if (!ctx) + return super.toJSON(_); + const map = new Map(); + if (ctx?.onCreate) + ctx.onCreate(map); + for (const pair of this.items) { + let key, value; + if (Node.isPair(pair)) { + key = toJS.toJS(pair.key, '', ctx); + value = toJS.toJS(pair.value, key, ctx); + } + else { + key = toJS.toJS(pair, '', ctx); + } + if (map.has(key)) + throw new Error('Ordered maps must not include duplicate keys'); + map.set(key, value); + } + return map; + } +} +YAMLOMap.tag = 'tag:yaml.org,2002:omap'; +const omap = { + collection: 'seq', + identify: value => value instanceof Map, + nodeClass: YAMLOMap, + default: false, + tag: 'tag:yaml.org,2002:omap', + resolve(seq, onError) { + const pairs$1 = pairs.resolvePairs(seq, onError); + const seenKeys = []; + for (const { key } of pairs$1.items) { + if (Node.isScalar(key)) { + if (seenKeys.includes(key.value)) { + onError(`Ordered maps must not include duplicate keys: ${key.value}`); + } + else { + seenKeys.push(key.value); + } + } + } + return Object.assign(new YAMLOMap(), pairs$1); + }, + createNode(schema, iterable, ctx) { + const pairs$1 = pairs.createPairs(schema, iterable, ctx); + const omap = new YAMLOMap(); + omap.items = pairs$1.items; + return omap; + } +}; + +exports.YAMLOMap = YAMLOMap; +exports.omap = omap; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts" index 5c53771cda59477f8247c9363d2e0c43cdaab130..8090ac2e99e04adf9cabc7291286e0490e9db2e3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:17681d45fd39000a09790dd2334e1094b620fcd6df1c3dab39a899ef2d90fe2e -size 736 +import type { CreateNodeContext } from '../../doc/createNode.js'; +import { ParsedNode } from '../../nodes/Node.js'; +import { Pair } from '../../nodes/Pair.js'; +import { YAMLMap } from '../../nodes/YAMLMap.js'; +import { YAMLSeq } from '../../nodes/YAMLSeq.js'; +import type { Schema } from '../../schema/Schema.js'; +import type { CollectionTag } from '../types.js'; +export declare function resolvePairs(seq: YAMLSeq.Parsed> | YAMLMap.Parsed, onError: (message: string) => void): YAMLSeq.Parsed>; +export declare function createPairs(schema: Schema, iterable: unknown, ctx: CreateNodeContext): YAMLSeq; +export declare const pairs: CollectionTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js" index e81abe1f675862541c8d9dd31691cbd51acded5b..d27d34de1d75755f32dc741a8f70d54a8a971772 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js" @@ -1,3 +1,81 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e931fdfc3b89b44eeb24bc7b95ec0091fb439fa858b8ac5b44ed6b05694b4d56 -size 2794 +'use strict'; + +var Node = require('../../nodes/Node.js'); +var Pair = require('../../nodes/Pair.js'); +var Scalar = require('../../nodes/Scalar.js'); +var YAMLSeq = require('../../nodes/YAMLSeq.js'); + +function resolvePairs(seq, onError) { + if (Node.isSeq(seq)) { + for (let i = 0; i < seq.items.length; ++i) { + let item = seq.items[i]; + if (Node.isPair(item)) + continue; + else if (Node.isMap(item)) { + if (item.items.length > 1) + onError('Each pair must have its own sequence indicator'); + const pair = item.items[0] || new Pair.Pair(new Scalar.Scalar(null)); + if (item.commentBefore) + pair.key.commentBefore = pair.key.commentBefore + ? `${item.commentBefore}\n${pair.key.commentBefore}` + : item.commentBefore; + if (item.comment) { + const cn = pair.value ?? pair.key; + cn.comment = cn.comment + ? `${item.comment}\n${cn.comment}` + : item.comment; + } + item = pair; + } + seq.items[i] = Node.isPair(item) ? item : new Pair.Pair(item); + } + } + else + onError('Expected a sequence for this tag'); + return seq; +} +function createPairs(schema, iterable, ctx) { + const { replacer } = ctx; + const pairs = new YAMLSeq.YAMLSeq(schema); + pairs.tag = 'tag:yaml.org,2002:pairs'; + let i = 0; + if (iterable && Symbol.iterator in Object(iterable)) + for (let it of iterable) { + if (typeof replacer === 'function') + it = replacer.call(iterable, String(i++), it); + let key, value; + if (Array.isArray(it)) { + if (it.length === 2) { + key = it[0]; + value = it[1]; + } + else + throw new TypeError(`Expected [key, value] tuple: ${it}`); + } + else if (it && it instanceof Object) { + const keys = Object.keys(it); + if (keys.length === 1) { + key = keys[0]; + value = it[key]; + } + else + throw new TypeError(`Expected { key: value } tuple: ${it}`); + } + else { + key = it; + } + pairs.items.push(Pair.createPair(key, value, ctx)); + } + return pairs; +} +const pairs = { + collection: 'seq', + default: false, + tag: 'tag:yaml.org,2002:pairs', + resolve: resolvePairs, + createNode: createPairs +}; + +exports.createPairs = createPairs; +exports.pairs = pairs; +exports.resolvePairs = resolvePairs; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts" index d6cdb2aa1ea8c6cb0cdec528d1dbd6f0aa2960de..7663949169cf449faafadc9d4564f55b2ce601be 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:476abc785aea458e601ee8ac8cb98365b9a08aa8a54467422791bc81ba6dfc8b -size 104 +export declare const schema: (import("../types.js").ScalarTag | import("../types.js").CollectionTag)[]; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.js" index 3ed8ec2926c6ea4b7bfd98cfb3a37f79b401ea94..c04270a375bb8b53aecf9deadf3b3aa04dbb834b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/schema.js" @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65fec0662b9b0b6ae8b71392ec1c0649600033187dfa54a3db2eb64f45c38d76 -size 860 +'use strict'; + +var map = require('../common/map.js'); +var _null = require('../common/null.js'); +var seq = require('../common/seq.js'); +var string = require('../common/string.js'); +var binary = require('./binary.js'); +var bool = require('./bool.js'); +var float = require('./float.js'); +var int = require('./int.js'); +var omap = require('./omap.js'); +var pairs = require('./pairs.js'); +var set = require('./set.js'); +var timestamp = require('./timestamp.js'); + +const schema = [ + map.map, + seq.seq, + string.string, + _null.nullTag, + bool.trueTag, + bool.falseTag, + int.intBin, + int.intOct, + int.int, + int.intHex, + float.floatNaN, + float.floatExp, + float.float, + binary.binary, + omap.omap, + pairs.pairs, + set.set, + timestamp.intTime, + timestamp.floatTime, + timestamp.timestamp +]; + +exports.schema = schema; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts" index b368359194b2a0ca725515d6028f56d79056bd35..068f58229c00fdac1e80ce7e018045007c5516b6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65ce9342063fcf793e7baea7526a5a9a2f6ce05dea0cf4ae726d02eae2b98fa3 -size 1132 +import type { Schema } from '../../schema/Schema.js'; +import { Pair } from '../../nodes/Pair.js'; +import { Scalar } from '../../nodes/Scalar.js'; +import { ToJSContext } from '../../nodes/toJS.js'; +import { YAMLMap } from '../../nodes/YAMLMap.js'; +import type { StringifyContext } from '../../stringify/stringify.js'; +import type { CollectionTag } from '../types.js'; +export declare class YAMLSet extends YAMLMap | null> { + static tag: string; + constructor(schema?: Schema); + add(key: T | Pair | null> | { + key: T; + value: Scalar | null; + }): void; + /** + * If `keepPair` is `true`, returns the Pair matching `key`. + * Otherwise, returns the value of that Pair's key. + */ + get(key: unknown, keepPair?: boolean): any; + set(key: T, value: boolean): void; + /** @deprecated Will throw; `value` must be boolean */ + set(key: T, value: null): void; + toJSON(_?: unknown, ctx?: ToJSContext): any; + toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; +} +export declare const set: CollectionTag; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.js" index f45c712b6287ff253213b298c1f33d3510b70690..c288a37fa0bd7dc85de222f97d9f0650dd8a4aaa 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/set.js" @@ -1,3 +1,95 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:30f1755b65e3de1352478f12367a3043fdc1dae10da717d7ae7620ea75af43ea -size 3013 +'use strict'; + +var Node = require('../../nodes/Node.js'); +var Pair = require('../../nodes/Pair.js'); +var YAMLMap = require('../../nodes/YAMLMap.js'); + +class YAMLSet extends YAMLMap.YAMLMap { + constructor(schema) { + super(schema); + this.tag = YAMLSet.tag; + } + add(key) { + let pair; + if (Node.isPair(key)) + pair = key; + else if (key && + typeof key === 'object' && + 'key' in key && + 'value' in key && + key.value === null) + pair = new Pair.Pair(key.key, null); + else + pair = new Pair.Pair(key, null); + const prev = YAMLMap.findPair(this.items, pair.key); + if (!prev) + this.items.push(pair); + } + /** + * If `keepPair` is `true`, returns the Pair matching `key`. + * Otherwise, returns the value of that Pair's key. + */ + get(key, keepPair) { + const pair = YAMLMap.findPair(this.items, key); + return !keepPair && Node.isPair(pair) + ? Node.isScalar(pair.key) + ? pair.key.value + : pair.key + : pair; + } + set(key, value) { + if (typeof value !== 'boolean') + throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value}`); + const prev = YAMLMap.findPair(this.items, key); + if (prev && !value) { + this.items.splice(this.items.indexOf(prev), 1); + } + else if (!prev && value) { + this.items.push(new Pair.Pair(key)); + } + } + toJSON(_, ctx) { + return super.toJSON(_, ctx, Set); + } + toString(ctx, onComment, onChompKeep) { + if (!ctx) + return JSON.stringify(this); + if (this.hasAllNullValues(true)) + return super.toString(Object.assign({}, ctx, { allNullValues: true }), onComment, onChompKeep); + else + throw new Error('Set items must all have null values'); + } +} +YAMLSet.tag = 'tag:yaml.org,2002:set'; +const set = { + collection: 'map', + identify: value => value instanceof Set, + nodeClass: YAMLSet, + default: false, + tag: 'tag:yaml.org,2002:set', + resolve(map, onError) { + if (Node.isMap(map)) { + if (map.hasAllNullValues(true)) + return Object.assign(new YAMLSet(), map); + else + onError('Set items must all have null values'); + } + else + onError('Expected a mapping for this tag'); + return map; + }, + createNode(schema, iterable, ctx) { + const { replacer } = ctx; + const set = new YAMLSet(schema); + if (iterable && Symbol.iterator in Object(iterable)) + for (let value of iterable) { + if (typeof replacer === 'function') + value = replacer.call(iterable, value, value); + set.items.push(Pair.createPair(value, null, ctx)); + } + return set; + } +}; + +exports.YAMLSet = YAMLSet; +exports.set = set; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts" index 78357f8f9c70bdc414d6c8ee229cb42989fc8107..0c1d2d4b05e1755c73b3edaaad9535939ffaeb71 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:586dfed75c440be28b67e9ae657b2d082cbc83f9e176264aa0a729d31e7ab0a5 -size 197 +import type { ScalarTag } from '../types.js'; +export declare const intTime: ScalarTag; +export declare const floatTime: ScalarTag; +export declare const timestamp: ScalarTag & { + test: RegExp; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js" index 033ee5f9f68810c8aa9428fb6da468f797b5b98c..2d78ae8942290c73f608c44d8aa1c0caa6d90119 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js" @@ -1,3 +1,105 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a15c7434a11dff8fd549082c4a9636f9b7e7a3a19f6c69ee828097920cb59431 -size 3783 +'use strict'; + +var stringifyNumber = require('../../stringify/stringifyNumber.js'); + +/** Internal types handle bigint as number, because TS can't figure it out. */ +function parseSexagesimal(str, asBigInt) { + const sign = str[0]; + const parts = sign === '-' || sign === '+' ? str.substring(1) : str; + const num = (n) => asBigInt ? BigInt(n) : Number(n); + const res = parts + .replace(/_/g, '') + .split(':') + .reduce((res, p) => res * num(60) + num(p), num(0)); + return (sign === '-' ? num(-1) * res : res); +} +/** + * hhhh:mm:ss.sss + * + * Internal types handle bigint as number, because TS can't figure it out. + */ +function stringifySexagesimal(node) { + let { value } = node; + let num = (n) => n; + if (typeof value === 'bigint') + num = n => BigInt(n); + else if (isNaN(value) || !isFinite(value)) + return stringifyNumber.stringifyNumber(node); + let sign = ''; + if (value < 0) { + sign = '-'; + value *= num(-1); + } + const _60 = num(60); + const parts = [value % _60]; // seconds, including ms + if (value < 60) { + parts.unshift(0); // at least one : is required + } + else { + value = (value - parts[0]) / _60; + parts.unshift(value % _60); // minutes + if (value >= 60) { + value = (value - parts[0]) / _60; + parts.unshift(value); // hours + } + } + return (sign + + parts + .map(n => (n < 10 ? '0' + String(n) : String(n))) + .join(':') + .replace(/000000\d*$/, '') // % 60 may introduce error + ); +} +const intTime = { + identify: value => typeof value === 'bigint' || Number.isInteger(value), + default: true, + tag: 'tag:yaml.org,2002:int', + format: 'TIME', + test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/, + resolve: (str, _onError, { intAsBigInt }) => parseSexagesimal(str, intAsBigInt), + stringify: stringifySexagesimal +}; +const floatTime = { + identify: value => typeof value === 'number', + default: true, + tag: 'tag:yaml.org,2002:float', + format: 'TIME', + test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/, + resolve: str => parseSexagesimal(str, false), + stringify: stringifySexagesimal +}; +const timestamp = { + identify: value => value instanceof Date, + default: true, + tag: 'tag:yaml.org,2002:timestamp', + // If the time zone is omitted, the timestamp is assumed to be specified in UTC. The time part + // may be omitted altogether, resulting in a date format. In such a case, the time part is + // assumed to be 00:00:00Z (start of day, UTC). + test: RegExp('^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})' + // YYYY-Mm-Dd + '(?:' + // time is optional + '(?:t|T|[ \\t]+)' + // t | T | whitespace + '([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)' + // Hh:Mm:Ss(.ss)? + '(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?' + // Z | +5 | -03:30 + ')?$'), + resolve(str) { + const match = str.match(timestamp.test); + if (!match) + throw new Error('!!timestamp expects a date, starting with yyyy-mm-dd'); + const [, year, month, day, hour, minute, second] = match.map(Number); + const millisec = match[7] ? Number((match[7] + '00').substr(1, 3)) : 0; + let date = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec); + const tz = match[8]; + if (tz && tz !== 'Z') { + let d = parseSexagesimal(tz, false); + if (Math.abs(d) < 30) + d *= 60; + date -= 60000 * d; + } + return new Date(date); + }, + stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '') +}; + +exports.floatTime = floatTime; +exports.intTime = intTime; +exports.timestamp = timestamp; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.d.ts" index 4b496b39e48c8c7e9109fec5abccdb6e5310cb83..aac3cac60436a1f20b6c37458c90fabc478b786c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.d.ts" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e27605c8932e75b14e742558a4c3101d9f4fdd32e7e9a056b2ca83f37f973945 -size 1273 +export declare const FOLD_FLOW = "flow"; +export declare const FOLD_BLOCK = "block"; +export declare const FOLD_QUOTED = "quoted"; +/** + * `'block'` prevents more-indented lines from being folded; + * `'quoted'` allows for `\` escapes, including escaped newlines + */ +export type FoldMode = 'flow' | 'block' | 'quoted'; +export interface FoldOptions { + /** + * Accounts for leading contents on the first line, defaulting to + * `indent.length` + */ + indentAtStart?: number; + /** Default: `80` */ + lineWidth?: number; + /** + * Allow highly indented lines to stretch the line width or indent content + * from the start. + * + * Default: `20` + */ + minContentWidth?: number; + /** Called once if the text is folded */ + onFold?: () => void; + /** Called once if any line of text exceeds lineWidth characters */ + onOverflow?: () => void; +} +/** + * Tries to keep input at up to `lineWidth` characters, splitting only on spaces + * not followed by newlines or spaces unless `mode` is `'quoted'`. Lines are + * terminated with `\n` and started with `indent`. + */ +export declare function foldFlowLines(text: string, indent: string, mode?: FoldMode, { indentAtStart, lineWidth, minContentWidth, onFold, onOverflow }?: FoldOptions): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.js" index 4a6b4192b03abb6e18fa50cce55b21aab3e7b351..efe7a2574caedc5ebdf654fad96263b56a692673 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/foldFlowLines.js" @@ -1,3 +1,140 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a958d7fc27b1bf75c1efa7c3488767c8fd4ae5205a17bef698e9c715fba6eefb -size 4567 +'use strict'; + +const FOLD_FLOW = 'flow'; +const FOLD_BLOCK = 'block'; +const FOLD_QUOTED = 'quoted'; +/** + * Tries to keep input at up to `lineWidth` characters, splitting only on spaces + * not followed by newlines or spaces unless `mode` is `'quoted'`. Lines are + * terminated with `\n` and started with `indent`. + */ +function foldFlowLines(text, indent, mode = 'flow', { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) { + if (!lineWidth || lineWidth < 0) + return text; + const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length); + if (text.length <= endStep) + return text; + const folds = []; + const escapedFolds = {}; + let end = lineWidth - indent.length; + if (typeof indentAtStart === 'number') { + if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) + folds.push(0); + else + end = lineWidth - indentAtStart; + } + let split = undefined; + let prev = undefined; + let overflow = false; + let i = -1; + let escStart = -1; + let escEnd = -1; + if (mode === FOLD_BLOCK) { + i = consumeMoreIndentedLines(text, i); + if (i !== -1) + end = i + endStep; + } + for (let ch; (ch = text[(i += 1)]);) { + if (mode === FOLD_QUOTED && ch === '\\') { + escStart = i; + switch (text[i + 1]) { + case 'x': + i += 3; + break; + case 'u': + i += 5; + break; + case 'U': + i += 9; + break; + default: + i += 1; + } + escEnd = i; + } + if (ch === '\n') { + if (mode === FOLD_BLOCK) + i = consumeMoreIndentedLines(text, i); + end = i + endStep; + split = undefined; + } + else { + if (ch === ' ' && + prev && + prev !== ' ' && + prev !== '\n' && + prev !== '\t') { + // space surrounded by non-space can be replaced with newline + indent + const next = text[i + 1]; + if (next && next !== ' ' && next !== '\n' && next !== '\t') + split = i; + } + if (i >= end) { + if (split) { + folds.push(split); + end = split + endStep; + split = undefined; + } + else if (mode === FOLD_QUOTED) { + // white-space collected at end may stretch past lineWidth + while (prev === ' ' || prev === '\t') { + prev = ch; + ch = text[(i += 1)]; + overflow = true; + } + // Account for newline escape, but don't break preceding escape + const j = i > escEnd + 1 ? i - 2 : escStart - 1; + // Bail out if lineWidth & minContentWidth are shorter than an escape string + if (escapedFolds[j]) + return text; + folds.push(j); + escapedFolds[j] = true; + end = j + endStep; + split = undefined; + } + else { + overflow = true; + } + } + } + prev = ch; + } + if (overflow && onOverflow) + onOverflow(); + if (folds.length === 0) + return text; + if (onFold) + onFold(); + let res = text.slice(0, folds[0]); + for (let i = 0; i < folds.length; ++i) { + const fold = folds[i]; + const end = folds[i + 1] || text.length; + if (fold === 0) + res = `\n${indent}${text.slice(0, end)}`; + else { + if (mode === FOLD_QUOTED && escapedFolds[fold]) + res += `${text[fold]}\\`; + res += `\n${indent}${text.slice(fold + 1, end)}`; + } + } + return res; +} +/** + * Presumes `i + 1` is at the start of a line + * @returns index of last newline in more-indented block + */ +function consumeMoreIndentedLines(text, i) { + let ch = text[i + 1]; + while (ch === ' ' || ch === '\t') { + do { + ch = text[(i += 1)]; + } while (ch && ch !== '\n'); + ch = text[i + 1]; + } + return i; +} + +exports.FOLD_BLOCK = FOLD_BLOCK; +exports.FOLD_FLOW = FOLD_FLOW; +exports.FOLD_QUOTED = FOLD_QUOTED; +exports.foldFlowLines = foldFlowLines; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.d.ts" index 14007b81902f82d3efb40def8aebe200281ff4e7..f408b75f33999d674ce66cdcbd98d761ccad64ec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.d.ts" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f3acf8cff186f71a3a9b2da63f1378de6fe68a8578cb47d097776143cc84cd7d -size 874 +import type { Document } from '../doc/Document.js'; +import type { Alias } from '../nodes/Alias.js'; +import type { ToStringOptions } from '../options.js'; +export type StringifyContext = { + actualString?: boolean; + allNullValues?: boolean; + anchors: Set; + doc: Document; + forceBlockIndent?: boolean; + implicitKey?: boolean; + indent: string; + indentStep: string; + indentAtStart?: number; + inFlow: boolean | null; + inStringifyKey?: boolean; + flowCollectionPadding: string; + options: Readonly>>; + resolvedAliases?: Set; +}; +export declare function createStringifyContext(doc: Document, options: ToStringOptions): StringifyContext; +export declare function stringify(item: unknown, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.js" index 442c349c4b0c17c0a1f469c103db5dfe5f40b5a1..190acd16a651b7efea6f131d8dc98e824616d27b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringify.js" @@ -1,3 +1,127 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2eb075923e16e272668a6ca0887f93adb8c84859093b4a42149abbfe1dcd1119 -size 4285 +'use strict'; + +var anchors = require('../doc/anchors.js'); +var Node = require('../nodes/Node.js'); +var stringifyComment = require('./stringifyComment.js'); +var stringifyString = require('./stringifyString.js'); + +function createStringifyContext(doc, options) { + const opt = Object.assign({ + blockQuote: true, + commentString: stringifyComment.stringifyComment, + defaultKeyType: null, + defaultStringType: 'PLAIN', + directives: null, + doubleQuotedAsJSON: false, + doubleQuotedMinMultiLineLength: 40, + falseStr: 'false', + flowCollectionPadding: true, + indentSeq: true, + lineWidth: 80, + minContentWidth: 20, + nullStr: 'null', + simpleKeys: false, + singleQuote: null, + trueStr: 'true', + verifyAliasOrder: true + }, doc.schema.toStringOptions, options); + let inFlow; + switch (opt.collectionStyle) { + case 'block': + inFlow = false; + break; + case 'flow': + inFlow = true; + break; + default: + inFlow = null; + } + return { + anchors: new Set(), + doc, + flowCollectionPadding: opt.flowCollectionPadding ? ' ' : '', + indent: '', + indentStep: typeof opt.indent === 'number' ? ' '.repeat(opt.indent) : ' ', + inFlow, + options: opt + }; +} +function getTagObject(tags, item) { + if (item.tag) { + const match = tags.filter(t => t.tag === item.tag); + if (match.length > 0) + return match.find(t => t.format === item.format) ?? match[0]; + } + let tagObj = undefined; + let obj; + if (Node.isScalar(item)) { + obj = item.value; + const match = tags.filter(t => t.identify?.(obj)); + tagObj = + match.find(t => t.format === item.format) ?? match.find(t => !t.format); + } + else { + obj = item; + tagObj = tags.find(t => t.nodeClass && obj instanceof t.nodeClass); + } + if (!tagObj) { + const name = obj?.constructor?.name ?? typeof obj; + throw new Error(`Tag not resolved for ${name} value`); + } + return tagObj; +} +// needs to be called before value stringifier to allow for circular anchor refs +function stringifyProps(node, tagObj, { anchors: anchors$1, doc }) { + if (!doc.directives) + return ''; + const props = []; + const anchor = (Node.isScalar(node) || Node.isCollection(node)) && node.anchor; + if (anchor && anchors.anchorIsValid(anchor)) { + anchors$1.add(anchor); + props.push(`&${anchor}`); + } + const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag; + if (tag) + props.push(doc.directives.tagString(tag)); + return props.join(' '); +} +function stringify(item, ctx, onComment, onChompKeep) { + if (Node.isPair(item)) + return item.toString(ctx, onComment, onChompKeep); + if (Node.isAlias(item)) { + if (ctx.doc.directives) + return item.toString(ctx); + if (ctx.resolvedAliases?.has(item)) { + throw new TypeError(`Cannot stringify circular structure without alias nodes`); + } + else { + if (ctx.resolvedAliases) + ctx.resolvedAliases.add(item); + else + ctx.resolvedAliases = new Set([item]); + item = item.resolve(ctx.doc); + } + } + let tagObj = undefined; + const node = Node.isNode(item) + ? item + : ctx.doc.createNode(item, { onTagObj: o => (tagObj = o) }); + if (!tagObj) + tagObj = getTagObject(ctx.doc.schema.tags, node); + const props = stringifyProps(node, tagObj, ctx); + if (props.length > 0) + ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1; + const str = typeof tagObj.stringify === 'function' + ? tagObj.stringify(node, ctx, onComment, onChompKeep) + : Node.isScalar(node) + ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) + : node.toString(ctx, onComment, onChompKeep); + if (!props) + return str; + return Node.isScalar(node) || str[0] === '{' || str[0] === '[' + ? `${props} ${str}` + : `${props}\n${ctx.indent}${str}`; +} + +exports.createStringifyContext = createStringifyContext; +exports.stringify = stringify; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.d.ts" index 37d2f5c33a889abfe0ca56b63ec01728fb812c4f..207d70345fd338f978fa6d0ed794d928e4dbed53 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.d.ts" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b414081b71cfe79fb46d8d9b6d3f65cda82e2edaf0a6dd9028c0fc6e1ba48cd0 -size 524 +import { Collection } from '../nodes/Collection.js'; +import { StringifyContext } from './stringify.js'; +interface StringifyCollectionOptions { + blockItemPrefix: string; + flowChars: { + start: '{'; + end: '}'; + } | { + start: '['; + end: ']'; + }; + itemIndent: string; + onChompKeep?: () => void; + onComment?: () => void; +} +export declare function stringifyCollection(collection: Readonly, ctx: StringifyContext, options: StringifyCollectionOptions): string; +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.js" index 975e984921ce7ab8833f2ac51c2de96163190bab..d55cc6037df45755c60b794ee641ca2a6a60bf38 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyCollection.js" @@ -1,3 +1,153 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2fa43dfde11b8d5400a9270ab5169071ecb7cd368e957750d0d84d034b43704e -size 5573 +'use strict'; + +var Collection = require('../nodes/Collection.js'); +var Node = require('../nodes/Node.js'); +var stringify = require('./stringify.js'); +var stringifyComment = require('./stringifyComment.js'); + +function stringifyCollection(collection, ctx, options) { + const flow = ctx.inFlow ?? collection.flow; + const stringify = flow ? stringifyFlowCollection : stringifyBlockCollection; + return stringify(collection, ctx, options); +} +function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) { + const { indent, options: { commentString } } = ctx; + const itemCtx = Object.assign({}, ctx, { indent: itemIndent, type: null }); + let chompKeep = false; // flag for the preceding node's status + const lines = []; + for (let i = 0; i < items.length; ++i) { + const item = items[i]; + let comment = null; + if (Node.isNode(item)) { + if (!chompKeep && item.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, item.commentBefore, chompKeep); + if (item.comment) + comment = item.comment; + } + else if (Node.isPair(item)) { + const ik = Node.isNode(item.key) ? item.key : null; + if (ik) { + if (!chompKeep && ik.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, ik.commentBefore, chompKeep); + } + } + chompKeep = false; + let str = stringify.stringify(item, itemCtx, () => (comment = null), () => (chompKeep = true)); + if (comment) + str += stringifyComment.lineComment(str, itemIndent, commentString(comment)); + if (chompKeep && comment) + chompKeep = false; + lines.push(blockItemPrefix + str); + } + let str; + if (lines.length === 0) { + str = flowChars.start + flowChars.end; + } + else { + str = lines[0]; + for (let i = 1; i < lines.length; ++i) { + const line = lines[i]; + str += line ? `\n${indent}${line}` : '\n'; + } + } + if (comment) { + str += '\n' + stringifyComment.indentComment(commentString(comment), indent); + if (onComment) + onComment(); + } + else if (chompKeep && onChompKeep) + onChompKeep(); + return str; +} +function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemIndent, onComment }) { + const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx; + itemIndent += indentStep; + const itemCtx = Object.assign({}, ctx, { + indent: itemIndent, + inFlow: true, + type: null + }); + let reqNewline = false; + let linesAtValue = 0; + const lines = []; + for (let i = 0; i < items.length; ++i) { + const item = items[i]; + let comment = null; + if (Node.isNode(item)) { + if (item.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, item.commentBefore, false); + if (item.comment) + comment = item.comment; + } + else if (Node.isPair(item)) { + const ik = Node.isNode(item.key) ? item.key : null; + if (ik) { + if (ik.spaceBefore) + lines.push(''); + addCommentBefore(ctx, lines, ik.commentBefore, false); + if (ik.comment) + reqNewline = true; + } + const iv = Node.isNode(item.value) ? item.value : null; + if (iv) { + if (iv.comment) + comment = iv.comment; + if (iv.commentBefore) + reqNewline = true; + } + else if (item.value == null && ik && ik.comment) { + comment = ik.comment; + } + } + if (comment) + reqNewline = true; + let str = stringify.stringify(item, itemCtx, () => (comment = null)); + if (i < items.length - 1) + str += ','; + if (comment) + str += stringifyComment.lineComment(str, itemIndent, commentString(comment)); + if (!reqNewline && (lines.length > linesAtValue || str.includes('\n'))) + reqNewline = true; + lines.push(str); + linesAtValue = lines.length; + } + let str; + const { start, end } = flowChars; + if (lines.length === 0) { + str = start + end; + } + else { + if (!reqNewline) { + const len = lines.reduce((sum, line) => sum + line.length + 2, 2); + reqNewline = len > Collection.Collection.maxFlowStringSingleLineLength; + } + if (reqNewline) { + str = start; + for (const line of lines) + str += line ? `\n${indentStep}${indent}${line}` : '\n'; + str += `\n${indent}${end}`; + } + else { + str = `${start}${fcPadding}${lines.join(' ')}${fcPadding}${end}`; + } + } + if (comment) { + str += stringifyComment.lineComment(str, indent, commentString(comment)); + if (onComment) + onComment(); + } + return str; +} +function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) { + if (comment && chompKeep) + comment = comment.replace(/^\n+/, ''); + if (comment) { + const ic = stringifyComment.indentComment(commentString(comment), indent); + lines.push(ic.trimStart()); // Avoid double indent on first line + } +} + +exports.stringifyCollection = stringifyCollection; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.d.ts" index 52bddcbbe673883449daf81011ecc69a164f60ac..9fcf48d76276bf19c99b4ef44f70a52dfdebb8cc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.d.ts" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:318c659afa92036e0c838821c40509e34506831f05acc9c2b182ccd39faa265f -size 419 +/** + * Stringifies a comment. + * + * Empty comment lines are left empty, + * lines consisting of a single space are replaced by `#`, + * and all other lines are prefixed with a `#`. + */ +export declare const stringifyComment: (str: string) => string; +export declare function indentComment(comment: string, indent: string): string; +export declare const lineComment: (str: string, indent: string, comment: string) => string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.js" index b858ee14e0e9e7621b58cb04dfde77edc53f9e5c..26bf361a9f2744c2f81b9ce36c8b94090dd05a18 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyComment.js" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:490bff57104b7cfdb1893f14528610bb4d0a63c29b314e122233cf308cf96662 -size 801 +'use strict'; + +/** + * Stringifies a comment. + * + * Empty comment lines are left empty, + * lines consisting of a single space are replaced by `#`, + * and all other lines are prefixed with a `#`. + */ +const stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, '#'); +function indentComment(comment, indent) { + if (/^\n+$/.test(comment)) + return comment.substring(1); + return indent ? comment.replace(/^(?! *$)/gm, indent) : comment; +} +const lineComment = (str, indent, comment) => str.endsWith('\n') + ? indentComment(comment, indent) + : comment.includes('\n') + ? '\n' + indentComment(comment, indent) + : (str.endsWith(' ') ? '' : ' ') + comment; + +exports.indentComment = indentComment; +exports.lineComment = lineComment; +exports.stringifyComment = stringifyComment; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.d.ts" index 8ff19766241397d4d3213537513bb34cce14042c..fb0633c33ed20a1b174a5abda1be14befca47083 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bdab01e8a9fbf43f0dcb5360ccbd0eda0e6dedf38b595186331d95f199e2143c -size 198 +import { Document } from '../doc/Document.js'; +import { ToStringOptions } from '../options.js'; +export declare function stringifyDocument(doc: Readonly, options: ToStringOptions): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.js" index 00d2a71ad6f87690af68f25e6852523ce56aeb60..c3067e02295bf2a6011908246731af39abc96b64 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyDocument.js" @@ -1,3 +1,87 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccf538d0db2545818e0957213c524567ee988e930cea75a5e0739ab07a9787bb -size 3092 +'use strict'; + +var Node = require('../nodes/Node.js'); +var stringify = require('./stringify.js'); +var stringifyComment = require('./stringifyComment.js'); + +function stringifyDocument(doc, options) { + const lines = []; + let hasDirectives = options.directives === true; + if (options.directives !== false && doc.directives) { + const dir = doc.directives.toString(doc); + if (dir) { + lines.push(dir); + hasDirectives = true; + } + else if (doc.directives.docStart) + hasDirectives = true; + } + if (hasDirectives) + lines.push('---'); + const ctx = stringify.createStringifyContext(doc, options); + const { commentString } = ctx.options; + if (doc.commentBefore) { + if (lines.length !== 1) + lines.unshift(''); + const cs = commentString(doc.commentBefore); + lines.unshift(stringifyComment.indentComment(cs, '')); + } + let chompKeep = false; + let contentComment = null; + if (doc.contents) { + if (Node.isNode(doc.contents)) { + if (doc.contents.spaceBefore && hasDirectives) + lines.push(''); + if (doc.contents.commentBefore) { + const cs = commentString(doc.contents.commentBefore); + lines.push(stringifyComment.indentComment(cs, '')); + } + // top-level block scalars need to be indented if followed by a comment + ctx.forceBlockIndent = !!doc.comment; + contentComment = doc.contents.comment; + } + const onChompKeep = contentComment ? undefined : () => (chompKeep = true); + let body = stringify.stringify(doc.contents, ctx, () => (contentComment = null), onChompKeep); + if (contentComment) + body += stringifyComment.lineComment(body, '', commentString(contentComment)); + if ((body[0] === '|' || body[0] === '>') && + lines[lines.length - 1] === '---') { + // Top-level block scalars with a preceding doc marker ought to use the + // same line for their header. + lines[lines.length - 1] = `--- ${body}`; + } + else + lines.push(body); + } + else { + lines.push(stringify.stringify(doc.contents, ctx)); + } + if (doc.directives?.docEnd) { + if (doc.comment) { + const cs = commentString(doc.comment); + if (cs.includes('\n')) { + lines.push('...'); + lines.push(stringifyComment.indentComment(cs, '')); + } + else { + lines.push(`... ${cs}`); + } + } + else { + lines.push('...'); + } + } + else { + let dc = doc.comment; + if (dc && chompKeep) + dc = dc.replace(/^\n+/, ''); + if (dc) { + if ((!chompKeep || contentComment) && lines[lines.length - 1] !== '') + lines.push(''); + lines.push(stringifyComment.indentComment(commentString(dc), '')); + } + } + return lines.join('\n') + '\n'; +} + +exports.stringifyDocument = stringifyDocument; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.d.ts" index 315d5cbdfda7e83ccf77db9c48728ea6e5418396..3c14df149afe089ac0a6d278dc230d65291dd1cb 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.d.ts" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3771cb36b62e2fa4a9e381816c75bad9595ba12a1b513d8ccdca05d8b9a6f081 -size 150 +import type { Scalar } from '../nodes/Scalar.js'; +export declare function stringifyNumber({ format, minFractionDigits, tag, value }: Scalar): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.js" index 4006e33438ab336f8c97cce1982fef0cbcaae70f..4118ff635e3e3529b77937333b75d17a16dccd87 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyNumber.js" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2c9c304aeed54d212b299a97ab8e141fbb4a78bd87b8a4ab0ff45aa10de38026 -size 748 +'use strict'; + +function stringifyNumber({ format, minFractionDigits, tag, value }) { + if (typeof value === 'bigint') + return String(value); + const num = typeof value === 'number' ? value : Number(value); + if (!isFinite(num)) + return isNaN(num) ? '.nan' : num < 0 ? '-.inf' : '.inf'; + let n = JSON.stringify(value); + if (!format && + minFractionDigits && + (!tag || tag === 'tag:yaml.org,2002:float') && + /^\d/.test(n)) { + let i = n.indexOf('.'); + if (i < 0) { + i = n.length; + n += '.'; + } + let d = minFractionDigits - (n.length - i - 1); + while (d-- > 0) + n += '0'; + } + return n; +} + +exports.stringifyNumber = stringifyNumber; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.d.ts" index 95a8b53d3b948e5513a75ca4b476dffe4109021a..c512149759237ef3eba486086f9b15288d8ddd1c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:54e1a056278b0bbcc3a57ca924e87fada96b9914f7860045f7ce6b462079d0d8 -size 249 +import type { Pair } from '../nodes/Pair.js'; +import { StringifyContext } from './stringify.js'; +export declare function stringifyPair({ key, value }: Readonly, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.js" index 63d8fad84ec2b9c1e5bc5c912b847cc5bf61f042..85693bab05e8b07ed31c7e883d2ed58572b8dcf1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyPair.js" @@ -1,3 +1,152 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:26c3f843865666303a54237f586c57e77bc554140ac7e02b5ae90dfe36d49a6d -size 5360 +'use strict'; + +var Node = require('../nodes/Node.js'); +var Scalar = require('../nodes/Scalar.js'); +var stringify = require('./stringify.js'); +var stringifyComment = require('./stringifyComment.js'); + +function stringifyPair({ key, value }, ctx, onComment, onChompKeep) { + const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx; + let keyComment = (Node.isNode(key) && key.comment) || null; + if (simpleKeys) { + if (keyComment) { + throw new Error('With simple keys, key nodes cannot have comments'); + } + if (Node.isCollection(key)) { + const msg = 'With simple keys, collection cannot be used as a key value'; + throw new Error(msg); + } + } + let explicitKey = !simpleKeys && + (!key || + (keyComment && value == null && !ctx.inFlow) || + Node.isCollection(key) || + (Node.isScalar(key) + ? key.type === Scalar.Scalar.BLOCK_FOLDED || key.type === Scalar.Scalar.BLOCK_LITERAL + : typeof key === 'object')); + ctx = Object.assign({}, ctx, { + allNullValues: false, + implicitKey: !explicitKey && (simpleKeys || !allNullValues), + indent: indent + indentStep + }); + let keyCommentDone = false; + let chompKeep = false; + let str = stringify.stringify(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true)); + if (!explicitKey && !ctx.inFlow && str.length > 1024) { + if (simpleKeys) + throw new Error('With simple keys, single line scalar must not span more than 1024 characters'); + explicitKey = true; + } + if (ctx.inFlow) { + if (allNullValues || value == null) { + if (keyCommentDone && onComment) + onComment(); + return str === '' ? '?' : explicitKey ? `? ${str}` : str; + } + } + else if ((allNullValues && !simpleKeys) || (value == null && explicitKey)) { + str = `? ${str}`; + if (keyComment && !keyCommentDone) { + str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment)); + } + else if (chompKeep && onChompKeep) + onChompKeep(); + return str; + } + if (keyCommentDone) + keyComment = null; + if (explicitKey) { + if (keyComment) + str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment)); + str = `? ${str}\n${indent}:`; + } + else { + str = `${str}:`; + if (keyComment) + str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment)); + } + let vsb, vcb, valueComment; + if (Node.isNode(value)) { + vsb = !!value.spaceBefore; + vcb = value.commentBefore; + valueComment = value.comment; + } + else { + vsb = false; + vcb = null; + valueComment = null; + if (value && typeof value === 'object') + value = doc.createNode(value); + } + ctx.implicitKey = false; + if (!explicitKey && !keyComment && Node.isScalar(value)) + ctx.indentAtStart = str.length + 1; + chompKeep = false; + if (!indentSeq && + indentStep.length >= 2 && + !ctx.inFlow && + !explicitKey && + Node.isSeq(value) && + !value.flow && + !value.tag && + !value.anchor) { + // If indentSeq === false, consider '- ' as part of indentation where possible + ctx.indent = ctx.indent.substring(2); + } + let valueCommentDone = false; + const valueStr = stringify.stringify(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true)); + let ws = ' '; + if (keyComment || vsb || vcb) { + ws = vsb ? '\n' : ''; + if (vcb) { + const cs = commentString(vcb); + ws += `\n${stringifyComment.indentComment(cs, ctx.indent)}`; + } + if (valueStr === '' && !ctx.inFlow) { + if (ws === '\n') + ws = '\n\n'; + } + else { + ws += `\n${ctx.indent}`; + } + } + else if (!explicitKey && Node.isCollection(value)) { + const vs0 = valueStr[0]; + const nl0 = valueStr.indexOf('\n'); + const hasNewline = nl0 !== -1; + const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0; + if (hasNewline || !flow) { + let hasPropsLine = false; + if (hasNewline && (vs0 === '&' || vs0 === '!')) { + let sp0 = valueStr.indexOf(' '); + if (vs0 === '&' && + sp0 !== -1 && + sp0 < nl0 && + valueStr[sp0 + 1] === '!') { + sp0 = valueStr.indexOf(' ', sp0 + 1); + } + if (sp0 === -1 || nl0 < sp0) + hasPropsLine = true; + } + if (!hasPropsLine) + ws = `\n${ctx.indent}`; + } + } + else if (valueStr === '' || valueStr[0] === '\n') { + ws = ''; + } + str += ws + valueStr; + if (ctx.inFlow) { + if (valueCommentDone && onComment) + onComment(); + } + else if (valueComment && !valueCommentDone) { + str += stringifyComment.lineComment(str, ctx.indent, commentString(valueComment)); + } + else if (chompKeep && onChompKeep) { + onChompKeep(); + } + return str; +} + +exports.stringifyPair = stringifyPair; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.d.ts" index be9673b1456d28248037e578f344040a3964d152..017cc4e7dc1d423fed8ca068d9105cb061610be4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f3daf1c3dccf7f6f6611cfc327526735a747a28a4a86f1c9e75a7d89ac406cad -size 363 +import { Scalar } from '../nodes/Scalar.js'; +import type { StringifyContext } from './stringify.js'; +interface StringifyScalar { + value: string; + comment?: string | null; + type?: string; +} +export declare function stringifyString(item: Scalar | StringifyScalar, ctx: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string; +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.js" index 2715980a46c916e5533e00f5a5ecdfac39f7c1a1..4e67cc3ff0bae2119aa978e496e7bddc714eaaf7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/stringify/stringifyString.js" @@ -1,3 +1,321 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3541b41b361b58c628186beaf217d5181471e0555897aa777f0235d2f3ca5aa5 -size 12769 +'use strict'; + +var Scalar = require('../nodes/Scalar.js'); +var foldFlowLines = require('./foldFlowLines.js'); + +const getFoldOptions = (ctx, isBlock) => ({ + indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart, + lineWidth: ctx.options.lineWidth, + minContentWidth: ctx.options.minContentWidth +}); +// Also checks for lines starting with %, as parsing the output as YAML 1.1 will +// presume that's starting a new document. +const containsDocumentMarker = (str) => /^(%|---|\.\.\.)/m.test(str); +function lineLengthOverLimit(str, lineWidth, indentLength) { + if (!lineWidth || lineWidth < 0) + return false; + const limit = lineWidth - indentLength; + const strLen = str.length; + if (strLen <= limit) + return false; + for (let i = 0, start = 0; i < strLen; ++i) { + if (str[i] === '\n') { + if (i - start > limit) + return true; + start = i + 1; + if (strLen - start <= limit) + return false; + } + } + return true; +} +function doubleQuotedString(value, ctx) { + const json = JSON.stringify(value); + if (ctx.options.doubleQuotedAsJSON) + return json; + const { implicitKey } = ctx; + const minMultiLineLength = ctx.options.doubleQuotedMinMultiLineLength; + const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : ''); + let str = ''; + let start = 0; + for (let i = 0, ch = json[i]; ch; ch = json[++i]) { + if (ch === ' ' && json[i + 1] === '\\' && json[i + 2] === 'n') { + // space before newline needs to be escaped to not be folded + str += json.slice(start, i) + '\\ '; + i += 1; + start = i; + ch = '\\'; + } + if (ch === '\\') + switch (json[i + 1]) { + case 'u': + { + str += json.slice(start, i); + const code = json.substr(i + 2, 4); + switch (code) { + case '0000': + str += '\\0'; + break; + case '0007': + str += '\\a'; + break; + case '000b': + str += '\\v'; + break; + case '001b': + str += '\\e'; + break; + case '0085': + str += '\\N'; + break; + case '00a0': + str += '\\_'; + break; + case '2028': + str += '\\L'; + break; + case '2029': + str += '\\P'; + break; + default: + if (code.substr(0, 2) === '00') + str += '\\x' + code.substr(2); + else + str += json.substr(i, 6); + } + i += 5; + start = i + 1; + } + break; + case 'n': + if (implicitKey || + json[i + 2] === '"' || + json.length < minMultiLineLength) { + i += 1; + } + else { + // folding will eat first newline + str += json.slice(start, i) + '\n\n'; + while (json[i + 2] === '\\' && + json[i + 3] === 'n' && + json[i + 4] !== '"') { + str += '\n'; + i += 2; + } + str += indent; + // space after newline needs to be escaped to not be folded + if (json[i + 2] === ' ') + str += '\\'; + i += 1; + start = i + 1; + } + break; + default: + i += 1; + } + } + str = start ? str + json.slice(start) : json; + return implicitKey + ? str + : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false)); +} +function singleQuotedString(value, ctx) { + if (ctx.options.singleQuote === false || + (ctx.implicitKey && value.includes('\n')) || + /[ \t]\n|\n[ \t]/.test(value) // single quoted string can't have leading or trailing whitespace around newline + ) + return doubleQuotedString(value, ctx); + const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : ''); + const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&\n${indent}`) + "'"; + return ctx.implicitKey + ? res + : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false)); +} +function quotedString(value, ctx) { + const { singleQuote } = ctx.options; + let qs; + if (singleQuote === false) + qs = doubleQuotedString; + else { + const hasDouble = value.includes('"'); + const hasSingle = value.includes("'"); + if (hasDouble && !hasSingle) + qs = singleQuotedString; + else if (hasSingle && !hasDouble) + qs = doubleQuotedString; + else + qs = singleQuote ? singleQuotedString : doubleQuotedString; + } + return qs(value, ctx); +} +function blockString({ comment, type, value }, ctx, onComment, onChompKeep) { + const { blockQuote, commentString, lineWidth } = ctx.options; + // 1. Block can't end in whitespace unless the last line is non-empty. + // 2. Strings consisting of only whitespace are best rendered explicitly. + if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) { + return quotedString(value, ctx); + } + const indent = ctx.indent || + (ctx.forceBlockIndent || containsDocumentMarker(value) ? ' ' : ''); + const literal = blockQuote === 'literal' + ? true + : blockQuote === 'folded' || type === Scalar.Scalar.BLOCK_FOLDED + ? false + : type === Scalar.Scalar.BLOCK_LITERAL + ? true + : !lineLengthOverLimit(value, lineWidth, indent.length); + if (!value) + return literal ? '|\n' : '>\n'; + // determine chomping from whitespace at value end + let chomp; + let endStart; + for (endStart = value.length; endStart > 0; --endStart) { + const ch = value[endStart - 1]; + if (ch !== '\n' && ch !== '\t' && ch !== ' ') + break; + } + let end = value.substring(endStart); + const endNlPos = end.indexOf('\n'); + if (endNlPos === -1) { + chomp = '-'; // strip + } + else if (value === end || endNlPos !== end.length - 1) { + chomp = '+'; // keep + if (onChompKeep) + onChompKeep(); + } + else { + chomp = ''; // clip + } + if (end) { + value = value.slice(0, -end.length); + if (end[end.length - 1] === '\n') + end = end.slice(0, -1); + end = end.replace(/\n+(?!\n|$)/g, `$&${indent}`); + } + // determine indent indicator from whitespace at value start + let startWithSpace = false; + let startEnd; + let startNlPos = -1; + for (startEnd = 0; startEnd < value.length; ++startEnd) { + const ch = value[startEnd]; + if (ch === ' ') + startWithSpace = true; + else if (ch === '\n') + startNlPos = startEnd; + else + break; + } + let start = value.substring(0, startNlPos < startEnd ? startNlPos + 1 : startEnd); + if (start) { + value = value.substring(start.length); + start = start.replace(/\n+/g, `$&${indent}`); + } + const indentSize = indent ? '2' : '1'; // root is at -1 + let header = (literal ? '|' : '>') + (startWithSpace ? indentSize : '') + chomp; + if (comment) { + header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' ')); + if (onComment) + onComment(); + } + if (literal) { + value = value.replace(/\n+/g, `$&${indent}`); + return `${header}\n${indent}${start}${value}${end}`; + } + value = value + .replace(/\n+/g, '\n$&') + .replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded + // ^ more-ind. ^ empty ^ capture next empty lines only at end of indent + .replace(/\n+/g, `$&${indent}`); + const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true)); + return `${header}\n${indent}${body}`; +} +function plainString(item, ctx, onComment, onChompKeep) { + const { type, value } = item; + const { actualString, implicitKey, indent, indentStep, inFlow } = ctx; + if ((implicitKey && /[\n[\]{},]/.test(value)) || + (inFlow && /[[\]{},]/.test(value))) { + return quotedString(value, ctx); + } + if (!value || + /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) { + // not allowed: + // - empty string, '-' or '?' + // - start with an indicator character (except [?:-]) or /[?-] / + // - '\n ', ': ' or ' \n' anywhere + // - '#' not preceded by a non-space char + // - end with ' ' or ':' + return implicitKey || inFlow || !value.includes('\n') + ? quotedString(value, ctx) + : blockString(item, ctx, onComment, onChompKeep); + } + if (!implicitKey && + !inFlow && + type !== Scalar.Scalar.PLAIN && + value.includes('\n')) { + // Where allowed & type not set explicitly, prefer block style for multiline strings + return blockString(item, ctx, onComment, onChompKeep); + } + if (containsDocumentMarker(value)) { + if (indent === '') { + ctx.forceBlockIndent = true; + return blockString(item, ctx, onComment, onChompKeep); + } + else if (implicitKey && indent === indentStep) { + return quotedString(value, ctx); + } + } + const str = value.replace(/\n+/g, `$&\n${indent}`); + // Verify that output will be parsed as a string, as e.g. plain numbers and + // booleans get parsed with those types in v1.2 (e.g. '42', 'true' & '0.9e-3'), + // and others in v1.1. + if (actualString) { + const test = (tag) => tag.default && tag.tag !== 'tag:yaml.org,2002:str' && tag.test?.test(str); + const { compat, tags } = ctx.doc.schema; + if (tags.some(test) || compat?.some(test)) + return quotedString(value, ctx); + } + return implicitKey + ? str + : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false)); +} +function stringifyString(item, ctx, onComment, onChompKeep) { + const { implicitKey, inFlow } = ctx; + const ss = typeof item.value === 'string' + ? item + : Object.assign({}, item, { value: String(item.value) }); + let { type } = item; + if (type !== Scalar.Scalar.QUOTE_DOUBLE) { + // force double quotes on control characters & unpaired surrogates + if (/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(ss.value)) + type = Scalar.Scalar.QUOTE_DOUBLE; + } + const _stringify = (_type) => { + switch (_type) { + case Scalar.Scalar.BLOCK_FOLDED: + case Scalar.Scalar.BLOCK_LITERAL: + return implicitKey || inFlow + ? quotedString(ss.value, ctx) // blocks are not valid inside flow containers + : blockString(ss, ctx, onComment, onChompKeep); + case Scalar.Scalar.QUOTE_DOUBLE: + return doubleQuotedString(ss.value, ctx); + case Scalar.Scalar.QUOTE_SINGLE: + return singleQuotedString(ss.value, ctx); + case Scalar.Scalar.PLAIN: + return plainString(ss, ctx, onComment, onChompKeep); + default: + return null; + } + }; + let res = _stringify(type); + if (res === null) { + const { defaultKeyType, defaultStringType } = ctx.options; + const t = (implicitKey && defaultKeyType) || defaultStringType; + res = _stringify(t); + if (res === null) + throw new Error(`Unsupported default string type ${t}`); + } + return res; +} + +exports.stringifyString = stringifyString; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.d.ts" index 7a29bb77c0b6ba844792b7a869d275163ac77cba..d1a2348352dbc6d9e59ae6dd47c87af440611b4b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e75986c9b907573b9ea4880e226f96dd189acc668cb24db0ac08651e6cf3068 -size 96 +export declare function testEvents(src: string): { + events: string[]; + error: unknown; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.js" index 2083a4c8e815ee574cfe667609c4cfddd231161d..2c9220a661ee3804c4dc0428280bb3a57877e750 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/test-events.js" @@ -1,3 +1,134 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85b05a210db2c111024682228312fbd8f36c4c506d00652548180b7d5b9b002d -size 4234 +'use strict'; + +var Node = require('./nodes/Node.js'); +var publicApi = require('./public-api.js'); +var visit = require('./visit.js'); + +const scalarChar = { + BLOCK_FOLDED: '>', + BLOCK_LITERAL: '|', + PLAIN: ':', + QUOTE_DOUBLE: '"', + QUOTE_SINGLE: "'" +}; +function anchorExists(doc, anchor) { + let found = false; + visit.visit(doc, { + Value(_key, node) { + if (node.anchor === anchor) { + found = true; + return visit.visit.BREAK; + } + } + }); + return found; +} +// test harness for yaml-test-suite event tests +function testEvents(src) { + const docs = publicApi.parseAllDocuments(src); + const errDoc = docs.find(doc => doc.errors.length > 0); + const error = errDoc ? errDoc.errors[0].message : null; + const events = ['+STR']; + try { + for (let i = 0; i < docs.length; ++i) { + const doc = docs[i]; + let root = doc.contents; + if (Array.isArray(root)) + root = root[0]; + const [rootStart] = doc.range || [0]; + const error = doc.errors[0]; + if (error && (!error.pos || error.pos[0] < rootStart)) + throw new Error(); + let docStart = '+DOC'; + if (doc.directives.docStart) + docStart += ' ---'; + else if (doc.contents && + doc.contents.range[2] === doc.contents.range[0] && + !doc.contents.anchor && + !doc.contents.tag) + continue; + events.push(docStart); + addEvents(events, doc, error?.pos[0] ?? -1, root); + let docEnd = '-DOC'; + if (doc.directives.docEnd) + docEnd += ' ...'; + events.push(docEnd); + } + } + catch (e) { + return { events, error: error ?? e }; + } + events.push('-STR'); + return { events, error }; +} +function addEvents(events, doc, errPos, node) { + if (!node) { + events.push('=VAL :'); + return; + } + if (errPos !== -1 && Node.isNode(node) && node.range[0] >= errPos) + throw new Error(); + let props = ''; + let anchor = Node.isScalar(node) || Node.isCollection(node) ? node.anchor : undefined; + if (anchor) { + if (/\d$/.test(anchor)) { + const alt = anchor.replace(/\d$/, ''); + if (anchorExists(doc, alt)) + anchor = alt; + } + props = ` &${anchor}`; + } + if (Node.isNode(node) && node.tag) + props += ` <${node.tag}>`; + if (Node.isMap(node)) { + const ev = node.flow ? '+MAP {}' : '+MAP'; + events.push(`${ev}${props}`); + node.items.forEach(({ key, value }) => { + addEvents(events, doc, errPos, key); + addEvents(events, doc, errPos, value); + }); + events.push('-MAP'); + } + else if (Node.isSeq(node)) { + const ev = node.flow ? '+SEQ []' : '+SEQ'; + events.push(`${ev}${props}`); + node.items.forEach(item => { + addEvents(events, doc, errPos, item); + }); + events.push('-SEQ'); + } + else if (Node.isPair(node)) { + events.push(`+MAP${props}`); + addEvents(events, doc, errPos, node.key); + addEvents(events, doc, errPos, node.value); + events.push('-MAP'); + } + else if (Node.isAlias(node)) { + let alias = node.source; + if (alias && /\d$/.test(alias)) { + const alt = alias.replace(/\d$/, ''); + if (anchorExists(doc, alt)) + alias = alt; + } + events.push(`=ALI${props} *${alias}`); + } + else { + const scalar = scalarChar[String(node.type)]; + if (!scalar) + throw new Error(`Unexpected node type ${node.type}`); + const value = node.source + .replace(/\\/g, '\\\\') + .replace(/\0/g, '\\0') + .replace(/\x07/g, '\\a') + .replace(/\x08/g, '\\b') + .replace(/\t/g, '\\t') + .replace(/\n/g, '\\n') + .replace(/\v/g, '\\v') + .replace(/\f/g, '\\f') + .replace(/\r/g, '\\r') + .replace(/\x1b/g, '\\e'); + events.push(`=VAL${props} ${scalar}${value}`); + } +} + +exports.testEvents = testEvents; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.d.ts" index 6d93f3b36068f68af2dd0a00b46eea9f6a0465ca..f1012d76cc0df6bdd771a5a6b5235005004157f9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2513038f0b36c46667c834142a95dafef5f0cdbdc46286a156a85a4bdb3dc9c -size 520 +export { debug, LogLevelId, warn } from './log.js'; +export { findPair } from './nodes/YAMLMap.js'; +export { toJS, ToJSContext } from './nodes/toJS.js'; +export { map as mapTag } from './schema/common/map.js'; +export { seq as seqTag } from './schema/common/seq.js'; +export { string as stringTag } from './schema/common/string.js'; +export { foldFlowLines } from './stringify/foldFlowLines'; +export { stringifyNumber } from './stringify/stringifyNumber.js'; +export { stringifyString } from './stringify/stringifyString.js'; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.js" index 1d72c1941a2f4f9632c278c68c822da028c51ea3..9a38c10d9a8db06f916fc0fab15797f166e14521 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/util.js" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d46b4c3f04d19e9586b17c029a403bc6d118875fb9a304fbf99d93dbbdbe3d4 -size 838 +'use strict'; + +var log = require('./log.js'); +var YAMLMap = require('./nodes/YAMLMap.js'); +var toJS = require('./nodes/toJS.js'); +var map = require('./schema/common/map.js'); +var seq = require('./schema/common/seq.js'); +var string = require('./schema/common/string.js'); +var foldFlowLines = require('./stringify/foldFlowLines.js'); +var stringifyNumber = require('./stringify/stringifyNumber.js'); +var stringifyString = require('./stringify/stringifyString.js'); + + + +exports.debug = log.debug; +exports.warn = log.warn; +exports.findPair = YAMLMap.findPair; +exports.toJS = toJS.toJS; +exports.mapTag = map.map; +exports.seqTag = seq.seq; +exports.stringTag = string.string; +exports.foldFlowLines = foldFlowLines.foldFlowLines; +exports.stringifyNumber = stringifyNumber.stringifyNumber; +exports.stringifyString = stringifyString.stringifyString; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.d.ts" index 0f81d60b38b3819483ad08d2da5e66425a76e218..7a27bfca991fec04785e6e37cd06f895cfb24674 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.d.ts" @@ -1,3 +1,102 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b932682e049f41e294a3429aca3b0adb4d2eed8047b4c22f91565e9353d6940c -size 5064 +import type { Document } from './doc/Document.js'; +import type { Alias } from './nodes/Alias.js'; +import { Node } from './nodes/Node.js'; +import type { Pair } from './nodes/Pair.js'; +import type { Scalar } from './nodes/Scalar.js'; +import type { YAMLMap } from './nodes/YAMLMap.js'; +import type { YAMLSeq } from './nodes/YAMLSeq.js'; +export type visitorFn = (key: number | 'key' | 'value' | null, node: T, path: readonly (Document | Node | Pair)[]) => void | symbol | number | Node | Pair; +export type visitor = visitorFn | { + Alias?: visitorFn; + Collection?: visitorFn; + Map?: visitorFn; + Node?: visitorFn; + Pair?: visitorFn; + Scalar?: visitorFn; + Seq?: visitorFn; + Value?: visitorFn; +}; +export type asyncVisitorFn = (key: number | 'key' | 'value' | null, node: T, path: readonly (Document | Node | Pair)[]) => void | symbol | number | Node | Pair | Promise; +export type asyncVisitor = asyncVisitorFn | { + Alias?: asyncVisitorFn; + Collection?: asyncVisitorFn; + Map?: asyncVisitorFn; + Node?: asyncVisitorFn; + Pair?: asyncVisitorFn; + Scalar?: asyncVisitorFn; + Seq?: asyncVisitorFn; + Value?: asyncVisitorFn; +}; +/** + * Apply a visitor to an AST node or document. + * + * Walks through the tree (depth-first) starting from `node`, calling a + * `visitor` function with three arguments: + * - `key`: For sequence values and map `Pair`, the node's index in the + * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. + * `null` for the root node. + * - `node`: The current node. + * - `path`: The ancestry of the current node. + * + * The return value of the visitor may be used to control the traversal: + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this node, continue with next + * sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current node, then continue with the next one + * - `Node`: Replace the current node, then continue by visiting it + * - `number`: While iterating the items of a sequence or map, set the index + * of the next step. This is useful especially if the index of the current + * node has changed. + * + * If `visitor` is a single function, it will be called with all values + * encountered in the tree, including e.g. `null` values. Alternatively, + * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, + * `Alias` and `Scalar` node. To define the same visitor function for more than + * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) + * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most + * specific defined one will be used for each node. + */ +export declare function visit(node: Node | Document | null, visitor: visitor): void; +export declare namespace visit { + var BREAK: symbol; + var SKIP: symbol; + var REMOVE: symbol; +} +/** + * Apply an async visitor to an AST node or document. + * + * Walks through the tree (depth-first) starting from `node`, calling a + * `visitor` function with three arguments: + * - `key`: For sequence values and map `Pair`, the node's index in the + * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. + * `null` for the root node. + * - `node`: The current node. + * - `path`: The ancestry of the current node. + * + * The return value of the visitor may be used to control the traversal: + * - `Promise`: Must resolve to one of the following values + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this node, continue with next + * sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current node, then continue with the next one + * - `Node`: Replace the current node, then continue by visiting it + * - `number`: While iterating the items of a sequence or map, set the index + * of the next step. This is useful especially if the index of the current + * node has changed. + * + * If `visitor` is a single function, it will be called with all values + * encountered in the tree, including e.g. `null` values. Alternatively, + * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, + * `Alias` and `Scalar` node. To define the same visitor function for more than + * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) + * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most + * specific defined one will be used for each node. + */ +export declare function visitAsync(node: Node | Document | null, visitor: asyncVisitor): Promise; +export declare namespace visitAsync { + var BREAK: symbol; + var SKIP: symbol; + var REMOVE: symbol; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.js" index d9b86444d6a30acc7c433de9e4cb646e4daadaf9..1f3db46c274a711519d39f97a3210ef851995f23 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/dist/visit.js" @@ -1,3 +1,236 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e3a29063649ef3fe8d18895b6b5140cb33626315154b730842db5c5c0cd2f1b -size 9169 +'use strict'; + +var Node = require('./nodes/Node.js'); + +const BREAK = Symbol('break visit'); +const SKIP = Symbol('skip children'); +const REMOVE = Symbol('remove node'); +/** + * Apply a visitor to an AST node or document. + * + * Walks through the tree (depth-first) starting from `node`, calling a + * `visitor` function with three arguments: + * - `key`: For sequence values and map `Pair`, the node's index in the + * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. + * `null` for the root node. + * - `node`: The current node. + * - `path`: The ancestry of the current node. + * + * The return value of the visitor may be used to control the traversal: + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this node, continue with next + * sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current node, then continue with the next one + * - `Node`: Replace the current node, then continue by visiting it + * - `number`: While iterating the items of a sequence or map, set the index + * of the next step. This is useful especially if the index of the current + * node has changed. + * + * If `visitor` is a single function, it will be called with all values + * encountered in the tree, including e.g. `null` values. Alternatively, + * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, + * `Alias` and `Scalar` node. To define the same visitor function for more than + * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) + * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most + * specific defined one will be used for each node. + */ +function visit(node, visitor) { + const visitor_ = initVisitor(visitor); + if (Node.isDocument(node)) { + const cd = visit_(null, node.contents, visitor_, Object.freeze([node])); + if (cd === REMOVE) + node.contents = null; + } + else + visit_(null, node, visitor_, Object.freeze([])); +} +// Without the `as symbol` casts, TS declares these in the `visit` +// namespace using `var`, but then complains about that because +// `unique symbol` must be `const`. +/** Terminate visit traversal completely */ +visit.BREAK = BREAK; +/** Do not visit the children of the current node */ +visit.SKIP = SKIP; +/** Remove the current node */ +visit.REMOVE = REMOVE; +function visit_(key, node, visitor, path) { + const ctrl = callVisitor(key, node, visitor, path); + if (Node.isNode(ctrl) || Node.isPair(ctrl)) { + replaceNode(key, path, ctrl); + return visit_(key, ctrl, visitor, path); + } + if (typeof ctrl !== 'symbol') { + if (Node.isCollection(node)) { + path = Object.freeze(path.concat(node)); + for (let i = 0; i < node.items.length; ++i) { + const ci = visit_(i, node.items[i], visitor, path); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + node.items.splice(i, 1); + i -= 1; + } + } + } + else if (Node.isPair(node)) { + path = Object.freeze(path.concat(node)); + const ck = visit_('key', node.key, visitor, path); + if (ck === BREAK) + return BREAK; + else if (ck === REMOVE) + node.key = null; + const cv = visit_('value', node.value, visitor, path); + if (cv === BREAK) + return BREAK; + else if (cv === REMOVE) + node.value = null; + } + } + return ctrl; +} +/** + * Apply an async visitor to an AST node or document. + * + * Walks through the tree (depth-first) starting from `node`, calling a + * `visitor` function with three arguments: + * - `key`: For sequence values and map `Pair`, the node's index in the + * collection. Within a `Pair`, `'key'` or `'value'`, correspondingly. + * `null` for the root node. + * - `node`: The current node. + * - `path`: The ancestry of the current node. + * + * The return value of the visitor may be used to control the traversal: + * - `Promise`: Must resolve to one of the following values + * - `undefined` (default): Do nothing and continue + * - `visit.SKIP`: Do not visit the children of this node, continue with next + * sibling + * - `visit.BREAK`: Terminate traversal completely + * - `visit.REMOVE`: Remove the current node, then continue with the next one + * - `Node`: Replace the current node, then continue by visiting it + * - `number`: While iterating the items of a sequence or map, set the index + * of the next step. This is useful especially if the index of the current + * node has changed. + * + * If `visitor` is a single function, it will be called with all values + * encountered in the tree, including e.g. `null` values. Alternatively, + * separate visitor functions may be defined for each `Map`, `Pair`, `Seq`, + * `Alias` and `Scalar` node. To define the same visitor function for more than + * one node type, use the `Collection` (map and seq), `Value` (map, seq & scalar) + * and `Node` (alias, map, seq & scalar) targets. Of all these, only the most + * specific defined one will be used for each node. + */ +async function visitAsync(node, visitor) { + const visitor_ = initVisitor(visitor); + if (Node.isDocument(node)) { + const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node])); + if (cd === REMOVE) + node.contents = null; + } + else + await visitAsync_(null, node, visitor_, Object.freeze([])); +} +// Without the `as symbol` casts, TS declares these in the `visit` +// namespace using `var`, but then complains about that because +// `unique symbol` must be `const`. +/** Terminate visit traversal completely */ +visitAsync.BREAK = BREAK; +/** Do not visit the children of the current node */ +visitAsync.SKIP = SKIP; +/** Remove the current node */ +visitAsync.REMOVE = REMOVE; +async function visitAsync_(key, node, visitor, path) { + const ctrl = await callVisitor(key, node, visitor, path); + if (Node.isNode(ctrl) || Node.isPair(ctrl)) { + replaceNode(key, path, ctrl); + return visitAsync_(key, ctrl, visitor, path); + } + if (typeof ctrl !== 'symbol') { + if (Node.isCollection(node)) { + path = Object.freeze(path.concat(node)); + for (let i = 0; i < node.items.length; ++i) { + const ci = await visitAsync_(i, node.items[i], visitor, path); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === BREAK) + return BREAK; + else if (ci === REMOVE) { + node.items.splice(i, 1); + i -= 1; + } + } + } + else if (Node.isPair(node)) { + path = Object.freeze(path.concat(node)); + const ck = await visitAsync_('key', node.key, visitor, path); + if (ck === BREAK) + return BREAK; + else if (ck === REMOVE) + node.key = null; + const cv = await visitAsync_('value', node.value, visitor, path); + if (cv === BREAK) + return BREAK; + else if (cv === REMOVE) + node.value = null; + } + } + return ctrl; +} +function initVisitor(visitor) { + if (typeof visitor === 'object' && + (visitor.Collection || visitor.Node || visitor.Value)) { + return Object.assign({ + Alias: visitor.Node, + Map: visitor.Node, + Scalar: visitor.Node, + Seq: visitor.Node + }, visitor.Value && { + Map: visitor.Value, + Scalar: visitor.Value, + Seq: visitor.Value + }, visitor.Collection && { + Map: visitor.Collection, + Seq: visitor.Collection + }, visitor); + } + return visitor; +} +function callVisitor(key, node, visitor, path) { + if (typeof visitor === 'function') + return visitor(key, node, path); + if (Node.isMap(node)) + return visitor.Map?.(key, node, path); + if (Node.isSeq(node)) + return visitor.Seq?.(key, node, path); + if (Node.isPair(node)) + return visitor.Pair?.(key, node, path); + if (Node.isScalar(node)) + return visitor.Scalar?.(key, node, path); + if (Node.isAlias(node)) + return visitor.Alias?.(key, node, path); + return undefined; +} +function replaceNode(key, path, node) { + const parent = path[path.length - 1]; + if (Node.isCollection(parent)) { + parent.items[key] = node; + } + else if (Node.isPair(parent)) { + if (key === 'key') + parent.key = node; + else + parent.value = node; + } + else if (Node.isDocument(parent)) { + parent.contents = node; + } + else { + const pt = Node.isAlias(parent) ? 'alias' : 'scalar'; + throw new Error(`Cannot replace node with ${pt} parent`); + } +} + +exports.visit = visit; +exports.visitAsync = visitAsync; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/package.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/package.json" index e9b209f40d413494e0d0d07f30dbe43740f35620..fc35658a40f9ba3e3513c459ba9f4f6e1b3f59f5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/package.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/package.json" @@ -1,3 +1,94 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b70670be102393850cce8a68c24813c86ff524b641d59b552b3c3fc2aa0c901d -size 3028 +{ + "name": "yaml", + "version": "2.2.2", + "license": "ISC", + "author": "Eemeli Aro ", + "repository": "github:eemeli/yaml", + "description": "JavaScript parser and stringifier for YAML", + "keywords": [ + "YAML", + "parser", + "stringifier" + ], + "homepage": "https://eemeli.org/yaml/", + "files": [ + "browser/", + "dist/", + "util.d.ts", + "util.js" + ], + "type": "commonjs", + "main": "./dist/index.js", + "browser": { + "./dist/index.js": "./browser/index.js", + "./dist/util.js": "./browser/dist/util.js", + "./util.js": "./browser/dist/util.js" + }, + "exports": { + ".": { + "node": "./dist/index.js", + "default": "./browser/index.js" + }, + "./package.json": "./package.json", + "./util": { + "node": "./dist/util.js", + "default": "./browser/dist/util.js" + } + }, + "scripts": { + "build": "npm run build:node && npm run build:browser", + "build:browser": "rollup -c config/rollup.browser-config.mjs", + "build:node": "rollup -c config/rollup.node-config.mjs", + "clean": "git clean -fdxe node_modules", + "lint": "eslint src/", + "prettier": "prettier --write .", + "prestart": "npm run build:node", + "start": "node -i -e 'YAML=require(\"./dist/index.js\")'", + "test": "jest --config config/jest.config.js", + "test:all": "npm test && npm run test:types && npm run test:dist && npm run test:dist:types", + "test:browsers": "cd playground && npm test", + "test:dist": "npm run build:node && jest --config config/jest.config.js", + "test:dist:types": "tsc --allowJs --moduleResolution node --noEmit --target es5 dist/index.js", + "test:types": "tsc --noEmit", + "docs:install": "cd docs-slate && bundle install", + "docs:deploy": "cd docs-slate && ./deploy.sh", + "docs": "cd docs-slate && bundle exec middleman server", + "preversion": "npm test && npm run build", + "prepublishOnly": "npm run clean && npm test && npm run build" + }, + "browserslist": "defaults, not ie 11", + "prettier": { + "arrowParens": "avoid", + "semi": false, + "singleQuote": true, + "trailingComma": "none" + }, + "devDependencies": { + "@babel/core": "^7.12.10", + "@babel/plugin-proposal-class-properties": "^7.12.1", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1", + "@babel/plugin-transform-typescript": "^7.12.17", + "@babel/preset-env": "^7.12.11", + "@rollup/plugin-babel": "^6.0.3", + "@rollup/plugin-replace": "^5.0.2", + "@rollup/plugin-typescript": "^10.0.1", + "@types/jest": "^29.2.4", + "@types/node": "^14.18.35", + "@typescript-eslint/eslint-plugin": "^5.3.1", + "@typescript-eslint/parser": "^5.3.1", + "babel-jest": "^29.0.1", + "cross-env": "^7.0.3", + "eslint": "^8.2.0", + "eslint-config-prettier": "^8.1.0", + "fast-check": "^2.12.0", + "jest": "^29.0.1", + "jest-ts-webcompat-resolver": "^1.0.0", + "prettier": "^2.2.1", + "rollup": "^3.7.5", + "tslib": "^2.1.0", + "typescript": "^4.3.5" + }, + "engines": { + "node": ">= 14" + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.d.ts" index 5a25c7b169fdca38f811e1292db37faaf435cfbd..c656480d52a882845577c70c6a7407de37598113 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb0141b0fcd91e91465049ca4977e142775230a9f3d126526106e9e1c7edc9c7 -size 146 +// Workaround for incomplete exports support in TypeScript +// https://github.com/microsoft/TypeScript/issues/33079 +export * from './dist/util.js' diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.js" index ecfbe4d8fc3f29054b4fad64963a25f1fd09c23c..070103f91fe4fbdc226bd605adb79afaa0aa4f86 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/node_modules/yaml/util.js" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2f1db26f6cc426ef698210b592f40cec49be1b6c4b34e7f2d61904786242bd85 -size 80 +// Re-exporter for Node.js < 12.16.0 +module.exports = require('./dist/util.js') diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.d.ts" index a7730fb47f7e1cd15dc962188caf3ffd9a32946f..97cd554fbbd0628fb2206ef995c65ce6807b52c8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:af4740d29f4418d2e88afebcb8fbfa9d0aecf5732b868eac5cd04af6d8cebbf3 -size 73 +export declare enum YamlCommands { + JUMP_TO_SCHEMA = "jumpToSchema" +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js" index 88d319c09d9c0922e985fc2e058c663b27d5a6aa..3f1643e3af69cf0914f4abdd6479c9f57537ee66 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0922b5fa0ea91f1c7f9028e3341c2b0e2f813891174472c1ebfcc39885d41e24 -size 657 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.YamlCommands = void 0; +var YamlCommands; +(function (YamlCommands) { + YamlCommands["JUMP_TO_SCHEMA"] = "jumpToSchema"; +})(YamlCommands = exports.YamlCommands || (exports.YamlCommands = {})); +//# sourceMappingURL=commands.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js.map" index 826e0f3e058cc7f311383286660239534f1926ba..b484dd55ee1d2156db1a1c8d3e8249fd86e9be0a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/commands.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c609d86d7d1bbb6e10ee5b7a81ee2a56968533a8d2b7ddbff8916560d71e544a -size 228 +{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/commands.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,+CAA+B,CAAA;AACjC,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.d.ts" index 3959bda30df22de7d85bb8783a4172fc9039dc29..d4c8a04dc34ca33ae4facab89fddd3c631e428e3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:840f0f283c240215cb883055aa58be12a99159b0eea349124f6bdbd37a2b1e75 -size 192 +export * from './languageservice/yamlLanguageService'; +export { getLanguageService as getJSONLanguageService } from 'vscode-json-languageservice'; +export * from 'vscode-languageserver-types'; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js" index 910355fc7bba32e06449c7e25ee0e0df6af0bb99..146dcd2b5cd189593183e839a6ca27d2b81bcca0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js" @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9366e3b54a537de91bd6fe43531a34be36005e52ca90bd86a5faf920e9e83dd5 -size 1202 +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getJSONLanguageService = void 0; +__exportStar(require("./languageservice/yamlLanguageService"), exports); +var vscode_json_languageservice_1 = require("vscode-json-languageservice"); +Object.defineProperty(exports, "getJSONLanguageService", { enumerable: true, get: function () { return vscode_json_languageservice_1.getLanguageService; } }); +__exportStar(require("vscode-languageserver-types"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js.map" index 67a9afdde6e1545cc9850631b354c99b9de3fb16..b7aa5f9f926df04074132b4ceb47fac79d505907 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/index.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2c6410ea4e89e4b46fd25c956c1f6abe9b2bb56d7c1c7cf13ccdee3bc1f54c8b -size 187 +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,2EAA2F;AAAlF,qIAAA,kBAAkB,OAA0B;AACrD,8DAA4C"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.d.ts" index 0060387aa5bb57ec7e5d95e68bacf59cfc97075c..e69c965b9e10d6e4d74b771386ba92f98e60fea3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.d.ts" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:804dfec4d0a13d92ab42766839115b4dcc94198f795769027f8ece71e1ab8982 -size 384 +import { ExecuteCommandParams } from 'vscode-languageserver-protocol'; +export interface CommandHandler { + (...args: unknown[]): void; +} +export declare class CommandExecutor { + private commands; + executeCommand(params: ExecuteCommandParams): void; + registerCommand(commandId: string, handler: CommandHandler): void; +} +export declare const commandExecutor: CommandExecutor; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js" index aefef9150da642feced4f1f059dd5919f05b8f3f..cc378b9804096729fcc73289feed8b803cd42ef9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js" @@ -1,3 +1,25 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0718bae9b64356be74cb3a6854b58b50ba66dd41570f42e754ea4326b6d63330 -size 1069 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.commandExecutor = exports.CommandExecutor = void 0; +class CommandExecutor { + constructor() { + this.commands = new Map(); + } + executeCommand(params) { + if (this.commands.has(params.command)) { + const handler = this.commands.get(params.command); + return handler(...params.arguments); + } + throw new Error(`Command '${params.command}' not found`); + } + registerCommand(commandId, handler) { + this.commands.set(commandId, handler); + } +} +exports.CommandExecutor = CommandExecutor; +exports.commandExecutor = new CommandExecutor(); +//# sourceMappingURL=commandExecutor.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js.map" index 50d673cd30f6ed79c0d942533b846880b607327c..cfa8f72e32c5f2bdbe543a7459c3ae3e15def0e8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/commandExecutor.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4fca6c5a54e6ff5c76f6b52687b4c285bed55b4b1ca48b42e3153e5872fffa50 -size 682 +{"version":3,"file":"commandExecutor.js","sourceRoot":"","sources":["../../../../src/languageserver/commandExecutor.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAQhG,MAAa,eAAe;IAA5B;QACU,aAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAYvD,CAAC;IAXC,cAAc,CAAC,MAA4B;QACzC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;YACrC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAClD,OAAO,OAAO,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;SACrC;QACD,MAAM,IAAI,KAAK,CAAC,YAAY,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;IAC3D,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,OAAuB;QACxD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;CACF;AAbD,0CAaC;AAEY,QAAA,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.d.ts" index 5b77cd1c44ed27ed101d517ae1016ad547162550..985ecc9d1e2101fc5a992ca1ecd5f9c74f3a454f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.d.ts" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c5d7ab7ce968ee58647d7c361b053c4a999c33dc279b0902db05c725323e89b8 -size 3183 +/// +import { Connection } from 'vscode-languageserver'; +import { CodeActionParams, DidChangeWatchedFilesParams, DocumentFormattingParams, DocumentLinkParams, DocumentOnTypeFormattingParams, DocumentSymbolParams, FoldingRangeParams, SelectionRangeParams, TextDocumentPositionParams, CodeLensParams, DefinitionParams } from 'vscode-languageserver-protocol'; +import { CodeAction, CodeLens, CompletionList, DefinitionLink, DocumentLink, DocumentSymbol, Hover, FoldingRange, SelectionRange, SymbolInformation, TextEdit } from 'vscode-languageserver-types'; +import { LanguageService } from '../../languageservice/yamlLanguageService'; +import { SettingsState } from '../../yamlSettings'; +import { ValidationHandler } from './validationHandlers'; +export declare class LanguageHandlers { + private readonly connection; + private languageService; + private yamlSettings; + private validationHandler; + pendingLimitExceededWarnings: { + [uri: string]: { + features: { + [name: string]: string; + }; + timeout?: NodeJS.Timeout; + }; + }; + constructor(connection: Connection, languageService: LanguageService, yamlSettings: SettingsState, validationHandler: ValidationHandler); + registerHandlers(): void; + documentLinkHandler(params: DocumentLinkParams): Promise; + /** + * Called when the code outline in an editor needs to be populated + * Returns a list of symbols that is then shown in the code outline + */ + documentSymbolHandler(documentSymbolParams: DocumentSymbolParams): DocumentSymbol[] | SymbolInformation[]; + /** + * Called when the formatter is invoked + * Returns the formatted document content using prettier + */ + formatterHandler(formatParams: DocumentFormattingParams): TextEdit[]; + formatOnTypeHandler(params: DocumentOnTypeFormattingParams): Promise | TextEdit[] | undefined; + /** + * Called when the user hovers with their mouse over a keyword + * Returns an informational tooltip + */ + hoverHandler(textDocumentPositionParams: TextDocumentPositionParams): Promise; + /** + * Called when auto-complete is triggered in an editor + * Returns a list of valid completion items + */ + completionHandler(textDocumentPosition: TextDocumentPositionParams): Promise; + /** + * Called when a monitored file is changed in an editor + * Re-validates the entire document + */ + watchedFilesHandler(change: DidChangeWatchedFilesParams): void; + foldingRangeHandler(params: FoldingRangeParams): Promise | FoldingRange[] | undefined; + selectionRangeHandler(params: SelectionRangeParams): SelectionRange[] | undefined; + codeActionHandler(params: CodeActionParams): CodeAction[] | undefined; + codeLensHandler(params: CodeLensParams): Thenable | CodeLens[] | undefined; + codeLensResolveHandler(param: CodeLens): Thenable | CodeLens; + definitionHandler(params: DefinitionParams): DefinitionLink[]; + private cancelLimitExceededWarnings; + private onResultLimitExceeded; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js" index f4356ad70c6740a1e6f3afb8a4c3fc9b029a699b..1749c9e602ccc60d9d561d2c70ae2ffd8384e76d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js" @@ -1,3 +1,202 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:780501a28e5dcda6451dd3ff106f3b9b6e62ab4a747f2494cd9e5a4f276d0ce3 -size 9302 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LanguageHandlers = void 0; +const isKubernetes_1 = require("../../languageservice/parser/isKubernetes"); +const requestTypes_1 = require("../../requestTypes"); +const path = require("path"); +class LanguageHandlers { + constructor(connection, languageService, yamlSettings, validationHandler) { + this.connection = connection; + this.languageService = languageService; + this.yamlSettings = yamlSettings; + this.validationHandler = validationHandler; + this.pendingLimitExceededWarnings = {}; + } + registerHandlers() { + this.connection.onDocumentLinks((params) => this.documentLinkHandler(params)); + this.connection.onDocumentSymbol((documentSymbolParams) => this.documentSymbolHandler(documentSymbolParams)); + this.connection.onDocumentFormatting((formatParams) => this.formatterHandler(formatParams)); + this.connection.onHover((textDocumentPositionParams) => this.hoverHandler(textDocumentPositionParams)); + this.connection.onCompletion((textDocumentPosition) => this.completionHandler(textDocumentPosition)); + this.connection.onDidChangeWatchedFiles((change) => this.watchedFilesHandler(change)); + this.connection.onFoldingRanges((params) => this.foldingRangeHandler(params)); + this.connection.onSelectionRanges((params) => this.selectionRangeHandler(params)); + this.connection.onCodeAction((params) => this.codeActionHandler(params)); + this.connection.onDocumentOnTypeFormatting((params) => this.formatOnTypeHandler(params)); + this.connection.onCodeLens((params) => this.codeLensHandler(params)); + this.connection.onCodeLensResolve((params) => this.codeLensResolveHandler(params)); + this.connection.onDefinition((params) => this.definitionHandler(params)); + this.yamlSettings.documents.onDidChangeContent((change) => this.cancelLimitExceededWarnings(change.document.uri)); + this.yamlSettings.documents.onDidClose((event) => this.cancelLimitExceededWarnings(event.document.uri)); + } + documentLinkHandler(params) { + const document = this.yamlSettings.documents.get(params.textDocument.uri); + if (!document) { + return Promise.resolve([]); + } + return this.languageService.findLinks(document); + } + /** + * Called when the code outline in an editor needs to be populated + * Returns a list of symbols that is then shown in the code outline + */ + documentSymbolHandler(documentSymbolParams) { + const document = this.yamlSettings.documents.get(documentSymbolParams.textDocument.uri); + if (!document) { + return; + } + const onResultLimitExceeded = this.onResultLimitExceeded(document.uri, this.yamlSettings.maxItemsComputed, 'document symbols'); + const context = { resultLimit: this.yamlSettings.maxItemsComputed, onResultLimitExceeded }; + if (this.yamlSettings.hierarchicalDocumentSymbolSupport) { + return this.languageService.findDocumentSymbols2(document, context); + } + else { + return this.languageService.findDocumentSymbols(document, context); + } + } + /** + * Called when the formatter is invoked + * Returns the formatted document content using prettier + */ + formatterHandler(formatParams) { + const document = this.yamlSettings.documents.get(formatParams.textDocument.uri); + if (!document) { + return; + } + const customFormatterSettings = { + tabWidth: formatParams.options.tabSize, + ...this.yamlSettings.yamlFormatterSettings, + }; + return this.languageService.doFormat(document, customFormatterSettings); + } + formatOnTypeHandler(params) { + const document = this.yamlSettings.documents.get(params.textDocument.uri); + if (!document) { + return; + } + return this.languageService.doDocumentOnTypeFormatting(document, params); + } + /** + * Called when the user hovers with their mouse over a keyword + * Returns an informational tooltip + */ + hoverHandler(textDocumentPositionParams) { + const document = this.yamlSettings.documents.get(textDocumentPositionParams.textDocument.uri); + if (!document) { + return Promise.resolve(undefined); + } + return this.languageService.doHover(document, textDocumentPositionParams.position); + } + /** + * Called when auto-complete is triggered in an editor + * Returns a list of valid completion items + */ + completionHandler(textDocumentPosition) { + const textDocument = this.yamlSettings.documents.get(textDocumentPosition.textDocument.uri); + const result = { + items: [], + isIncomplete: false, + }; + if (!textDocument) { + return Promise.resolve(result); + } + return this.languageService.doComplete(textDocument, textDocumentPosition.position, (0, isKubernetes_1.isKubernetesAssociatedDocument)(textDocument, this.yamlSettings.specificValidatorPaths)); + } + /** + * Called when a monitored file is changed in an editor + * Re-validates the entire document + */ + watchedFilesHandler(change) { + let hasChanges = false; + change.changes.forEach((c) => { + if (this.languageService.resetSchema(c.uri)) { + hasChanges = true; + } + }); + if (hasChanges) { + this.yamlSettings.documents.all().forEach((document) => this.validationHandler.validate(document)); + } + } + foldingRangeHandler(params) { + const textDocument = this.yamlSettings.documents.get(params.textDocument.uri); + if (!textDocument) { + return; + } + const capabilities = this.yamlSettings.capabilities.textDocument.foldingRange; + const rangeLimit = this.yamlSettings.maxItemsComputed || capabilities.rangeLimit; + const onRangeLimitExceeded = this.onResultLimitExceeded(textDocument.uri, rangeLimit, 'folding ranges'); + const context = { + rangeLimit, + onRangeLimitExceeded, + lineFoldingOnly: capabilities.lineFoldingOnly, + }; + return this.languageService.getFoldingRanges(textDocument, context); + } + selectionRangeHandler(params) { + const textDocument = this.yamlSettings.documents.get(params.textDocument.uri); + if (!textDocument) { + return; + } + return this.languageService.getSelectionRanges(textDocument, params.positions); + } + codeActionHandler(params) { + const textDocument = this.yamlSettings.documents.get(params.textDocument.uri); + if (!textDocument) { + return; + } + return this.languageService.getCodeAction(textDocument, params); + } + codeLensHandler(params) { + const textDocument = this.yamlSettings.documents.get(params.textDocument.uri); + if (!textDocument) { + return; + } + return this.languageService.getCodeLens(textDocument); + } + codeLensResolveHandler(param) { + return this.languageService.resolveCodeLens(param); + } + definitionHandler(params) { + const textDocument = this.yamlSettings.documents.get(params.textDocument.uri); + if (!textDocument) { + return; + } + return this.languageService.doDefinition(textDocument, params); + } + // Adapted from: + // https://github.com/microsoft/vscode/blob/94c9ea46838a9a619aeafb7e8afd1170c967bb55/extensions/json-language-features/server/src/jsonServer.ts#L172 + cancelLimitExceededWarnings(uri) { + const warning = this.pendingLimitExceededWarnings[uri]; + if (warning && warning.timeout) { + clearTimeout(warning.timeout); + delete this.pendingLimitExceededWarnings[uri]; + } + } + onResultLimitExceeded(uri, resultLimit, name) { + return () => { + let warning = this.pendingLimitExceededWarnings[uri]; + if (warning) { + if (!warning.timeout) { + // already shown + return; + } + warning.features[name] = name; + warning.timeout.refresh(); + } + else { + warning = { features: { [name]: name } }; + warning.timeout = setTimeout(() => { + this.connection.sendNotification(requestTypes_1.ResultLimitReachedNotification.type, `${path.basename(uri)}: For performance reasons, ${Object.keys(warning.features).join(' and ')} have been limited to ${resultLimit} items.`); + warning.timeout = undefined; + }, 2000); + this.pendingLimitExceededWarnings[uri] = warning; + } + }; + } +} +exports.LanguageHandlers = LanguageHandlers; +//# sourceMappingURL=languageHandlers.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js.map" index 7172c7fa6fbd89ccc5482e3aa0cd623ebd509bd3..dbbe52d2e849e22ed1f59a9fb59415a50dd5fb68 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/languageHandlers.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f7d67885f88b068656f67ab61a5270f90faf6003bdca90d9e7336a6280e9535 -size 7373 +{"version":3,"file":"languageHandlers.js","sourceRoot":"","sources":["../../../../../src/languageserver/handlers/languageHandlers.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AA6BhG,4EAA2F;AAI3F,qDAAoE;AACpE,6BAA6B;AAE7B,MAAa,gBAAgB;IAO3B,YACmB,UAAsB,EACvC,eAAgC,EAChC,YAA2B,EAC3B,iBAAoC;QAHnB,eAAU,GAAV,UAAU,CAAY;QAKvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,4BAA4B,GAAG,EAAE,CAAC;IACzC,CAAC;IAEM,gBAAgB;QACrB,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,oBAAoB,EAAE,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC,CAAC;QAC7G,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;QAC5F,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,0BAA0B,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,0BAA0B,CAAC,CAAC,CAAC;QACvG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,oBAAoB,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC,CAAC;QACrG,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB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D;QACH,CAAC,CAAC;IACJ,CAAC;CACF;AAxPD,4CAwPC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.d.ts" index d66c4878649602a435d4db073d31c486afa71942..b3da86c7daccf6a0b2b13cceb409774d76d6a288 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.d.ts" @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e4e939fa9b03fc48e92a6831f3262984dab6279d7144a53061beeaf327bae20c -size 1329 +import { Connection } from 'vscode-languageserver'; +import { LanguageService } from '../../languageservice/yamlLanguageService'; +import { SettingsState } from '../../yamlSettings'; +import { SettingsHandler } from './settingsHandlers'; +export declare class NotificationHandlers { + private readonly connection; + private languageService; + private yamlSettings; + private settingsHandler; + constructor(connection: Connection, languageService: LanguageService, yamlSettings: SettingsState, settingsHandler: SettingsHandler); + registerHandlers(): void; + /** + * Received a notification from the client with schema associations from other extensions + * Update the associations in the server + */ + private schemaAssociationNotificationHandler; + /** + * Received a notification from the client that it can accept custom schema requests + * Register the custom schema provider and use it for requests of unknown scheme + */ + private dynamicSchemaRequestHandler; + /** + * Received a notification from the client that it can accept content requests + * This means that the server sends schemas back to the client side to get resolved rather + * than resolving them on the extension side + */ + private vscodeContentRequestHandler; + private schemaSelectionRequestHandler; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js" index 750012f6faeaa479d5a35aa68ec3828f7db1ffa5..e7db5b6e9073d22ba32f5bb4413fb9fec2bedfde 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js" @@ -1,3 +1,50 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e1614bc4172d80a1278b0e4aa95b8d6fe6726fa3de4d30dee2e8960477a0cb1 -size 2501 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NotificationHandlers = void 0; +const requestTypes_1 = require("../../requestTypes"); +class NotificationHandlers { + constructor(connection, languageService, yamlSettings, settingsHandler) { + this.connection = connection; + this.languageService = languageService; + this.yamlSettings = yamlSettings; + this.settingsHandler = settingsHandler; + } + registerHandlers() { + this.connection.onNotification(requestTypes_1.SchemaAssociationNotification.type, (associations) => this.schemaAssociationNotificationHandler(associations)); + this.connection.onNotification(requestTypes_1.DynamicCustomSchemaRequestRegistration.type, () => this.dynamicSchemaRequestHandler()); + this.connection.onNotification(requestTypes_1.VSCodeContentRequestRegistration.type, () => this.vscodeContentRequestHandler()); + this.connection.onNotification(requestTypes_1.SchemaSelectionRequests.type, () => this.schemaSelectionRequestHandler()); + } + /** + * Received a notification from the client with schema associations from other extensions + * Update the associations in the server + */ + schemaAssociationNotificationHandler(associations) { + this.yamlSettings.schemaAssociations = associations; + this.yamlSettings.specificValidatorPaths = []; + this.settingsHandler.pullConfiguration().catch((error) => console.log(error)); + } + /** + * Received a notification from the client that it can accept custom schema requests + * Register the custom schema provider and use it for requests of unknown scheme + */ + dynamicSchemaRequestHandler() { + const schemaProvider = ((resource) => { + return this.connection.sendRequest(requestTypes_1.CustomSchemaRequest.type, resource); + }); + this.languageService.registerCustomSchemaProvider(schemaProvider); + } + /** + * Received a notification from the client that it can accept content requests + * This means that the server sends schemas back to the client side to get resolved rather + * than resolving them on the extension side + */ + vscodeContentRequestHandler() { + this.yamlSettings.useVSCodeContentRequest = true; + } + schemaSelectionRequestHandler() { + this.yamlSettings.useSchemaSelectionRequests = true; + } +} +exports.NotificationHandlers = NotificationHandlers; +//# sourceMappingURL=notificationHandlers.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js.map" index 76ad6e4145cf90ec10f6e78b44ea8736b0fd70cb..8594345274a86271351277754c956f4f0958ef66 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/notificationHandlers.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:30bfe1613629f5f4d2f7793e6d3f62c29cf3052cdf96ee4a71df09ded69a5c0a -size 1529 +{"version":3,"file":"notificationHandlers.js","sourceRoot":"","sources":["../../../../../src/languageserver/handlers/notificationHandlers.ts"],"names":[],"mappings":";;;AAOA,qDAM4B;AAI5B,MAAa,oBAAoB;IAK/B,YACmB,UAAsB,EACvC,eAAgC,EAChC,YAA2B,EAC3B,eAAgC;QAHf,eAAU,GAAV,UAAU,CAAY;QAKvC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAEM,gBAAgB;QACrB,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,4CAA6B,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,EAAE,CAClF,IAAI,CAAC,oCAAoC,CAAC,YAAY,CAAC,CACxD,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,qDAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,CAAC;QACtH,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,+CAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,CAAC;QAChH,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,sCAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,6BAA6B,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;OAGG;IACK,oCAAoC,CAAC,YAA8D;QACzG,IAAI,CAAC,YAAY,CAAC,kBAAkB,GAAG,YAAY,CAAC;QACpD,IAAI,CAAC,YAAY,CAAC,sBAAsB,GAAG,EAAE,CAAC;QAC9C,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;IAED;;;OAGG;IACK,2BAA2B;QACjC,MAAM,cAAc,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;YACnC,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,kCAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACzE,CAAC,CAAyB,CAAC;QAC3B,IAAI,CAAC,eAAe,CAAC,4BAA4B,CAAC,cAAc,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACK,2BAA2B;QACjC,IAAI,CAAC,YAAY,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACnD,CAAC;IAEO,6BAA6B;QACnC,IAAI,CAAC,YAAY,CAAC,0BAA0B,GAAG,IAAI,CAAC;IACtD,CAAC;CACF;AA1DD,oDA0DC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.d.ts" index 7510ede3812c11bfa450250ab35afd4a8f22b94d..c24bc2eee697ad0b00cbcdcb33b55e0479c719ef 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f02a8bb3e07abbfa3eb162eca1c17547617b19af2a92e39b9a494a40cd842df -size 396 +import { Connection } from 'vscode-languageserver'; +import { LanguageService } from '../../languageservice/yamlLanguageService'; +export declare class RequestHandlers { + private readonly connection; + private languageService; + constructor(connection: Connection, languageService: LanguageService); + registerHandlers(): void; + private registerSchemaModificationNotificationHandler; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js" index 719572e9135794cb592948c2743e322b4f47c7cb..115a8d4106e37d9d324744c673130aa1ef636a4f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb62e775211b56697848115d32561c9485fba21670cb2b3276d347ec819af339 -size 1292 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RequestHandlers = void 0; +const yamlSchemaService_1 = require("../../languageservice/services/yamlSchemaService"); +const requestTypes_1 = require("../../requestTypes"); +class RequestHandlers { + constructor(connection, languageService) { + this.connection = connection; + this.languageService = languageService; + } + registerHandlers() { + this.connection.onRequest(requestTypes_1.SchemaModificationNotification.type, (modifications) => this.registerSchemaModificationNotificationHandler(modifications)); + } + registerSchemaModificationNotificationHandler(modifications) { + if (modifications.action === yamlSchemaService_1.MODIFICATION_ACTIONS.add) { + this.languageService.modifySchemaContent(modifications); + } + else if (modifications.action === yamlSchemaService_1.MODIFICATION_ACTIONS.delete) { + this.languageService.deleteSchemaContent(modifications); + } + else if (modifications.action === yamlSchemaService_1.MODIFICATION_ACTIONS.deleteAll) { + this.languageService.deleteSchemasWhole(modifications); + } + } +} +exports.RequestHandlers = RequestHandlers; +//# sourceMappingURL=requestHandlers.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js.map" index 9e05f71b74c735b8fc6d8e5c0f46f5829b6c35fe..f6ddc40e2c2834cc0af04d5af08f520d120156b6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/requestHandlers.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e63cca8023869007fa7b901275cbeef05eb8df25e2d62e9813b87cf4354e42e -size 838 +{"version":3,"file":"requestHandlers.js","sourceRoot":"","sources":["../../../../../src/languageserver/handlers/requestHandlers.ts"],"names":[],"mappings":";;;AAKA,wFAK0D;AAE1D,qDAAoE;AAEpE,MAAa,eAAe;IAE1B,YAA6B,UAAsB,EAAE,eAAgC;QAAxD,eAAU,GAAV,UAAU,CAAY;QACjD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAEM,gBAAgB;QACrB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,6CAA8B,CAAC,IAAI,EAAE,CAAC,aAAa,EAAE,EAAE,CAC/E,IAAI,CAAC,6CAA6C,CAAC,aAAa,CAAC,CAClE,CAAC;IACJ,CAAC;IAEO,6CAA6C,CACnD,aAAqE;QAErE,IAAI,aAAa,CAAC,MAAM,KAAK,wCAAoB,CAAC,GAAG,EAAE;YACrD,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;SACzD;aAAM,IAAI,aAAa,CAAC,MAAM,KAAK,wCAAoB,CAAC,MAAM,EAAE;YAC/D,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;SACzD;aAAM,IAAI,aAAa,CAAC,MAAM,KAAK,wCAAoB,CAAC,SAAS,EAAE;YAClE,IAAI,CAAC,eAAe,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;SACxD;IACH,CAAC;CACF;AAvBD,0CAuBC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.d.ts" index a132b6e112b979a23a268075e620cd92c56b5fc9..7957e482d542c3f15450b80230e4d1478e80c8f3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.d.ts" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:08710b9f50674bd4f452b4240b2df41224bebc9994e39d7c9b97bc2c74f5c36d -size 707 +import { Connection } from 'vscode-languageserver/node'; +import { YAMLSchemaService } from '../../languageservice/services/yamlSchemaService'; +import { SettingsState } from '../../yamlSettings'; +import { JSONSchemaDescription, JSONSchemaDescriptionExt } from '../../requestTypes'; +export declare class JSONSchemaSelection { + private readonly schemaService; + private readonly yamlSettings?; + private readonly connection?; + constructor(schemaService: YAMLSchemaService, yamlSettings?: SettingsState, connection?: Connection); + getSchemas(docUri: string): Promise; + private getSchemasForFile; + getAllSchemas(docUri: string): Promise; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js" index 3b763d4a46d20df8e685d038ecaf04f28306fb17..d13c0a3684a42a22fc46e1bba7c3b7d8a2fb1a88 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js" @@ -1,3 +1,76 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de200a3868ecff6944429eec9e5451e2b108c4614b9e6c1c2e672136a3f2414f -size 3253 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JSONSchemaSelection = void 0; +const yaml_documents_1 = require("../../languageservice/parser/yaml-documents"); +const schemaUrls_1 = require("../../languageservice/utils/schemaUrls"); +const requestTypes_1 = require("../../requestTypes"); +class JSONSchemaSelection { + constructor(schemaService, yamlSettings, connection) { + this.schemaService = schemaService; + this.yamlSettings = yamlSettings; + this.connection = connection; + this.connection?.onRequest(requestTypes_1.SchemaSelectionRequests.getSchema, (fileUri) => { + return this.getSchemas(fileUri); + }); + this.connection?.onRequest(requestTypes_1.SchemaSelectionRequests.getAllSchemas, (fileUri) => { + return this.getAllSchemas(fileUri); + }); + } + async getSchemas(docUri) { + const schemas = await this.getSchemasForFile(docUri); + return Array.from(schemas).map((val) => { + return { + name: val[1].title, + uri: val[0], + description: val[1].description, + versions: val[1].versions, + }; + }); + } + async getSchemasForFile(docUri) { + const document = this.yamlSettings?.documents.get(docUri); + const schemas = new Map(); + if (!document) { + return schemas; + } + const yamlDoc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document); + for (const currentYAMLDoc of yamlDoc.documents) { + const schema = await this.schemaService.getSchemaForResource(document.uri, currentYAMLDoc); + if (schema?.schema) { + const schemaUrls = (0, schemaUrls_1.getSchemaUrls)(schema?.schema); + if (schemaUrls.size === 0) { + continue; + } + for (const urlToSchema of schemaUrls) { + schemas.set(urlToSchema[0], urlToSchema[1]); + } + } + } + return schemas; + } + async getAllSchemas(docUri) { + const fileSchemas = await this.getSchemasForFile(docUri); + const fileSchemasHandle = Array.from(fileSchemas.entries()).map((val) => { + return { + uri: val[0], + fromStore: false, + usedForCurrentFile: true, + name: val[1].title, + description: val[1].description, + versions: val[1].versions, + }; + }); + const result = []; + let allSchemas = this.schemaService.getAllSchemas(); + allSchemas = allSchemas.filter((val) => !fileSchemas.has(val.uri)); + result.push(...fileSchemasHandle); + result.push(...allSchemas); + return result; + } +} +exports.JSONSchemaSelection = JSONSchemaSelection; +//# sourceMappingURL=schemaSelectionHandlers.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js.map" index 6f65262f32910c04a07aa685f086f660ebf48b24..06ccc8444efd350a75f3d3a98714fa22c00194a5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/schemaSelectionHandlers.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:689b45a7ad1c7e2b0432e65f9d62eea20fcc0657816161a5af8479f443e6b3fc -size 2592 +{"version":3,"file":"schemaSelectionHandlers.js","sourceRoot":"","sources":["../../../../../src/languageserver/handlers/schemaSelectionHandlers.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAIhG,gFAAiF;AAEjF,uEAAuE;AAEvE,qDAA8G;AAE9G,MAAa,mBAAmB;IAC9B,YACmB,aAAgC,EAChC,YAA4B,EAC5B,UAAuB;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,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC;QAClC,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;QAE3B,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAtED,kDAsEC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.d.ts" index c7e0f7879782eb69c9754403b43962bf4e4a4472..90a55154f6952f17fad89a9fe6ab4e90a62840b8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.d.ts" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:202b2db75063dd6e6e50fa028d5eda3b36b055debe70180355d7a4899b47f04b -size 1844 +import { Connection } from 'vscode-languageserver'; +import { LanguageService } from '../../languageservice/yamlLanguageService'; +import { SettingsState } from '../../yamlSettings'; +import { Telemetry } from '../../languageservice/telemetry'; +import { ValidationHandler } from './validationHandlers'; +export declare class SettingsHandler { + private readonly connection; + private readonly languageService; + private readonly yamlSettings; + private readonly validationHandler; + private readonly telemetry; + constructor(connection: Connection, languageService: LanguageService, yamlSettings: SettingsState, validationHandler: ValidationHandler, telemetry: Telemetry); + registerHandlers(): Promise; + /** + * The server pull the 'yaml', 'http.proxy', 'http.proxyStrictSSL', '[yaml]' settings sections + */ + pullConfiguration(): Promise; + private setConfiguration; + /** + * This function helps set the schema store if it hasn't already been set + * AND the schema store setting is enabled. If the schema store setting + * is not enabled we need to clear the schemas. + */ + private setSchemaStoreSettingsIfNotSet; + /** + * When the schema store is enabled, download and store YAML schema associations + */ + private getSchemaStoreMatchingSchemas; + /** + * Called when server settings or schema associations are changed + * Re-creates schema associations and re-validates any open YAML files + */ + private updateConfiguration; + /** + * Stores schema associations in server settings, handling kubernetes + * @param uri string path to schema (whether local or online) + * @param fileMatch file pattern to apply the schema to + * @param schema schema id + * @param languageSettings current server settings + */ + private configureSchemas; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js" index 5db9c5b4a134a288fb51c7515ae718d44947012e..c94be43afc00969909ae3fb8946299588f11ca63 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js" @@ -1,3 +1,303 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e981ef4926d4c3970bbdb51e67767e69dd91adeeea8d32c099ccbb934350d4fe -size 15464 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SettingsHandler = 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 request_light_1 = require("request-light"); +const vscode_languageserver_1 = require("vscode-languageserver"); +const objects_1 = require("../../languageservice/utils/objects"); +const paths_1 = require("../../languageservice/utils/paths"); +const schemaUrls_1 = require("../../languageservice/utils/schemaUrls"); +const yamlLanguageService_1 = require("../../languageservice/yamlLanguageService"); +const requestTypes_1 = require("../../requestTypes"); +class SettingsHandler { + constructor(connection, languageService, yamlSettings, validationHandler, telemetry) { + this.connection = connection; + this.languageService = languageService; + this.yamlSettings = yamlSettings; + this.validationHandler = validationHandler; + this.telemetry = telemetry; + } + async registerHandlers() { + if (this.yamlSettings.hasConfigurationCapability && this.yamlSettings.clientDynamicRegisterSupport) { + try { + // Register for all configuration changes. + await this.connection.client.register(vscode_languageserver_1.DidChangeConfigurationNotification.type); + } + catch (err) { + this.telemetry.sendError('yaml.settings.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) }); + } + } + this.connection.onDidChangeConfiguration(() => this.pullConfiguration()); + } + /** + * The server pull the 'yaml', 'http.proxy', 'http.proxyStrictSSL', '[yaml]' settings sections + */ + async pullConfiguration() { + const config = await this.connection.workspace.getConfiguration([ + { section: 'yaml' }, + { section: 'http' }, + { section: '[yaml]' }, + { section: 'editor' }, + { section: 'files' }, + ]); + const settings = { + yaml: config[0], + http: { + proxy: config[1]?.proxy ?? '', + proxyStrictSSL: config[1]?.proxyStrictSSL ?? false, + }, + yamlEditor: config[2], + vscodeEditor: config[3], + files: config[4], + }; + await this.setConfiguration(settings); + } + async setConfiguration(settings) { + (0, request_light_1.configure)(settings.http && settings.http.proxy, settings.http && settings.http.proxyStrictSSL); + this.yamlSettings.specificValidatorPaths = []; + if (settings.yaml) { + if (Object.prototype.hasOwnProperty.call(settings.yaml, 'schemas')) { + this.yamlSettings.yamlConfigurationSettings = settings.yaml.schemas; + } + if (Object.prototype.hasOwnProperty.call(settings.yaml, 'validate')) { + this.yamlSettings.yamlShouldValidate = settings.yaml.validate; + } + if (Object.prototype.hasOwnProperty.call(settings.yaml, 'hover')) { + this.yamlSettings.yamlShouldHover = settings.yaml.hover; + } + if (Object.prototype.hasOwnProperty.call(settings.yaml, 'completion')) { + this.yamlSettings.yamlShouldCompletion = settings.yaml.completion; + } + this.yamlSettings.customTags = settings.yaml.customTags ? settings.yaml.customTags : []; + this.yamlSettings.maxItemsComputed = Math.trunc(Math.max(0, Number(settings.yaml.maxItemsComputed))) || 5000; + if (settings.yaml.schemaStore) { + this.yamlSettings.schemaStoreEnabled = settings.yaml.schemaStore.enable; + if (settings.yaml.schemaStore.url.length !== 0) { + this.yamlSettings.schemaStoreUrl = settings.yaml.schemaStore.url; + } + } + if (settings.files?.associations) { + for (const [ext, languageId] of Object.entries(settings.files.associations)) { + if (languageId === 'yaml') { + this.yamlSettings.fileExtensions.push(ext); + } + } + } + this.yamlSettings.yamlVersion = settings.yaml.yamlVersion ?? '1.2'; + if (settings.yaml.format) { + this.yamlSettings.yamlFormatterSettings = { + proseWrap: settings.yaml.format.proseWrap || 'preserve', + printWidth: settings.yaml.format.printWidth || 80, + }; + if (settings.yaml.format.singleQuote !== undefined) { + this.yamlSettings.yamlFormatterSettings.singleQuote = settings.yaml.format.singleQuote; + } + if (settings.yaml.format.bracketSpacing !== undefined) { + this.yamlSettings.yamlFormatterSettings.bracketSpacing = settings.yaml.format.bracketSpacing; + } + if (settings.yaml.format.enable !== undefined) { + this.yamlSettings.yamlFormatterSettings.enable = settings.yaml.format.enable; + } + } + this.yamlSettings.disableAdditionalProperties = settings.yaml.disableAdditionalProperties; + this.yamlSettings.disableDefaultProperties = settings.yaml.disableDefaultProperties; + if (settings.yaml.suggest) { + this.yamlSettings.suggest.parentSkeletonSelectedFirst = settings.yaml.suggest.parentSkeletonSelectedFirst; + } + this.yamlSettings.style = { + flowMapping: settings.yaml.style?.flowMapping ?? 'allow', + flowSequence: settings.yaml.style?.flowSequence ?? 'allow', + }; + this.yamlSettings.keyOrdering = settings.yaml.keyOrdering ?? false; + } + this.yamlSettings.schemaConfigurationSettings = []; + let tabSize = 2; + if (settings.vscodeEditor) { + tabSize = + !settings.vscodeEditor['detectIndentation'] && settings.yamlEditor ? settings.yamlEditor['editor.tabSize'] : tabSize; + } + if (settings.yamlEditor && settings.yamlEditor['editor.tabSize']) { + this.yamlSettings.indentation = ' '.repeat(tabSize); + } + for (const uri in this.yamlSettings.yamlConfigurationSettings) { + const globPattern = this.yamlSettings.yamlConfigurationSettings[uri]; + const schemaObj = { + fileMatch: Array.isArray(globPattern) ? globPattern : [globPattern], + uri: (0, schemaUrls_1.checkSchemaURI)(this.yamlSettings.workspaceFolders, this.yamlSettings.workspaceRoot, uri, this.telemetry), + }; + this.yamlSettings.schemaConfigurationSettings.push(schemaObj); + } + await this.setSchemaStoreSettingsIfNotSet(); + this.updateConfiguration(); + if (this.yamlSettings.useSchemaSelectionRequests) { + this.connection.sendNotification(requestTypes_1.SchemaSelectionRequests.schemaStoreInitialized, {}); + } + // dynamically enable & disable the formatter + if (this.yamlSettings.clientDynamicRegisterSupport) { + const enableFormatter = settings && settings.yaml && settings.yaml.format && settings.yaml.format.enable; + if (enableFormatter) { + if (!this.yamlSettings.formatterRegistration) { + this.yamlSettings.formatterRegistration = this.connection.client.register(vscode_languageserver_1.DocumentFormattingRequest.type, { + documentSelector: [{ language: 'yaml' }], + }); + } + } + else if (this.yamlSettings.formatterRegistration) { + this.yamlSettings.formatterRegistration.then((r) => { + return r.dispose(); + }); + this.yamlSettings.formatterRegistration = null; + } + } + } + /** + * This function helps set the schema store if it hasn't already been set + * AND the schema store setting is enabled. If the schema store setting + * is not enabled we need to clear the schemas. + */ + async setSchemaStoreSettingsIfNotSet() { + const schemaStoreIsSet = this.yamlSettings.schemaStoreSettings.length !== 0; + let schemaStoreUrl = ''; + if (this.yamlSettings.schemaStoreUrl.length !== 0) { + schemaStoreUrl = this.yamlSettings.schemaStoreUrl; + } + else { + schemaStoreUrl = schemaUrls_1.JSON_SCHEMASTORE_URL; + } + if (this.yamlSettings.schemaStoreEnabled && !schemaStoreIsSet) { + try { + const schemaStore = await this.getSchemaStoreMatchingSchemas(schemaStoreUrl); + this.yamlSettings.schemaStoreSettings = schemaStore.schemas; + } + catch (err) { + // ignore + } + } + else if (!this.yamlSettings.schemaStoreEnabled) { + this.yamlSettings.schemaStoreSettings = []; + } + } + /** + * When the schema store is enabled, download and store YAML schema associations + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + async getSchemaStoreMatchingSchemas(schemaStoreUrl) { + const response = await (0, request_light_1.xhr)({ url: schemaStoreUrl }); + const languageSettings = { + schemas: [], + }; + // Parse the schema store catalog as JSON + const schemas = JSON.parse(response.responseText); + for (const schemaIndex in schemas.schemas) { + const schema = schemas.schemas[schemaIndex]; + if (schema && schema.fileMatch) { + for (const fileMatch in schema.fileMatch) { + const currFileMatch = schema.fileMatch[fileMatch]; + // If the schema is for files with a YAML extension, save the schema association + if (this.yamlSettings.fileExtensions.findIndex((value) => { + return currFileMatch.indexOf(value) > -1; + }) > -1) { + languageSettings.schemas.push({ + uri: schema.url, + fileMatch: [currFileMatch], + priority: yamlLanguageService_1.SchemaPriority.SchemaStore, + name: schema.name, + description: schema.description, + versions: schema.versions, + }); + } + } + } + } + return languageSettings; + } + /** + * Called when server settings or schema associations are changed + * Re-creates schema associations and re-validates any open YAML files + */ + updateConfiguration() { + let languageSettings = { + validate: this.yamlSettings.yamlShouldValidate, + hover: this.yamlSettings.yamlShouldHover, + completion: this.yamlSettings.yamlShouldCompletion, + schemas: [], + customTags: this.yamlSettings.customTags, + format: this.yamlSettings.yamlFormatterSettings.enable, + indentation: this.yamlSettings.indentation, + disableAdditionalProperties: this.yamlSettings.disableAdditionalProperties, + disableDefaultProperties: this.yamlSettings.disableDefaultProperties, + parentSkeletonSelectedFirst: this.yamlSettings.suggest.parentSkeletonSelectedFirst, + flowMapping: this.yamlSettings.style?.flowMapping, + flowSequence: this.yamlSettings.style?.flowSequence, + yamlVersion: this.yamlSettings.yamlVersion, + keyOrdering: this.yamlSettings.keyOrdering, + }; + if (this.yamlSettings.schemaAssociations) { + if (Array.isArray(this.yamlSettings.schemaAssociations)) { + this.yamlSettings.schemaAssociations.forEach((association) => { + languageSettings = this.configureSchemas(association.uri, association.fileMatch, association.schema, languageSettings, yamlLanguageService_1.SchemaPriority.SchemaAssociation); + }); + } + else { + for (const uri in this.yamlSettings.schemaAssociations) { + const fileMatch = this.yamlSettings.schemaAssociations[uri]; + languageSettings = this.configureSchemas(uri, fileMatch, null, languageSettings, yamlLanguageService_1.SchemaPriority.SchemaAssociation); + } + } + } + if (this.yamlSettings.schemaConfigurationSettings) { + this.yamlSettings.schemaConfigurationSettings.forEach((schema) => { + let uri = schema.uri; + if (!uri && schema.schema) { + uri = schema.schema.id; + } + if (!uri && schema.fileMatch) { + uri = 'vscode://schemas/custom/' + encodeURIComponent(schema.fileMatch.join('&')); + } + if (uri) { + if ((0, paths_1.isRelativePath)(uri)) { + uri = (0, paths_1.relativeToAbsolutePath)(this.yamlSettings.workspaceFolders, this.yamlSettings.workspaceRoot, uri); + } + languageSettings = this.configureSchemas(uri, schema.fileMatch, schema.schema, languageSettings, yamlLanguageService_1.SchemaPriority.Settings); + } + }); + } + if (this.yamlSettings.schemaStoreSettings) { + languageSettings.schemas = languageSettings.schemas.concat(this.yamlSettings.schemaStoreSettings); + } + this.languageService.configure(languageSettings); + // Revalidate any open text documents + this.yamlSettings.documents.all().forEach((document) => this.validationHandler.validate(document)); + } + /** + * Stores schema associations in server settings, handling kubernetes + * @param uri string path to schema (whether local or online) + * @param fileMatch file pattern to apply the schema to + * @param schema schema id + * @param languageSettings current server settings + */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + configureSchemas(uri, fileMatch, schema, languageSettings, priorityLevel) { + uri = (0, schemaUrls_1.checkSchemaURI)(this.yamlSettings.workspaceFolders, this.yamlSettings.workspaceRoot, uri, this.telemetry); + if (schema === null) { + languageSettings.schemas.push({ uri, fileMatch: fileMatch, priority: priorityLevel }); + } + else { + languageSettings.schemas.push({ uri, fileMatch: fileMatch, schema: schema, priority: priorityLevel }); + } + if (fileMatch.constructor === Array && uri === schemaUrls_1.KUBERNETES_SCHEMA_URL) { + fileMatch.forEach((url) => { + this.yamlSettings.specificValidatorPaths.push(url); + }); + } + else if (uri === schemaUrls_1.KUBERNETES_SCHEMA_URL) { + this.yamlSettings.specificValidatorPaths.push(fileMatch); + } + return languageSettings; + } +} +exports.SettingsHandler = SettingsHandler; +//# sourceMappingURL=settingsHandlers.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js.map" index d59f017645c2c2f287124e5200446132ec2f5820..3b53399cf24a7da1fec57bfcf702a185daa6fe8f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/settingsHandlers.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d454e1c010512767cd6f4f14f1f6ea4b1d6256fe3db140ebfa820230c104f6d1 -size 11155 +{"version":3,"file":"settingsHandlers.js","sourceRoot":"","sources":["../../../../../src/languageserver/handlers/settingsHandlers.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG,iDAAwE;AACxE,iEAAkH;AAClH,iEAAiF;AACjF,6DAA2F;AAC3F,uEAAqH;AACrH,mFAA8G;AAC9G,qDAA6D;AAK7D,MAAa,eAAe;IAC1B,YACmB,UAAsB,EACtB,eAAgC,EAChC,YAA2B,EAC3B,iBAAoC,EACpC,SAAoB;QAJpB,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAe;QAC3B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAEJ,KAAK,CAAC,gBAAgB;QACpB,IAAI,IAAI,CAAC,YAAY,CAAC,0BAA0B,IAAI,IAAI,CAAC,YAAY,CAAC,4BAA4B,EAAE;YAClG,IAAI;gBACF,0CAA0C;gBAC1C,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,0DAAkC,CAAC,IAAI,CAAC,CAAC;aAChF;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAA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345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.d.ts" index 87a63ac9a54c4d8ebc21e062ebb8dbc256ec5164..2bad118c72b9c07d66cd28713e04b4b4cb37a33b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.d.ts" @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97299e60adcbd0724db47f9c018eb6b5ece21fba49f9e27c344382ab8d1cc6a1 -size 702 +import { Connection } from 'vscode-languageserver'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { Diagnostic } from 'vscode-languageserver-types'; +import { LanguageService } from '../../languageservice/yamlLanguageService'; +import { SettingsState } from '../../yamlSettings'; +export declare class ValidationHandler { + private readonly connection; + private languageService; + private yamlSettings; + constructor(connection: Connection, languageService: LanguageService, yamlSettings: SettingsState); + validate(textDocument: TextDocument): void; + private cleanPendingValidation; + validateTextDocument(textDocument: TextDocument): Promise; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js" index 856a598b84096908595dc5801923f579fde84c96..0a5616a23ebced5cd61125fc2ac1fdceb45bea08 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:59c058d856b4aa970e0411bf0519794c1114e4121e37544e0b569c3c3e10351f -size 2548 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ValidationHandler = void 0; +const isKubernetes_1 = require("../../languageservice/parser/isKubernetes"); +const arrUtils_1 = require("../../languageservice/utils/arrUtils"); +class ValidationHandler { + constructor(connection, languageService, yamlSettings) { + this.connection = connection; + this.languageService = languageService; + this.yamlSettings = yamlSettings; + this.yamlSettings.documents.onDidChangeContent((change) => { + this.validate(change.document); + }); + this.yamlSettings.documents.onDidClose((event) => { + this.cleanPendingValidation(event.document); + this.connection.sendDiagnostics({ uri: event.document.uri, diagnostics: [] }); + }); + } + validate(textDocument) { + this.cleanPendingValidation(textDocument); + this.yamlSettings.pendingValidationRequests[textDocument.uri] = setTimeout(() => { + delete this.yamlSettings.pendingValidationRequests[textDocument.uri]; + this.validateTextDocument(textDocument); + }, this.yamlSettings.validationDelayMs); + } + cleanPendingValidation(textDocument) { + const request = this.yamlSettings.pendingValidationRequests[textDocument.uri]; + if (request) { + clearTimeout(request); + delete this.yamlSettings.pendingValidationRequests[textDocument.uri]; + } + } + validateTextDocument(textDocument) { + if (!textDocument) { + return; + } + return this.languageService + .doValidation(textDocument, (0, isKubernetes_1.isKubernetesAssociatedDocument)(textDocument, this.yamlSettings.specificValidatorPaths)) + .then((diagnosticResults) => { + const diagnostics = []; + for (const diagnosticItem of diagnosticResults) { + // Convert all warnings to errors + if (diagnosticItem.severity === 2) { + diagnosticItem.severity = 1; + } + diagnostics.push(diagnosticItem); + } + const removeDuplicatesDiagnostics = (0, arrUtils_1.removeDuplicatesObj)(diagnostics); + this.connection.sendDiagnostics({ + uri: textDocument.uri, + diagnostics: removeDuplicatesDiagnostics, + }); + return removeDuplicatesDiagnostics; + }); + } +} +exports.ValidationHandler = ValidationHandler; +//# sourceMappingURL=validationHandlers.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js.map" index e903177435e93f2a1778fc393cfcffba55764052..d183f051ed09c734105deaca5cc38eaf68fcf780 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/validationHandlers.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7abfcdd1b98503d377c2989967c436b5e589b225a740e8c3b1403fa51eb19295 -size 1973 +{"version":3,"file":"validationHandlers.js","sourceRoot":"","sources":["../../../../../src/languageserver/handlers/validationHandlers.ts"],"names":[],"mappings":";;;AAOA,4EAA2F;AAC3F,mEAA2E;AAI3E,MAAa,iBAAiB;IAI5B,YAA6B,UAAsB,EAAE,eAAgC,EAAE,YAA2B;QAArF,eAAU,GAAV,UAAU,CAAY;QACjD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,MAAM,EAAE,EAAE;YACxD,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE;YAC/C,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC5C,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;QAChF,CAAC,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,YAA0B;QACjC,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC;QAC1C,IAAI,CAAC,YAAY,CAAC,yBAAyB,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,UAAU,CA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ACrC,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AA3DD,8CA2DC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.d.ts" index a38cab8288369575bb6734a57bac265fc2242398..0bfa3dcf2ff9b14c012a25d96cc261c10157c5a2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d27ae04cc3af05e1b412fe0b5c2bf1c45fd5f70b2b613242e8589787350df88 -size 353 +import { Connection } from 'vscode-languageserver'; +import { CommandExecutor } from '../commandExecutor'; +export declare class WorkspaceHandlers { + private readonly connection; + private readonly commandExecutor; + constructor(connection: Connection, commandExecutor: CommandExecutor); + registerHandlers(): void; + private executeCommand; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js" index 77a285dcc69dc9e14267839b2f9701e6c4468fc2..42f2ed2995f18255a8231c50465f4627d096fa67 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:753dcb58c498e7bbcfa97925502af4c3ac42fe2eb91a26ebbae56ef809e079d6 -size 924 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WorkspaceHandlers = void 0; +class WorkspaceHandlers { + constructor(connection, commandExecutor) { + this.connection = connection; + this.commandExecutor = commandExecutor; + } + registerHandlers() { + this.connection.onExecuteCommand((params) => this.executeCommand(params)); + } + executeCommand(params) { + return this.commandExecutor.executeCommand(params); + } +} +exports.WorkspaceHandlers = WorkspaceHandlers; +//# sourceMappingURL=workspaceHandlers.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js.map" index 9ee78874cc203e6b9240ec276d698c2286589266..f4e7900e0ed8d0366801e99ca8e314230de33d18 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/handlers/workspaceHandlers.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ab797e77c04733d14c2c77fa27bb3d38f36a83a90810239f2cb99c03e7e3654 -size 520 +{"version":3,"file":"workspaceHandlers.js","sourceRoot":"","sources":["../../../../../src/languageserver/handlers/workspaceHandlers.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAKhG,MAAa,iBAAiB;IAC5B,YAA6B,UAAsB,EAAmB,eAAgC;QAAzE,eAAU,GAAV,UAAU,CAAY;QAAmB,oBAAe,GAAf,eAAe,CAAiB;IAAG,CAAC;IAE1G,gBAAgB;QACd,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,CAAC;IAEO,cAAc,CAAC,MAA4B;QACjD,OAAO,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;CACF;AAVD,8CAUC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.d.ts" index aab94e190169a1a774a8bb089f66a78be288532b..10e223b47a2694cf3cbaaa1e4215627f4ec20f38 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b825e716517c59642df2be82d353ed6673ed0c606dc16a5a5fea3379806aff51 -size 411 +import { Connection } from 'vscode-languageserver'; +import { TelemetryEvent, Telemetry } from '../languageservice/telemetry'; +export declare class TelemetryImpl implements Telemetry { + private readonly connection; + constructor(connection: Connection); + send(event: TelemetryEvent): void; + sendError(name: string, properties: unknown): void; + sendTrack(name: string, properties: unknown): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js" index 01c3ecea54fb127a66cfad4758b3e63364dd93b9..a9c1470966a7ad501f2f36347c335876316cace8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js" @@ -1,3 +1,23 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1348f9fd4d63d086c0fd256dad9193876c808bd602f33e2736fba3dc842a6bf2 -size 917 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TelemetryImpl = void 0; +class TelemetryImpl { + constructor(connection) { + this.connection = connection; + } + send(event) { + this.connection.telemetry.logEvent(event); + } + sendError(name, properties) { + this.send({ name, type: 'track', properties: properties }); + } + sendTrack(name, properties) { + this.send({ name, type: 'track', properties: properties }); + } +} +exports.TelemetryImpl = TelemetryImpl; +//# sourceMappingURL=telemetry.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js.map" index 94dcd43bdeb7e414679f2e9d6a91b7322bca51fb..c7be173a3ed78936c79162f90db1fcb18e9a664d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:caebfc8f95524a38a07731ee3b8b0757df18379ec2a744d08eb4b2db1822cd55 -size 596 +{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../src/languageserver/telemetry.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAKhG,MAAa,aAAa;IACxB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,IAAI,CAAC,KAAqB;QACxB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,CAAC,IAAY,EAAE,UAAmB;QACzC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,SAAS,CAAC,IAAY,EAAE,UAAmB;QACzC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AAdD,sCAcC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.d.ts" index 37db88e58171c7c2a00e8cede5477681de5c2626..9d1896981d4a772fb8f4155bd341ed04e882e073 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.d.ts" @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:37f95ca94bcf0f1dd998ff9908700f87e5ffcdd01797cea96b1ca70606bf958c -size 1661 +import { Node, Pair } from 'yaml'; +export declare type YamlNode = Node | Pair; +export declare type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode; +export interface BaseASTNode { + readonly type: 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null'; + readonly parent?: ASTNode; + readonly offset: number; + readonly length: number; + readonly children?: ASTNode[]; + readonly value?: string | boolean | number | null; + readonly internalNode: YamlNode; + location: string; + getNodeFromOffsetEndInclusive(offset: number): ASTNode; +} +export interface ObjectASTNode extends BaseASTNode { + readonly type: 'object'; + readonly properties: PropertyASTNode[]; + readonly children: ASTNode[]; +} +export interface PropertyASTNode extends BaseASTNode { + readonly type: 'property'; + readonly keyNode: StringASTNode; + readonly valueNode?: ASTNode; + readonly colonOffset?: number; + readonly children: ASTNode[]; +} +export interface ArrayASTNode extends BaseASTNode { + readonly type: 'array'; + readonly items: ASTNode[]; + readonly children: ASTNode[]; +} +export interface StringASTNode extends BaseASTNode { + readonly type: 'string'; + readonly value: string; +} +export interface NumberASTNode extends BaseASTNode { + readonly type: 'number'; + readonly value: number; + readonly isInteger: boolean; +} +export interface BooleanASTNode extends BaseASTNode { + readonly type: 'boolean'; + readonly value: boolean; +} +export interface NullASTNode extends BaseASTNode { + readonly type: 'null'; + readonly value: null; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js" index 4c318800b006b9629bd24e40122dd5d4358cb6ae..8c1a5567eb30ae1c71fa3ad87fd8a7866801103c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d7dd0838c1621d0f2d94c0ba6c0062cf1d1ea536ad721d6ca881573333d2c54 -size 469 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=jsonASTTypes.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js.map" index 830cdd4dc935a213f803619abc921f7e1248f4da..24aeb198f5916dc44184302382b2469c09b8585b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonASTTypes.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24eeba792b3cb747b8081b96e7b3895921eb17b0019df442a50ffe8ae6e53bb4 -size 155 +{"version":3,"file":"jsonASTTypes.js","sourceRoot":"","sources":["../../../../src/languageservice/jsonASTTypes.ts"],"names":[],"mappings":";AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.d.ts" index ef1ea9b09cbc87d8c7f2488c7cc176962118a79e..426a30353da0fe01a14f8d8811a376392a660329 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.d.ts" @@ -1,3 +1,79 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0e2d6e086872c0e5848cf0b952a375bb738690d241ea3c806c2ab44e04e7638 -size 2222 +import { CompletionItemKind } from 'vscode-json-languageservice'; +import { SchemaVersions } from './yamlTypes'; +export declare type JSONSchemaRef = JSONSchema | boolean; +export interface JSONSchema { + id?: string; + $id?: string; + $schema?: string; + url?: string; + type?: string | string[]; + title?: string; + closestTitle?: string; + versions?: SchemaVersions; + default?: any; + definitions?: { + [name: string]: JSONSchema; + }; + description?: string; + properties?: JSONSchemaMap; + patternProperties?: JSONSchemaMap; + additionalProperties?: boolean | JSONSchemaRef; + minProperties?: number; + maxProperties?: number; + dependencies?: JSONSchemaMap | { + [prop: string]: string[]; + }; + items?: JSONSchemaRef | JSONSchemaRef[]; + minItems?: number; + maxItems?: number; + uniqueItems?: boolean; + additionalItems?: boolean | JSONSchemaRef; + pattern?: string; + minLength?: number; + maxLength?: number; + minimum?: number; + maximum?: number; + exclusiveMinimum?: boolean | number; + exclusiveMaximum?: boolean | number; + multipleOf?: number; + required?: string[]; + $ref?: string; + _$ref?: string; + anyOf?: JSONSchemaRef[]; + allOf?: JSONSchemaRef[]; + oneOf?: JSONSchemaRef[]; + not?: JSONSchemaRef; + enum?: any[]; + format?: string; + const?: any; + contains?: JSONSchemaRef; + propertyNames?: JSONSchemaRef; + examples?: any[]; + $comment?: string; + if?: JSONSchemaRef; + then?: JSONSchemaRef; + else?: JSONSchemaRef; + defaultSnippets?: { + label?: string; + description?: string; + markdownDescription?: string; + type?: string; + suggestionKind?: CompletionItemKind; + sortText?: string; + body?: any; + bodyText?: string; + }[]; + errorMessage?: string; + patternErrorMessage?: string; + deprecationMessage?: string; + enumDescriptions?: string[]; + markdownEnumDescriptions?: string[]; + markdownDescription?: string; + doNotSuggest?: boolean; + allowComments?: boolean; + schemaSequence?: JSONSchema[]; + filePatternAssociation?: string; +} +export interface JSONSchemaMap { + [name: string]: JSONSchemaRef; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js" index dfc6289b7d2ebe86afa08022de357ea141d651ea..17259b121f6116b22b9830840cb3d73745890496 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8fe8602d324d0f75f65a3a12369e9b8299f4d0135479400ba338681421955e55 -size 467 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=jsonSchema.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js.map" index 25f24a1f4d4b36224c0ad188a00b11c1cd79e577..891ba5b73d50b01bc8a210296004b17aedbc2805 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/jsonSchema.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d0f8efd12438ba2c78d7b7d4a6aa6727195168b7aa29adcfb82976840ac913b -size 151 +{"version":3,"file":"jsonSchema.js","sourceRoot":"","sources":["../../../../src/languageservice/jsonSchema.ts"],"names":[],"mappings":";AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.d.ts" index f27b644a601df33bcec903044249d1f2549a3aef..5ecd33e75e618d8f7c3a75f6b9f5a51475a8855b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aff7e5d75b842b8bff8730b2e1eb7f60176a9762628b0d80432ef70115a00ef0 -size 368 +import { Document, LineCounter } from 'yaml'; +import { ASTNode, YamlNode } from '../jsonASTTypes'; +declare type NodeRange = [number, number, number]; +export declare function convertAST(parent: ASTNode, node: YamlNode, doc: Document, lineCounter: LineCounter): ASTNode | undefined; +export declare function toOffsetLength(range: NodeRange): [number, number]; +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js" index 25bc1bcdf2ff372282d68b9360e54a395a3b04df..e352301e79cfa111b952fb9fb1bfe30199c71991 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js" @@ -1,3 +1,173 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:888b7d376dd86019e3b719c293994f87891d6d3893d1d68453432ca01a77ddfa -size 6379 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toOffsetLength = exports.convertAST = void 0; +const yaml_1 = require("yaml"); +const jsonParser07_1 = require("./jsonParser07"); +const maxRefCount = 1000; +let refDepth = 0; +const seenAlias = new Set(); +function convertAST(parent, node, doc, lineCounter) { + if (!parent) { + // first invocation + refDepth = 0; + } + if (!node) { + return null; + } + if ((0, yaml_1.isMap)(node)) { + return convertMap(node, parent, doc, lineCounter); + } + if ((0, yaml_1.isPair)(node)) { + return convertPair(node, parent, doc, lineCounter); + } + if ((0, yaml_1.isSeq)(node)) { + return convertSeq(node, parent, doc, lineCounter); + } + if ((0, yaml_1.isScalar)(node)) { + return convertScalar(node, parent); + } + if ((0, yaml_1.isAlias)(node) && !seenAlias.has(node) && refDepth < maxRefCount) { + seenAlias.add(node); + const converted = convertAlias(node, parent, doc, lineCounter); + seenAlias.delete(node); + return converted; + } + else { + return; + } +} +exports.convertAST = convertAST; +function convertMap(node, parent, doc, lineCounter) { + let range; + if (node.flow && !node.range) { + range = collectFlowMapRange(node); + } + else { + range = node.range; + } + const result = new jsonParser07_1.ObjectASTNodeImpl(parent, node, ...toFixedOffsetLength(range, lineCounter)); + for (const it of node.items) { + if ((0, yaml_1.isPair)(it)) { + result.properties.push(convertAST(result, it, doc, lineCounter)); + } + } + return result; +} +function convertPair(node, parent, doc, lineCounter) { + const keyNode = node.key; + const valueNode = node.value; + const rangeStart = keyNode.range[0]; + let rangeEnd = keyNode.range[1]; + let nodeEnd = keyNode.range[2]; + if (valueNode) { + rangeEnd = valueNode.range[1]; + nodeEnd = valueNode.range[2]; + } + // Pair does not return a range using the key/value ranges to fake one. + const result = new jsonParser07_1.PropertyASTNodeImpl(parent, node, ...toFixedOffsetLength([rangeStart, rangeEnd, nodeEnd], lineCounter)); + if ((0, yaml_1.isAlias)(keyNode)) { + const keyAlias = new jsonParser07_1.StringASTNodeImpl(parent, keyNode, ...toOffsetLength(keyNode.range)); + keyAlias.value = keyNode.source; + result.keyNode = keyAlias; + } + else { + result.keyNode = convertAST(result, keyNode, doc, lineCounter); + } + result.valueNode = convertAST(result, valueNode, doc, lineCounter); + return result; +} +function convertSeq(node, parent, doc, lineCounter) { + const result = new jsonParser07_1.ArrayASTNodeImpl(parent, node, ...toOffsetLength(node.range)); + for (const it of node.items) { + if ((0, yaml_1.isNode)(it)) { + const convertedNode = convertAST(result, it, doc, lineCounter); + // due to recursion protection, convertAST may return undefined + if (convertedNode) { + result.children.push(convertedNode); + } + } + } + return result; +} +function convertScalar(node, parent) { + if (node.value === null) { + return new jsonParser07_1.NullASTNodeImpl(parent, node, ...toOffsetLength(node.range)); + } + switch (typeof node.value) { + case 'string': { + const result = new jsonParser07_1.StringASTNodeImpl(parent, node, ...toOffsetLength(node.range)); + result.value = node.value; + return result; + } + case 'boolean': + return new jsonParser07_1.BooleanASTNodeImpl(parent, node, node.value, ...toOffsetLength(node.range)); + case 'number': { + const result = new jsonParser07_1.NumberASTNodeImpl(parent, node, ...toOffsetLength(node.range)); + result.value = node.value; + result.isInteger = Number.isInteger(result.value); + return result; + } + default: { + // fail safe converting, we need to return some node anyway + const result = new jsonParser07_1.StringASTNodeImpl(parent, node, ...toOffsetLength(node.range)); + result.value = node.source; + return result; + } + } +} +function convertAlias(node, parent, doc, lineCounter) { + refDepth++; + const resolvedNode = node.resolve(doc); + if (resolvedNode) { + return convertAST(parent, resolvedNode, doc, lineCounter); + } + else { + const resultNode = new jsonParser07_1.StringASTNodeImpl(parent, node, ...toOffsetLength(node.range)); + resultNode.value = node.source; + return resultNode; + } +} +function toOffsetLength(range) { + return [range[0], range[1] - range[0]]; +} +exports.toOffsetLength = toOffsetLength; +/** + * Convert offsets to offset+length with fix length to not include '\n' character in some cases + * @param range the yaml ast range + * @param lineCounter the line counter + * @returns the offset and length + */ +function toFixedOffsetLength(range, lineCounter) { + const start = lineCounter.linePos(range[0]); + const end = lineCounter.linePos(range[1]); + const result = [range[0], range[1] - range[0]]; + // -1 as range may include '\n' + if (start.line !== end.line && (lineCounter.lineStarts.length !== end.line || end.col === 1)) { + result[1]--; + } + return result; +} +function collectFlowMapRange(node) { + let start = Number.MAX_SAFE_INTEGER; + let end = 0; + for (const it of node.items) { + if ((0, yaml_1.isPair)(it)) { + if ((0, yaml_1.isNode)(it.key)) { + if (it.key.range && it.key.range[0] <= start) { + start = it.key.range[0]; + } + } + if ((0, yaml_1.isNode)(it.value)) { + if (it.value.range && it.value.range[2] >= end) { + end = it.value.range[2]; + } + } + } + } + return [start, end, end]; +} +//# sourceMappingURL=ast-converter.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js.map" index a37b498f1bd67d290a967fb4f79c2278fc61fbec..7392e7892be0c716b16d7064b1c8d8e9e08c1a25 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/ast-converter.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ddda6b93c9e9a45260a4b276e5d35e35ea7625ba24f98dec658afa3c1797c472 -size 6077 +{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../../../../../src/languageservice/parser/ast-converter.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,+BAec;AAEd,iDAQwB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ACxC,IAAI,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;IACpC,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,KAAK,EAAE;QAC3B,IAAI,IAAA,aAAM,EAAC,EAAE,CAAC,EAAE;YACd,IAAI,IAAA,aAAM,EAAC,EAAE,CAAC,GAAG,CAAC,EAAE;gBAClB,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE;oBAC5C,KAAK,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;iBACzB;aACF;YAED,IAAI,IAAA,aAAM,EAAC,EAAE,CAAC,KAAK,CAAC,EAAE;gBACpB,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE;oBAC9C,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;iBACzB;aACF;SACF;KACF;IAED,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.d.ts" index f86dccd80570ff7823d2ad86d84af5bf579e4dee..26e8b66b6cbefe5203118b8c940e865283767835 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.d.ts" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3804e535a4b0612024b0b2da1803147c35d41a89983a65df4feebc9dd4bacd8d -size 265 +import { Tags } from 'yaml'; +/** + * Converts the tags from settings and adds known tags such as !include + * and returns Tags that can be used by the parser. + * @param customTags Tags for parser + */ +export declare function getCustomTags(customTags: string[]): Tags; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js" index 8ecd4d4c8cbbf13633998c4e5c0011f636a9b410..8ea7b4a06ccbcad6468fdb6ebf20c20c72815422 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js" @@ -1,3 +1,62 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dca69b6ac148289f0d687ddc27798a436906476bda14827b22447944bf98a62d -size 1823 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getCustomTags = void 0; +const yaml_1 = require("yaml"); +const arrUtils_1 = require("../utils/arrUtils"); +class CommonTagImpl { + constructor(tag, type) { + this.tag = tag; + this.type = type; + } + get collection() { + if (this.type === 'mapping') { + return 'map'; + } + if (this.type === 'sequence') { + return 'seq'; + } + return undefined; + } + resolve(value) { + if ((0, yaml_1.isMap)(value) && this.type === 'mapping') { + return value; + } + if ((0, yaml_1.isSeq)(value) && this.type === 'sequence') { + return value; + } + if (typeof value === 'string' && this.type === 'scalar') { + return value; + } + } +} +class IncludeTag { + constructor() { + this.tag = '!include'; + this.type = 'scalar'; + } + resolve(value, onError) { + if (value && value.length > 0 && value.trim()) { + return value; + } + onError('!include without value'); + } +} +/** + * Converts the tags from settings and adds known tags such as !include + * and returns Tags that can be used by the parser. + * @param customTags Tags for parser + */ +function getCustomTags(customTags) { + const tags = []; + const filteredTags = (0, arrUtils_1.filterInvalidCustomTags)(customTags); + for (const tag of filteredTags) { + const typeInfo = tag.split(' '); + const tagName = typeInfo[0]; + const tagType = (typeInfo[1] && typeInfo[1].toLowerCase()) || 'scalar'; + tags.push(new CommonTagImpl(tagName, tagType)); + } + tags.push(new IncludeTag()); + return tags; +} +exports.getCustomTags = getCustomTags; +//# sourceMappingURL=custom-tag-provider.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js.map" index 7babe985919df771d054ba08ee8952e5ab85efcf..13805b17346d2464f13751b520a1dd0b9c0f287a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/custom-tag-provider.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9b406c5d878ba8e44a5cd8a74cde147b244c6e9067415c18e8a16a9a22d4a33 -size 1616 +{"version":3,"file":"custom-tag-provider.js","sourceRoot":"","sources":["../../../../../src/languageservice/parser/custom-tag-provider.ts"],"names":[],"mappings":";;;AAAA,+BAA4D;AAC5D,gDAA4D;AAE5D,MAAM,aAAa;IAIjB,YAAY,GAAW,EAAE,IAAY;QACnC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IACD,IAAI,UAAU;QACZ,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;YAC3B,OAAO,KAAK,CAAC;SACd;QACD,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;YAC5B,OAAO,KAAK,CAAC;SACd;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,CAAC,KAAiC;QACvC,IAAI,IAAA,YAAK,EAAC,KAAK,CAAC,IAAI,IAAI,CAAC,I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sCAWC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.d.ts" index 2d70e196ae8838dbc0bca14820264b008f081bf2..861ca9be3c84c8e31c4ece8b2bfd224671af5ab8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d31ec08b63287149038154677e006fb0b0d26fdc6b17c935a8e17c1e1c5e8cd -size 331 +import { TextDocument } from 'vscode-languageserver-textdocument'; +import * as Parser from './jsonParser07'; +export declare function setKubernetesParserOption(jsonDocuments: Parser.JSONDocument[], option: boolean): void; +export declare function isKubernetesAssociatedDocument(textDocument: TextDocument, paths: string[]): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js" index d04aa8fc987c0871aa50e6694fbb7e44af84a352..f595ebe0b74f33f1ca1e1e9c4061e4c6a76a50ce 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js" @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:089579dc2d908048c1930fe07e655100bfa047ec312205a0e331d3279a26e381 -size 882 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isKubernetesAssociatedDocument = exports.setKubernetesParserOption = void 0; +const yamlSchemaService_1 = require("../services/yamlSchemaService"); +function setKubernetesParserOption(jsonDocuments, option) { + for (const jsonDoc of jsonDocuments) { + jsonDoc.isKubernetes = option; + } +} +exports.setKubernetesParserOption = setKubernetesParserOption; +function isKubernetesAssociatedDocument(textDocument, paths) { + for (const path in paths) { + const globPath = paths[path]; + const fpa = new yamlSchemaService_1.FilePatternAssociation(globPath); + if (fpa.matchesPattern(textDocument.uri)) { + return true; + } + } + return false; +} +exports.isKubernetesAssociatedDocument = isKubernetesAssociatedDocument; +//# sourceMappingURL=isKubernetes.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js.map" index aae857ec41853492184e548980a7ce3a9419794d..72184889bf874b2faee874ae657c994762dfa080 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/isKubernetes.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b714ee1dadfdcd7ee267964a2f49cff5164bbaa268cfe7cd726fcf97cfc07f7f -size 606 +{"version":3,"file":"isKubernetes.js","sourceRoot":"","sources":["../../../../../src/languageservice/parser/isKubernetes.ts"],"names":[],"mappings":";;;AAKA,qEAAuE;AAGvE,SAAgB,yBAAyB,CAAC,aAAoC,EAAE,MAAe;IAC7F,KAAK,MAAM,OAAO,IAAI,aAAa,EAAE;QACnC,OAAO,CAAC,YAAY,GAAG,MAAM,CAAC;KAC/B;AACH,CAAC;AAJD,8DAIC;AAED,SAAgB,8BAA8B,CAAC,YAA0B,EAAE,KAAe;IACxF,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,MAAM,GAAG,GAAG,IAAI,0CAAsB,CAAC,QAAQ,CAAC,CAAC;QAEjD,IAAI,GAAG,CAAC,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;YACxC,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,wEAUC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.d.ts" index cf65f266616d7f661e371bab2fb5f385e94ecdf3..00cd08f0a82e9bd65263e910eab61d37e8d6875f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.d.ts" @@ -1,3 +1,185 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be743f644e6ee8e0c862e0104b43d002943abbfe4a6719d9a2d3fb26b4439bc5 -size 7246 +import { JSONSchema, JSONSchemaRef } from '../jsonSchema'; +import { ASTNode, ObjectASTNode, ArrayASTNode, BooleanASTNode, NumberASTNode, StringASTNode, NullASTNode, PropertyASTNode, YamlNode } from '../jsonASTTypes'; +import { ErrorCode } from 'vscode-json-languageservice'; +import { Diagnostic, DiagnosticSeverity, Range } from 'vscode-languageserver-types'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { Node, Pair } from 'yaml'; +export interface IRange { + offset: number; + length: number; +} +export declare const formats: { + 'color-hex': { + errorMessage: string; + pattern: RegExp; + }; + 'date-time': { + errorMessage: string; + pattern: RegExp; + }; + date: { + errorMessage: string; + pattern: RegExp; + }; + time: { + errorMessage: string; + pattern: RegExp; + }; + email: { + errorMessage: string; + pattern: RegExp; + }; + ipv4: { + errorMessage: string; + pattern: RegExp; + }; + ipv6: { + errorMessage: string; + pattern: RegExp; + }; +}; +export declare const YAML_SOURCE = "YAML"; +export declare enum ProblemType { + missingRequiredPropWarning = "missingRequiredPropWarning", + typeMismatchWarning = "typeMismatchWarning", + constWarning = "constWarning" +} +export declare const ProblemTypeMessages: Record; +export interface IProblem { + location: IRange; + severity: DiagnosticSeverity; + code?: ErrorCode; + message: string; + source?: string; + problemType?: ProblemType; + problemArgs?: string[]; + schemaUri?: string[]; + data?: Record; +} +export declare abstract class ASTNodeImpl { + abstract readonly type: 'object' | 'property' | 'array' | 'number' | 'boolean' | 'null' | 'string'; + offset: number; + length: number; + readonly parent: ASTNode; + location: string; + readonly internalNode: YamlNode; + constructor(parent: ASTNode, internalNode: YamlNode, offset: number, length?: number); + getNodeFromOffsetEndInclusive(offset: number): ASTNode; + get children(): ASTNode[]; + toString(): string; +} +export declare class NullASTNodeImpl extends ASTNodeImpl implements NullASTNode { + type: 'null'; + value: any; + constructor(parent: ASTNode, internalNode: Node, offset: number, length?: number); +} +export declare class BooleanASTNodeImpl extends ASTNodeImpl implements BooleanASTNode { + type: 'boolean'; + value: boolean; + constructor(parent: ASTNode, internalNode: Node, boolValue: boolean, offset: number, length?: number); +} +export declare class ArrayASTNodeImpl extends ASTNodeImpl implements ArrayASTNode { + type: 'array'; + items: ASTNode[]; + constructor(parent: ASTNode, internalNode: Node, offset: number, length?: number); + get children(): ASTNode[]; +} +export declare class NumberASTNodeImpl extends ASTNodeImpl implements NumberASTNode { + type: 'number'; + isInteger: boolean; + value: number; + constructor(parent: ASTNode, internalNode: Node, offset: number, length?: number); +} +export declare class StringASTNodeImpl extends ASTNodeImpl implements StringASTNode { + type: 'string'; + value: string; + constructor(parent: ASTNode, internalNode: Node, offset: number, length?: number); +} +export declare class PropertyASTNodeImpl extends ASTNodeImpl implements PropertyASTNode { + type: 'property'; + keyNode: StringASTNode; + valueNode: ASTNode; + colonOffset: number; + constructor(parent: ObjectASTNode, internalNode: Pair, offset: number, length?: number); + get children(): ASTNode[]; +} +export declare class ObjectASTNodeImpl extends ASTNodeImpl implements ObjectASTNode { + type: 'object'; + properties: PropertyASTNode[]; + constructor(parent: ASTNode, internalNode: Node, offset: number, length?: number); + get children(): ASTNode[]; +} +export declare function asSchema(schema: JSONSchemaRef): JSONSchema | undefined; +export interface JSONDocumentConfig { + collectComments?: boolean; +} +export interface IApplicableSchema { + node: ASTNode; + inverted?: boolean; + schema: JSONSchema; +} +export declare enum EnumMatch { + Key = 0, + Enum = 1 +} +export interface ISchemaCollector { + schemas: IApplicableSchema[]; + add(schema: IApplicableSchema): void; + merge(other: ISchemaCollector): void; + include(node: ASTNode): boolean; + newSub(): ISchemaCollector; +} +export declare class ValidationResult { + problems: IProblem[]; + propertiesMatches: number; + propertiesValueMatches: number; + primaryValueMatches: number; + enumValueMatch: boolean; + enumValues: any[]; + constructor(isKubernetes: boolean); + hasProblems(): boolean; + mergeAll(validationResults: ValidationResult[]): void; + merge(validationResult: ValidationResult): void; + mergeEnumValues(validationResult: ValidationResult): void; + /** + * Merge multiple warnings with same problemType together + * @param subValidationResult another possible result + */ + mergeWarningGeneric(subValidationResult: ValidationResult, problemTypesToMerge: ProblemType[]): void; + mergePropertyMatch(propertyValidationResult: ValidationResult): void; + private mergeSources; + compareGeneric(other: ValidationResult): number; + compareKubernetes(other: ValidationResult): number; +} +export declare function newJSONDocument(root: ASTNode, diagnostics?: Diagnostic[]): JSONDocument; +export declare function getNodeValue(node: ASTNode): any; +export declare function contains(node: ASTNode, offset: number, includeRightBound?: boolean): boolean; +export declare function findNodeAtOffset(node: ASTNode, offset: number, includeRightBound: boolean): ASTNode; +export declare class JSONDocument { + readonly root: ASTNode; + readonly syntaxErrors: Diagnostic[]; + readonly comments: Range[]; + isKubernetes: boolean; + disableAdditionalProperties: boolean; + uri: string; + constructor(root: ASTNode, syntaxErrors?: Diagnostic[], comments?: Range[]); + getNodeFromOffset(offset: number, includeRightBound?: boolean): ASTNode | undefined; + getNodeFromOffsetEndInclusive(offset: number): ASTNode; + visit(visitor: (node: ASTNode) => boolean): void; + validate(textDocument: TextDocument, schema: JSONSchema): Diagnostic[]; + /** + * This method returns the list of applicable schemas + * + * currently used @param didCallFromAutoComplete flag to differentiate the method call, when it is from auto complete + * then user still types something and skip the validation for timebeing untill completed. + * On https://github.com/redhat-developer/yaml-language-server/pull/719 the auto completes need to populate the list of enum string which matches to the enum + * and on https://github.com/redhat-developer/vscode-yaml/issues/803 the validation should throw the error based on the enum string. + * + * @param schema schema + * @param focusOffset offsetValue + * @param exclude excluded Node + * @param didCallFromAutoComplete true if method called from AutoComplete + * @returns array of applicable schemas + */ + getMatchingSchemas(schema: JSONSchema, focusOffset?: number, exclude?: ASTNode, didCallFromAutoComplete?: boolean): IApplicableSchema[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js" index 0b21a4387f67d12610a2494862e0edbac71535ad..19f125e50d1526641aa4c69b132ca8a0cb5a8047 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js" @@ -1,3 +1,1350 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9bf3194404d6377292af1ceaada5e3cca63ef451e521003ea2886def2a6fe94 -size 65852 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * 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. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JSONDocument = exports.findNodeAtOffset = exports.contains = exports.getNodeValue = exports.newJSONDocument = exports.ValidationResult = exports.EnumMatch = exports.asSchema = exports.ObjectASTNodeImpl = exports.PropertyASTNodeImpl = exports.StringASTNodeImpl = exports.NumberASTNodeImpl = exports.ArrayASTNodeImpl = exports.BooleanASTNodeImpl = exports.NullASTNodeImpl = exports.ASTNodeImpl = exports.ProblemTypeMessages = exports.ProblemType = exports.YAML_SOURCE = exports.formats = void 0; +const objects_1 = require("../utils/objects"); +const schemaUtils_1 = require("../utils/schemaUtils"); +const vscode_json_languageservice_1 = require("vscode-json-languageservice"); +const nls = require("vscode-nls"); +const vscode_uri_1 = require("vscode-uri"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const arrUtils_1 = require("../utils/arrUtils"); +const strings_1 = require("../utils/strings"); +const yamlSchemaService_1 = require("../services/yamlSchemaService"); +const localize = nls.loadMessageBundle(); +const MSG_PROPERTY_NOT_ALLOWED = 'Property {0} is not allowed.'; +exports.formats = { + 'color-hex': { + errorMessage: localize('colorHexFormatWarning', 'Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.'), + pattern: /^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/, + }, + 'date-time': { + errorMessage: localize('dateTimeFormatWarning', 'String is not a RFC3339 date-time.'), + pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i, + }, + date: { + errorMessage: localize('dateFormatWarning', 'String is not a RFC3339 date.'), + pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i, + }, + time: { + errorMessage: localize('timeFormatWarning', 'String is not a RFC3339 time.'), + pattern: /^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i, + }, + email: { + errorMessage: localize('emailFormatWarning', 'String is not an e-mail address.'), + pattern: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, + }, + ipv4: { + errorMessage: localize('ipv4FormatWarning', 'String does not match IPv4 format.'), + pattern: /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/, + }, + ipv6: { + errorMessage: localize('ipv6FormatWarning', 'String does not match IPv6 format.'), + pattern: /^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i, + }, +}; +exports.YAML_SOURCE = 'YAML'; +const YAML_SCHEMA_PREFIX = 'yaml-schema: '; +var ProblemType; +(function (ProblemType) { + ProblemType["missingRequiredPropWarning"] = "missingRequiredPropWarning"; + ProblemType["typeMismatchWarning"] = "typeMismatchWarning"; + ProblemType["constWarning"] = "constWarning"; +})(ProblemType = exports.ProblemType || (exports.ProblemType = {})); +exports.ProblemTypeMessages = { + [ProblemType.missingRequiredPropWarning]: 'Missing property "{0}".', + [ProblemType.typeMismatchWarning]: 'Incorrect type. Expected "{0}".', + [ProblemType.constWarning]: 'Value must be {0}.', +}; +class ASTNodeImpl { + constructor(parent, internalNode, offset, length) { + this.offset = offset; + this.length = length; + this.parent = parent; + this.internalNode = internalNode; + } + getNodeFromOffsetEndInclusive(offset) { + const collector = []; + const findNode = (node) => { + if (offset >= node.offset && offset <= node.offset + node.length) { + const children = node.children; + for (let i = 0; i < children.length && children[i].offset <= offset; i++) { + const item = findNode(children[i]); + if (item) { + collector.push(item); + } + } + return node; + } + return null; + }; + const foundNode = findNode(this); + let currMinDist = Number.MAX_VALUE; + let currMinNode = null; + for (const currNode of collector) { + const minDist = currNode.length + currNode.offset - offset + (offset - currNode.offset); + if (minDist < currMinDist) { + currMinNode = currNode; + currMinDist = minDist; + } + } + return currMinNode || foundNode; + } + get children() { + return []; + } + toString() { + return ('type: ' + + this.type + + ' (' + + this.offset + + '/' + + this.length + + ')' + + (this.parent ? ' parent: {' + this.parent.toString() + '}' : '')); + } +} +exports.ASTNodeImpl = ASTNodeImpl; +class NullASTNodeImpl extends ASTNodeImpl { + constructor(parent, internalNode, offset, length) { + super(parent, internalNode, offset, length); + this.type = 'null'; + this.value = null; + } +} +exports.NullASTNodeImpl = NullASTNodeImpl; +class BooleanASTNodeImpl extends ASTNodeImpl { + constructor(parent, internalNode, boolValue, offset, length) { + super(parent, internalNode, offset, length); + this.type = 'boolean'; + this.value = boolValue; + } +} +exports.BooleanASTNodeImpl = BooleanASTNodeImpl; +class ArrayASTNodeImpl extends ASTNodeImpl { + constructor(parent, internalNode, offset, length) { + super(parent, internalNode, offset, length); + this.type = 'array'; + this.items = []; + } + get children() { + return this.items; + } +} +exports.ArrayASTNodeImpl = ArrayASTNodeImpl; +class NumberASTNodeImpl extends ASTNodeImpl { + constructor(parent, internalNode, offset, length) { + super(parent, internalNode, offset, length); + this.type = 'number'; + this.isInteger = true; + this.value = Number.NaN; + } +} +exports.NumberASTNodeImpl = NumberASTNodeImpl; +class StringASTNodeImpl extends ASTNodeImpl { + constructor(parent, internalNode, offset, length) { + super(parent, internalNode, offset, length); + this.type = 'string'; + this.value = ''; + } +} +exports.StringASTNodeImpl = StringASTNodeImpl; +class PropertyASTNodeImpl extends ASTNodeImpl { + constructor(parent, internalNode, offset, length) { + super(parent, internalNode, offset, length); + this.type = 'property'; + this.colonOffset = -1; + } + get children() { + return this.valueNode ? [this.keyNode, this.valueNode] : [this.keyNode]; + } +} +exports.PropertyASTNodeImpl = PropertyASTNodeImpl; +class ObjectASTNodeImpl extends ASTNodeImpl { + constructor(parent, internalNode, offset, length) { + super(parent, internalNode, offset, length); + this.type = 'object'; + this.properties = []; + } + get children() { + return this.properties; + } +} +exports.ObjectASTNodeImpl = ObjectASTNodeImpl; +function asSchema(schema) { + if (schema === undefined) { + return undefined; + } + if ((0, objects_1.isBoolean)(schema)) { + return schema ? {} : { not: {} }; + } + if (typeof schema !== 'object') { + // we need to report this case as JSONSchemaRef MUST be an Object or Boolean + console.warn(`Wrong schema: ${JSON.stringify(schema)}, it MUST be an Object or Boolean`); + schema = { + type: schema, + }; + } + return schema; +} +exports.asSchema = asSchema; +var EnumMatch; +(function (EnumMatch) { + EnumMatch[EnumMatch["Key"] = 0] = "Key"; + EnumMatch[EnumMatch["Enum"] = 1] = "Enum"; +})(EnumMatch = exports.EnumMatch || (exports.EnumMatch = {})); +class SchemaCollector { + constructor(focusOffset = -1, exclude = null) { + this.focusOffset = focusOffset; + this.exclude = exclude; + this.schemas = []; + } + add(schema) { + this.schemas.push(schema); + } + merge(other) { + this.schemas.push(...other.schemas); + } + include(node) { + return (this.focusOffset === -1 || contains(node, this.focusOffset)) && node !== this.exclude; + } + newSub() { + return new SchemaCollector(-1, this.exclude); + } +} +class NoOpSchemaCollector { + constructor() { + // ignore + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + get schemas() { + return []; + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + add(schema) { + // ignore + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + merge(other) { + // ignore + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + include(node) { + return true; + } + newSub() { + return this; + } +} +NoOpSchemaCollector.instance = new NoOpSchemaCollector(); +class ValidationResult { + constructor(isKubernetes) { + this.problems = []; + this.propertiesMatches = 0; + this.propertiesValueMatches = 0; + this.primaryValueMatches = 0; + this.enumValueMatch = false; + if (isKubernetes) { + this.enumValues = []; + } + else { + this.enumValues = null; + } + } + hasProblems() { + return !!this.problems.length; + } + mergeAll(validationResults) { + for (const validationResult of validationResults) { + this.merge(validationResult); + } + } + merge(validationResult) { + this.problems = this.problems.concat(validationResult.problems); + } + mergeEnumValues(validationResult) { + if (!this.enumValueMatch && !validationResult.enumValueMatch && this.enumValues && validationResult.enumValues) { + this.enumValues = this.enumValues.concat(validationResult.enumValues); + for (const error of this.problems) { + if (error.code === vscode_json_languageservice_1.ErrorCode.EnumValueMismatch) { + error.message = localize('enumWarning', 'Value is not accepted. Valid values: {0}.', [...new Set(this.enumValues)] + .map((v) => { + return JSON.stringify(v); + }) + .join(', ')); + } + } + } + } + /** + * Merge multiple warnings with same problemType together + * @param subValidationResult another possible result + */ + mergeWarningGeneric(subValidationResult, problemTypesToMerge) { + if (this.problems?.length) { + for (const problemType of problemTypesToMerge) { + const bestResults = this.problems.filter((p) => p.problemType === problemType); + for (const bestResult of bestResults) { + const mergingResult = subValidationResult.problems?.find((p) => p.problemType === problemType && + bestResult.location.offset === p.location.offset && + (problemType !== ProblemType.missingRequiredPropWarning || (0, arrUtils_1.isArrayEqual)(p.problemArgs, bestResult.problemArgs)) // missingProp is merged only with same problemArg + ); + if (mergingResult) { + if (mergingResult.problemArgs.length) { + mergingResult.problemArgs + .filter((p) => !bestResult.problemArgs.includes(p)) + .forEach((p) => bestResult.problemArgs.push(p)); + bestResult.message = getWarningMessage(bestResult.problemType, bestResult.problemArgs); + } + this.mergeSources(mergingResult, bestResult); + } + } + } + } + } + mergePropertyMatch(propertyValidationResult) { + this.merge(propertyValidationResult); + this.propertiesMatches++; + if (propertyValidationResult.enumValueMatch || + (!propertyValidationResult.hasProblems() && propertyValidationResult.propertiesMatches)) { + this.propertiesValueMatches++; + } + if (propertyValidationResult.enumValueMatch && propertyValidationResult.enumValues) { + this.primaryValueMatches++; + } + } + mergeSources(mergingResult, bestResult) { + const mergingSource = mergingResult.source.replace(YAML_SCHEMA_PREFIX, ''); + if (!bestResult.source.includes(mergingSource)) { + bestResult.source = bestResult.source + ' | ' + mergingSource; + } + if (!bestResult.schemaUri.includes(mergingResult.schemaUri[0])) { + bestResult.schemaUri = bestResult.schemaUri.concat(mergingResult.schemaUri); + } + } + compareGeneric(other) { + const hasProblems = this.hasProblems(); + if (hasProblems !== other.hasProblems()) { + return hasProblems ? -1 : 1; + } + if (this.enumValueMatch !== other.enumValueMatch) { + return other.enumValueMatch ? -1 : 1; + } + if (this.propertiesValueMatches !== other.propertiesValueMatches) { + return this.propertiesValueMatches - other.propertiesValueMatches; + } + if (this.primaryValueMatches !== other.primaryValueMatches) { + return this.primaryValueMatches - other.primaryValueMatches; + } + return this.propertiesMatches - other.propertiesMatches; + } + compareKubernetes(other) { + const hasProblems = this.hasProblems(); + if (this.propertiesMatches !== other.propertiesMatches) { + return this.propertiesMatches - other.propertiesMatches; + } + if (this.enumValueMatch !== other.enumValueMatch) { + return other.enumValueMatch ? -1 : 1; + } + if (this.primaryValueMatches !== other.primaryValueMatches) { + return this.primaryValueMatches - other.primaryValueMatches; + } + if (this.propertiesValueMatches !== other.propertiesValueMatches) { + return this.propertiesValueMatches - other.propertiesValueMatches; + } + if (hasProblems !== other.hasProblems()) { + return hasProblems ? -1 : 1; + } + return this.propertiesMatches - other.propertiesMatches; + } +} +exports.ValidationResult = ValidationResult; +function newJSONDocument(root, diagnostics = []) { + return new JSONDocument(root, diagnostics, []); +} +exports.newJSONDocument = newJSONDocument; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function getNodeValue(node) { + switch (node.type) { + case 'array': + return node.children.map(getNodeValue); + case 'object': { + const obj = Object.create(null); + for (let _i = 0, _a = node.children; _i < _a.length; _i++) { + const prop = _a[_i]; + const valueNode = prop.children[1]; + if (valueNode) { + obj[prop.children[0].value] = getNodeValue(valueNode); + } + } + return obj; + } + case 'null': + case 'string': + case 'number': + case 'boolean': + return node.value; + default: + return undefined; + } +} +exports.getNodeValue = getNodeValue; +function contains(node, offset, includeRightBound = false) { + return ((offset >= node.offset && offset <= node.offset + node.length) || (includeRightBound && offset === node.offset + node.length)); +} +exports.contains = contains; +function findNodeAtOffset(node, offset, includeRightBound) { + if (includeRightBound === void 0) { + includeRightBound = false; + } + if (contains(node, offset, includeRightBound)) { + const children = node.children; + if (Array.isArray(children)) { + for (let i = 0; i < children.length && children[i].offset <= offset; i++) { + const item = findNodeAtOffset(children[i], offset, includeRightBound); + if (item) { + return item; + } + } + } + return node; + } + return undefined; +} +exports.findNodeAtOffset = findNodeAtOffset; +class JSONDocument { + constructor(root, syntaxErrors = [], comments = []) { + this.root = root; + this.syntaxErrors = syntaxErrors; + this.comments = comments; + } + getNodeFromOffset(offset, includeRightBound = false) { + if (this.root) { + return findNodeAtOffset(this.root, offset, includeRightBound); + } + return undefined; + } + getNodeFromOffsetEndInclusive(offset) { + return this.root && this.root.getNodeFromOffsetEndInclusive(offset); + } + visit(visitor) { + if (this.root) { + const doVisit = (node) => { + let ctn = visitor(node); + const children = node.children; + if (Array.isArray(children)) { + for (let i = 0; i < children.length && ctn; i++) { + ctn = doVisit(children[i]); + } + } + return ctn; + }; + doVisit(this.root); + } + } + validate(textDocument, schema) { + if (this.root && schema) { + const validationResult = new ValidationResult(this.isKubernetes); + validate(this.root, schema, schema, validationResult, NoOpSchemaCollector.instance, { + isKubernetes: this.isKubernetes, + disableAdditionalProperties: this.disableAdditionalProperties, + uri: this.uri, + }); + return validationResult.problems.map((p) => { + const range = vscode_languageserver_types_1.Range.create(textDocument.positionAt(p.location.offset), textDocument.positionAt(p.location.offset + p.location.length)); + const diagnostic = vscode_languageserver_types_1.Diagnostic.create(range, p.message, p.severity, p.code ? p.code : vscode_json_languageservice_1.ErrorCode.Undefined, p.source); + diagnostic.data = { schemaUri: p.schemaUri, ...p.data }; + return diagnostic; + }); + } + return null; + } + /** + * This method returns the list of applicable schemas + * + * currently used @param didCallFromAutoComplete flag to differentiate the method call, when it is from auto complete + * then user still types something and skip the validation for timebeing untill completed. + * On https://github.com/redhat-developer/yaml-language-server/pull/719 the auto completes need to populate the list of enum string which matches to the enum + * and on https://github.com/redhat-developer/vscode-yaml/issues/803 the validation should throw the error based on the enum string. + * + * @param schema schema + * @param focusOffset offsetValue + * @param exclude excluded Node + * @param didCallFromAutoComplete true if method called from AutoComplete + * @returns array of applicable schemas + */ + getMatchingSchemas(schema, focusOffset = -1, exclude = null, didCallFromAutoComplete) { + const matchingSchemas = new SchemaCollector(focusOffset, exclude); + if (this.root && schema) { + validate(this.root, schema, schema, new ValidationResult(this.isKubernetes), matchingSchemas, { + isKubernetes: this.isKubernetes, + disableAdditionalProperties: this.disableAdditionalProperties, + uri: this.uri, + callFromAutoComplete: didCallFromAutoComplete, + }); + } + return matchingSchemas.schemas; + } +} +exports.JSONDocument = JSONDocument; +function validate(node, schema, originalSchema, validationResult, matchingSchemas, options +// eslint-disable-next-line @typescript-eslint/no-explicit-any +) { + const { isKubernetes, callFromAutoComplete } = options; + if (!node) { + return; + } + // schema should be an Object + if (typeof schema !== 'object') { + return; + } + if (!schema.url) { + schema.url = originalSchema.url; + } + schema.closestTitle = schema.title || originalSchema.closestTitle; + switch (node.type) { + case 'object': + _validateObjectNode(node, schema, validationResult, matchingSchemas); + break; + case 'array': + _validateArrayNode(node, schema, validationResult, matchingSchemas); + break; + case 'string': + _validateStringNode(node, schema, validationResult); + break; + case 'number': + _validateNumberNode(node, schema, validationResult); + break; + case 'property': + return validate(node.valueNode, schema, schema, validationResult, matchingSchemas, options); + } + _validateNode(); + matchingSchemas.add({ node: node, schema: schema }); + function _validateNode() { + function matchesType(type) { + return node.type === type || (type === 'integer' && node.type === 'number' && node.isInteger); + } + if (Array.isArray(schema.type)) { + if (!schema.type.some(matchesType)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.errorMessage || + localize('typeArrayMismatchWarning', 'Incorrect type. Expected one of {0}.', schema.type.join(', ')), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + else if (schema.type) { + if (!matchesType(schema.type)) { + //get more specific name than just object + const schemaType = schema.type === 'object' ? (0, schemaUtils_1.getSchemaTypeName)(schema) : schema.type; + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.errorMessage || getWarningMessage(ProblemType.typeMismatchWarning, [schemaType]), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + problemType: ProblemType.typeMismatchWarning, + problemArgs: [schemaType], + }); + } + } + if (Array.isArray(schema.allOf)) { + for (const subSchemaRef of schema.allOf) { + validate(node, asSchema(subSchemaRef), schema, validationResult, matchingSchemas, options); + } + } + const notSchema = asSchema(schema.not); + if (notSchema) { + const subValidationResult = new ValidationResult(isKubernetes); + const subMatchingSchemas = matchingSchemas.newSub(); + validate(node, notSchema, schema, subValidationResult, subMatchingSchemas, options); + if (!subValidationResult.hasProblems()) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('notSchemaWarning', 'Matches a schema that is not allowed.'), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + for (const ms of subMatchingSchemas.schemas) { + ms.inverted = !ms.inverted; + matchingSchemas.add(ms); + } + } + const testAlternatives = (alternatives, maxOneMatch) => { + const matches = []; + const subMatches = []; + const noPropertyMatches = []; + // remember the best match that is used for error messages + let bestMatch = null; + for (const subSchemaRef of alternatives) { + const subSchema = { ...asSchema(subSchemaRef) }; + const subValidationResult = new ValidationResult(isKubernetes); + const subMatchingSchemas = matchingSchemas.newSub(); + validate(node, subSchema, schema, subValidationResult, subMatchingSchemas, options); + if (!subValidationResult.hasProblems() || callFromAutoComplete) { + matches.push(subSchema); + subMatches.push(subSchema); + if (subValidationResult.propertiesMatches === 0) { + noPropertyMatches.push(subSchema); + } + if (subSchema.format) { + subMatches.pop(); + } + } + if (!bestMatch) { + bestMatch = { + schema: subSchema, + validationResult: subValidationResult, + matchingSchemas: subMatchingSchemas, + }; + } + else if (isKubernetes) { + bestMatch = alternativeComparison(subValidationResult, bestMatch, subSchema, subMatchingSchemas); + } + else { + bestMatch = genericComparison(node, maxOneMatch, subValidationResult, bestMatch, subSchema, subMatchingSchemas); + } + } + if (subMatches.length > 1 && (subMatches.length > 1 || noPropertyMatches.length === 0) && maxOneMatch) { + validationResult.problems.push({ + location: { offset: node.offset, length: 1 }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('oneOfWarning', 'Matches multiple schemas when only one must validate.'), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + if (bestMatch !== null) { + validationResult.merge(bestMatch.validationResult); + validationResult.propertiesMatches += bestMatch.validationResult.propertiesMatches; + validationResult.propertiesValueMatches += bestMatch.validationResult.propertiesValueMatches; + validationResult.enumValueMatch = validationResult.enumValueMatch || bestMatch.validationResult.enumValueMatch; + if (bestMatch.validationResult.enumValues?.length) { + validationResult.enumValues = (validationResult.enumValues || []).concat(bestMatch.validationResult.enumValues); + } + matchingSchemas.merge(bestMatch.matchingSchemas); + } + return matches.length; + }; + if (Array.isArray(schema.anyOf)) { + testAlternatives(schema.anyOf, false); + } + if (Array.isArray(schema.oneOf)) { + testAlternatives(schema.oneOf, true); + } + const testBranch = (schema, originalSchema) => { + const subValidationResult = new ValidationResult(isKubernetes); + const subMatchingSchemas = matchingSchemas.newSub(); + validate(node, asSchema(schema), originalSchema, subValidationResult, subMatchingSchemas, options); + validationResult.merge(subValidationResult); + validationResult.propertiesMatches += subValidationResult.propertiesMatches; + validationResult.propertiesValueMatches += subValidationResult.propertiesValueMatches; + matchingSchemas.merge(subMatchingSchemas); + }; + const testCondition = (ifSchema, originalSchema, thenSchema, elseSchema) => { + const subSchema = asSchema(ifSchema); + const subValidationResult = new ValidationResult(isKubernetes); + const subMatchingSchemas = matchingSchemas.newSub(); + validate(node, subSchema, originalSchema, subValidationResult, subMatchingSchemas, options); + matchingSchemas.merge(subMatchingSchemas); + const { filePatternAssociation } = subSchema; + if (filePatternAssociation) { + const association = new yamlSchemaService_1.FilePatternAssociation(filePatternAssociation); + if (!association.matchesPattern(options.uri)) { + subValidationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('ifFilePatternAssociation', `filePatternAssociation '${filePatternAssociation}' does not match with doc uri '${options.uri}'.`), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + // don't want to expose the error up to code-completion results + // validationResult.merge(subValidationResult); + } + } + if (!subValidationResult.hasProblems()) { + if (thenSchema) { + testBranch(thenSchema, originalSchema); + } + } + else if (elseSchema) { + testBranch(elseSchema, originalSchema); + } + }; + const ifSchema = asSchema(schema.if); + if (ifSchema) { + testCondition(ifSchema, schema, asSchema(schema.then), asSchema(schema.else)); + } + if (Array.isArray(schema.enum)) { + const val = getNodeValue(node); + let enumValueMatch = false; + for (const e of schema.enum) { + if ((0, objects_1.equals)(val, e) || (callFromAutoComplete && (0, objects_1.isString)(val) && (0, objects_1.isString)(e) && val && e.startsWith(val))) { + enumValueMatch = true; + break; + } + } + validationResult.enumValues = schema.enum; + validationResult.enumValueMatch = enumValueMatch; + if (!enumValueMatch) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + code: vscode_json_languageservice_1.ErrorCode.EnumValueMismatch, + message: schema.errorMessage || + localize('enumWarning', 'Value is not accepted. Valid values: {0}.', schema.enum + .map((v) => { + return JSON.stringify(v); + }) + .join(', ')), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + if ((0, objects_1.isDefined)(schema.const)) { + const val = getNodeValue(node); + if (!(0, objects_1.equals)(val, schema.const) && + !(callFromAutoComplete && (0, objects_1.isString)(val) && (0, objects_1.isString)(schema.const) && schema.const.startsWith(val))) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + code: vscode_json_languageservice_1.ErrorCode.EnumValueMismatch, + problemType: ProblemType.constWarning, + message: schema.errorMessage || getWarningMessage(ProblemType.constWarning, [JSON.stringify(schema.const)]), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + problemArgs: [JSON.stringify(schema.const)], + }); + validationResult.enumValueMatch = false; + } + else { + validationResult.enumValueMatch = true; + } + validationResult.enumValues = [schema.const]; + } + if (schema.deprecationMessage && node.parent) { + validationResult.problems.push({ + location: { offset: node.parent.offset, length: node.parent.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.deprecationMessage, + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + function _validateNumberNode(node, schema, validationResult) { + const val = node.value; + if ((0, objects_1.isNumber)(schema.multipleOf)) { + if (val % schema.multipleOf !== 0) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('multipleOfWarning', 'Value is not divisible by {0}.', schema.multipleOf), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + function getExclusiveLimit(limit, exclusive) { + if ((0, objects_1.isNumber)(exclusive)) { + return exclusive; + } + if ((0, objects_1.isBoolean)(exclusive) && exclusive) { + return limit; + } + return undefined; + } + function getLimit(limit, exclusive) { + if (!(0, objects_1.isBoolean)(exclusive) || !exclusive) { + return limit; + } + return undefined; + } + const exclusiveMinimum = getExclusiveLimit(schema.minimum, schema.exclusiveMinimum); + if ((0, objects_1.isNumber)(exclusiveMinimum) && val <= exclusiveMinimum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('exclusiveMinimumWarning', 'Value is below the exclusive minimum of {0}.', exclusiveMinimum), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + const exclusiveMaximum = getExclusiveLimit(schema.maximum, schema.exclusiveMaximum); + if ((0, objects_1.isNumber)(exclusiveMaximum) && val >= exclusiveMaximum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('exclusiveMaximumWarning', 'Value is above the exclusive maximum of {0}.', exclusiveMaximum), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + const minimum = getLimit(schema.minimum, schema.exclusiveMinimum); + if ((0, objects_1.isNumber)(minimum) && val < minimum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('minimumWarning', 'Value is below the minimum of {0}.', minimum), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + const maximum = getLimit(schema.maximum, schema.exclusiveMaximum); + if ((0, objects_1.isNumber)(maximum) && val > maximum) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('maximumWarning', 'Value is above the maximum of {0}.', maximum), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + function _validateStringNode(node, schema, validationResult) { + if ((0, objects_1.isNumber)(schema.minLength) && node.value.length < schema.minLength) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('minLengthWarning', 'String is shorter than the minimum length of {0}.', schema.minLength), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + if ((0, objects_1.isNumber)(schema.maxLength) && node.value.length > schema.maxLength) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('maxLengthWarning', 'String is longer than the maximum length of {0}.', schema.maxLength), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + if ((0, objects_1.isString)(schema.pattern)) { + const regex = (0, strings_1.safeCreateUnicodeRegExp)(schema.pattern); + if (!regex.test(node.value)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.patternErrorMessage || + schema.errorMessage || + localize('patternWarning', 'String does not match the pattern of "{0}".', schema.pattern), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + if (schema.format) { + switch (schema.format) { + case 'uri': + case 'uri-reference': + { + let errorMessage; + if (!node.value) { + errorMessage = localize('uriEmpty', 'URI expected.'); + } + else { + try { + const uri = vscode_uri_1.URI.parse(node.value); + if (!uri.scheme && schema.format === 'uri') { + errorMessage = localize('uriSchemeMissing', 'URI with a scheme is expected.'); + } + } + catch (e) { + errorMessage = e.message; + } + } + if (errorMessage) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.patternErrorMessage || + schema.errorMessage || + localize('uriFormatWarning', 'String is not a URI: {0}', errorMessage), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + break; + case 'color-hex': + case 'date-time': + case 'date': + case 'time': + case 'email': + case 'ipv4': + case 'ipv6': + { + const format = exports.formats[schema.format]; + if (!node.value || !format.pattern.test(node.value)) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.patternErrorMessage || schema.errorMessage || format.errorMessage, + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + break; + default: + } + } + } + function _validateArrayNode(node, schema, validationResult, matchingSchemas) { + if (Array.isArray(schema.items)) { + const subSchemas = schema.items; + for (let index = 0; index < subSchemas.length; index++) { + const subSchemaRef = subSchemas[index]; + const subSchema = asSchema(subSchemaRef); + const itemValidationResult = new ValidationResult(isKubernetes); + const item = node.items[index]; + if (item) { + validate(item, subSchema, schema, itemValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(itemValidationResult); + validationResult.mergeEnumValues(itemValidationResult); + } + else if (node.items.length >= subSchemas.length) { + validationResult.propertiesValueMatches++; + } + } + if (node.items.length > subSchemas.length) { + if (typeof schema.additionalItems === 'object') { + for (let i = subSchemas.length; i < node.items.length; i++) { + const itemValidationResult = new ValidationResult(isKubernetes); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + validate(node.items[i], schema.additionalItems, schema, itemValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(itemValidationResult); + validationResult.mergeEnumValues(itemValidationResult); + } + } + else if (schema.additionalItems === false) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('additionalItemsWarning', 'Array has too many items according to schema. Expected {0} or fewer.', subSchemas.length), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + } + else { + const itemSchema = asSchema(schema.items); + if (itemSchema) { + const itemValidationResult = new ValidationResult(isKubernetes); + node.items.forEach((item) => { + if (itemSchema.oneOf && itemSchema.oneOf.length === 1) { + const subSchemaRef = itemSchema.oneOf[0]; + const subSchema = { ...asSchema(subSchemaRef) }; + subSchema.title = schema.title; + subSchema.closestTitle = schema.closestTitle; + validate(item, subSchema, schema, itemValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(itemValidationResult); + validationResult.mergeEnumValues(itemValidationResult); + } + else { + validate(item, itemSchema, schema, itemValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(itemValidationResult); + validationResult.mergeEnumValues(itemValidationResult); + } + }); + } + } + const containsSchema = asSchema(schema.contains); + if (containsSchema) { + const doesContain = node.items.some((item) => { + const itemValidationResult = new ValidationResult(isKubernetes); + validate(item, containsSchema, schema, itemValidationResult, NoOpSchemaCollector.instance, options); + return !itemValidationResult.hasProblems(); + }); + if (!doesContain) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.errorMessage || localize('requiredItemMissingWarning', 'Array does not contain required item.'), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + if ((0, objects_1.isNumber)(schema.minItems) && node.items.length < schema.minItems) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('minItemsWarning', 'Array has too few items. Expected {0} or more.', schema.minItems), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + if ((0, objects_1.isNumber)(schema.maxItems) && node.items.length > schema.maxItems) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('maxItemsWarning', 'Array has too many items. Expected {0} or fewer.', schema.maxItems), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + if (schema.uniqueItems === true) { + const values = getNodeValue(node); + const duplicates = values.some((value, index) => { + return index !== values.lastIndexOf(value); + }); + if (duplicates) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('uniqueItemsWarning', 'Array has duplicate items.'), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + } + function _validateObjectNode(node, schema, validationResult, matchingSchemas) { + const seenKeys = Object.create(null); + const unprocessedProperties = []; + const unprocessedNodes = [...node.properties]; + while (unprocessedNodes.length > 0) { + const propertyNode = unprocessedNodes.pop(); + const key = propertyNode.keyNode.value; + //Replace the merge key with the actual values of what the node value points to in seen keys + if (key === '<<' && propertyNode.valueNode) { + switch (propertyNode.valueNode.type) { + case 'object': { + unprocessedNodes.push(...propertyNode.valueNode['properties']); + break; + } + case 'array': { + propertyNode.valueNode['items'].forEach((sequenceNode) => { + if (sequenceNode && (0, objects_1.isIterable)(sequenceNode['properties'])) { + unprocessedNodes.push(...sequenceNode['properties']); + } + }); + break; + } + default: { + break; + } + } + } + else { + seenKeys[key] = propertyNode.valueNode; + unprocessedProperties.push(key); + } + } + if (Array.isArray(schema.required)) { + for (const propertyName of schema.required) { + if (seenKeys[propertyName] === undefined) { + const keyNode = node.parent && node.parent.type === 'property' && node.parent.keyNode; + const location = keyNode ? { offset: keyNode.offset, length: keyNode.length } : { offset: node.offset, length: 1 }; + validationResult.problems.push({ + location: location, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: getWarningMessage(ProblemType.missingRequiredPropWarning, [propertyName]), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + problemArgs: [propertyName], + problemType: ProblemType.missingRequiredPropWarning, + }); + } + } + } + const propertyProcessed = (prop) => { + let index = unprocessedProperties.indexOf(prop); + while (index >= 0) { + unprocessedProperties.splice(index, 1); + index = unprocessedProperties.indexOf(prop); + } + }; + if (schema.properties) { + for (const propertyName of Object.keys(schema.properties)) { + propertyProcessed(propertyName); + const propertySchema = schema.properties[propertyName]; + const child = seenKeys[propertyName]; + if (child) { + if ((0, objects_1.isBoolean)(propertySchema)) { + if (!propertySchema) { + const propertyNode = child.parent; + validationResult.problems.push({ + location: { + offset: propertyNode.keyNode.offset, + length: propertyNode.keyNode.length, + }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', MSG_PROPERTY_NOT_ALLOWED, propertyName), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + else { + validationResult.propertiesMatches++; + validationResult.propertiesValueMatches++; + } + } + else { + propertySchema.url = schema.url ?? originalSchema.url; + const propertyValidationResult = new ValidationResult(isKubernetes); + validate(child, propertySchema, schema, propertyValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(propertyValidationResult); + validationResult.mergeEnumValues(propertyValidationResult); + } + } + } + } + if (schema.patternProperties) { + for (const propertyPattern of Object.keys(schema.patternProperties)) { + const regex = (0, strings_1.safeCreateUnicodeRegExp)(propertyPattern); + for (const propertyName of unprocessedProperties.slice(0)) { + if (regex.test(propertyName)) { + propertyProcessed(propertyName); + const child = seenKeys[propertyName]; + if (child) { + const propertySchema = schema.patternProperties[propertyPattern]; + if ((0, objects_1.isBoolean)(propertySchema)) { + if (!propertySchema) { + const propertyNode = child.parent; + validationResult.problems.push({ + location: { + offset: propertyNode.keyNode.offset, + length: propertyNode.keyNode.length, + }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', MSG_PROPERTY_NOT_ALLOWED, propertyName), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + else { + validationResult.propertiesMatches++; + validationResult.propertiesValueMatches++; + } + } + else { + const propertyValidationResult = new ValidationResult(isKubernetes); + validate(child, propertySchema, schema, propertyValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(propertyValidationResult); + validationResult.mergeEnumValues(propertyValidationResult); + } + } + } + } + } + } + if (typeof schema.additionalProperties === 'object') { + for (const propertyName of unprocessedProperties) { + const child = seenKeys[propertyName]; + if (child) { + const propertyValidationResult = new ValidationResult(isKubernetes); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + validate(child, schema.additionalProperties, schema, propertyValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(propertyValidationResult); + validationResult.mergeEnumValues(propertyValidationResult); + } + } + } + else if (schema.additionalProperties === false || + (schema.type === 'object' && schema.additionalProperties === undefined && options.disableAdditionalProperties === true)) { + if (unprocessedProperties.length > 0) { + const possibleProperties = schema.properties && Object.keys(schema.properties).filter((prop) => !seenKeys[prop]); + for (const propertyName of unprocessedProperties) { + const child = seenKeys[propertyName]; + if (child) { + let propertyNode = null; + if (child.type !== 'property') { + propertyNode = child.parent; + if (propertyNode.type === 'object') { + propertyNode = propertyNode.properties[0]; + } + } + else { + propertyNode = child; + } + const problem = { + location: { + offset: propertyNode.keyNode.offset, + length: propertyNode.keyNode.length, + }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: schema.errorMessage || localize('DisallowedExtraPropWarning', MSG_PROPERTY_NOT_ALLOWED, propertyName), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }; + if (possibleProperties?.length) { + problem.data = { properties: possibleProperties }; + } + validationResult.problems.push(problem); + } + } + } + } + if ((0, objects_1.isNumber)(schema.maxProperties)) { + if (node.properties.length > schema.maxProperties) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('MaxPropWarning', 'Object has more properties than limit of {0}.', schema.maxProperties), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + if ((0, objects_1.isNumber)(schema.minProperties)) { + if (node.properties.length < schema.minProperties) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('MinPropWarning', 'Object has fewer properties than the required number of {0}', schema.minProperties), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + } + if (schema.dependencies) { + for (const key of Object.keys(schema.dependencies)) { + const prop = seenKeys[key]; + if (prop) { + const propertyDep = schema.dependencies[key]; + if (Array.isArray(propertyDep)) { + for (const requiredProp of propertyDep) { + if (!seenKeys[requiredProp]) { + validationResult.problems.push({ + location: { offset: node.offset, length: node.length }, + severity: vscode_languageserver_types_1.DiagnosticSeverity.Warning, + message: localize('RequiredDependentPropWarning', 'Object is missing property {0} required by property {1}.', requiredProp, key), + source: getSchemaSource(schema, originalSchema), + schemaUri: getSchemaUri(schema, originalSchema), + }); + } + else { + validationResult.propertiesValueMatches++; + } + } + } + else { + const propertySchema = asSchema(propertyDep); + if (propertySchema) { + const propertyValidationResult = new ValidationResult(isKubernetes); + validate(node, propertySchema, schema, propertyValidationResult, matchingSchemas, options); + validationResult.mergePropertyMatch(propertyValidationResult); + validationResult.mergeEnumValues(propertyValidationResult); + } + } + } + } + } + const propertyNames = asSchema(schema.propertyNames); + if (propertyNames) { + for (const f of node.properties) { + const key = f.keyNode; + if (key) { + validate(key, propertyNames, schema, validationResult, NoOpSchemaCollector.instance, options); + } + } + } + } + //Alternative comparison is specifically used by the kubernetes/openshift schema but may lead to better results then genericComparison depending on the schema + // eslint-disable-next-line @typescript-eslint/no-explicit-any + function alternativeComparison(subValidationResult, bestMatch, subSchema, subMatchingSchemas) { + const compareResult = subValidationResult.compareKubernetes(bestMatch.validationResult); + if (compareResult > 0) { + // our node is the best matching so far + bestMatch = { + schema: subSchema, + validationResult: subValidationResult, + matchingSchemas: subMatchingSchemas, + }; + } + else if (compareResult === 0) { + // there's already a best matching but we are as good + bestMatch.matchingSchemas.merge(subMatchingSchemas); + bestMatch.validationResult.mergeEnumValues(subValidationResult); + } + return bestMatch; + } + //genericComparison tries to find the best matching schema using a generic comparison + function genericComparison(node, maxOneMatch, subValidationResult, bestMatch, subSchema, subMatchingSchemas) { + if (!maxOneMatch && + !subValidationResult.hasProblems() && + (!bestMatch.validationResult.hasProblems() || callFromAutoComplete)) { + // no errors, both are equally good matches + bestMatch.matchingSchemas.merge(subMatchingSchemas); + bestMatch.validationResult.propertiesMatches += subValidationResult.propertiesMatches; + bestMatch.validationResult.propertiesValueMatches += subValidationResult.propertiesValueMatches; + } + else { + const compareResult = subValidationResult.compareGeneric(bestMatch.validationResult); + if (compareResult > 0 || + (compareResult === 0 && + maxOneMatch && + bestMatch.schema.type === 'object' && + node.type !== 'null' && + node.type !== bestMatch.schema.type)) { + // our node is the best matching so far + bestMatch = { + schema: subSchema, + validationResult: subValidationResult, + matchingSchemas: subMatchingSchemas, + }; + } + else if (compareResult === 0) { + // there's already a best matching but we are as good + bestMatch.matchingSchemas.merge(subMatchingSchemas); + bestMatch.validationResult.mergeEnumValues(subValidationResult); + bestMatch.validationResult.mergeWarningGeneric(subValidationResult, [ + ProblemType.missingRequiredPropWarning, + ProblemType.typeMismatchWarning, + ProblemType.constWarning, + ]); + } + } + return bestMatch; + } +} +function getSchemaSource(schema, originalSchema) { + if (schema) { + let label; + if (schema.title) { + label = schema.title; + } + else if (schema.closestTitle) { + label = schema.closestTitle; + } + else if (originalSchema.closestTitle) { + label = originalSchema.closestTitle; + } + else { + const uriString = schema.url ?? originalSchema.url; + if (uriString) { + const url = vscode_uri_1.URI.parse(uriString); + if (url.scheme === 'file') { + label = url.fsPath; + } + label = url.toString(); + } + } + if (label) { + return `${YAML_SCHEMA_PREFIX}${label}`; + } + } + return exports.YAML_SOURCE; +} +function getSchemaUri(schema, originalSchema) { + const uriString = schema.url ?? originalSchema.url; + return uriString ? [uriString] : []; +} +function getWarningMessage(problemType, args) { + return localize(problemType, exports.ProblemTypeMessages[problemType], args.join(' | ')); +} +//# sourceMappingURL=jsonParser07.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js.map" index d3c88bed42796c6f50e9e4561337cddcfbbc509d..0f474632253ddd7f43d7ea610e147aad68ed2632 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/jsonParser07.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:edc8620decf0200862d50ba2ec41330a7b4fee1b7555b2df60ade6da7361249d -size 46635 +{"version":3,"file":"jsonParser07.js","sourceRoot":"","sources":["../../../../../src/languageservice/parser/jsonParser07.ts"],"names":[],"mappings":";AAAA;;;;gGAIgG;;;AAGhG,8CAAgG;AAChG,sDAAyD;AAYzD,6EAAwD;AACxD,kCAAkC;AAClC,2CAAiC;AACjC,6EAAoF;AAEpF,gDAAiD;AAEjD,8CAA2D;AAC3D,qEAAuE;AAEvE,MAAM,QAAQ,GAAG,GAAG,CAAC,iBAAiB,EAAE,CAAC;AACzC,MAAM,wBAAwB,GAAG,8BAA8B,CAAC;AAOnD,QAAA,OAAO,GAAG;IACrB,WAAW,EAAE;QACX,YAAY,EAAE,QAAQ,CAAC,uBAAuB,EAAE,8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,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC;iBACpB;gBACD,KAAK,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;aACxB;SACF;QACD,IAAI,KAAK,EAAE;YACT,OAAO,GAAG,kBAAkB,GAAG,KAAK,EAAE,CAAC;SACxC;KACF;IAED,OAAO,mBAAW,CAAC;AACrB,CAAC;AAED,SAAS,YAAY,CAAC,MAAkB,EAAE,cAA0B;IAClE,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC;IACnD,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC;AAED,SAAS,iBAAiB,CAAC,WAAwB,EAAE,IAAc;IACjE,OAAO,QAAQ,CAAC,WAAW,EAAE,2BAAmB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AACnF,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.d.ts" index f63c458cd3fd75d8dfd6fa70a2fb3f33d561c27e..3f02ed1af4363acdfe970cfd4f16a8440ae32c6e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.d.ts" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f36d9f4d1688995e2ae29c020419f62e047f05573975e7ba79c1e41f742099d -size 198 +/** + * Parse a boolean according to the specification + * + * Return: + * true if its a true value + * false if its a false value + */ +export declare function parseYamlBoolean(input: string): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js" index f5cd0b0d2448b186e25dcc0de6758b549d20f565..29506901475d45bbe263a547e90934a0839e3c51 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2992b73db170dd0b64d35079b1887c19bf8aea3b8baff51e73bbc84e3d374e9d -size 686 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseYamlBoolean = void 0; +/** + * Parse a boolean according to the specification + * + * Return: + * true if its a true value + * false if its a false value + */ +function parseYamlBoolean(input) { + if (['true', 'True', 'TRUE', 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON'].lastIndexOf(input) >= 0) { + return true; + } + else if (['false', 'False', 'FALSE', 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'].lastIndexOf(input) >= 0) { + return false; + } + throw `Invalid boolean "${input}"`; +} +exports.parseYamlBoolean = parseYamlBoolean; +//# sourceMappingURL=scalar-type.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js.map" index a00f79781ad061ec82cefb8261717c617a4d6568..9babfe61d2039ce228a4e93303c3841dadfd91d2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/scalar-type.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88692da8f80ad053efa6aab0a2a25f04465173aa22ff155baaf0602b7c76b2ac -size 631 +{"version":3,"file":"scalar-type.js","sourceRoot":"","sources":["../../../../../src/languageservice/parser/scalar-type.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QACrG,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QAC/G,OAAO,KAAK,CAAC;KACd;IACD,MAAM,oBAAoB,KAAK,GAAG,CAAC;AACrC,CAAC;AAPD,4CAOC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.d.ts" index 09f84669e92148978dbbe553d4ae6a0962f4a1c5..332abd0531862e4cd891aac55b6681fcdaf20481 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.d.ts" @@ -1,3 +1,71 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b5f7b75c275d55cb364fde1994aa6fcabc8a37d0619f7547c1472be2d995af0 -size 2672 +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { JSONDocument } from './jsonParser07'; +import { Document, LineCounter } from 'yaml'; +import { ASTNode, YamlNode } from '../jsonASTTypes'; +import { ParserOptions } from './yamlParser07'; +import { YAMLDocDiagnostic } from '../utils/parseUtils'; +import { TextBuffer } from '../utils/textBuffer'; +import { Token } from 'yaml/dist/parse/cst'; +/** + * These documents are collected into a final YAMLDocument + * and passed to the `parseYAML` caller. + */ +export declare class SingleYAMLDocument extends JSONDocument { + private lineCounter; + private _internalDocument; + root: ASTNode; + currentDocIndex: number; + private _lineComments; + constructor(lineCounter?: LineCounter); + /** + * Create a deep copy of this document + */ + clone(): SingleYAMLDocument; + private collectLineComments; + /** + * Updates the internal AST tree of the object + * from the internal node. This is call whenever the + * internalDocument is set but also can be called to + * reflect any changes on the underlying document + * without setting the internalDocument explicitly. + */ + updateFromInternalDocument(): void; + set internalDocument(document: Document); + get internalDocument(): Document; + get lineComments(): string[]; + set lineComments(val: string[]); + get errors(): YAMLDocDiagnostic[]; + get warnings(): YAMLDocDiagnostic[]; + getNodeFromPosition(positionOffset: number, textBuffer: TextBuffer, configuredIndentation?: number): [YamlNode | undefined, boolean]; + findClosestNode(offset: number, textBuffer: TextBuffer, configuredIndentation?: number): YamlNode; + private getProperParentByIndentation; + getParent(node: YamlNode): YamlNode | undefined; +} +/** + * Contains the SingleYAMLDocuments, to be passed + * to the `parseYAML` caller. + */ +export declare class YAMLDocument { + documents: SingleYAMLDocument[]; + tokens: Token[]; + private errors; + private warnings; + constructor(documents: SingleYAMLDocument[], tokens: Token[]); +} +export declare class YamlDocuments { + private cache; + /** + * Get cached YAMLDocument + * @param document TextDocument to parse + * @param parserOptions YAML parserOptions + * @param addRootObject if true and document is empty add empty object {} to force schema usage + * @returns the YAMLDocument + */ + getYamlDocument(document: TextDocument, parserOptions?: ParserOptions, addRootObject?: boolean): YAMLDocument; + /** + * For test purpose only! + */ + clear(): void; + private ensureCache; +} +export declare const yamlDocumentsCache: YamlDocuments; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js" index 967d36f443beee67eebe7c6ac3bf31ea682e59f5..0aef9a833f6f203aa4a8494906e5c2966127fe09 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js" @@ -1,3 +1,264 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83be66ed0a4fdc313547318dc3a4969a35b8cc2dd12d1aa13f8136dfa78165cd -size 10896 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.yamlDocumentsCache = exports.YamlDocuments = exports.YAMLDocument = exports.SingleYAMLDocument = void 0; +const jsonParser07_1 = require("./jsonParser07"); +const yaml_1 = require("yaml"); +const yamlParser07_1 = require("./yamlParser07"); +const vscode_json_languageservice_1 = require("vscode-json-languageservice"); +const ast_converter_1 = require("./ast-converter"); +const arrUtils_1 = require("../utils/arrUtils"); +const astUtils_1 = require("../utils/astUtils"); +const strings_1 = require("../utils/strings"); +/** + * These documents are collected into a final YAMLDocument + * and passed to the `parseYAML` caller. + */ +class SingleYAMLDocument extends jsonParser07_1.JSONDocument { + constructor(lineCounter) { + super(null, []); + this.lineCounter = lineCounter; + } + /** + * Create a deep copy of this document + */ + clone() { + const copy = new SingleYAMLDocument(this.lineCounter); + copy.isKubernetes = this.isKubernetes; + copy.disableAdditionalProperties = this.disableAdditionalProperties; + copy.uri = this.uri; + copy.currentDocIndex = this.currentDocIndex; + copy._lineComments = this.lineComments.slice(); + // this will re-create root node + copy.internalDocument = this._internalDocument.clone(); + return copy; + } + collectLineComments() { + this._lineComments = []; + if (this._internalDocument.commentBefore) { + const comments = this._internalDocument.commentBefore.split('\n'); + comments.forEach((comment) => this._lineComments.push(`#${comment}`)); + } + (0, yaml_1.visit)(this.internalDocument, (_key, node) => { + if (node?.commentBefore) { + const comments = node?.commentBefore.split('\n'); + comments.forEach((comment) => this._lineComments.push(`#${comment}`)); + } + if (node?.comment) { + this._lineComments.push(`#${node.comment}`); + } + }); + if (this._internalDocument.comment) { + this._lineComments.push(`#${this._internalDocument.comment}`); + } + } + /** + * Updates the internal AST tree of the object + * from the internal node. This is call whenever the + * internalDocument is set but also can be called to + * reflect any changes on the underlying document + * without setting the internalDocument explicitly. + */ + updateFromInternalDocument() { + this.root = (0, ast_converter_1.convertAST)(null, this._internalDocument.contents, this._internalDocument, this.lineCounter); + } + set internalDocument(document) { + this._internalDocument = document; + this.updateFromInternalDocument(); + } + get internalDocument() { + return this._internalDocument; + } + get lineComments() { + if (!this._lineComments) { + this.collectLineComments(); + } + return this._lineComments; + } + set lineComments(val) { + this._lineComments = val; + } + get errors() { + return this.internalDocument.errors.map(YAMLErrorToYamlDocDiagnostics); + } + get warnings() { + return this.internalDocument.warnings.map(YAMLErrorToYamlDocDiagnostics); + } + getNodeFromPosition(positionOffset, textBuffer, configuredIndentation) { + const position = textBuffer.getPosition(positionOffset); + const lineContent = textBuffer.getLineContent(position.line); + if (lineContent.trim().length === 0) { + return [this.findClosestNode(positionOffset, textBuffer, configuredIndentation), true]; + } + const textAfterPosition = lineContent.substring(position.character); + const spacesAfterPositionMatch = textAfterPosition.match(/^([ ]+)\n?$/); + const areOnlySpacesAfterPosition = !!spacesAfterPositionMatch; + const countOfSpacesAfterPosition = spacesAfterPositionMatch?.[1].length; + let closestNode; + (0, yaml_1.visit)(this.internalDocument, (key, node) => { + if (!node) { + return; + } + const range = node.range; + if (!range) { + return; + } + const isNullNodeOnTheLine = () => areOnlySpacesAfterPosition && + positionOffset + countOfSpacesAfterPosition === range[2] && + (0, yaml_1.isScalar)(node) && + node.value === null; + if ((range[0] <= positionOffset && range[1] >= positionOffset) || isNullNodeOnTheLine()) { + closestNode = node; + } + else { + return yaml_1.visit.SKIP; + } + }); + return [closestNode, false]; + } + findClosestNode(offset, textBuffer, configuredIndentation) { + let offsetDiff = this.internalDocument.range[2]; + let maxOffset = this.internalDocument.range[0]; + let closestNode; + (0, yaml_1.visit)(this.internalDocument, (key, node) => { + if (!node) { + return; + } + const range = node.range; + if (!range) { + return; + } + const diff = range[1] - offset; + if (maxOffset <= range[0] && diff <= 0 && Math.abs(diff) <= offsetDiff) { + offsetDiff = Math.abs(diff); + maxOffset = range[0]; + closestNode = node; + } + }); + const position = textBuffer.getPosition(offset); + const lineContent = textBuffer.getLineContent(position.line); + const indentation = (0, strings_1.getIndentation)(lineContent, position.character); + if ((0, yaml_1.isScalar)(closestNode) && closestNode.value === null) { + return closestNode; + } + if (indentation === position.character) { + closestNode = this.getProperParentByIndentation(indentation, closestNode, textBuffer, '', configuredIndentation); + } + return closestNode; + } + getProperParentByIndentation(indentation, node, textBuffer, currentLine, configuredIndentation, rootParent) { + if (!node) { + return this.internalDocument.contents; + } + configuredIndentation = !configuredIndentation ? 2 : configuredIndentation; + if ((0, yaml_1.isNode)(node) && node.range) { + const position = textBuffer.getPosition(node.range[0]); + const lineContent = textBuffer.getLineContent(position.line); + currentLine = currentLine === '' ? lineContent.trim() : currentLine; + if (currentLine.startsWith('-') && indentation === configuredIndentation && currentLine === lineContent.trim()) { + position.character += indentation; + } + if (position.character > indentation && position.character > 0) { + const parent = this.getParent(node); + if (parent) { + return this.getProperParentByIndentation(indentation, parent, textBuffer, currentLine, configuredIndentation, rootParent); + } + } + else if (position.character < indentation) { + const parent = this.getParent(node); + if ((0, yaml_1.isPair)(parent) && (0, yaml_1.isNode)(parent.value)) { + return parent.value; + } + else if ((0, yaml_1.isPair)(rootParent) && (0, yaml_1.isNode)(rootParent.value)) { + return rootParent.value; + } + } + else { + return node; + } + } + else if ((0, yaml_1.isPair)(node)) { + rootParent = node; + const parent = this.getParent(node); + return this.getProperParentByIndentation(indentation, parent, textBuffer, currentLine, configuredIndentation, rootParent); + } + return node; + } + getParent(node) { + return (0, astUtils_1.getParent)(this.internalDocument, node); + } +} +exports.SingleYAMLDocument = SingleYAMLDocument; +/** + * Contains the SingleYAMLDocuments, to be passed + * to the `parseYAML` caller. + */ +class YAMLDocument { + constructor(documents, tokens) { + this.documents = documents; + this.tokens = tokens; + this.errors = []; + this.warnings = []; + } +} +exports.YAMLDocument = YAMLDocument; +class YamlDocuments { + constructor() { + // a mapping of URIs to cached documents + this.cache = new Map(); + } + /** + * Get cached YAMLDocument + * @param document TextDocument to parse + * @param parserOptions YAML parserOptions + * @param addRootObject if true and document is empty add empty object {} to force schema usage + * @returns the YAMLDocument + */ + getYamlDocument(document, parserOptions, addRootObject = false) { + this.ensureCache(document, parserOptions ?? yamlParser07_1.defaultOptions, addRootObject); + return this.cache.get(document.uri).document; + } + /** + * For test purpose only! + */ + clear() { + this.cache.clear(); + } + ensureCache(document, parserOptions, addRootObject) { + const key = document.uri; + if (!this.cache.has(key)) { + this.cache.set(key, { version: -1, document: new YAMLDocument([], []), parserOptions: yamlParser07_1.defaultOptions }); + } + const cacheEntry = this.cache.get(key); + if (cacheEntry.version !== document.version || + (parserOptions.customTags && !(0, arrUtils_1.isArrayEqual)(cacheEntry.parserOptions.customTags, parserOptions.customTags))) { + let text = document.getText(); + // if text is contains only whitespace wrap all text in object to force schema selection + if (addRootObject && !/\S/.test(text)) { + text = `{${text}}`; + } + const doc = (0, yamlParser07_1.parse)(text, parserOptions, document); + cacheEntry.document = doc; + cacheEntry.version = document.version; + cacheEntry.parserOptions = parserOptions; + } + } +} +exports.YamlDocuments = YamlDocuments; +exports.yamlDocumentsCache = new YamlDocuments(); +function YAMLErrorToYamlDocDiagnostics(error) { + return { + message: error.message, + location: { + start: error.pos[0], + end: error.pos[1], + toLineEnd: true, + }, + severity: 1, + code: vscode_json_languageservice_1.ErrorCode.Undefined, + }; +} +//# sourceMappingURL=yaml-documents.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js.map" index 56cd88f5b77cf4f39877728112ada8765e41a08b..53a2d89ddd1138cedff19d7e248a5ea0cde9acd4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea0fad54a7d7f6387ef099a339d70e0e98fb77a385de3d2f3e6100da6db7da1c -size 8340 +{"version":3,"file":"yaml-documents.js","sourceRoot":"","sources":["../../../../../src/languageservice/parser/yaml-documents.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAGhG,iDAA8C;AAC9C,+BAA+F;AAE/F,iDAAmF;AACnF,6EAAwD;AACxD,mDAA6C;AAE7C,gDAAiD;AACjD,gDAA8C;AAE9C,8CAAkD;AAGlD;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,2BAAY;IAOlD,YAAY,WAAyB;QACnC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAChB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,KAAK;QACH,MAAM,IAAI,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,2BAA2B,GAAG,IAAI,CAAC,2BAA2B,CAAC;QACpE,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;QAC5C,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAC/C,gCAAgC;QAChC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC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rD,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE;YACR,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;YACnB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;YACjB,SAAS,EAAE,IAAI;SAChB;QACD,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE,uCAAS,CAAC,SAAS;KAC1B,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.d.ts" index b3e4f1daf37eb487e9ecb89521142a92e06a1830..2955d68a9ed894ad10ef4bfb0712ce8067dc515f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.d.ts" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33032e35679c2607f999d37fa166d29b196c859fce5e422ad2e0e05dc2a157e8 -size 644 +import { YAMLDocument, SingleYAMLDocument } from './yaml-documents'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +export { YAMLDocument, SingleYAMLDocument }; +export declare type YamlVersion = '1.1' | '1.2'; +export interface ParserOptions { + customTags: string[]; + yamlVersion: YamlVersion; +} +export declare const defaultOptions: ParserOptions; +/** + * `yaml-ast-parser-custom-tags` parses the AST and + * returns YAML AST nodes, which are then formatted + * for consumption via the language server. + */ +export declare function parse(text: string, parserOptions?: ParserOptions, document?: TextDocument): YAMLDocument; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js" index 88333e7859a835d6ba1c3f2a4fe008415622d41a..d7d38375ba306b33362b8e7b36aba07638bfaf8e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js" @@ -1,3 +1,55 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd065687121918a07aed12328fd120f2e463d27e8171feba6cf01cb743dad49d -size 2780 +/*--------------------------------------------------------------------------------------------- + * 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.parse = exports.defaultOptions = exports.SingleYAMLDocument = exports.YAMLDocument = void 0; +const yaml_1 = require("yaml"); +const yaml_documents_1 = require("./yaml-documents"); +Object.defineProperty(exports, "YAMLDocument", { enumerable: true, get: function () { return yaml_documents_1.YAMLDocument; } }); +Object.defineProperty(exports, "SingleYAMLDocument", { enumerable: true, get: function () { return yaml_documents_1.SingleYAMLDocument; } }); +const custom_tag_provider_1 = require("./custom-tag-provider"); +const textBuffer_1 = require("../utils/textBuffer"); +exports.defaultOptions = { + customTags: [], + yamlVersion: '1.2', +}; +/** + * `yaml-ast-parser-custom-tags` parses the AST and + * returns YAML AST nodes, which are then formatted + * for consumption via the language server. + */ +function parse(text, parserOptions = exports.defaultOptions, document) { + const options = { + strict: false, + customTags: (0, custom_tag_provider_1.getCustomTags)(parserOptions.customTags), + version: parserOptions.yamlVersion ?? exports.defaultOptions.yamlVersion, + keepSourceTokens: true, + }; + const composer = new yaml_1.Composer(options); + const lineCounter = new yaml_1.LineCounter(); + let isLastLineEmpty = false; + if (document) { + const textBuffer = new textBuffer_1.TextBuffer(document); + const position = textBuffer.getPosition(text.length); + const lineContent = textBuffer.getLineContent(position.line); + isLastLineEmpty = lineContent.trim().length === 0; + } + const parser = isLastLineEmpty ? new yaml_1.Parser() : new yaml_1.Parser(lineCounter.addNewLine); + const tokens = parser.parse(text); + const tokensArr = Array.from(tokens); + const docs = composer.compose(tokensArr, true, text.length); + // Generate the SingleYAMLDocs from the AST nodes + const yamlDocs = Array.from(docs, (doc) => parsedDocToSingleYAMLDocument(doc, lineCounter)); + // Consolidate the SingleYAMLDocs + return new yaml_documents_1.YAMLDocument(yamlDocs, tokensArr); +} +exports.parse = parse; +function parsedDocToSingleYAMLDocument(parsedDoc, lineCounter) { + const syd = new yaml_documents_1.SingleYAMLDocument(lineCounter); + syd.internalDocument = parsedDoc; + return syd; +} +//# sourceMappingURL=yamlParser07.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js.map" index a127ed2e98c36561bac6bf652a9fe5d4ca5920af..843273e1b82cf8f5b91a3aa63c3df30332ef2e61 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1804ac24b1d944dee811554c3522367e3b84f14d30ba17a50068005b871825d3 -size 1686 +{"version":3,"file":"yamlParser07.js","sourceRoot":"","sources":["../../../../../src/languageservice/parser/yamlParser07.ts"],"names":[],"mappings":"AAAA;;;;gGAIgG;AAChG,YAAY,CAAC;;;AAEb,+BAA6G;AAC7G,qDAAoE;AAK3D,6FALA,6BAAY,OAKA;AAAE,mGALA,mCAAkB,OAKA;AAJzC,+DAAsD;AAEtD,oDAAiD;AASpC,QAAA,cAAc,GAAkB;IAC3C,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,KAAK;CACnB,CAAC;AACF;;;;GAIG;AACH,SAAgB,KAAK,CAAC,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W,CAAC,CAAC,CAAC;IAElH,iCAAiC;IACjC,OAAO,IAAI,6BAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAC/C,CAAC;AAzBD,sBAyBC;AAED,SAAS,6BAA6B,CAAC,SAAmB,EAAE,WAAwB;IAClF,MAAM,GAAG,GAAG,IAAI,mCAAkB,CAAC,WAAW,CAAC,CAAC;IAChD,GAAG,CAAC,gBAAgB,GAAG,SAAS,CAAC;IACjC,OAAO,GAAG,CAAC;AACb,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.d.ts" index 6dd87da721e1023af10af682e020f300bd63ca2a..322fa7fd8fa6c1a35a8a7e41462d1e45923b8b59 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.d.ts" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2612c79ca86352daa45b829006ef2177ffe5d7d76deada63001086836f67fd3 -size 745 +import { SymbolInformation, DocumentSymbol } from 'vscode-languageserver-types'; +import { YAMLSchemaService } from './yamlSchemaService'; +import { DocumentSymbolsContext } from 'vscode-json-languageservice/lib/umd/jsonLanguageTypes'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { Telemetry } from '../telemetry'; +export declare class YAMLDocumentSymbols { + private readonly telemetry?; + private jsonDocumentSymbols; + constructor(schemaService: YAMLSchemaService, telemetry?: Telemetry); + findDocumentSymbols(document: TextDocument, context?: DocumentSymbolsContext): SymbolInformation[]; + findHierarchicalDocumentSymbols(document: TextDocument, context?: DocumentSymbolsContext): DocumentSymbol[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js" index 7a244bb64b8360187a0f553eec497bf44efa5268..687fa85a82ed757e6912aa6d01b101a8cb2c0e9c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js" @@ -1,3 +1,72 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:877fa2693ac35e3001fe372e6698aec1aea7d4304fde46a1a5738569fa5fcc0b -size 3171 +/*--------------------------------------------------------------------------------------------- + * 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.YAMLDocumentSymbols = void 0; +const jsonDocumentSymbols_1 = require("vscode-json-languageservice/lib/umd/services/jsonDocumentSymbols"); +const yaml_documents_1 = require("../parser/yaml-documents"); +const yaml_1 = require("yaml"); +const objects_1 = require("../utils/objects"); +class YAMLDocumentSymbols { + constructor(schemaService, telemetry) { + this.telemetry = telemetry; + this.jsonDocumentSymbols = new jsonDocumentSymbols_1.JSONDocumentSymbols(schemaService); + // override 'getKeyLabel' to handle complex mapping + // eslint-disable-next-line @typescript-eslint/no-explicit-any + this.jsonDocumentSymbols.getKeyLabel = (property) => { + const keyNode = property.keyNode.internalNode; + let name = ''; + if ((0, yaml_1.isMap)(keyNode)) { + name = '{}'; + } + else if ((0, yaml_1.isSeq)(keyNode)) { + name = '[]'; + } + else { + name = keyNode.source; + } + return name; + }; + } + findDocumentSymbols(document, context = { resultLimit: Number.MAX_VALUE }) { + let results = []; + try { + const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document); + if (!doc || doc['documents'].length === 0) { + return null; + } + for (const yamlDoc of doc['documents']) { + if (yamlDoc.root) { + results = results.concat(this.jsonDocumentSymbols.findDocumentSymbols(document, yamlDoc, context)); + } + } + } + catch (err) { + this.telemetry?.sendError('yaml.documentSymbols.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) }); + } + return results; + } + findHierarchicalDocumentSymbols(document, context = { resultLimit: Number.MAX_VALUE }) { + let results = []; + try { + const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document); + if (!doc || doc['documents'].length === 0) { + return null; + } + for (const yamlDoc of doc['documents']) { + if (yamlDoc.root) { + results = results.concat(this.jsonDocumentSymbols.findDocumentSymbols2(document, yamlDoc, context)); + } + } + } + catch (err) { + this.telemetry?.sendError('yaml.hierarchicalDocumentSymbols.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) }); + } + return results; + } +} +exports.YAMLDocumentSymbols = YAMLDocumentSymbols; +//# sourceMappingURL=documentSymbols.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js.map" index c2884ba2ccfdd9b3e390817dacfea3327dca4fb8..a8dc221581d64d6211f8dc3498378b0a37838d22 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/documentSymbols.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa299be74869498e0c54ad2f5a153efafbe6641aba27e362c7fe9d6929cfaa0b -size 2075 +{"version":3,"file":"documentSymbols.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/documentSymbols.ts"],"names":[],"mappings":"AAAA;;;;gGAIgG;AAChG,YAAY,CAAC;;;AAIb,0GAAuG;AAGvG,6DAA8D;AAE9D,+BAA0C;AAC1C,8CAA8D;AAE9D,MAAa,mBAAmB;IAG9B,YAAY,aAAgC,EAAm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AAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SACrG;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAEM,+BAA+B,CACpC,QAAsB,EACtB,UAAkC,EAAE,WAAW,EAAE,MAAM,CAAC,SAAS,EAAE;QAEnE,IAAI,OAAO,GAAG,EAAE,CAAC;QACjB,IAAI;YACF,MAAM,GAAG,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YACzD,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;gBACzC,OAAO,IAAI,CAAC;aACb;YAED,KAAK,MAAM,OAAO,IAAI,GAAG,CAAC,WAAW,CAAC,EAAE;gBACtC,IAAI,OAAO,CAAC,IAAI,EAAE;oBAChB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;iBACrG;aACF;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SACjH;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAlED,kDAkEC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.d.ts" index f5b5bd7ac41508040d2515d03c89dcf66aa8645f..28c97dfe84ea87baf746fb237cf475f042b2a292 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da5274f8d9eb402b62390c0c8b33dacaeca08d3429540326101f416aea333ecf -size 392 +import { SingleYAMLDocument } from '../parser/yamlParser07'; +import { JSONDocument } from '../parser/jsonParser07'; +/** + * Retrieve schema if declared as modeline. + * Public for testing purpose, not part of the API. + * @param doc + */ +export declare function getSchemaFromModeline(doc: SingleYAMLDocument | JSONDocument): string; +export declare function isModeline(lineText: string): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js" index 67b207ad4b9eca9546c6ac5b91e6be5f85dbc8b4..678c354231d0f391117b6b1aed25dd771adbf390 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js" @@ -1,3 +1,37 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6818d6d505535ac68a5ad2c2393f6c636e1b97f8bc090f77557e4b0cc9d268c0 -size 1742 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. 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.isModeline = exports.getSchemaFromModeline = void 0; +const yamlParser07_1 = require("../parser/yamlParser07"); +/** + * Retrieve schema if declared as modeline. + * Public for testing purpose, not part of the API. + * @param doc + */ +function getSchemaFromModeline(doc) { + if (doc instanceof yamlParser07_1.SingleYAMLDocument) { + const yamlLanguageServerModeline = doc.lineComments.find((lineComment) => { + return isModeline(lineComment); + }); + if (yamlLanguageServerModeline != undefined) { + const schemaMatchs = yamlLanguageServerModeline.match(/\$schema=\S+/g); + if (schemaMatchs !== null && schemaMatchs.length >= 1) { + if (schemaMatchs.length >= 2) { + console.log('Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked.'); + } + return schemaMatchs[0].substring('$schema='.length); + } + } + } + return undefined; +} +exports.getSchemaFromModeline = getSchemaFromModeline; +function isModeline(lineText) { + const matchModeline = lineText.match(/^#\s+yaml-language-server\s*:/g); + return matchModeline !== null && matchModeline.length === 1; +} +exports.isModeline = isModeline; +//# sourceMappingURL=modelineUtil.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js.map" index 7701b26a71e66f48e1fd13eaf705a6b959ca5195..19eb204dabd4a6ad8537c9e78db2da9699a44c4c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/modelineUtil.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a7cc09caa8baeb9843078c74bd0686752949d23c4cc3cc1e0ea0725ba0eb5c7f -size 945 +{"version":3,"file":"modelineUtil.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/modelineUtil.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,YAAY,CAAC;;;AACb,yDAA4D;AAG5D;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,GAAsC;IAC1E,IAAI,GAAG,YAAY,iCAAkB,EAAE;QACrC,MAAM,0BAA0B,GAAG,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;YACvE,OAAO,UAAU,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,IAAI,0BAA0B,IAAI,SAAS,EAAE;YAC3C,MAAM,YAAY,GAAG,0BAA0B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACvE,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,CAAC,MAAM,IAAI,CAAC,EAAE;gBACrD,IAAI,YAAY,CAAC,MAAM,IAAI,CAAC,EAAE;oBAC5B,OAAO,CAAC,GAAG,CACT,gHAAgH,CACjH,CAAC;iBACH;gBACD,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;aACrD;SACF;KACF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAlBD,sDAkBC;AAED,SAAgB,UAAU,CAAC,QAAgB;IACzC,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACvE,OAAO,aAAa,KAAK,IAAI,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC;AAC9D,CAAC;AAHD,gCAGC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.d.ts" index 66106d5f8427214c6712baff2cffca48ea3b1e09..3a5f05cfe7da64f1a89669d7b786f7ea095149bd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.d.ts" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7aabf9da911da4a66d45285a4b889b4ea1a120d53d3916aab12349d5eab7bfc -size 690 +import { URI } from 'vscode-uri'; +import { Connection, WorkspaceFolder } from 'vscode-languageserver'; +import { WorkspaceContextService } from '../yamlLanguageService'; +export interface FileSystem { + readFile(fsPath: string, encoding?: string): Promise; +} +/** + * 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; +export declare const workspaceContext: WorkspaceContextService; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js" index e109f4b4ddc0534cf8f07b43838eb8bd051cafc9..a5c21e697040242c2e61ff4d6e012a70b9e24d79 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js" @@ -1,3 +1,66 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0d9143bc734c1b4ea2e6417823f5f68401f223a17175ddfa24e5e6b2de9a4837 -size 3189 +"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 URI + if ((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 contents + if (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 string + return ''; + }); + } + // HTTP(S) requests are sent and the response result is either the schema content or an error + if (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 correctly + if (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 result + const 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 request + return connection.sendRequest(requestTypes_1.CustomSchemaContentRequest.type, uri); +}; +exports.schemaRequestHandler = schemaRequestHandler; +exports.workspaceContext = { + resolveRelativePath: (relativePath, resource) => { + return URL.resolve(resource, relativePath); + }, +}; +//# sourceMappingURL=schemaRequestHandler.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js.map" index 04bcc4f95a4c00184d8eb2c47ebe05ec03abbeff..20ccc05626874b34c0ae00b170b725451f55a9d4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/schemaRequestHandler.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5150f73c4041c9aa9c762a1d9ad152622d5eefcbb339d9ad6362fa34e28678f4 -size 2155 +{"version":3,"file":"schemaRequestHand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211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.d.ts" index e4653d6025d057022c56a8770a62af2edd59fa48..949f8aef1c4cf2557ca02b6fd765da5244a206d0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.d.ts" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce1d87ebcd7fbad99e3e8ffa718cf3d00c325e9868f97fd4fa283f06429d6d58 -size 396 +import { 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[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js" index ae0771b32c2604637fc645dfea87157be76cb3e1..deb7d4de74a0d4a83cce080b5fee269cc0c9dd8d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f383023b507c5f139c02ab3c4ce3257abdba0ac5569d66265bc7018812643453 -size 2014 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js.map" index d416e9b663f2dbe09cd6630c8f1536fc500d64ae..932e033a697d0d241eed6b1c37b8786192fc4e50 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/map-key-order.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a7a16efe2e00b4585ce9e556ae272c1d4106daceb6395c5dc510d3226c218a7 -size 1745 +{"version":3,"file":"map-key-order.js","sourceRoot":"","sources":["../../../../../../src/languageservice/services/validation/map-key-order.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAGhG,6EAAoF;AAGpF,+BAA0C;AAE1C,MAAa,oBAAoB;IAC/B,QAAQ,CAAC,QAAsB,EAAE,OAA2B;QAC1D,MAAM,MAAM,GAAG,EAAE,CAAC;QAElB,IAAA,YAAK,EAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAC5C,IAAI,IAAA,YAAK,EAAC,IAAI,CAAC,EAAE;gBACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBAC1C,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;wBACjD,MAAM,KAAK,GAAG,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;wBACvD,MAAM,CAAC,IAAI,CACT,wCAAU,CAAC,MAAM,CACf,KAAK,EACL,0BAA0B,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,cAAc,EAC7D,gDAAkB,CAAC,KAAK,EACxB,aAAa,CACd,CACF,CAAC;qBACH;iBACF;aACF;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAxBD,oDAwBC;AAED,SAAS,WAAW,CAAC,QAAsB,EAAE,IAAU;IACrD,MAAM,KAAK,GAAG,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAC9G,MAAM,GAAG,GACP,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM;QAC5B,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM;QAC9B,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM;QAC1B,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC;IAC/D,OAAO,mCAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5E,CAAC;AAED,SAAS,OAAO,CAAC,IAAU,EAAE,IAAU;IACrC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjC,OAAO,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.d.ts" index fb964a4c54b59dcbdabfb23135f3661f304b9280..5111afdc2d73c808f6a359e7259e0b8ed24eaeda 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:adfb4c2329933ce089fa240ffd835dbd4d931092fa8d2916803dbc7e8e85908f -size 313 +import { 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[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js" index bf7ba009a4b7d882e5427af7cdf7841dcff4738b..c6ce02a2e8674e5ddf2e1dce37a0a82d3e78be71 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92eae340ee6bfc67d4b3027cd8417e68becb715875ec8c6daa7c4777d8dd9d46 -size 448 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js.map" index 2475c0ed388f3967a6702f3acbd9a52bbfaa0175..9acbe395657fbcdad7c61c4b697e1e82c8565337 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/types.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1083ddae31cfcc9be431d294e834149de871ee678523f40873ef88764f702b09 -size 167 +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/languageservice/services/validation/types.ts"],"names":[],"mappings":";AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.d.ts" index 66d2b4ec1cae9e17f518d86ca5f7f4fd72d11be4..5addcd7bf8501cc6e38db99890d7670a72056983 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.d.ts" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f103199fc4a5109450ad9f5736c3b570808df078d71a898c180589beca4681f -size 425 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js" index 83aed774b5f8bf77bfff77b3e986010bb5beeded..ff9090d18213560eaa8b8fa81a8965d553355931 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js" @@ -1,3 +1,77 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:424b8ed06b1aa5d08b2cf935235b172c46e5bf0a3750f77d70eeda84dd09e41c -size 3276 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js.map" index 7d4f1e7dff39a8db46bda308b663ccb91bb52645..ff261e73a42d923a4f69862da8be678a723a2bf6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/unused-anchors.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:534b3eb96ef5f10631511062faa26cec2331d53b3280912594606bc602b24589 -size 2475 +{"version":3,"file":"unused-anchors.js","sourceRoot":"","sources":["../../../../../../src/languageservice/services/validation/unused-anchors.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAGhG,6EAAmG;AACnG,+BAAiH;AAIjH,sEAA2E;AAE3E,MAAa,sBAAsB;IACjC,QAAQ,CAAC,QAAsB,EAAE,OAA2B;QAC1D,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,MAAM,OAAO,GAAG,IAAI,GAAG,EAA8B,CAAC;QACtD,MAAM,WAAW,GAAG,IAAI,GAAG,EAAQ,CAAC;QACpC,MAAM,YAAY,GAAG,IAAI,GAAG,EAA2C,CAAC;QAExE,IAAA,YAAK,EAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;YAClD,IAAI,CAAC,IAAA,aAAM,EAAC,IAAI,CAAC,EAAE;gBACjB,OAAO;aACR;YACD,IAAI,CAAC,IAAA,mBAAY,EAAC,IAAI,CAAC,IAAI,IAAA,eAAQ,EAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE;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,IAAI,IAAA,2BAAgB,EAAC,KAAK,CAAC,EAAE;gBAC3B,OAAO,2BAA2B,CAAC,KAAK,CAAC,CAAC;aAC3C;iBAAM,IAAI,UAAG,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;gBAClC,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE;oBAC3B,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,KAAK;wBAAE,SAAS;oBACxC,MAAM,MAAM,GAAG,2BAA2B,CAAC,CAAC,CAAC,CAAC;oBAC9C,IAAI,MAAM,EAAE;wBACV,OAAO,MAAM,CAAC;qBACf;iBACF;aACF;SACF;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAtDD,wDAsDC;AACD,SAAS,2BAA2B,CAAC,KAAyB;IAC5D,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE;QAC3B,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;YACvB,OAAO,CAAC,CAAC;SACV;KACF;IACD,IAAI,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACzC,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE;YACzB,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACvB,OAAO,CAAC,CAAC;aACV;SACF;KACF;AACH,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.d.ts" index 651a74344cb94790d7989908d646f09a1fd3d427..8e7010ab72752b9bbb746e553e760c0a9a3855ab 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.d.ts" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c26eb06263c94d9f14dd962eb587b65a20b7d932100dc7e9be61d5689e4f3e3 -size 580 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js" index 49fbd1b86c892f712c4df178730673e2b88e4f6f..dfc73db2f9697cbe4edebcf12b2fb0f87d4facb1 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bbb65713e8a4ec42a6143877396750cefc2a83d880e64a810bb82446d2198e73 -size 1551 +"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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js.map" index 00939ec0da724d5be23a49a0e29314928c098b41..4995e92839e10b744ebc4c1cba19407c81a31618 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/validation/yaml-style.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c793075c75d2c432a904ae6d13bdabf2ce854c9eaea8b96a3839c66da2e57e11 -size 1293 +{"version":3,"file":"yaml-style.js","sourceRoot":"","sources":["../../../../../../src/languageservice/services/validation/yaml-style.ts"],"names":[],"mappings":";;;AACA,6EAAoF;AACpF,+BAA2C;AAM3C,MAAa,kBAAkB;IAI7B,YAAY,QAA0B;QACpC,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,WAAW,KAAK,QAAQ,CAAC;QACvD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,YAAY,KAAK,QAAQ,CAAC;IAC3D,CAAC;IACD,QAAQ,CAAC,QAAsB,EAAE,OAA2B;QAC1D,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,IAAA,YAAK,EAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAC5C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAA,YAAK,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,KAAK,iBAAiB,EAAE;gBAClF,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;aACH;YACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAA,YAAK,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,KAAK,iBAAiB,EAAE;gBACnF,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;aACH;QACH,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,UAAU,CAAC,QAAsB,EAAE,IAAoB;QAC7D,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;IAC1G,CAAC;CACF;AAtCD,gDAsCC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.d.ts" index 0d0d63ef06bf307a9ddd37d5a3a773e0e900c193..a364c6d317c49f3cdd170e8a2b1ea3f498a9fa87 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.d.ts" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61a372286547924eddb7e0bf98b0c98b2e28b5d81e86b5b1f7b2cccfb3c5c666 -size 803 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js" index bd72c0986b37feea55b4d582e1f7b861accd1401..55a3b3fcfd19ce212a72b650ff7f0f34eb6314a3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js" @@ -1,3 +1,257 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b83d9f8125634c0feafa6360541c9661619dae854d3bb472a51e8cf6334b0611 -size 14431 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 tabs + if (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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js.map" index b6824e767619ed778b5ed121836bc2694dea886e..5b3b60471e5a0ba64fffb30d4c32c06b784ecef8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeActions.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7395fe2daba554ec75044969eeeb94778d51d1af910765f9586d90311af29390 -size 11390 +{"version":3,"file":"yamlCodeActions.js","sourceRoot":"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U,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;oBACpH,OAAO,CAAC,IAAI,CACV,wCAAU,CAAC,MAAM,CACf,4BAA4B,EAC5B,mBAAmB,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,sCAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,UAAG,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EACnG,4CAAc,CAAC,QAAQ,CACxB,CACF,CAAC;iBACH;aACF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAxRD,0CAwRC;AAED,SAAS,oBAAoB,CAAC,QAAsB,EAAE,UAAsB;IAC1E,MAAM,aAAa,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACnE,MAAM,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,OAAO,GAAG,IAAA,gCAAqB,EAAC,WAAW,EAAE,aAAa,CAAC,CAAC;IAClE,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IACpD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAW,EAAE,KAAiB;IACzD,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAkB;QAC1B,OAAO;KACR,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.d.ts" index cfbcca4f21ccb8b3edcee31469615853d3ee2d82..8073ebd9b7ce8c097a3d25f0e47942425433f9fe 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.d.ts" @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c431b36e8d0e3d0aebcd059f96bd89f14c784ce1d783b86cc057d5b3702c5d17 -size 525 +import { 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; + resolveCodeLens(param: CodeLens): Thenable | CodeLens; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js" index 7e74098dacb283306c6056af7060f3ea745a6064..bf0acb2c5002de3a5b943c270b5999bc7147a36a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js" @@ -1,3 +1,51 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:deb18bc3df46638ca9f91b49f8e7e135cbf76db9d84da22e7ff9036581763f00 -size 2406 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 duplicates + schemaUrls = 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js.map" index f0485ef23a48c8088a283044da07e654500169d6..3fc25dd261e3219f6a77ab4995d2924bff018f61 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCodeLens.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9bb5be0d174ff62a3d6d412d9b0a9d65d06686b2054e215bf7b27ea32087d160 -size 1468 +{"version":3,"file":"yamlCodeLens.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlCodeLens.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAGhG,6EAA8D;AAC9D,6CAA8C;AAC9C,6DAA8D;AAI9D,oDAAoD;AACpD,8CAA8D;AAC9D,sDAAsD;AAEtD,MAAa,YAAY;IACvB,YAAoB,aAAgC,EAAmB,SAAqB;QAAxE,kBAAa,GAAb,aAAa,CAAmB;QAAmB,cAAS,GAAT,SAAS,CAAY;IAAG,CAAC;IAEhG,KAAK,CAAC,WAAW,CAAC,QAAsB;QACtC,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,IAAI;YACF,MAAM,YAAY,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YAClE,IAAI,UAAU,GAAG,IAAI,GAAG,EAAsB,CAAC;YAC/C,KAAK,MAAM,cAAc,IAAI,YAAY,CAAC,SAAS,EAAE;gBACnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;gBAC3F,IAAI,MAAM,EAAE,MAAM,EAAE;oBAClB,kDAAkD;oBAClD,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,IAAA,0BAAa,EAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC;iBACzE;aACF;YACD,KAAK,MAAM,WAAW,IAAI,UAAU,EAAE;gBACpC,MAAM,IAAI,GAAG,sCAAQ,CAAC,MAAM,CAAC,mCAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBACvD,IAAI,CAAC,OAAO,GAAG;oBACb,KAAK,EAAE,IAAA,4BAAc,EAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;oBACrD,OAAO,EAAE,uBAAY,CAAC,cAAc;oBACpC,SAAS,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;iBAC5B,CAAC;gBACF,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACnB;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SAC9F;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,eAAe,CAAC,KAAe;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAjCD,oCAiCC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.d.ts" index ff33b3003e7ec02bc7a8908ee6e1d3b36f6ad915..3866b47084b916f3c86dda10d54f1a727ee3adec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:79d354ef41d18e7c3eeac8f1a8c214f2f3f70659e926f7f79c9e23220c47794e -size 230 +import { Connection } from 'vscode-languageserver'; +import { CommandExecutor } from '../../languageserver/commandExecutor'; +export declare function registerCommands(commandExecutor: CommandExecutor, connection: Connection): void; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js" index 7f2247932442dc32950f4618824affd33babe2c9..3a3a2b1ad2651a9092c7c07907b8403209d2c2fa 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js" @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0b2dae5a6ee687c5d225555ad82fc79c80a8975b4ae6dc8d2c4873e5035b3d3 -size 1792 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 path + if (!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 URI + if (/^[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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js.map" index b1360c6ebee2fccc98dd3f2dcec52d5672f41eb5..0007057adb58836812b35cc78c47ccd36e52fbce 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCommands.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38f604c494dd5ab03367733a67cda2ee118f8438cc3d07fe4daa998d51a38dc3 -size 1244 +{"version":3,"file":"yamlCommands.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlCommands.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAGhG,6CAA8C;AAE9C,2CAAiC;AAEjC,SAAgB,gBAAgB,CAAC,eAAgC,EAAE,UAAsB;IACvF,eAAe,CAAC,eAAe,CAAC,uBAAY,CAAC,cAAc,EAAE,KAAK,EAAE,GAAW,EAAE,EAAE;QACjF,IAAI,CAAC,GAAG,EAAE;YACR,OAAO;SACR;QACD,oDAAoD;QACpD,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YACzD,MAAM,OAAO,GAAG,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC/B,MAAM,SAAS,GAAG,gBAAG,CAAC,IAAI,CAAC;gBACzB,MAAM,EAAE,aAAa;gBACrB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,GAAG,OAAO;gBAC5E,QAAQ,EAAE,GAAG;aACd,CAAC,CAAC;YACH,GAAG,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;SAC5B;QAED,uEAAuE;QACvE,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,MAAM,GAAG,gBAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC7B,GAAG,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;SACzB;QAED,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACpG,IAAI,CAAC,MAAM,EAAE;YACX,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,eAAe,GAAG,EAAE,CAAC,CAAC;SAC1D;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AA5BD,4CA4BC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.d.ts" index 0cf9b5a3c4cffe32c98958dc4e24abc66eb52419..ce9f2e7f63bd7a912f769c7f641148f0fb7c9a53 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.d.ts" @@ -1,3 +1,68 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a31bd81b96cf9c2b55c3181753233a7e2f8c5f2a2efa109cf2020af865f41c9c -size 2839 +import { 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; + 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 {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js" index 2aaf0b42cd9129070e4c1cedff37ae67b96f7576..2dd65c6c19a989ed68ee17f2aa7d1ca250315251 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js" @@ -1,3 +1,1463 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b70a503ce5a616cb9c9cc8d20096ed350a17f879f4cd71c5ff18900536f9b908 -size 75731 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 options + for (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 document + currentDoc = 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 yaml + if (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 parent + return; + } + else if (!parentCompletion) { + // create a new parent + parentCompletion = { + ...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 parent + parentCompletion.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 it + console.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 completion + if (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 values + const 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 object + if (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 keys + if (node && (0, yaml_1.isMap)(node)) { + // don't suggest properties that are already present + const 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 values + const 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 object + if (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 $x + let 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 one + const 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$index + max$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 texts + let insertText = reindexedTexts.join(`\n${indent}`); + // trim $1 from end of completion + if (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 documentation + const 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 + // indent + const 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 creation + let 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 suggestion + if (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 appended + if (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 correct + if (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 documentation + const 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 value + if (!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 insert + value = ' ' + 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 null + key === '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 object + break; + } + } + }); + if (insertText.trim().length === 0) { + insertText = `${indent}$${insertIndex++}\n`; + } + insertText = insertText.trimRight() + separatorAfter; + return { insertText, insertIndex }; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + getInsertTextForArray(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-any + getInsertTextForGuessedValue(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 quotes + snippetValue = 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-any + getInsertTextForValue(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 one + const 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 completion + if (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-any + const 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-any + getLabelForSnippetValue(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 strings + const 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-any + getSuggestionKind(type) { + if (Array.isArray(type)) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const 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 string + let idx = value.indexOf(':', 0); + for (; idx > 0 && idx < value.length; idx = value.indexOf(':', idx + 1)) { + if (idx === value.length - 1) { + // `foo:` (partial map) format + doQuote = true; + break; + } + // there are only two valid kinds of white-space in yaml: space or tab + // ref: https://yaml.org/spec/1.2.1/#id2775170 + const 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js.map" index 19046a6c0f1d577408a75865e6ef3443e845f5e8..d4ca5dca97fed9abad0a8d09132c9e480714afbc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlCompletion.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dfe694954fc6366b53ff950b7d85b88bc3b96f402cce0a4105622a0b031e2138 -size 54551 +{"version":3,"file":"yamlCompletion.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlCompletion.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAIhG,6EAWqC;AACrC,+BAA4F;AAI5F,gDAAmF;AACnF,oEAA+D;AAC/D,oDAAiD;AAKjD,wCAAmE;AACnE,8CAAmF;AACnF,kCAAkC;AAClC,yDAAmE;AACnE,yDAAkD;AAClD,gDAAiF;AACjF,iDAA4C;AAC5C,sDAAiG;AAGjG,MAAM,QAAQ,GAAG,GAAG,CAAC,iBAAiB,EAAE,CAAC;AAEzC,MAAM,wBAAwB,GAAG,SAAS,CAAC;AAE3C,MAAM,oBAAoB,GAAG,gDAAkB,CAAC,KAAK,CAAC;AAEtD,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAyBjC,MAAa,cAAc;IAWzB,YACU,aAAgC,EAChC,qBAAyC,EAAE,EAC3C,YAA2B,EAClB,SAAqB;QAH9B,kBAAa,GAAb,aAAa,CAAmB;QAChC,uBAAkB,GAAlB,kBAAkB,CAAyB;QAC3C,iBAAY,GAAZ,YAAY,CAAe;QAClB,cAAS,GAAT,SAAS,CAAY;QAbhC,sBAAiB,GAAG,IAAI,CAAC;QAIzB,2BAAsB,GAAG,EAAE,CAAC;IAUjC,CAAC;IAEJ,SAAS,CAAC,gBAAkC;QAC1C,IAAI,gBAAgB,EAAE;YACpB,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC,UAAU,CAAC;SACtD;QACD,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,UAAU,CAAC;QAC9C,IAAI,CAAC,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC;QAChD,IAAI,CAAC,qBAAqB,GAAG,gBAAgB,CAAC,WAAW,CAAC;QAC1D,IAAI,CAAC,wBAAwB,GAAG,gBAAgB,CAAC,wBAAwB,CAAC;QAC1E,IAAI,CAAC,2BAA2B,GAAG,gBAAgB,CAAC,2BAA2B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IAAI,IAAI,QAAQ,KAAK,GAAG,EAAE;gBACzC,OAAO,GAAG,IAAI,CAAC;gBACf,MAAM;aACP;SACF;KACF;IAED,IAAI,OAAO,EAAE;QACX,KAAK,GAAG,IAAI,KAAK,GAAG,CAAC;KACtB;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,sBAAsB,CAAC,IAAwB;IACtD,OAAO,QAAQ,IAAI,IAAI,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.d.ts" index 7b06755c0727eadd96d3a219f651aefb67796096..0bdd9bdfd05995baff9aa40a0d5b7fc2b1981d95 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.d.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a88dcf0cbb376a7d0f780c8ebab082796a8125bf18f12cf23db924bb1fd3e9d -size 450 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js" index 5fedccdf0581c877faf96ac2ea410a58f6a22801..7d6b724a65015cf31f55a0d01cec923e63f8ea5e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:82cff21ade150e1bc49b0edf36e74d723a665570cc9dedaf8f3e8c8c32f52e34 -size 2297 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js.map" index ecc2418e507bbc8e5610d17cb79711ee24ba8fd5..011e4a8f37efe685ee93f7851b19ccec9a7fd830 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlDefinition.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:130b7bb4a004a7031190431c39ff6c83fd7f8024a1d87b0323ed2661f59fc54b -size 1460 +{"version":3,"file":"yamlDefinition.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlDefinition.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAIhG,6EAAkF;AAClF,+BAA+B;AAE/B,6DAA8D;AAC9D,gDAA0D;AAC1D,8CAA8D;AAC9D,oDAAiD;AAEjD,MAAa,cAAc;IACzB,YAA6B,SAAqB;QAArB,cAAS,GAAT,SAAS,CAAY;IAAG,CAAC;IAEtD,aAAa,CAAC,QAAsB,EAAE,MAAwB;QAC5D,IAAI;YACF,MAAM,YAAY,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YAClE,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAClD,MAAM,UAAU,GAAG,IAAA,gCAAqB,EAAC,MAAM,EAAE,YAAY,CAAC,CAAC;YAC/D,IAAI,UAAU,EAAE;gBACd,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,mBAAmB,CAAC,MAAM,EAAE,IAAI,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAChF,IAAI,IAAI,IAAI,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE;oBACzB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;oBAC1D,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC5B,MAAM,WAAW,GAAG,mCAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/G,MAAM,cAAc,GAAG,mCAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAClH,OAAO,CAAC,0CAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;qBACzE;iBACF;aACF;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SAChG;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAzBD,wCAyBC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.d.ts" index 363b6c84aafff243b79d95e569ccde99b5229ed3..db3dc1f11f25d1ed6a018c0bdaf11f4a47cfbec4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9b72ec822052b0a1e21e7f636faf35c30ea111a52fbb237cfcf355017949858 -size 305 +import { 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; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js" index 206262c5782b3af1e851da85e2fe70b8634be9b3..918fbd6eb207d12c1ee72915ca87ec069b66b356 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js" @@ -1,3 +1,66 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed25ce6d791e14b0e9b5b1949d690a48b43c0c90c3da41baf577be09bef91acd -size 3071 +"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 string + const 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js.map" index 7e169d7a15503913d206234f137fbe06cb2149dd..a24cff518019edc0d33ac91be1886b9a04a1d22c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFolding.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2f6eb7e5b61a66b6f61b4afa778af0965147cb40b45becea1276a7252b6e52be -size 2352 +{"version":3,"file":"yamlFolding.js","sourceRoot":"","sources":["../../../../../src/languageservice/services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AM,GAAG,SAAS,CAAC,CAAC;KACrE;IACD,OAAO,0CAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;AAC/F,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.d.ts" index 59ddeceb8052a110f2ba9ec26e3588188d7fced1..f72a0480494ef4d200ccb38adb8b2b8ae6fc2b20 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.d.ts" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8231cfa9a1e4a38a0bbeaed003e818c239d85ae97ca1dd9196793085498de453 -size 448 +import { 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[]; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js" index 5683ae2e8e642ae0b12c8d46d4b403aafc675256..004e83ce05506a43ae14fe4aae85a8f7f04a830c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js" @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fb04abe8fb75d07374e7e9f6f18098e741272126f3ca38f84a9ea9d35a5650e4 -size 2125 +/*--------------------------------------------------------------------------------------------- + * 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.ts + proseWrap: '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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js.map" index 404f6fe611953a6206b069feb90f203574074728..2556cb7dfdbd6f658b13a3f55594dc0a294959e4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlFormatter.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:558c3f278bf71e5d2c97dda3d089d487c9b73fb15eb698240d84faa32ec28c69 -size 1280 +{"version":3,"file":"yamlFormatter.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlFormatter.ts"],"names":[],"mappings":"AAAA;;;;gGAIgG;AAChG,YAAY,CAAC;;;AAEb,6EAA2F;AAE3F,qCAAqC;AAErC,+CAA+C;AAG/C,MAAa,aAAa;IAA1B;QACU,qBAAgB,GAAG,IAAI,CAAC;IAsClC,CAAC;IApCQ,SAAS,CAAC,YAA8B;QAC7C,IAAI,YAAY,EAAE;YAChB,IAAI,CAAC,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC;SAC7C;IACH,CAAC;IAEM,MAAM,CAAC,QAAsB,EAAE,OAAmD;QACvF,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YAC1B,OAAO,EAAE,CAAC;SACX;QAED,IAAI;YACF,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;YAEhC,MAAM,eAAe,GAAY;gBAC/B,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,CAAC,MAAM,CAAC;gBAEjB,4BAA4B;gBAC5B,QAAQ,EAAG,OAAO,CAAC,QAAmB,IAAI,OAAO,CAAC,OAAO;gBAEzD,iCAAiC;gBACjC,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,cAAc,EAAE,OAAO,CAAC,cAAc;gBACtC,sEAAsE;gBACtE,SAAS,EAAE,QAAQ,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU;gBAC3G,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC;YAEF,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;YAEzD,OAAO,CAAC,sCAAQ,CAAC,OAAO,CAAC,mCAAK,CAAC,MAAM,CAAC,sCAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;SAC7G;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,EAAE,CAAC;SACX;IACH,CAAC;CACF;AAvCD,sCAuCC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.d.ts" index 21ed879819c74ef52dd4bcf682e9e13d384ee6b0..bbbe68ed7a1b0df2e26497132cd1d175ce50e0ef 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.d.ts" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0d24da5f660c79bfa5992e1b231f1ec94bb9435659ee99bc4b519d363d826d17 -size 690 +import { 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; + private getHover; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js" index 70600f98d78ee3326a97523864eebb4a663e8b6d..1fb340e81e492b8687141b3faa45771f16ecc724 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js" @@ -1,3 +1,221 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:542fc11ea7abcf442c74fcdf8eb83c1ec243ce16fb3d41718bba0eccbcabf261 -size 10561 +/*--------------------------------------------------------------------------------------------- + * 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#L23 + getHover(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 key + if (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 hover + title = ''; + 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#L122 +function toMarkdownCodeBlock(content) { + // see https://daringfireball.net/projects/markdown/syntax#precode + if (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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js.map" index 9fa9c0244339a7bfdf2d2af8e7f47a4852142aae..7821f7a150fbde83dc2a024e1ec5e2463e91234b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlHover.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d61ee3a4ac51f8190904dbc38966ac5639da1ac2f342ddb84542df6aa8ea18d -size 7499 +{"version":3,"file":"yamlHover.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlHover.ts"],"names":[],"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CAAC;SACJ;KACF;IACD,OAAO,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.d.ts" index 0955e550f8db282b69c9e5391f5fa3f2892c0310..d17bfee343c9568c705cfc997548b3dba841b623 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.d.ts" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:696f2fd0d738f228c37018f34ca63c969c4a4fdb0fca4ddc6d13e200349d96be -size 341 +import { 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; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js" index d0d27cb6ff5f3764021acf6f381f94bf91f261e8..2753faa43986e3458bd11653a75db92b1806153d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js" @@ -1,3 +1,32 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:253f30ab54ff5d91d07ce0631c3bc5a3bea12ff14b767a1ad6362ffac91a8e98 -size 1575 +"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 finished + const 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 array + return 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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js.map" index b9bacda9931a9990d008f564478d7814ada6c8a7..52df348ff5881a32e5f655c6805a7804048f61db 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlLinks.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbae81aa3c5c6161e0195837041704a25879e9d06c738d6a28c58755a0366822 -size 833 +{"version":3,"file":"yamlLinks.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlLinks.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG,sFAAoG;AAIpG,6DAA8D;AAC9D,8CAA8D;AAE9D,MAAa,SAAS;IACpB,YAA6B,SAAqB;QAArB,cAAS,GAAT,SAAS,CAAY;IAAG,CAAC;IAEtD,SAAS,CAAC,QAAsB;QAC9B,IAAI;YACF,MAAM,GAAG,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YACzD,2EAA2E;YAC3E,MAAM,YAAY,GAAG,EAAE,CAAC;YACxB,KAAK,MAAM,OAAO,IAAI,GAAG,CAAC,SAAS,EAAE;gBACnC,YAAY,CAAC,IAAI,CAAC,IAAA,qBAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;aACrD;YACD,wFAAwF;YACxF,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;SACvF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,IAAA,oCAA0B,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SAClG;IACH,CAAC;CACF;AAjBD,8BAiBC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.d.ts" index 9d8d5e38cf02ace62826d1e79f874b00029dcef9..7ff37e69a019a6f0463e101b724fad9d70e0629a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.d.ts" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4aecaf44ce73e3277a8d6c31b33ad672dc77fba19ae231a6032a0c92bef6328b -size 335 +import { 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; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js" index 48f65730eb6d77add6f6216b64eb3177fbeed353..ae62d859b5e0be1243ab96870e4140d6deda7532 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js" @@ -1,3 +1,47 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5aeeca0948e97aaac6975d560e6958b5a48288dd484e2b7ce106c8c5e5ae29cb -size 2783 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js.map" index 5a72cd43a7ae806e3553e0568d002ec9357e744c..3e3e37cf0d4208fb5a697526a7c0dc7c1a9c4d83 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlOnTypeFormatting.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e17092cf4fa1957ced5b1b4c0d30249f8d43ed1bda10524ed357b83a6e02e4ee -size 2138 +{"version":3,"file":"yamlOnTypeFormatting.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlOnTypeFormatting.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAGhG,6EAAwE;AAExE,oDAAiD;AAEjD,SAAgB,0BAA0B,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BAC3G;gBACD,MAAM,CAAC,IAAI,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAElH,OAAO,MAAM,CAAC;aACf;YACD,IAAI,SAAS,EAAE;gBACb,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;aACxE;SACF;QAED,IAAI,YAAY,CAAC,SAAS,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC1C,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SACxE;QAED,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAChE,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;SAC1C;QAED,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC/D,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;SAC1C;KACF;AACH,CAAC;AA1CD,gEA0CC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.d.ts" index 5f1a8b74703d6d61b67ed786373f1e1a2d4a4ac3..fd2ed96685aba5a59f4b59c2ed282d2f0334e1be 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.d.ts" @@ -1,3 +1,102 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d265f93b1cbc28de09dc5d2e23e7f657c41c94e31d6f7702a2ebf575abf6850 -size 4359 +import { 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; +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>; + private schemaUriToNameAndDescription; + constructor(requestService: SchemaRequestService, contextService?: WorkspaceContextService, promiseConstructor?: PromiseConstructor); + registerCustomSchemaProvider(customSchemaProvider: CustomSchemaProvider): void; + getAllSchemas(): JSONSchemaDescriptionExt[]; + resolveSchemaContent(schemaToResolve: UnresolvedSchema, schemaURL: string, dependencies: SchemaDependencies): Promise; + getSchemaForResource(resource: string, doc: JSONDocument): Promise; + 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; + /** + * Delete schemas on specific path + */ + deleteSchemas(deletions: SchemaDeletionsAll): Promise; + /** + * Delete a schema with schema ID. + */ + deleteSchema(schemaId: string): Promise; + /** + * Add content to a specified schema at a specified path + */ + addContent(additions: SchemaAdditions): Promise; + /** + * Delete content in a specified schema at a specified path + */ + deleteContent(deletions: SchemaDeletions): Promise; + /** + * 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; + 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; + onResourceChange(uri: string): boolean; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js" index a524b5382c9f23d44ec89105724ce1741937fa5a..80e8886f9a7cb619c85dd092a28143bca7cae3da 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js" @@ -1,3 +1,575 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ca8ef1f1fc7704873b2f51834a42e8983fd536d138a332badad5e80410088ad -size 25727 +/*--------------------------------------------------------------------------------------------- + * 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-requires +const 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 pattern + this.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-any + let 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-define + return 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-any + const 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 circle + seenRefs.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.resolve + let 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-any + const 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 service + addSchemaPriority(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 easier + let 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-any + resolveNext(object, token) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (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 here + try { + 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 anyways + errorMessage = 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-any + getRegisteredSchemaIds(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 \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js.map" index ffa939509aaa77aa246c9965229c8d768396cc38..c0611f80a5917a91a83ec1341d3e07242497a44e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSchemaService.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:372a17fb8b50f9e8224c60995ac921849e4dec967a255659b1043ac0a3085d6a -size 18576 +{"version":3,"file":"yamlSchemaService.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlSchemaService.ts"],"names":[],"mappings":"AAAA;;;;gGAIgG;AAChG,YAAY,CAAC;;;AAGb,gEAAuG;AACvG,sGAOwE;AAExE,2CAAiC;AAEjC,kCAAkC;AAClC,8CAA+D;AAG/D,+BAA6B;AAC7B,6BAA6B;AAC7B,iDAAuD;AAIvD,6BAAwC;AACxC,sDAAsD;AA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AC;IAED,8DAA8D;IAC9D,sBAAsB,CAAC,MAAiC;QACtD,OAAO,KAAK,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,iBAAiB,CAAC,QAAgB;QAChC,OAAO,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED,gBAAgB,CAAC,GAAW;QAC1B,OAAO,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;CACF;AA1mBD,8CA0mBC;AAED,SAAS,eAAe,CAAC,GAAW;IAClC,IAAI;QACF,MAAM,GAAG,GAAG,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE;YACzB,OAAO,GAAG,CAAC,MAAM,CAAC;SACnB;KACF;IAAC,OAAO,CAAC,EAAE;QACV,SAAS;KACV;IACD,OAAO,GAAG,CAAC;AACb,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.d.ts" index db5852dbaf831038247c4d14af080320fafa0079..0266571f07967b96693bd387d587a90803eb2476 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.d.ts" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7aeb1c23d74335802492dd72a502873843052ea5d37e118d4609ce80f6138ef8 -size 260 +import { Position, SelectionRange } from 'vscode-languageserver-types'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +export declare function getSelectionRanges(document: TextDocument, positions: Position[]): SelectionRange[] | undefined; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js" index 304521a08b68f25b7166003c0f4c55d5b5416d90..103893741545730d48cc73a30e65cdd5b816b134 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js" @@ -1,3 +1,106 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:10b9e68f1401739c586caffa7bd3a0ff2888300fc3efef981b2c0365c2981087 -size 4537 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSelectionRanges = void 0; +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const yaml_documents_1 = require("../parser/yaml-documents"); +function getSelectionRanges(document, positions) { + if (!document) { + return; + } + const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document); + return positions.map((position) => { + const ranges = getRanges(position); + let current; + for (const range of ranges) { + current = vscode_languageserver_types_1.SelectionRange.create(range, current); + } + if (!current) { + current = vscode_languageserver_types_1.SelectionRange.create({ + start: position, + end: position, + }); + } + return current; + }); + function getRanges(position) { + const offset = document.offsetAt(position); + const result = []; + for (const ymlDoc of doc.documents) { + let currentNode; + let firstNodeOffset; + let isFirstNode = true; + ymlDoc.visit((node) => { + const endOffset = node.offset + node.length; + // Skip if end offset doesn't even reach cursor position + if (endOffset < offset) { + return true; + } + let startOffset = node.offset; + // Recheck start offset with the trimmed one in case of this + // key: + // - value + // ↑ + if (startOffset > offset) { + const nodePosition = document.positionAt(startOffset); + if (nodePosition.line !== position.line) { + return true; + } + const lineBeginning = { line: nodePosition.line, character: 0 }; + const text = document.getText({ + start: lineBeginning, + end: nodePosition, + }); + if (text.trim().length !== 0) { + return true; + } + startOffset = document.offsetAt(lineBeginning); + if (startOffset > offset) { + return true; + } + } + // Allow equal for children to override + if (!currentNode || startOffset >= currentNode.offset) { + currentNode = node; + firstNodeOffset = startOffset; + } + return true; + }); + while (currentNode) { + const startOffset = isFirstNode ? firstNodeOffset : currentNode.offset; + const endOffset = currentNode.offset + currentNode.length; + const range = { + start: document.positionAt(startOffset), + end: document.positionAt(endOffset), + }; + const text = document.getText(range); + const trimmedText = text.trimEnd(); + const trimmedLength = text.length - trimmedText.length; + if (trimmedLength > 0) { + range.end = document.positionAt(endOffset - trimmedLength); + } + // Add a jump between '' "" {} [] + const isSurroundedBy = (startCharacter, endCharacter) => { + return trimmedText.startsWith(startCharacter) && trimmedText.endsWith(endCharacter || startCharacter); + }; + if ((currentNode.type === 'string' && (isSurroundedBy("'") || isSurroundedBy('"'))) || + (currentNode.type === 'object' && isSurroundedBy('{', '}')) || + (currentNode.type === 'array' && isSurroundedBy('[', ']'))) { + result.push({ + start: document.positionAt(startOffset + 1), + end: document.positionAt(endOffset - 1), + }); + } + result.push(range); + currentNode = currentNode.parent; + isFirstNode = false; + } + // A position can't be in multiple documents + if (result.length > 0) { + break; + } + } + return result.reverse(); + } +} +exports.getSelectionRanges = getSelectionRanges; +//# sourceMappingURL=yamlSelectionRanges.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js.map" index bd8e988b881406592f79233740fd7cb575af0889..d4675933f27d95fa8467739b4379dd6be350791f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlSelectionRanges.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cda1c1a0f8ef13dea990c4ade514a5c6e74cc626763449688cd534c944e498f6 -size 3377 +{"version":3,"file":"yamlSelectionRanges.js","sourceRoot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ACD,4CAA4C;YAC5C,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;gBACrB,MAAM;aACP;SACF;QACD,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;AACH,CAAC;AArGD,gDAqGC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.d.ts" index 53402deb5dce5a6edada6f30930d5175c29c2e0e..9257a990729faeb24ad8a30f82bb15b26bd00abc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.d.ts" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dbce1dbeb87afaf896e7715d7ae7dd5f6932844e05f2f6aa37c9c8ed3b5acfe0 -size 1175 +import { Diagnostic } from 'vscode-languageserver-types'; +import { LanguageSettings } from '../yamlLanguageService'; +import { YAMLSchemaService } from './yamlSchemaService'; +import { YAMLDocDiagnostic } from '../utils/parseUtils'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { Telemetry } from '../telemetry'; +/** + * Convert a YAMLDocDiagnostic to a language server Diagnostic + * @param yamlDiag A YAMLDocDiagnostic from the parser + * @param textDocument TextDocument from the language server client + */ +export declare const yamlDiagToLSDiag: (yamlDiag: YAMLDocDiagnostic, textDocument: TextDocument) => Diagnostic; +export declare class YAMLValidation { + private readonly telemetry?; + private validationEnabled; + private customTags; + private jsonValidation; + private disableAdditionalProperties; + private yamlVersion; + private validators; + private MATCHES_MULTIPLE; + constructor(schemaService: YAMLSchemaService, telemetry?: Telemetry); + configure(settings: LanguageSettings): void; + doValidation(textDocument: TextDocument, isKubernetes?: boolean): Promise; + private runAdditionalValidators; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js" index 68634fa4411a7dacd3ff887ffaa524cf09d49605..cebed6e094943603c7b0a099aef11f85db705897 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js" @@ -1,3 +1,134 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03c83ee9f416b29e0b96a225495faa58de31e96da60ea9ee12ed65a8fe8152df -size 6444 +/*--------------------------------------------------------------------------------------------- + * 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.YAMLValidation = exports.yamlDiagToLSDiag = void 0; +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const jsonValidation_1 = require("vscode-json-languageservice/lib/umd/services/jsonValidation"); +const jsonParser07_1 = require("../parser/jsonParser07"); +const textBuffer_1 = require("../utils/textBuffer"); +const yaml_documents_1 = require("../parser/yaml-documents"); +const objects_1 = require("../utils/objects"); +const unused_anchors_1 = require("./validation/unused-anchors"); +const yaml_style_1 = require("./validation/yaml-style"); +const map_key_order_1 = require("./validation/map-key-order"); +/** + * Convert a YAMLDocDiagnostic to a language server Diagnostic + * @param yamlDiag A YAMLDocDiagnostic from the parser + * @param textDocument TextDocument from the language server client + */ +const yamlDiagToLSDiag = (yamlDiag, textDocument) => { + const start = textDocument.positionAt(yamlDiag.location.start); + const range = { + start, + end: yamlDiag.location.toLineEnd + ? vscode_languageserver_types_1.Position.create(start.line, new textBuffer_1.TextBuffer(textDocument).getLineLength(start.line)) + : textDocument.positionAt(yamlDiag.location.end), + }; + return vscode_languageserver_types_1.Diagnostic.create(range, yamlDiag.message, yamlDiag.severity, yamlDiag.code, jsonParser07_1.YAML_SOURCE); +}; +exports.yamlDiagToLSDiag = yamlDiagToLSDiag; +class YAMLValidation { + constructor(schemaService, telemetry) { + this.telemetry = telemetry; + this.validators = []; + this.MATCHES_MULTIPLE = 'Matches multiple schemas when only one must validate.'; + this.validationEnabled = true; + this.jsonValidation = new jsonValidation_1.JSONValidation(schemaService, Promise); + } + configure(settings) { + this.validators = []; + if (settings) { + this.validationEnabled = settings.validate; + this.customTags = settings.customTags; + this.disableAdditionalProperties = settings.disableAdditionalProperties; + this.yamlVersion = settings.yamlVersion; + // Add style validator if flow style is set to forbid only. + if (settings.flowMapping === 'forbid' || settings.flowSequence === 'forbid') { + this.validators.push(new yaml_style_1.YAMLStyleValidator(settings)); + } + if (settings.keyOrdering) { + this.validators.push(new map_key_order_1.MapKeyOrderValidator()); + } + } + this.validators.push(new unused_anchors_1.UnusedAnchorsValidator()); + } + async doValidation(textDocument, isKubernetes = false) { + if (!this.validationEnabled) { + return Promise.resolve([]); + } + const validationResult = []; + try { + const yamlDocument = yaml_documents_1.yamlDocumentsCache.getYamlDocument(textDocument, { customTags: this.customTags, yamlVersion: this.yamlVersion }, true); + let index = 0; + for (const currentYAMLDoc of yamlDocument.documents) { + currentYAMLDoc.isKubernetes = isKubernetes; + currentYAMLDoc.currentDocIndex = index; + currentYAMLDoc.disableAdditionalProperties = this.disableAdditionalProperties; + currentYAMLDoc.uri = textDocument.uri; + const validation = await this.jsonValidation.doValidation(textDocument, currentYAMLDoc); + const syd = currentYAMLDoc; + if (syd.errors.length > 0) { + // TODO: Get rid of these type assertions (shouldn't need them) + validationResult.push(...syd.errors); + } + if (syd.warnings.length > 0) { + validationResult.push(...syd.warnings); + } + validationResult.push(...validation); + validationResult.push(...this.runAdditionalValidators(textDocument, currentYAMLDoc)); + index++; + } + } + catch (err) { + this.telemetry?.sendError('yaml.validation.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) }); + } + let previousErr; + const foundSignatures = new Set(); + const duplicateMessagesRemoved = []; + for (let err of validationResult) { + /** + * A patch ontop of the validation that removes the + * 'Matches many schemas' error for kubernetes + * for a better user experience. + */ + if (isKubernetes && err.message === this.MATCHES_MULTIPLE) { + continue; + } + if (Object.prototype.hasOwnProperty.call(err, 'location')) { + err = (0, exports.yamlDiagToLSDiag)(err, textDocument); + } + if (!err.source) { + err.source = jsonParser07_1.YAML_SOURCE; + } + if (previousErr && + previousErr.message === err.message && + previousErr.range.end.line === err.range.start.line && + Math.abs(previousErr.range.end.character - err.range.end.character) >= 1) { + previousErr.range.end = err.range.end; + continue; + } + else { + previousErr = err; + } + const errSig = err.range.start.line + ' ' + err.range.start.character + ' ' + err.message; + if (!foundSignatures.has(errSig)) { + duplicateMessagesRemoved.push(err); + foundSignatures.add(errSig); + } + } + return duplicateMessagesRemoved; + } + runAdditionalValidators(document, yarnDoc) { + const result = []; + for (const validator of this.validators) { + result.push(...validator.validate(document, yarnDoc)); + } + return result; + } +} +exports.YAMLValidation = YAMLValidation; +//# sourceMappingURL=yamlValidation.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js.map" index d10848df8c0dc6707f994b4e5b18c83a793b0d83..9a5d252897ca2e9ed761d4abb5518cef42876fe9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/services/yamlValidation.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c26274cc7e9b90e89f83e146fbfb4db96918160bb39dc786df9294ba3f430a24 -size 4355 +{"version":3,"file":"yamlValidation.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/yamlValidation.ts"],"names":[],"mappings":"AAAA;;;;gGAI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O,MAAM,CAAC;IAChB,CAAC;CACF;AA1HD,wCA0HC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.d.ts" index 2a0f9103f46d430207badb8432790ad5c2671d2a..8f3f274ecc16b178cc8346ed4ac7654dae248070 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.d.ts" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:698b60673a9dc847504cc8fd93e4e3873716dc1e8e1c6e739d88443116e68a3a -size 421 +/** + * Due to LSP limitation this object must be JSON serializable + */ +export interface TelemetryEvent { + name: string; + type?: string; + properties?: unknown; + measures?: unknown; + traits?: unknown; + context?: unknown; +} +export interface Telemetry { + send(event: TelemetryEvent): void; + sendError(name: string, properties: unknown): void; + sendTrack(name: string, properties: unknown): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js" index 3f61fa0e088035b7b729fb1d20c2d68492a0a9f2..5472ad7505cb7880e0abf4cbf3460a4701e9ab6d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff04b8e5632c4b807e3d55d624856506081b93473f86be65216abd999e0298d7 -size 457 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=telemetry.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js.map" index b5440aad9add92777495ca384314a183410745aa..cc5ba7169a2f2ca52d7c68ef8bf6ccca60f5658d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/telemetry.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a97233adc17e55b75f38249026df10d07f2295fb1afb020c9e0d32c4cd195324 -size 149 +{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../src/languageservice/telemetry.ts"],"names":[],"mappings":";AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.d.ts" index 7414b49440f89bb5f74cc01bc5e830b8e021ddd6..7873cc3ce29a2d0c4da33c3a647c79b105753bd5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2d0ee789a2efa38d0d4aa0f61ad5c599b981f82396d7baf0709b5b5927ccb58 -size 505 +import { YAMLDocument, SingleYAMLDocument } from '../parser/yamlParser07'; +export declare function getLineOffsets(textDocString: string): number[]; +export declare function removeDuplicatesObj(objArray: T[]): T[]; +export declare function matchOffsetToDocument(offset: number, jsonDocuments: YAMLDocument): SingleYAMLDocument | null; +export declare function filterInvalidCustomTags(customTags: string[]): string[]; +export declare function isArrayEqual(fst: Array, snd: Array): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js" index 9e2e334e56a79fde4cfbf7abef636374898384c0..d8f5357bd7b705f1c532933eaa91a9e4a02e6aad 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js" @@ -1,3 +1,89 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90871414089bce24c3d2777da42e1f2d1f376c5791d4c52dab37454b530413b6 -size 3234 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isArrayEqual = exports.filterInvalidCustomTags = exports.matchOffsetToDocument = exports.removeDuplicatesObj = exports.getLineOffsets = void 0; +function getLineOffsets(textDocString) { + const lineOffsets = []; + const text = textDocString; + let isLineStart = true; + for (let i = 0; i < text.length; i++) { + if (isLineStart) { + lineOffsets.push(i); + isLineStart = false; + } + const ch = text.charAt(i); + isLineStart = ch === '\r' || ch === '\n'; + if (ch === '\r' && i + 1 < text.length && text.charAt(i + 1) === '\n') { + i++; + } + } + if (isLineStart && text.length > 0) { + lineOffsets.push(text.length); + } + return lineOffsets; +} +exports.getLineOffsets = getLineOffsets; +function removeDuplicatesObj(objArray) { + const nonDuplicateSet = new Set(); + const nonDuplicateArr = []; + for (const obj in objArray) { + const currObj = objArray[obj]; + const stringifiedObj = JSON.stringify(currObj); + if (!nonDuplicateSet.has(stringifiedObj)) { + nonDuplicateArr.push(currObj); + nonDuplicateSet.add(stringifiedObj); + } + } + return nonDuplicateArr; +} +exports.removeDuplicatesObj = removeDuplicatesObj; +function matchOffsetToDocument(offset, jsonDocuments) { + for (const jsonDoc of jsonDocuments.documents) { + if (jsonDoc.internalDocument && jsonDoc.internalDocument.range[0] <= offset && jsonDoc.internalDocument.range[2] >= offset) { + return jsonDoc; + } + } + if (jsonDocuments.documents.length === 1) { + return jsonDocuments.documents[0]; + } + return null; +} +exports.matchOffsetToDocument = matchOffsetToDocument; +function filterInvalidCustomTags(customTags) { + const validCustomTags = ['mapping', 'scalar', 'sequence']; + if (!customTags) { + return []; + } + return customTags.filter((tag) => { + if (typeof tag === 'string') { + const typeInfo = tag.split(' '); + const type = (typeInfo[1] && typeInfo[1].toLowerCase()) || 'scalar'; + // We need to check if map is a type because map will throw an error within the yaml-ast-parser + if (type === 'map') { + return false; + } + return validCustomTags.indexOf(type) !== -1; + } + return false; + }); +} +exports.filterInvalidCustomTags = filterInvalidCustomTags; +function isArrayEqual(fst, snd) { + if (!snd || !fst) { + return false; + } + if (snd.length !== fst.length) { + return false; + } + for (let index = fst.length - 1; index >= 0; index--) { + if (fst[index] !== snd[index]) { + return false; + } + } + return true; +} +exports.isArrayEqual = isArrayEqual; +//# sourceMappingURL=arrUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js.map" index fa11fa5d58189ed03315e2bd259b0c6baa712846..6280c59e5e49151a3c90d040b7fbad8b546af806 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/arrUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3ab92490cc505b03eed85d75ea212da2ea5c2c18e71f91b8ed3f0057d141f75 -size 2696 +{"version":3,"file":"arrUtils.js","sourceRoot":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C,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;SAC7C;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AApBD,0DAoBC;AACD,SAAgB,YAAY,CAAC,GAAmB,EAAE,GAAmB;IACnE,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE;QAC7B,OAAO,KAAK,CAAC;KACd;IACD,KAAK,IAAI,KAAK,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE;QACpD,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,EAAE;YAC7B,OAAO,KAAK,CAAC;SACd;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAbD,oCAaC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.d.ts" index 9256f87081f34d2393b946352ddd1b52bb48dbb9..9a9456f3a92203e517d969be4f498cf3cb34aaf3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.d.ts" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff6dca7c7f0ca75d597fd4f9e61620384d3346b78ade4411b029d322eef443c0 -size 689 +import { Document, YAMLMap, YAMLSeq } from 'yaml'; +import { CollectionItem, Token } from 'yaml/dist/parse/cst'; +import { YamlNode } from '../jsonASTTypes'; +export declare function getParent(doc: Document, nodeToFind: YamlNode): YamlNode | undefined; +export declare function isMapContainsEmptyPair(map: YAMLMap): boolean; +export declare function indexOf(seq: YAMLSeq, item: YamlNode): number | undefined; +/** + * Check that given offset is in YAML comment + * @param doc the yaml document + * @param offset the offset to check + */ +export declare function isInComment(tokens: Token[], offset: number): boolean; +export declare function isCollectionItem(token: unknown): token is CollectionItem; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js" index e69cd225e9474801abacc1f5043b3ac3ae76e3b8..9ab700a5251568f1e15ebcdaf7c46601ef6c94f0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js" @@ -1,3 +1,116 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78f680014ab9b6923f7058c7c71da43d0c15ad7833f233083aa0d1f0dda09bc8 -size 4224 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isCollectionItem = exports.isInComment = exports.indexOf = exports.isMapContainsEmptyPair = exports.getParent = void 0; +const yaml_1 = require("yaml"); +function getParent(doc, nodeToFind) { + let parentNode; + (0, yaml_1.visit)(doc, (_, node, path) => { + if (node === nodeToFind) { + parentNode = path[path.length - 1]; + return yaml_1.visit.BREAK; + } + }); + if ((0, yaml_1.isDocument)(parentNode)) { + return undefined; + } + return parentNode; +} +exports.getParent = getParent; +function isMapContainsEmptyPair(map) { + if (map.items.length > 1) { + return false; + } + const pair = map.items[0]; + return (0, yaml_1.isScalar)(pair.key) && (0, yaml_1.isScalar)(pair.value) && pair.key.value === '' && !pair.value.value; +} +exports.isMapContainsEmptyPair = isMapContainsEmptyPair; +function indexOf(seq, item) { + for (const [i, obj] of seq.items.entries()) { + if (item === obj) { + return i; + } + } + return undefined; +} +exports.indexOf = indexOf; +/** + * Check that given offset is in YAML comment + * @param doc the yaml document + * @param offset the offset to check + */ +function isInComment(tokens, offset) { + let inComment = false; + for (const token of tokens) { + if (token.type === 'document') { + _visit([], token, (item) => { + if (isCollectionItem(item) && item.value?.type === 'comment') { + if (token.offset <= offset && item.value.source.length + item.value.offset >= offset) { + inComment = true; + return yaml_1.visit.BREAK; + } + } + else if (item.type === 'comment' && item.offset <= offset && item.offset + item.source.length >= offset) { + inComment = true; + return yaml_1.visit.BREAK; + } + }); + } + else if (token.type === 'comment') { + if (token.offset <= offset && token.source.length + token.offset >= offset) { + return true; + } + } + if (inComment) { + break; + } + } + return inComment; +} +exports.isInComment = isInComment; +function isCollectionItem(token) { + return token['start'] !== undefined; +} +exports.isCollectionItem = isCollectionItem; +function _visit(path, item, visitor) { + let ctrl = visitor(item, path); + if (typeof ctrl === 'symbol') + return ctrl; + for (const field of ['key', 'value']) { + const token = item[field]; + if (token && 'items' in token) { + for (let i = 0; i < token.items.length; ++i) { + const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === yaml_1.visit.BREAK) + return yaml_1.visit.BREAK; + else if (ci === yaml_1.visit.REMOVE) { + token.items.splice(i, 1); + i -= 1; + } + } + if (typeof ctrl === 'function' && field === 'key') + ctrl = ctrl(item, path); + } + } + const token = item['sep']; + if (token) { + for (let i = 0; i < token.length; ++i) { + const ci = _visit(Object.freeze(path), token[i], visitor); + if (typeof ci === 'number') + i = ci - 1; + else if (ci === yaml_1.visit.BREAK) + return yaml_1.visit.BREAK; + else if (ci === yaml_1.visit.REMOVE) { + token.items.splice(i, 1); + i -= 1; + } + } + } + return typeof ctrl === 'function' ? ctrl(item, path) : ctrl; +} +//# sourceMappingURL=astUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js.map" index 5ea2b5389eac60a7fb74ad3928c4bc8671fd4f6f..68ad217d6248e424c0e1bb847a20bf86fda3ddac 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/astUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:249056d9f36357c669ec0bc10932bf8943a04c0ad2f780213fc064c2c4e661df -size 3786 +{"version":3,"file":"astUtils.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/astUtils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,+BAAqF;AAOrF,SAAgB,SAAS,CAAC,GAAa,EAAE,UAAoB;IAC3D,IAAI,UAAgB,CAAC;IACrB,IAAA,YAAK,EAAC,GAAG,EAAE,CAAC,CAAC,EAAE,IAAU,EAAE,IAAI,EAAE,EAAE;QACjC,IAAI,IAAI,KAAK,UAAU,EAAE;YACvB,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAS,CAAC;YAC3C,OAAO,YAAK,CAAC,KAAK,CAAC;SACpB;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,IAAA,iBAAU,EAAC,UAAU,CAAC,EAAE;QAC1B,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAdD,8BAcC;AACD,SAAgB,sBAAsB,CAAC,GAAY;IACjD,IAAI,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACxB,OAAO,KAAK,CAAC;KACd;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,IAAA,eAAQ,EAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAA,eAAQ,EAAC,I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AK,CAAC,KAAK,CAAC;qBAC3C,IAAI,EAAE,KAAK,YAAK,CAAC,MAAM,EAAE;oBAC5B,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBACzB,CAAC,IAAI,CAAC,CAAC;iBACR;aACF;YACD,IAAI,OAAO,IAAI,KAAK,UAAU,IAAI,KAAK,KAAK,KAAK;gBAAE,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAC5E;KACF;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,IAAI,KAAK,EAAE;QACT,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;YACrC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAC1D,IAAI,OAAO,EAAE,KAAK,QAAQ;gBAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;iBAClC,IAAI,EAAE,KAAK,YAAK,CAAC,KAAK;gBAAE,OAAO,YAAK,CAAC,KAAK,CAAC;iBAC3C,IAAI,EAAE,KAAK,YAAK,CAAC,MAAM,EAAE;gBAC5B,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACzB,CAAC,IAAI,CAAC,CAAC;aACR;SACF;KACF;IACD,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9D,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.d.ts" index 086d0697e6121fb643b7d90a799dbbb0fae4066b..61c9a2fa955407a2a032f17e689298f9194f2fab 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.d.ts" @@ -1,3 +1,415 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12589e6b27710c071911512033dcc0031cba705fe4dd911cb1b65139c7ef0fb9 -size 11020 +/** + * An inlined enum containing useful character codes (to be used with String.charCodeAt). + * Please leave the const keyword such that it gets inlined when compiled to JavaScript! + */ +export declare const enum CharCode { + Null = 0, + /** + * The `\b` character. + */ + Backspace = 8, + /** + * The `\t` character. + */ + Tab = 9, + /** + * The `\n` character. + */ + LineFeed = 10, + /** + * The `\r` character. + */ + CarriageReturn = 13, + Space = 32, + /** + * The `!` character. + */ + ExclamationMark = 33, + /** + * The `"` character. + */ + DoubleQuote = 34, + /** + * The `#` character. + */ + Hash = 35, + /** + * The `$` character. + */ + DollarSign = 36, + /** + * The `%` character. + */ + PercentSign = 37, + /** + * The `&` character. + */ + Ampersand = 38, + /** + * The `'` character. + */ + SingleQuote = 39, + /** + * The `(` character. + */ + OpenParen = 40, + /** + * The `)` character. + */ + CloseParen = 41, + /** + * The `*` character. + */ + Asterisk = 42, + /** + * The `+` character. + */ + Plus = 43, + /** + * The `,` character. + */ + Comma = 44, + /** + * The `-` character. + */ + Dash = 45, + /** + * The `.` character. + */ + Period = 46, + /** + * The `/` character. + */ + Slash = 47, + Digit0 = 48, + Digit1 = 49, + Digit2 = 50, + Digit3 = 51, + Digit4 = 52, + Digit5 = 53, + Digit6 = 54, + Digit7 = 55, + Digit8 = 56, + Digit9 = 57, + /** + * The `:` character. + */ + Colon = 58, + /** + * The `;` character. + */ + Semicolon = 59, + /** + * The `<` character. + */ + LessThan = 60, + /** + * The `=` character. + */ + Equals = 61, + /** + * The `>` character. + */ + GreaterThan = 62, + /** + * The `?` character. + */ + QuestionMark = 63, + /** + * The `@` character. + */ + AtSign = 64, + A = 65, + B = 66, + C = 67, + D = 68, + E = 69, + F = 70, + G = 71, + H = 72, + I = 73, + J = 74, + K = 75, + L = 76, + M = 77, + N = 78, + O = 79, + P = 80, + Q = 81, + R = 82, + S = 83, + T = 84, + U = 85, + V = 86, + W = 87, + X = 88, + Y = 89, + Z = 90, + /** + * The `[` character. + */ + OpenSquareBracket = 91, + /** + * The `\` character. + */ + Backslash = 92, + /** + * The `]` character. + */ + CloseSquareBracket = 93, + /** + * The `^` character. + */ + Caret = 94, + /** + * The `_` character. + */ + Underline = 95, + /** + * The ``(`)`` character. + */ + BackTick = 96, + a = 97, + b = 98, + c = 99, + d = 100, + e = 101, + f = 102, + g = 103, + h = 104, + i = 105, + j = 106, + k = 107, + l = 108, + m = 109, + n = 110, + o = 111, + p = 112, + q = 113, + r = 114, + s = 115, + t = 116, + u = 117, + v = 118, + w = 119, + x = 120, + y = 121, + z = 122, + /** + * The `{` character. + */ + OpenCurlyBrace = 123, + /** + * The `|` character. + */ + Pipe = 124, + /** + * The `}` character. + */ + CloseCurlyBrace = 125, + /** + * The `~` character. + */ + Tilde = 126, + U_Combining_Grave_Accent = 768, + U_Combining_Acute_Accent = 769, + U_Combining_Circumflex_Accent = 770, + U_Combining_Tilde = 771, + U_Combining_Macron = 772, + U_Combining_Overline = 773, + U_Combining_Breve = 774, + U_Combining_Dot_Above = 775, + U_Combining_Diaeresis = 776, + U_Combining_Hook_Above = 777, + U_Combining_Ring_Above = 778, + U_Combining_Double_Acute_Accent = 779, + U_Combining_Caron = 780, + U_Combining_Vertical_Line_Above = 781, + U_Combining_Double_Vertical_Line_Above = 782, + U_Combining_Double_Grave_Accent = 783, + U_Combining_Candrabindu = 784, + U_Combining_Inverted_Breve = 785, + U_Combining_Turned_Comma_Above = 786, + U_Combining_Comma_Above = 787, + U_Combining_Reversed_Comma_Above = 788, + U_Combining_Comma_Above_Right = 789, + U_Combining_Grave_Accent_Below = 790, + U_Combining_Acute_Accent_Below = 791, + U_Combining_Left_Tack_Below = 792, + U_Combining_Right_Tack_Below = 793, + U_Combining_Left_Angle_Above = 794, + U_Combining_Horn = 795, + U_Combining_Left_Half_Ring_Below = 796, + U_Combining_Up_Tack_Below = 797, + U_Combining_Down_Tack_Below = 798, + U_Combining_Plus_Sign_Below = 799, + U_Combining_Minus_Sign_Below = 800, + U_Combining_Palatalized_Hook_Below = 801, + U_Combining_Retroflex_Hook_Below = 802, + U_Combining_Dot_Below = 803, + U_Combining_Diaeresis_Below = 804, + U_Combining_Ring_Below = 805, + U_Combining_Comma_Below = 806, + U_Combining_Cedilla = 807, + U_Combining_Ogonek = 808, + U_Combining_Vertical_Line_Below = 809, + U_Combining_Bridge_Below = 810, + U_Combining_Inverted_Double_Arch_Below = 811, + U_Combining_Caron_Below = 812, + U_Combining_Circumflex_Accent_Below = 813, + U_Combining_Breve_Below = 814, + U_Combining_Inverted_Breve_Below = 815, + U_Combining_Tilde_Below = 816, + U_Combining_Macron_Below = 817, + U_Combining_Low_Line = 818, + U_Combining_Double_Low_Line = 819, + U_Combining_Tilde_Overlay = 820, + U_Combining_Short_Stroke_Overlay = 821, + U_Combining_Long_Stroke_Overlay = 822, + U_Combining_Short_Solidus_Overlay = 823, + U_Combining_Long_Solidus_Overlay = 824, + U_Combining_Right_Half_Ring_Below = 825, + U_Combining_Inverted_Bridge_Below = 826, + U_Combining_Square_Below = 827, + U_Combining_Seagull_Below = 828, + U_Combining_X_Above = 829, + U_Combining_Vertical_Tilde = 830, + U_Combining_Double_Overline = 831, + U_Combining_Grave_Tone_Mark = 832, + U_Combining_Acute_Tone_Mark = 833, + U_Combining_Greek_Perispomeni = 834, + U_Combining_Greek_Koronis = 835, + U_Combining_Greek_Dialytika_Tonos = 836, + U_Combining_Greek_Ypogegrammeni = 837, + U_Combining_Bridge_Above = 838, + U_Combining_Equals_Sign_Below = 839, + U_Combining_Double_Vertical_Line_Below = 840, + U_Combining_Left_Angle_Below = 841, + U_Combining_Not_Tilde_Above = 842, + U_Combining_Homothetic_Above = 843, + U_Combining_Almost_Equal_To_Above = 844, + U_Combining_Left_Right_Arrow_Below = 845, + U_Combining_Upwards_Arrow_Below = 846, + U_Combining_Grapheme_Joiner = 847, + U_Combining_Right_Arrowhead_Above = 848, + U_Combining_Left_Half_Ring_Above = 849, + U_Combining_Fermata = 850, + U_Combining_X_Below = 851, + U_Combining_Left_Arrowhead_Below = 852, + U_Combining_Right_Arrowhead_Below = 853, + U_Combining_Right_Arrowhead_And_Up_Arrowhead_Below = 854, + U_Combining_Right_Half_Ring_Above = 855, + U_Combining_Dot_Above_Right = 856, + U_Combining_Asterisk_Below = 857, + U_Combining_Double_Ring_Below = 858, + U_Combining_Zigzag_Above = 859, + U_Combining_Double_Breve_Below = 860, + U_Combining_Double_Breve = 861, + U_Combining_Double_Macron = 862, + U_Combining_Double_Macron_Below = 863, + U_Combining_Double_Tilde = 864, + U_Combining_Double_Inverted_Breve = 865, + U_Combining_Double_Rightwards_Arrow_Below = 866, + U_Combining_Latin_Small_Letter_A = 867, + U_Combining_Latin_Small_Letter_E = 868, + U_Combining_Latin_Small_Letter_I = 869, + U_Combining_Latin_Small_Letter_O = 870, + U_Combining_Latin_Small_Letter_U = 871, + U_Combining_Latin_Small_Letter_C = 872, + U_Combining_Latin_Small_Letter_D = 873, + U_Combining_Latin_Small_Letter_H = 874, + U_Combining_Latin_Small_Letter_M = 875, + U_Combining_Latin_Small_Letter_R = 876, + U_Combining_Latin_Small_Letter_T = 877, + U_Combining_Latin_Small_Letter_V = 878, + U_Combining_Latin_Small_Letter_X = 879, + /** + * Unicode Character 'LINE SEPARATOR' (U+2028) + * http://www.fileformat.info/info/unicode/char/2028/index.htm + */ + LINE_SEPARATOR = 8232, + /** + * Unicode Character 'PARAGRAPH SEPARATOR' (U+2029) + * http://www.fileformat.info/info/unicode/char/2029/index.htm + */ + PARAGRAPH_SEPARATOR = 8233, + /** + * Unicode Character 'NEXT LINE' (U+0085) + * http://www.fileformat.info/info/unicode/char/0085/index.htm + */ + NEXT_LINE = 133, + U_CIRCUMFLEX = 94, + U_GRAVE_ACCENT = 96, + U_DIAERESIS = 168, + U_MACRON = 175, + U_ACUTE_ACCENT = 180, + U_CEDILLA = 184, + U_MODIFIER_LETTER_LEFT_ARROWHEAD = 706, + U_MODIFIER_LETTER_RIGHT_ARROWHEAD = 707, + U_MODIFIER_LETTER_UP_ARROWHEAD = 708, + U_MODIFIER_LETTER_DOWN_ARROWHEAD = 709, + U_MODIFIER_LETTER_CENTRED_RIGHT_HALF_RING = 722, + U_MODIFIER_LETTER_CENTRED_LEFT_HALF_RING = 723, + U_MODIFIER_LETTER_UP_TACK = 724, + U_MODIFIER_LETTER_DOWN_TACK = 725, + U_MODIFIER_LETTER_PLUS_SIGN = 726, + U_MODIFIER_LETTER_MINUS_SIGN = 727, + U_BREVE = 728, + U_DOT_ABOVE = 729, + U_RING_ABOVE = 730, + U_OGONEK = 731, + U_SMALL_TILDE = 732, + U_DOUBLE_ACUTE_ACCENT = 733, + U_MODIFIER_LETTER_RHOTIC_HOOK = 734, + U_MODIFIER_LETTER_CROSS_ACCENT = 735, + U_MODIFIER_LETTER_EXTRA_HIGH_TONE_BAR = 741, + U_MODIFIER_LETTER_HIGH_TONE_BAR = 742, + U_MODIFIER_LETTER_MID_TONE_BAR = 743, + U_MODIFIER_LETTER_LOW_TONE_BAR = 744, + U_MODIFIER_LETTER_EXTRA_LOW_TONE_BAR = 745, + U_MODIFIER_LETTER_YIN_DEPARTING_TONE_MARK = 746, + U_MODIFIER_LETTER_YANG_DEPARTING_TONE_MARK = 747, + U_MODIFIER_LETTER_UNASPIRATED = 749, + U_MODIFIER_LETTER_LOW_DOWN_ARROWHEAD = 751, + U_MODIFIER_LETTER_LOW_UP_ARROWHEAD = 752, + U_MODIFIER_LETTER_LOW_LEFT_ARROWHEAD = 753, + U_MODIFIER_LETTER_LOW_RIGHT_ARROWHEAD = 754, + U_MODIFIER_LETTER_LOW_RING = 755, + U_MODIFIER_LETTER_MIDDLE_GRAVE_ACCENT = 756, + U_MODIFIER_LETTER_MIDDLE_DOUBLE_GRAVE_ACCENT = 757, + U_MODIFIER_LETTER_MIDDLE_DOUBLE_ACUTE_ACCENT = 758, + U_MODIFIER_LETTER_LOW_TILDE = 759, + U_MODIFIER_LETTER_RAISED_COLON = 760, + U_MODIFIER_LETTER_BEGIN_HIGH_TONE = 761, + U_MODIFIER_LETTER_END_HIGH_TONE = 762, + U_MODIFIER_LETTER_BEGIN_LOW_TONE = 763, + U_MODIFIER_LETTER_END_LOW_TONE = 764, + U_MODIFIER_LETTER_SHELF = 765, + U_MODIFIER_LETTER_OPEN_SHELF = 766, + U_MODIFIER_LETTER_LOW_LEFT_ARROW = 767, + U_GREEK_LOWER_NUMERAL_SIGN = 885, + U_GREEK_TONOS = 900, + U_GREEK_DIALYTIKA_TONOS = 901, + U_GREEK_KORONIS = 8125, + U_GREEK_PSILI = 8127, + U_GREEK_PERISPOMENI = 8128, + U_GREEK_DIALYTIKA_AND_PERISPOMENI = 8129, + U_GREEK_PSILI_AND_VARIA = 8141, + U_GREEK_PSILI_AND_OXIA = 8142, + U_GREEK_PSILI_AND_PERISPOMENI = 8143, + U_GREEK_DASIA_AND_VARIA = 8157, + U_GREEK_DASIA_AND_OXIA = 8158, + U_GREEK_DASIA_AND_PERISPOMENI = 8159, + U_GREEK_DIALYTIKA_AND_VARIA = 8173, + U_GREEK_DIALYTIKA_AND_OXIA = 8174, + U_GREEK_VARIA = 8175, + U_GREEK_OXIA = 8189, + U_GREEK_DASIA = 8190, + U_OVERLINE = 8254, + /** + * UTF-8 BOM + * Unicode Character 'ZERO WIDTH NO-BREAK SPACE' (U+FEFF) + * http://www.fileformat.info/info/unicode/char/feff/index.htm + */ + UTF8_BOM = 65279 +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js" index d69678e5852773efdee939c7397f9df4f15f6e41..4dbf83b3d2ce1e62c0d5a90c1eaea02517c94d0e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab6aa418e3d132ffc231c29ea7a707938fd0704bdd3c43cae219e2eaf4643461 -size 465 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=charCode.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js.map" index 974e2e37eb7a4acc329f65f02a05d9ea1983c0ee..45dd50850720c5299e9506e1510f05b8f46ab2fd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/charCode.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4616e4f9fa2433ef4165ba797a3de1fd1ec5c68a509e479a4f311fed7259b4f8 -size 156 +{"version":3,"file":"charCode.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/charCode.ts"],"names":[],"mappings":";AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.d.ts" index 7ba1d57e3caada68f7e07664a8050b98c752bd22..8d17f094a52dff5ae84491a2c012df3f0680d91d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d6556f23d9f2ce802e2d4f8807f70826ec7d8008c3c0c763800396ca458b1a3 -size 367 +import { Position } from 'vscode-languageserver-types'; +export declare function insertionPointReturnValue(pt: number): number; +export declare function binarySearch(array: number[], sought: number): number; +export declare function getLineStartPositions(text: string): number[]; +export declare function getPosition(pos: number, lineStartPositions: number[]): Position; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js" index d60e18d12c60976ab99f4664eda01b8e5b9abe6d..107f225cf5c71b29e2750398386deece11a1e966 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js" @@ -1,3 +1,63 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc877277e3e108772e09457211abf8753d561b8b2b1212bd845b87fd82d53ab1 -size 2406 +/*--------------------------------------------------------------------------------------------- + * 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.getPosition = exports.getLineStartPositions = exports.binarySearch = exports.insertionPointReturnValue = void 0; +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +function insertionPointReturnValue(pt) { + return -pt - 1; +} +exports.insertionPointReturnValue = insertionPointReturnValue; +function binarySearch(array, sought) { + let lower = 0; + let upper = array.length - 1; + while (lower <= upper) { + const idx = Math.floor((lower + upper) / 2); + const value = array[idx]; + if (value === sought) { + return idx; + } + if (lower === upper) { + const insertionPoint = value < sought ? idx + 1 : idx; + return insertionPointReturnValue(insertionPoint); + } + if (sought > value) { + lower = idx + 1; + } + else if (sought < value) { + upper = idx - 1; + } + } +} +exports.binarySearch = binarySearch; +function getLineStartPositions(text) { + const lineStartPositions = [0]; + for (let i = 0; i < text.length; i++) { + const c = text[i]; + if (c === '\r') { + // Check for Windows encoding, otherwise we are old Mac + if (i + 1 < text.length && text[i + 1] === '\n') { + i++; + } + lineStartPositions.push(i + 1); + } + else if (c === '\n') { + lineStartPositions.push(i + 1); + } + } + return lineStartPositions; +} +exports.getLineStartPositions = getLineStartPositions; +function getPosition(pos, lineStartPositions) { + let line = binarySearch(lineStartPositions, pos); + if (line < 0) { + const insertionPoint = -1 * line - 1; + line = insertionPoint - 1; + } + return vscode_languageserver_types_1.Position.create(line, pos - lineStartPositions[line]); +} +exports.getPosition = getPosition; +//# sourceMappingURL=documentPositionCalculator.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js.map" index d89b266a309447bf490a175d5eaee0f8b01098f1..9e02b76be5a2d62adae06e4ac413f44644d2e1e8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/documentPositionCalculator.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:546b7baf2a9ed42ca1f2992a3e0770e9be1798db64aef5ce888b9951027830f7 -size 1874 +{"version":3,"file":"documentPositionCalculator.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/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AAK,IAAI,EAAE;YACd,uDAAuD;YACvD,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBAC/C,CAAC,EAAE,CAAC;aACL;YAED,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAChC;aAAM,IAAI,CAAC,KAAK,IAAI,EAAE;YACrB,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAChC;KACF;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAlBD,sDAkBC;AAED,SAAgB,WAAW,CAAC,GAAW,EAAE,kBAA4B;IACnE,IAAI,IAAI,GAAG,YAAY,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;IAEjD,IAAI,IAAI,GAAG,CAAC,EAAE;QACZ,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;QACrC,IAAI,GAAG,cAAc,GAAG,CAAC,CAAC;KAC3B;IAED,OAAO,sCAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC;AATD,kCASC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.d.ts" index 3c693cfec2917ad99fe965850f9b5caa2438dcde..6be6072d04259f46767ca5d01048706002646731 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.d.ts" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8dae2a77ae65fc791e9e6e4fbc88fbf2911c38990fa194b900a330700ed88e5a -size 199 +import { ASTNode } from '../jsonASTTypes'; +export declare class FlowStyleRewriter { + private readonly indentation; + constructor(indentation: string); + write(node: ASTNode): string | null; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js" index f1ab65fc92963b851ec1eb24cb04db4eb6524ecb..69d6316e894863b34ffdc14f64cd5ab1449520a9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js" @@ -1,3 +1,57 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c88ae03ff31bf239e074057ca131c7d6ed6babf35f6aca2420f8908f614c0d6e -size 2410 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FlowStyleRewriter = void 0; +const yaml_1 = require("yaml"); +class FlowStyleRewriter { + constructor(indentation) { + this.indentation = indentation; + } + write(node) { + if (node.internalNode.srcToken['type'] !== 'flow-collection') { + return null; + } + const collection = node.internalNode.srcToken; + const blockType = collection.start.type === 'flow-map-start' ? 'block-map' : 'block-seq'; + const parentType = node.parent.type; + const blockStyle = { + type: blockType, + offset: collection.offset, + indent: collection.indent, + items: [], + }; + for (const item of collection.items) { + yaml_1.CST.visit(item, ({ key, sep, value }) => { + if (blockType === 'block-map') { + const start = [{ type: 'space', indent: 0, offset: key.offset, source: this.indentation }]; + if (parentType === 'property') { + // add a new line if part of a map + start.unshift({ type: 'newline', indent: 0, offset: key.offset, source: '\n' }); + } + blockStyle.items.push({ + start: start, + key: key, + sep: sep, + value: value, + }); + } + else if (blockType === 'block-seq') { + blockStyle.items.push({ + start: [ + { type: 'newline', indent: 0, offset: value.offset, source: '\n' }, + { type: 'space', indent: 0, offset: value.offset, source: this.indentation }, + { type: 'seq-item-ind', indent: 0, offset: value.offset, source: '-' }, + { type: 'space', indent: 0, offset: value.offset, source: ' ' }, + ], + value: value, + }); + } + if (value.type === 'flow-collection') { + return yaml_1.visit.SKIP; + } + }); + } + return yaml_1.CST.stringify(blockStyle); + } +} +exports.FlowStyleRewriter = FlowStyleRewriter; +//# sourceMappingURL=flow-style-rewriter.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js.map" index 24ee9d450e6fbc394e30d5019ba800f38ea11196..7a39f1595a30d6b900743f96ce08d042377aa110 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/flow-style-rewriter.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1ae67db3519f21a4e6bf94edbc03819b01f836e126c59b9abb4299d850ef408 -size 2079 +{"version":3,"file":"flow-style-rewriter.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/flow-style-rewriter.ts"],"names":[],"mappings":";;;AAAA,+BAAkC;AAIlC,MAAa,iBAAiB;IAC5B,YAA6B,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAa;QACxB,IAAI,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,iBAAiB,EAAE;YAC5D,OAAO,IAAI,CAAC;SACb;QACD,MAAM,UAAU,GAAuB,IAAI,CAAC,YAAY,CAAC,QAA8B,CAAC;QACxF,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC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O,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAiB;4BAC3F,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAiB;4BACrF,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAiB;yBAC/E;wBACD,KAAK,EAAE,KAAK;qBACb,CAAC,CAAC;iBACJ;gBACD,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE;oBACpC,OAAO,YAAK,CAAC,IAAI,CAAC;iBACnB;YACH,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,UAAG,CAAC,SAAS,CAAC,UAAuB,CAAC,CAAC;IAChD,CAAC;CACF;AAlDD,8CAkDC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.d.ts" index e78fab5d3ce173a1cf04b91f4887699f2279cd2e..7cc8c586e9ca90a9a16c28109a99121d7a5096b3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.d.ts" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:005d20f544203009381a74f854fc8f998f85ee11bd2228238bfc777a57f3f0bb -size 502 +import { TextBuffer } from './textBuffer'; +/** + * Result for a guessIndentation + */ +export interface IGuessedIndentation { + /** + * If indentation is based on spaces (`insertSpaces` = true), then what is the number of spaces that make an indent? + */ + tabSize: number; + /** + * Is indentation based on spaces? + */ + insertSpaces: boolean; +} +export declare function guessIndentation(source: TextBuffer, defaultTabSize: number, defaultInsertSpaces: boolean): IGuessedIndentation; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js" index c4bebbbd5960dec8a0d70178af583cb384208549..b19fbe4b488bad560a8793ec5be9500f57818e30 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js" @@ -1,3 +1,180 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:df9f7b23d562cbe4738c71bbe47a2cf7a2a4095c5c5e7947a89130d22324ac15 -size 7940 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.guessIndentation = void 0; +class SpacesDiffResult { + constructor() { + this.spacesDiff = 0; + this.looksLikeAlignment = false; + } +} +/** + * Compute the diff in spaces between two line's indentation. + */ +function spacesDiff(a, aLength, b, bLength, result) { + result.spacesDiff = 0; + result.looksLikeAlignment = false; + // This can go both ways (e.g.): + // - a: "\t" + // - b: "\t " + // => This should count 1 tab and 4 spaces + let i; + for (i = 0; i < aLength && i < bLength; i++) { + const aCharCode = a.charCodeAt(i); + const bCharCode = b.charCodeAt(i); + if (aCharCode !== bCharCode) { + break; + } + } + let aSpacesCnt = 0, aTabsCount = 0; + for (let j = i; j < aLength; j++) { + const aCharCode = a.charCodeAt(j); + if (aCharCode === 32 /* CharCode.Space */) { + aSpacesCnt++; + } + else { + aTabsCount++; + } + } + let bSpacesCnt = 0, bTabsCount = 0; + for (let j = i; j < bLength; j++) { + const bCharCode = b.charCodeAt(j); + if (bCharCode === 32 /* CharCode.Space */) { + bSpacesCnt++; + } + else { + bTabsCount++; + } + } + if (aSpacesCnt > 0 && aTabsCount > 0) { + return; + } + if (bSpacesCnt > 0 && bTabsCount > 0) { + return; + } + const tabsDiff = Math.abs(aTabsCount - bTabsCount); + const spacesDiff = Math.abs(aSpacesCnt - bSpacesCnt); + if (tabsDiff === 0) { + // check if the indentation difference might be caused by alignment reasons + // sometime folks like to align their code, but this should not be used as a hint + result.spacesDiff = spacesDiff; + if (spacesDiff > 0 && 0 <= bSpacesCnt - 1 && bSpacesCnt - 1 < a.length && bSpacesCnt < b.length) { + if (b.charCodeAt(bSpacesCnt) !== 32 /* CharCode.Space */ && a.charCodeAt(bSpacesCnt - 1) === 32 /* CharCode.Space */) { + if (a.charCodeAt(a.length - 1) === 44 /* CharCode.Comma */) { + // This looks like an alignment desire: e.g. + // const a = b + c, + // d = b - c; + result.looksLikeAlignment = true; + } + } + } + return; + } + if (spacesDiff % tabsDiff === 0) { + result.spacesDiff = spacesDiff / tabsDiff; + } +} +function guessIndentation(source, defaultTabSize, defaultInsertSpaces) { + // Look at most at the first 10k lines + const linesCount = Math.min(source.getLineCount(), 10000); + let linesIndentedWithTabsCount = 0; // number of lines that contain at least one tab in indentation + let linesIndentedWithSpacesCount = 0; // number of lines that contain only spaces in indentation + let previousLineText = ''; // content of latest line that contained non-whitespace chars + let previousLineIndentation = 0; // index at which latest line contained the first non-whitespace char + const ALLOWED_TAB_SIZE_GUESSES = [2, 4, 6, 8, 3, 5, 7]; // prefer even guesses for `tabSize`, limit to [2, 8]. + const MAX_ALLOWED_TAB_SIZE_GUESS = 8; // max(ALLOWED_TAB_SIZE_GUESSES) = 8 + const spacesDiffCount = [0, 0, 0, 0, 0, 0, 0, 0, 0]; // `tabSize` scores + const tmp = new SpacesDiffResult(); + for (let lineNumber = 1; lineNumber <= linesCount; lineNumber++) { + const currentLineLength = source.getLineLength(lineNumber); + const currentLineText = source.getLineContent(lineNumber); + // if the text buffer is chunk based, so long lines are cons-string, v8 will flattern the string when we check charCode. + // checking charCode on chunks directly is cheaper. + const useCurrentLineText = currentLineLength <= 65536; + let currentLineHasContent = false; // does `currentLineText` contain non-whitespace chars + let currentLineIndentation = 0; // index at which `currentLineText` contains the first non-whitespace char + let currentLineSpacesCount = 0; // count of spaces found in `currentLineText` indentation + let currentLineTabsCount = 0; // count of tabs found in `currentLineText` indentation + for (let j = 0, lenJ = currentLineLength; j < lenJ; j++) { + const charCode = useCurrentLineText ? currentLineText.charCodeAt(j) : source.getLineCharCode(lineNumber, j); + if (charCode === 9 /* CharCode.Tab */) { + currentLineTabsCount++; + } + else if (charCode === 32 /* CharCode.Space */) { + currentLineSpacesCount++; + } + else { + // Hit non whitespace character on this line + currentLineHasContent = true; + currentLineIndentation = j; + break; + } + } + // Ignore empty or only whitespace lines + if (!currentLineHasContent) { + continue; + } + if (currentLineTabsCount > 0) { + linesIndentedWithTabsCount++; + } + else if (currentLineSpacesCount > 1) { + linesIndentedWithSpacesCount++; + } + spacesDiff(previousLineText, previousLineIndentation, currentLineText, currentLineIndentation, tmp); + if (tmp.looksLikeAlignment) { + // if defaultInsertSpaces === true && the spaces count == tabSize, we may want to count it as valid indentation + // + // - item1 + // - item2 + // + // otherwise skip this line entirely + // + // const a = 1, + // b = 2; + if (!(defaultInsertSpaces && defaultTabSize === tmp.spacesDiff)) { + continue; + } + } + const currentSpacesDiff = tmp.spacesDiff; + if (currentSpacesDiff <= MAX_ALLOWED_TAB_SIZE_GUESS) { + spacesDiffCount[currentSpacesDiff]++; + } + previousLineText = currentLineText; + previousLineIndentation = currentLineIndentation; + } + let insertSpaces = defaultInsertSpaces; + if (linesIndentedWithTabsCount !== linesIndentedWithSpacesCount) { + insertSpaces = linesIndentedWithTabsCount < linesIndentedWithSpacesCount; + } + let tabSize = defaultTabSize; + // Guess tabSize only if inserting spaces... + if (insertSpaces) { + let tabSizeScore = insertSpaces ? 0 : 0.1 * linesCount; + // console.log("score threshold: " + tabSizeScore); + ALLOWED_TAB_SIZE_GUESSES.forEach((possibleTabSize) => { + const possibleTabSizeScore = spacesDiffCount[possibleTabSize]; + if (possibleTabSizeScore > tabSizeScore) { + tabSizeScore = possibleTabSizeScore; + tabSize = possibleTabSize; + } + }); + // Let a tabSize of 2 win even if it is not the maximum + // (only in case 4 was guessed) + if (tabSize === 4 && spacesDiffCount[4] > 0 && spacesDiffCount[2] > 0 && spacesDiffCount[2] >= spacesDiffCount[4] / 2) { + tabSize = 2; + } + } + // console.log('--------------------------'); + // console.log('linesIndentedWithTabsCount: ' + linesIndentedWithTabsCount + ', linesIndentedWithSpacesCount: ' + linesIndentedWithSpacesCount); + // console.log('spacesDiffCount: ' + spacesDiffCount); + // console.log('tabSize: ' + tabSize + ', tabSizeScore: ' + tabSizeScore); + return { + insertSpaces: insertSpaces, + tabSize: tabSize, + }; +} +exports.guessIndentation = guessIndentation; +//# sourceMappingURL=indentationGuesser.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js.map" index bf32bd29d5a5c15b6fc38d5824e57ef7088be0ae..7153d3f0414e8df25f3a2d72a065bc37ab3e9175 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/indentationGuesser.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1fb819275d8527016d04958b8ce503bc78d001e77c1c05a829cc8ee6000005b -size 5193 +{"version":3,"file":"indentationGuesser.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/indentationGuesser.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAOhG,MAAM,gBAAgB;IAAtB;QACS,eAAU,GAAG,CAAC,CAAC;QACf,u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E;QAC/D,YAAY,GAAG,0BAA0B,GAAG,4BAA4B,CAAC;KAC1E;IAED,IAAI,OAAO,GAAG,cAAc,CAAC;IAE7B,4CAA4C;IAC5C,IAAI,YAAY,EAAE;QAChB,IAAI,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,CAAC;QAEvD,mDAAmD;QAEnD,wBAAwB,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,EAAE;YACnD,MAAM,oBAAoB,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;YAC9D,IAAI,oBAAoB,GAAG,YAAY,EAAE;gBACvC,YAAY,GAAG,oBAAoB,CAAC;gBACpC,OAAO,GAAG,eAAe,CAAC;aAC3B;QACH,CAAC,CAAC,CAAC;QAEH,uDAAuD;QACvD,+BAA+B;QAC/B,IAAI,OAAO,KAAK,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;YACrH,OAAO,GAAG,CAAC,CAAC;SACb;KACF;IAED,6CAA6C;IAC7C,gJAAgJ;IAChJ,sDAAsD;IACtD,0EAA0E;IAE1E,OAAO;QACL,YAAY,EAAE,YAAY;QAC1B,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC;AAtHD,4CAsHC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.d.ts" index d0cc559cee9a1a0ec19669892fbe7f75e785d0ed..238f7cf9af2f917778328439f254a0857f7e101c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.d.ts" @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:28cd834a2eed59a01c4333b076539841a842d6e32fb88aad552f50d8f491c67e -size 467 +export interface StringifySettings { + newLineFirst: boolean; + indentFirstObject: boolean; + shouldIndentWithTab: boolean; +} +interface StringifySettingsInternal extends StringifySettings { + indentation: string; + existingProps: string[]; +} +export declare function stringifyObject(obj: unknown, indent: string, stringifyLiteral: (val: unknown) => string, settings: StringifySettingsInternal, depth?: number, consecutiveArrays?: number): string; +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js" index 4151da75a07414e83589d2307822da7b0c017905..9d495ccce5b4d9746a5bd2ff0bc89cce91d29610 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js" @@ -1,3 +1,83 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b98f2e1615b6e7b2a5932e703c81c2e1970c8c9b30af3a5b9af8848e47a871da -size 4094 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.stringifyObject = void 0; +function stringifyObject(obj, indent, stringifyLiteral, settings, depth = 0, consecutiveArrays = 0) { + if (obj !== null && typeof obj === 'object') { + /** + * When we are autocompleting a snippet from a property we need the indent so everything underneath the property + * is properly indented. When we are auto completion from a value we don't want the indent because the cursor + * is already in the correct place + */ + const newIndent = (depth === 0 && settings.shouldIndentWithTab) || depth > 0 ? indent + settings.indentation : ''; + if (Array.isArray(obj)) { + consecutiveArrays += 1; + if (obj.length === 0) { + return ''; + } + let result = ''; + for (let i = 0; i < obj.length; i++) { + let pseudoObj = obj[i]; + if (typeof obj[i] !== 'object') { + result += '\n' + newIndent + '- ' + stringifyLiteral(obj[i]); + continue; + } + if (!Array.isArray(obj[i])) { + pseudoObj = prependToObject(obj[i], consecutiveArrays); + } + result += stringifyObject(pseudoObj, indent, stringifyLiteral, settings, (depth += 1), consecutiveArrays); + } + return result; + } + else { + const keys = Object.keys(obj); + if (keys.length === 0) { + return ''; + } + let result = (depth === 0 && settings.newLineFirst) || depth > 0 ? '\n' : ''; + let isFirstProp = true; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + if (depth === 0 && settings.existingProps.includes(key)) { + // Don't add existing properties to the YAML + continue; + } + const isObject = typeof obj[key] === 'object'; + const colonDelimiter = isObject ? ':' : ': '; // add space only when value is primitive + const parentArrayCompensation = isObject && /^\s|-/.test(key) ? settings.indentation : ''; // add extra space if parent is an array + const objectIndent = newIndent + parentArrayCompensation; + const lineBreak = isFirstProp ? '' : '\n'; // break line only if it's not the first property + // The first child of an array needs to be treated specially, otherwise indentations will be off + if (depth === 0 && isFirstProp && !settings.indentFirstObject) { + const value = stringifyObject(obj[key], objectIndent, stringifyLiteral, settings, depth + 1, 0); + result += lineBreak + indent + key + colonDelimiter + value; + } + else { + const value = stringifyObject(obj[key], objectIndent, stringifyLiteral, settings, depth + 1, 0); + result += lineBreak + newIndent + key + colonDelimiter + value; + } + isFirstProp = false; + } + return result; + } + } + return stringifyLiteral(obj); +} +exports.stringifyObject = stringifyObject; +function prependToObject(obj, consecutiveArrays) { + const newObj = {}; + for (let i = 0; i < Object.keys(obj).length; i++) { + const key = Object.keys(obj)[i]; + if (i === 0) { + newObj['- '.repeat(consecutiveArrays) + key] = obj[key]; + } + else { + newObj[' '.repeat(consecutiveArrays) + key] = obj[key]; + } + } + return newObj; +} +//# sourceMappingURL=json.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js.map" index 386868c03b03c6c243982367a4f28449de6c4857..8e4a31e5b7ea644b23003c05cff48396b5ecf689 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/json.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e027bbd710b2debaf8625238f52b5720c97af0c9a87944a1b0f6abb6979c9be -size 3275 +{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/json.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAahG,SAAgB,eAAe,CAC7B,GAAY,EACZ,MAAc,EACd,gBAA0C,EAC1C,QAAmC,EACnC,KAAK,GAAG,CAAC,EACT,iBAAiB,GAAG,CAAC;IAErB,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3C;;;;WAIG;QACH,MAAM,SAAS,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,QAAQ,CAAC,mBAAmB,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;QAClH,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACtB,iBAAiB,IAAI,CAAC,CAAC;YACvB,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;gBACpB,OAAO,EAAE,CAAC;aACX;YACD,IAAI,MAAM,GAAG,EAAE,CAAC;YAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACnC,IAAI,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;gBACvB,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,QAAQ,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CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAChD,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,CAAC,EAAE;YACX,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;SACzD;aAAM;YACL,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;SACzD;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.d.ts" index a82f2461786f02a7de4a6d5f3b7315b3efcebc44..c2d274fcffc84c89af471848ebb687d55b22c105 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.d.ts" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6346e3a19c3a52d5cd63cd3ca01f4c2888d947f0b9b94d5bfc511c53b28b8ed -size 710 +export declare function equals(one: any, other: any): boolean; +export declare function isNumber(val: unknown): val is number; +export declare function isDefined(val: unknown): val is object | string | number | boolean; +export declare function isBoolean(val: unknown): val is boolean; +export declare function isString(val: unknown): val is string; +/** + * Check that provided value is Iterable + * @param val the value to check + * @returns true if val is iterable, false otherwise + */ +export declare function isIterable(val: unknown): boolean; +/** + * Convert error to string witch should be sended to telemetry. + * @param err any error + */ +export declare function convertErrorToTelemetryMsg(err: unknown): string; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js" index b97b49645530f4f3a1898b59382664601a2ad352..ad8b6cb490edd341efa075f46569a56a5e73d0c8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js" @@ -1,3 +1,98 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b987b2dcc2b665b7302647759273ccd88f4d5f1d5e7d791f2e69bfdfa514662 -size 3000 +/*--------------------------------------------------------------------------------------------- + * 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.convertErrorToTelemetryMsg = exports.isIterable = exports.isString = exports.isBoolean = exports.isDefined = exports.isNumber = exports.equals = void 0; +// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types +function equals(one, other) { + if (one === other) { + return true; + } + if (one === null || one === undefined || other === null || other === undefined) { + return false; + } + if (typeof one !== typeof other) { + return false; + } + if (typeof one !== 'object') { + return false; + } + if (Array.isArray(one) !== Array.isArray(other)) { + return false; + } + let i, key; + if (Array.isArray(one)) { + if (one.length !== other.length) { + return false; + } + for (i = 0; i < one.length; i++) { + if (!equals(one[i], other[i])) { + return false; + } + } + } + else { + const oneKeys = []; + for (key in one) { + oneKeys.push(key); + } + oneKeys.sort(); + const otherKeys = []; + for (key in other) { + otherKeys.push(key); + } + otherKeys.sort(); + if (!equals(oneKeys, otherKeys)) { + return false; + } + for (i = 0; i < oneKeys.length; i++) { + if (!equals(one[oneKeys[i]], other[oneKeys[i]])) { + return false; + } + } + } + return true; +} +exports.equals = equals; +function isNumber(val) { + return typeof val === 'number'; +} +exports.isNumber = isNumber; +// eslint-disable-next-line @typescript-eslint/ban-types +function isDefined(val) { + return typeof val !== 'undefined'; +} +exports.isDefined = isDefined; +function isBoolean(val) { + return typeof val === 'boolean'; +} +exports.isBoolean = isBoolean; +function isString(val) { + return typeof val === 'string'; +} +exports.isString = isString; +/** + * Check that provided value is Iterable + * @param val the value to check + * @returns true if val is iterable, false otherwise + */ +function isIterable(val) { + return Symbol.iterator in Object(val); +} +exports.isIterable = isIterable; +/** + * Convert error to string witch should be sended to telemetry. + * @param err any error + */ +function convertErrorToTelemetryMsg(err) { + if (!err) + return 'null'; + if (err instanceof Error) { + return err.stack ?? err.toString(); + } + return err.toString(); +} +exports.convertErrorToTelemetryMsg = convertErrorToTelemetryMsg; +//# sourceMappingURL=objects.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js.map" index a4476f37047a366af01b7d3ebff92cc68bd7f137..be8e6b5d6dd09ba687316a8a64ed31a56454e319 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/objects.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b8e9d2d42570a898235ec97a19d654c2a17052ef46a6f37463a5d56664f87b9 -size 2292 +{"version":3,"file":"objects.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/objects.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,YAAY,CAAC;;;AAEb,iHAAiH;AACjH,SAAgB,MAAM,CAAC,GAAQ,EAAE,KAAU;IACzC,IAAI,GAAG,KAAK,KAAK,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IACD,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QAC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,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC/C,OAAO,KAAK,CAAC;aACd;SACF;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAlDD,wBAkDC;AAED,SAAgB,QAAQ,CAAC,GAAY;IACnC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AACjC,CAAC;AAFD,4BAEC;AAED,wDAAwD;AACxD,SAAgB,SAAS,CAAC,GAAY;IACpC,OAAO,OAAO,GAAG,KAAK,WAAW,CAAC;AACpC,CAAC;AAFD,8BAEC;AAED,SAAgB,SAAS,CAAC,GAAY;IACpC,OAAO,OAAO,GAAG,KAAK,SAAS,CAAC;AAClC,CAAC;AAFD,8BAEC;AAED,SAAgB,QAAQ,CAAC,GAAY;IACnC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AACjC,CAAC;AAFD,4BAEC;AAED;;;;GAIG;AACH,SAAgB,UAAU,CAAC,GAAY;IACrC,OAAO,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;AACxC,CAAC;AAFD,gCAEC;AAED;;;GAGG;AACH,SAAgB,0BAA0B,CAAC,GAAY;IACrD,IAAI,CAAC,GAAG;QAAE,OAAO,MAAM,CAAC;IAExB,IAAI,GAAG,YAAY,KAAK,EAAE;QACxB,OAAO,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;KACpC;IAED,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AARD,gEAQC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.d.ts" index 9ee2ddca2696ddcda54270fab0a082c76aa4043e..366b1f1bc41f16f9cd7e878ef47a446181039b2e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.d.ts" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9efb29be5efc6f2ebbc563e5fc669210f0c5e066912878d2d70430f17ae3d74b -size 425 +import { ErrorCode } from 'vscode-json-languageservice/lib/umd/jsonLanguageTypes'; +export declare const DUPLICATE_KEY_REASON = "duplicate key"; +/** + * An individual YAML diagnostic, + * after formatting. + */ +export interface YAMLDocDiagnostic { + message: string; + location: { + start: number; + end: number; + toLineEnd: boolean; + }; + severity: 1 | 2; + source?: string; + code: ErrorCode; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js" index 4e73bc076d7989fbfff489478022848d2c5d3a2e..eff58e220e8c92e5022e432b8d493d9c80f9e5ee 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:995b26a83b32d46f246a6242a3f40ceccfcf2338fc26daffc13fc790ba166731 -size 202 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DUPLICATE_KEY_REASON = void 0; +exports.DUPLICATE_KEY_REASON = 'duplicate key'; +//# sourceMappingURL=parseUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js.map" index 588c9bd591f457b84601c577fc0e06ee0f3c3a4f..02b2e67ae8390430035404c72237f8fa4246e130 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/parseUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:43217aad6d3b67835aca261a5973f7276b88125e578007367b3823fd5dc9830b -size 180 +{"version":3,"file":"parseUtils.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/parseUtils.ts"],"names":[],"mappings":";;;AACa,QAAA,oBAAoB,GAAG,eAAe,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.d.ts" index 654a1c0ddc9b8424a0c4dd90a936ca56889395c3..dd685895339f60a992260b05bfb8b3dbbf99fe2b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.d.ts" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d197470c27e31f0ef5d8443d0e3d34391050b2171f153bb058d2f581ce3ddf0d -size 471 +import { WorkspaceFolder, WorkspaceFoldersChangeEvent } from 'vscode-languageserver-protocol'; +import { URI } from 'vscode-uri'; +export declare const isRelativePath: (path: string) => boolean; +export declare const relativeToAbsolutePath: (workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, uri: string) => string; +export declare const workspaceFoldersChanged: (workspaceFolders: WorkspaceFolder[], changedFolders: WorkspaceFoldersChangeEvent) => WorkspaceFolder[]; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js" index dc44372a6f65a4564d8acf2b9d36f4a43a809862..736217b8d49a286ad2323898e8a080fb1e627fd6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js" @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0cc66dd15157eb9b59c8dc1c0d6d62d4443c5d0059b3c0032f3a533da698db20 -size 2114 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.workspaceFoldersChanged = exports.relativeToAbsolutePath = exports.isRelativePath = void 0; +const path_1 = require("path"); +const vscode_uri_1 = require("vscode-uri"); +const isRelativePath = (path) => { + const relativePathRegex = /^(((\.\.?)|([\w-@. ]+))(\/|\\\\?))*[\w-. ]*\.[\w-]+$/i; + return relativePathRegex.test(path); +}; +exports.isRelativePath = isRelativePath; +const relativeToAbsolutePath = (workspaceFolders, workspaceRoot, uri) => { + // Iterate through all of the workspace root folders + for (const folder of workspaceFolders) { + // If the requested schema URI specifies a workspace root folder + // Convert it into an absolute path with the appropriate root folder path + if (uri.startsWith(folder.name)) { + const pathToFolder = vscode_uri_1.URI.parse(folder.uri).fsPath; + const withoutFolderPrefix = uri.split(path_1.sep); + withoutFolderPrefix.shift(); + return vscode_uri_1.URI.file((0, path_1.join)(pathToFolder, withoutFolderPrefix.join())).toString(); + } + } + // If a root folder was not specified, resolve the relative URI + // Against the location of the workspace file instead + if (workspaceRoot) { + return vscode_uri_1.URI.file((0, path_1.join)(workspaceRoot.fsPath, uri)).toString(); + } + // Fallback in case nothing could be applied + return (0, path_1.normalize)(uri); +}; +exports.relativeToAbsolutePath = relativeToAbsolutePath; +const workspaceFoldersChanged = (workspaceFolders, changedFolders) => { + workspaceFolders = workspaceFolders.filter((e) => { + return !changedFolders.removed.some((f) => { + return f.uri === e.uri; + }); + }); + workspaceFolders = workspaceFolders + .filter((e) => { + return !changedFolders.added.some((f) => { + return f.uri === e.uri; + }); + }) + .concat(changedFolders.added); + return workspaceFolders; +}; +exports.workspaceFoldersChanged = workspaceFoldersChanged; +//# sourceMappingURL=paths.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js.map" index 55f2a547926f6b0e448f47275f541c8422f66e18..da8ee50fe03aa16e92ae8975779126fde1680c12 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/paths.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f05f617d564390e8ce21099d9dba7ff69acfa536c92ff839341645a177cf33b2 -size 1654 +{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/paths.ts"],"names":[],"mappings":";;;AACA,+BAA4C;AAC5C,2CAAiC;AAE1B,MAAM,cAAc,GAAG,CAAC,IAAY,EAAW,EAAE;IACtD,MAAM,iBAAiB,GAAG,uDAAuD,CAAC;IAClF,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC;AAHW,QAAA,cAAc,kBAGzB;AAEK,MAAM,sBAAsB,GAAG,CAAC,gBAAmC,EAAE,aAAkB,EAAE,GAAW,EAAU,EAAE;IACrH,oDAAoD;IACpD,KAAK,MAAM,MAAM,IAAI,gBAAgB,EAAE;QACrC,gEAAgE;QAChE,yEAAyE;QACzE,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YAC/B,MAAM,YAAY,GAAG,gBAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;YAClD,MAAM,mBAAmB,GAAG,GAAG,CAAC,KAAK,CAAC,UAAG,CAAC,CAAC;YAC3C,mBA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/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.d.ts" index b322e914d37416ab7fa47ca4d8768af6cf519adb..e33045a24faba6972d3f854c4e3c7595dffd687b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.d.ts" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6701d3cd7ba8f3691f9c53082cfd41183cf9db03c5a59419200fb23b02cd1055 -size 766 +import { WorkspaceFolder } from 'vscode-languageserver-protocol'; +import { URI } from 'vscode-uri'; +import { Telemetry } from '../telemetry'; +import { JSONSchema } from '../jsonSchema'; +export declare const KUBERNETES_SCHEMA_URL = "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json"; +export declare const JSON_SCHEMASTORE_URL = "https://www.schemastore.org/api/json/catalog.json"; +export declare function checkSchemaURI(workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, uri: string, telemetry: Telemetry): string; +/** + * Collect all urls of sub schemas + * @param schema the root schema + * @returns map url to schema + */ +export declare function getSchemaUrls(schema: JSONSchema): Map; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js" index d4b6b46510fc169a112e9021c6fba1bfa9a67d13..8b3bd5e22bf5feee6d5eac717f9deafd682e8cf8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js" @@ -1,3 +1,63 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6444c4b4a251972b439f7b963193cf1cf1eb1922b6f6bb7dfc4579d45646e482 -size 2131 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSchemaUrls = exports.checkSchemaURI = exports.JSON_SCHEMASTORE_URL = exports.KUBERNETES_SCHEMA_URL = void 0; +const objects_1 = require("./objects"); +const paths_1 = require("./paths"); +exports.KUBERNETES_SCHEMA_URL = 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json'; +exports.JSON_SCHEMASTORE_URL = 'https://www.schemastore.org/api/json/catalog.json'; +function checkSchemaURI(workspaceFolders, workspaceRoot, uri, telemetry) { + if (uri.trim().toLowerCase() === 'kubernetes') { + telemetry.send({ name: 'yaml.schema.configured', properties: { kubernetes: true } }); + return exports.KUBERNETES_SCHEMA_URL; + } + else if ((0, paths_1.isRelativePath)(uri)) { + return (0, paths_1.relativeToAbsolutePath)(workspaceFolders, workspaceRoot, uri); + } + else { + return uri; + } +} +exports.checkSchemaURI = checkSchemaURI; +/** + * Collect all urls of sub schemas + * @param schema the root schema + * @returns map url to schema + */ +function getSchemaUrls(schema) { + const result = new Map(); + if (!schema) { + return result; + } + if (schema.url) { + if (schema.url.startsWith('schemaservice://combinedSchema/')) { + addSchemasForOf(schema, result); + } + else { + result.set(schema.url, schema); + } + } + else { + addSchemasForOf(schema, result); + } + return result; +} +exports.getSchemaUrls = getSchemaUrls; +function addSchemasForOf(schema, result) { + if (schema.allOf) { + addInnerSchemaUrls(schema.allOf, result); + } + if (schema.anyOf) { + addInnerSchemaUrls(schema.anyOf, result); + } + if (schema.oneOf) { + addInnerSchemaUrls(schema.oneOf, result); + } +} +function addInnerSchemaUrls(schemas, result) { + for (const subSchema of schemas) { + if (!(0, objects_1.isBoolean)(subSchema) && subSchema.url && !result.has(subSchema.url)) { + result.set(subSchema.url, subSchema); + } + } +} +//# sourceMappingURL=schemaUrls.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js.map" index 2a3fd9fd25beb979b42aa46019d9b7bb6d7b0856..1d4cb33e32df49d5416c94a5b799228407edd044 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9797be41451455bdb64610009f507a7b657ff70530674a56e13f4655ed3ca32c -size 1691 +{"version":3,"file":"schemaUrls.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/schemaUrls.ts"],"names":[],"mappings":";;;AAIA,uCAAsC;AACtC,mCAAiE;AAEpD,QAAA,qBAAqB,GAChC,0GAA0G,CAAC;AAChG,QAAA,oBAAoB,GAAG,mDAAmD,CAAC;AAExF,SAAgB,cAAc,CAC5B,gBAAmC,EACnC,aAAkB,EAClB,GAAW,EACX,SAAoB;IAEpB,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,YAAY,EAAE;QAC7C,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACrF,OAAO,6BAAqB,CAAC;KAC9B;SAAM,IAAI,IAAA,sBAAc,EAAC,GAAG,CAAC,EAAE;QAC9B,OAAO,IAAA,8BAAsB,EAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;KACrE;SAAM;QACL,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;AAdD,wCAcC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,MAAkB;IAC9C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC7C,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,MAAM,CAAC;KACf;IAED,IAAI,MAAM,CAAC,GAAG,EAAE;QACd,IAAI,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,iCAAiC,CAAC,EAAE;YAC5D,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SACjC;aAAM;YACL,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;SAChC;KACF;SAAM;QACL,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACjC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAhBD,sCAgBC;AAED,SAAS,eAAe,CAAC,MAAkB,EAAE,MAA+B;IAC1E,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC1C;IACD,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC1C;IACD,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,kBAAkB,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC1C;AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAwB,EAAE,MAA+B;IACnF,KAAK,MAAM,SAAS,IAAI,OAAO,EAAE;QAC/B,IAAI,CAAC,IAAA,mBAAS,EAAC,SAAS,CAAC,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YACxE,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;SACtC;KACF;AACH,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.d.ts" index b5984057903659df3368909a445e68d60939f5e2..3ea2b0b66dbc9f6a3ce098f1d658cb48e12e459f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.d.ts" @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dda191dd9c115c86f83bd7cb6fe74ae7e47bfd32dd70555c18e2e7dd3f6c9bb9 -size 1128 +import { JSONSchema } from '../jsonSchema'; +export declare function getSchemaTypeName(schema: JSONSchema): string; +/** + * Get type name from reference url + * @param $ref reference to the same file OR to the another component OR to the section in another component: + * `schema-name.schema.json` -> schema-name + * `custom-scheme://shared-schema.json#/definitions/SomeType` -> SomeType + * `custom-scheme://schema-name.schema.json` -> schema-name + * `shared-schema.schema.json#/definitions/SomeType` -> SomeType + * `file:///Users/user/Documents/project/schemas/schema-name.schema.json` -> schema-name + * `#/definitions/SomeType` -> SomeType + * `#/definitions/io.k8s.api.apps.v1.DaemonSetSpec` => io.k8s.api.apps.v1.DaemonSetSpec + * `file:///default_schema_id.yaml` => default_schema_id.yaml + * test: https://regex101.com/r/ZpuXxk/1 + */ +export declare function getSchemaRefTypeTitle($ref: string): string; +export declare function getSchemaTitle(schema: JSONSchema, url: string): string; +export declare function isPrimitiveType(schema: JSONSchema): boolean; +export declare function isAnyOfAllOfOneOfType(schema: JSONSchema): boolean; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js" index 466c21f3f615d34f9ed5cc3cd8454a5f9fc28b32..ac10de09bcc8208985f28aaf94dd2f1dd0d1b563 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js" @@ -1,3 +1,70 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1849acf660c0f1b5f6fea36c298d0189447946e1259ceaacdb8ce35e3e90fb03 -size 2918 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isAnyOfAllOfOneOfType = exports.isPrimitiveType = exports.getSchemaTitle = exports.getSchemaRefTypeTitle = exports.getSchemaTypeName = void 0; +const vscode_uri_1 = require("vscode-uri"); +const path = require("path"); +function getSchemaTypeName(schema) { + const closestTitleWithType = schema.type && schema.closestTitle; + if (schema.title) { + return schema.title; + } + if (schema.$id) { + return getSchemaRefTypeTitle(schema.$id); + } + if (schema.$ref || schema._$ref) { + return getSchemaRefTypeTitle(schema.$ref || schema._$ref); + } + return Array.isArray(schema.type) + ? schema.type.join(' | ') + : closestTitleWithType + ? schema.type.concat('(', schema.closestTitle, ')') + : schema.type || schema.closestTitle; //object +} +exports.getSchemaTypeName = getSchemaTypeName; +/** + * Get type name from reference url + * @param $ref reference to the same file OR to the another component OR to the section in another component: + * `schema-name.schema.json` -> schema-name + * `custom-scheme://shared-schema.json#/definitions/SomeType` -> SomeType + * `custom-scheme://schema-name.schema.json` -> schema-name + * `shared-schema.schema.json#/definitions/SomeType` -> SomeType + * `file:///Users/user/Documents/project/schemas/schema-name.schema.json` -> schema-name + * `#/definitions/SomeType` -> SomeType + * `#/definitions/io.k8s.api.apps.v1.DaemonSetSpec` => io.k8s.api.apps.v1.DaemonSetSpec + * `file:///default_schema_id.yaml` => default_schema_id.yaml + * test: https://regex101.com/r/ZpuXxk/1 + */ +function getSchemaRefTypeTitle($ref) { + const match = $ref.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/); + let type = !!match && match[1]; + if (!type) { + type = 'typeNotFound'; + console.error(`$ref (${$ref}) not parsed properly`); + } + return type; +} +exports.getSchemaRefTypeTitle = getSchemaRefTypeTitle; +function getSchemaTitle(schema, url) { + const uri = vscode_uri_1.URI.parse(url); + let baseName = path.basename(uri.fsPath); + if (!path.extname(uri.fsPath)) { + baseName += '.json'; + } + if (Object.getOwnPropertyDescriptor(schema, 'name')) { + return Object.getOwnPropertyDescriptor(schema, 'name').value + ` (${baseName})`; + } + else if (schema.title) { + return schema.description ? schema.title + ' - ' + schema.description + ` (${baseName})` : schema.title + ` (${baseName})`; + } + return baseName; +} +exports.getSchemaTitle = getSchemaTitle; +function isPrimitiveType(schema) { + return schema.type !== 'object' && !isAnyOfAllOfOneOfType(schema); +} +exports.isPrimitiveType = isPrimitiveType; +function isAnyOfAllOfOneOfType(schema) { + return !!(schema.anyOf || schema.allOf || schema.oneOf); +} +exports.isAnyOfAllOfOneOfType = isAnyOfAllOfOneOfType; +//# sourceMappingURL=schemaUtils.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js.map" index 1a6804e9175f1d6a79fd7455443553409b7510d8..4383db637734960cc59abcca7e745acc18f80ae2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUtils.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8eb0a82407e460831fb2fad2bbc45074b81cd48c5c9b21db65f365de42d1dcb -size 2079 +{"version":3,"file":"schemaUtils.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/schemaUtils.ts"],"names":[],"mappings":";;;AAAA,2CAAiC;AAEjC,6BAA6B;AAE7B,SAAgB,iBAAiB,CAAC,MAAkB;IAClD,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC;IAChE,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,OAAO,MAAM,CAAC,KAAK,CAAC;KACrB;IACD,IAAI,MAAM,CAAC,GAAG,EAAE;Q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AI,OAAO,CAAC;KACrB;IACD,IAAI,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;QACnD,OAAO,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,GAAG,KAAK,QAAQ,GAAG,CAAC;KACjF;SAAM,IAAI,MAAM,CAAC,KAAK,EAAE;QACvB,OAAO,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC,WAAW,GAAG,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,QAAQ,GAAG,CAAC;KAC5H;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAbD,wCAaC;AAED,SAAgB,eAAe,CAAC,MAAkB;IAChD,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;AACpE,CAAC;AAFD,0CAEC;AAED,SAAgB,qBAAqB,CAAC,MAAkB;IACtD,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC;AAFD,sDAEC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.d.ts" index d7a3ac77cfdea8518879e387a98512012e06e94f..072d81e5f1d421860aa7b280c4008e3feeec58c7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.d.ts" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e8e14fd875e59c13557aeaec702ed2f8e671581661901bc7f6b3721e7d7ab39 -size 622 +export declare function startsWith(haystack: string, needle: string): boolean; +/** + * Determines if haystack ends with needle. + */ +export declare function endsWith(haystack: string, needle: string): boolean; +export declare function convertSimple2RegExp(pattern: string): RegExp; +export declare function convertSimple2RegExpPattern(pattern: string): string; +export declare function getIndentation(lineContent: string, position: number): number; +export declare function safeCreateUnicodeRegExp(pattern: string): RegExp; +export declare function getFirstNonWhitespaceCharacterAfterOffset(str: string, offset: number): number; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js" index 65c6a7e7f77883aea513dcc7260a5ecc265957f4..75bc575161795026c5d92c6c9b5ecdbb32c237a5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js" @@ -1,3 +1,89 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:10ac48a2734d67bf9f3ae7437242758b1219e82fe38c7390eaf064de3f5777fb -size 3204 +/*--------------------------------------------------------------------------------------------- + * 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.getFirstNonWhitespaceCharacterAfterOffset = exports.safeCreateUnicodeRegExp = exports.getIndentation = exports.convertSimple2RegExpPattern = exports.convertSimple2RegExp = exports.endsWith = exports.startsWith = void 0; +function startsWith(haystack, needle) { + if (haystack.length < needle.length) { + return false; + } + for (let i = 0; i < needle.length; i++) { + if (haystack[i] !== needle[i]) { + return false; + } + } + return true; +} +exports.startsWith = startsWith; +/** + * Determines if haystack ends with needle. + */ +function endsWith(haystack, needle) { + const diff = haystack.length - needle.length; + if (diff > 0) { + return haystack.lastIndexOf(needle) === diff; + } + else if (diff === 0) { + return haystack === needle; + } + else { + return false; + } +} +exports.endsWith = endsWith; +function convertSimple2RegExp(pattern) { + const match = pattern.match(new RegExp('^/(.*?)/([gimy]*)$')); + return match ? convertRegexString2RegExp(match[1], match[2]) : convertGlobalPattern2RegExp(pattern); +} +exports.convertSimple2RegExp = convertSimple2RegExp; +function convertGlobalPattern2RegExp(pattern) { + return new RegExp(pattern.replace(/[-\\{}+?|^$.,[\]()#\s]/g, '\\$&').replace(/[*]/g, '.*') + '$'); +} +function convertRegexString2RegExp(pattern, flag) { + return new RegExp(pattern, flag); +} +function convertSimple2RegExpPattern(pattern) { + return pattern.replace(/[-\\{}+?|^$.,[\]()#\s]/g, '\\$&').replace(/[*]/g, '.*'); +} +exports.convertSimple2RegExpPattern = convertSimple2RegExpPattern; +function getIndentation(lineContent, position) { + if (lineContent.length < position) { + return 0; + } + for (let i = 0; i < position; i++) { + const char = lineContent.charCodeAt(i); + if (char !== 32 /* CharCode.Space */ && char !== 9 /* CharCode.Tab */) { + return i; + } + } + // assuming that current position is indentation + return position; +} +exports.getIndentation = getIndentation; +function safeCreateUnicodeRegExp(pattern) { + // fall back to regular regexp if we cannot create Unicode one + try { + return new RegExp(pattern, 'u'); + } + catch (ignore) { + return new RegExp(pattern); + } +} +exports.safeCreateUnicodeRegExp = safeCreateUnicodeRegExp; +function getFirstNonWhitespaceCharacterAfterOffset(str, offset) { + offset++; + for (let i = offset; i < str.length; i++) { + const char = str.charAt(i); + if (char === ' ' || char === '\t') { + offset++; + } + else { + return offset; + } + } + return offset; +} +exports.getFirstNonWhitespaceCharacterAfterOffset = getFirstNonWhitespaceCharacterAfterOffset; +//# sourceMappingURL=strings.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js.map" index bce493eda9072d8766baa8fbe9668577c63beb70..31e69a80927d24fc22300afe7bad60fc6d9dac35 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/strings.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1bbe5f80fd04ab36e7ddd10e5bb92fa68f7c55bc8c664872594067b81ddc1c66 -size 2389 +{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/strings.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,YAAY,CAAC;;;AAIb,SAAgB,UAAU,CAAC,QAAgB,EAAE,MAAc;IACzD,IAAI,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE;QACnC,OAAO,KAAK,CAAC;KACd;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE;YAC7B,OAAO,KAAK,CAAC;SACd;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAZD,gCAYC;AAED;;GAEG;AACH,SAAgB,QAAQ,CAAC,QAAgB,EAAE,MAAc;IACvD,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,IAAI,IAAI,GAAG,CAAC,EAAE;QACZ,OAAO,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;KAC9C;SAAM,IAAI,IAAI,KAAK,CAAC,EAAE;QACrB,OAAO,QAAQ,KAAK,MAAM,CAAC;KAC5B;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AATD,4BASC;AAED,SAAgB,oBAAoB,CAAC,OAAe;IAClD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,oBAAoB,CAAC,CAAC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AAM,EAAE;QACf,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;KAC5B;AACH,CAAC;AAPD,0DAOC;AAED,SAAgB,yCAAyC,CAAC,GAAW,EAAE,MAAc;IACnF,MAAM,EAAE,CAAC;IACT,KAAK,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,EAAE;YACjC,MAAM,EAAE,CAAC;SACV;aAAM;YACL,OAAO,MAAM,CAAC;SACf;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAXD,8FAWC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.d.ts" index a600d7de2675ca24c786c1d49928bf57aaea2db0..45d5e8cf414e461b4691e6b43396eaf423cb2dee 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.d.ts" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24a8671563a590262456e0079740f279e15e8647dc40245389476eecee7f5eee -size 485 +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { Position, Range } from 'vscode-languageserver-types'; +export declare class TextBuffer { + private doc; + constructor(doc: TextDocument); + getLineCount(): number; + getLineLength(lineNumber: number): number; + getLineContent(lineNumber: number): string; + getLineCharCode(lineNumber: number, index: number): number; + getText(range?: Range): string; + getPosition(offest: number): Position; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js" index 5ccb4ff0879842670dbbdc6c83242eaccbe4c891..73b010d8b364cdf1abd7274372d8dce99664b6d9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js" @@ -1,3 +1,49 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:05f15d65c04cb7ed73ae00ce58e70a8e21867b76d4809bf1eee97e7a02eb4efc -size 1978 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TextBuffer = void 0; +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +class TextBuffer { + constructor(doc) { + this.doc = doc; + } + getLineCount() { + return this.doc.lineCount; + } + getLineLength(lineNumber) { + const lineOffsets = this.doc.getLineOffsets(); + if (lineNumber >= lineOffsets.length) { + return this.doc.getText().length; + } + else if (lineNumber < 0) { + return 0; + } + const nextLineOffset = lineNumber + 1 < lineOffsets.length ? lineOffsets[lineNumber + 1] : this.doc.getText().length; + return nextLineOffset - lineOffsets[lineNumber]; + } + getLineContent(lineNumber) { + const lineOffsets = this.doc.getLineOffsets(); + if (lineNumber >= lineOffsets.length) { + return this.doc.getText(); + } + else if (lineNumber < 0) { + return ''; + } + const nextLineOffset = lineNumber + 1 < lineOffsets.length ? lineOffsets[lineNumber + 1] : this.doc.getText().length; + return this.doc.getText().substring(lineOffsets[lineNumber], nextLineOffset); + } + getLineCharCode(lineNumber, index) { + return this.doc.getText(vscode_languageserver_types_1.Range.create(lineNumber - 1, index, lineNumber - 1, index + 1)).charCodeAt(0); + } + getText(range) { + return this.doc.getText(range); + } + getPosition(offest) { + return this.doc.positionAt(offest); + } +} +exports.TextBuffer = TextBuffer; +//# sourceMappingURL=textBuffer.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js.map" index 68fe677bf98fdc8b906f422410f110fcc3ce414f..b0809c5ed960e138e1db9c1041c8f127c3783985 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/utils/textBuffer.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ba4dedb6b2a03c3276f5f1d175f3e60943a27077277069185bc1a487bf199072 -size 1656 +{"version":3,"file":"textBuffer.js","sourceRoot":"","sources":["../../../../../src/languageservice/utils/textBuffer.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAGhG,6EAA8D;AAM9D,MAAa,UAAU;IACrB,YAAoB,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IAAG,CAAC;IAEzC,YAAY;QACV,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;IAC5B,CAAC;IAED,aAAa,CAAC,UAAkB;QAC9B,MAAM,WAAW,GAAI,IAAI,CAAC,GAAmC,CAAC,cAAc,EAAE,CAAC;QAC/E,IAAI,UAAU,IAAI,WAAW,CAAC,MAAM,EAAE;YACpC,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;SAClC;aAAM,IAAI,UAAU,GAAG,CAAC,EAAE;YACzB,OAAO,CAAC,CAAC;SACV;QAED,MAAM,cAAc,GAAG,UAAU,GAAG,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAA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64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.d.ts" index 2291bc6c44bb13f15eb9d8aea88b2bfd806211d3..3b84f32e8eb02b97e9e34d6d8cea1fb9addbadb3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.d.ts" @@ -1,3 +1,131 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d4aaf912df0156108eed6894bf5ba2c6b4a404201f3d2d99c9d3fa1a6f149ee -size 5749 +import { CustomSchemaProvider, SchemaAdditions, SchemaDeletions, SchemaDeletionsAll } from './services/yamlSchemaService'; +import { Position, CodeAction, CompletionList, Diagnostic, Hover, SymbolInformation, DocumentSymbol, FoldingRange, TextEdit, DocumentLink, CodeLens, DefinitionLink, SelectionRange } from 'vscode-languageserver-types'; +import { JSONSchema } from './jsonSchema'; +import { DocumentSymbolsContext } from 'vscode-json-languageservice'; +import { ClientCapabilities, CodeActionParams, Connection, DocumentOnTypeFormattingParams, DefinitionParams } from 'vscode-languageserver'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { FoldingRangesContext, SchemaVersions } from './yamlTypes'; +import { Telemetry } from './telemetry'; +import { YamlVersion } from './parser/yamlParser07'; +import { SettingsState } from '../yamlSettings'; +export declare enum SchemaPriority { + SchemaStore = 1, + SchemaAssociation = 2, + Settings = 3 +} +export interface SchemasSettings { + priority?: SchemaPriority; + fileMatch: string[]; + schema?: unknown; + uri: string; + name?: string; + description?: string; + versions?: SchemaVersions; +} +export interface LanguageSettings { + validate?: boolean; + hover?: boolean; + completion?: boolean; + format?: boolean; + isKubernetes?: boolean; + schemas?: SchemasSettings[]; + customTags?: Array; + /** + * Default indentation size + */ + indentation?: string; + /** + * Globally set additionalProperties to false if additionalProperties is not set and if schema.type is object. + * So if its true, no extra properties are allowed inside yaml. + */ + disableAdditionalProperties?: boolean; + /** + * Disable adding not required properties with default values into completion text. + */ + disableDefaultProperties?: boolean; + /** + * If true, the user must select some parent skeleton first before autocompletion starts to suggest the rest of the properties. + * When yaml object is not empty, autocompletion ignores this setting and returns all properties and skeletons. + */ + parentSkeletonSelectedFirst?: boolean; + /** + * Default yaml lang version + */ + yamlVersion?: YamlVersion; + /** + * Control the use of flow mappings. Default is allow. + */ + flowMapping?: 'allow' | 'forbid'; + /** + * Control the use of flow sequences. Default is allow. + */ + flowSequence?: 'allow' | 'forbid'; + /** + * If set enforce alphabetical ordering of keys in mappings. + */ + keyOrdering?: boolean; +} +export interface WorkspaceContextService { + resolveRelativePath(relativePath: string, resource: string): string; +} +/** + * The schema request service is used to fetch schemas. The result should the schema file comment, or, + * in case of an error, a displayable error string + */ +export interface SchemaRequestService { + (uri: string): Promise; +} +export interface SchemaConfiguration { + /** + * The URI of the schema, which is also the identifier of the schema. + */ + uri: string; + /** + * A list of file names that are associated to the schema. The '*' wildcard can be used. For example '*.schema.json', 'package.json' + */ + fileMatch?: string[]; + /** + * The schema for the given URI. + * If no schema is provided, the schema will be fetched with the schema request service (if available). + */ + schema?: JSONSchema; +} +export interface CustomFormatterOptions { + singleQuote?: boolean; + bracketSpacing?: boolean; + proseWrap?: string; + printWidth?: number; + enable?: boolean; +} +export interface LanguageService { + configure(settings: LanguageSettings): void; + registerCustomSchemaProvider(schemaProvider: CustomSchemaProvider): void; + doComplete(document: TextDocument, position: Position, isKubernetes: boolean): Promise; + doValidation(document: TextDocument, isKubernetes: boolean): Promise; + doHover(document: TextDocument, position: Position): Promise; + findDocumentSymbols(document: TextDocument, context: DocumentSymbolsContext): SymbolInformation[]; + findDocumentSymbols2(document: TextDocument, context: DocumentSymbolsContext): DocumentSymbol[]; + findLinks(document: TextDocument): Promise; + resetSchema(uri: string): boolean; + doFormat(document: TextDocument, options: CustomFormatterOptions): TextEdit[]; + doDefinition(document: TextDocument, params: DefinitionParams): DefinitionLink[] | undefined; + doDocumentOnTypeFormatting(document: TextDocument, params: DocumentOnTypeFormattingParams): TextEdit[] | undefined; + addSchema(schemaID: string, schema: JSONSchema): void; + deleteSchema(schemaID: string): void; + modifySchemaContent(schemaAdditions: SchemaAdditions): void; + deleteSchemaContent(schemaDeletions: SchemaDeletions): void; + deleteSchemasWhole(schemaDeletions: SchemaDeletionsAll): void; + getFoldingRanges(document: TextDocument, context: FoldingRangesContext): FoldingRange[] | null; + getSelectionRanges(document: TextDocument, positions: Position[]): SelectionRange[] | undefined; + getCodeAction(document: TextDocument, params: CodeActionParams): CodeAction[] | undefined; + getCodeLens(document: TextDocument): Thenable | CodeLens[] | undefined; + resolveCodeLens(param: CodeLens): Thenable | CodeLens; +} +export declare function getLanguageService(params: { + schemaRequestService: SchemaRequestService; + workspaceContext: WorkspaceContextService; + connection?: Connection; + telemetry?: Telemetry; + yamlSettings?: SettingsState; + clientCapabilities?: ClientCapabilities; +}): LanguageService; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js" index 0639554b6ac4c13d6341a2529a9089a8251bbced..8383dbeaf545d5c11e9ddf1598671cc5dcf46b92 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js" @@ -1,3 +1,101 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d861816f3013247760425c66fda1d21659fc186c5d2cb2745764cc223d6272ad -size 5850 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * 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. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getLanguageService = exports.SchemaPriority = void 0; +const yamlSchemaService_1 = require("./services/yamlSchemaService"); +const documentSymbols_1 = require("./services/documentSymbols"); +const yamlHover_1 = require("./services/yamlHover"); +const yamlValidation_1 = require("./services/yamlValidation"); +const yamlFormatter_1 = require("./services/yamlFormatter"); +const yamlLinks_1 = require("./services/yamlLinks"); +const yamlFolding_1 = require("./services/yamlFolding"); +const yamlCodeActions_1 = require("./services/yamlCodeActions"); +const yamlOnTypeFormatting_1 = require("./services/yamlOnTypeFormatting"); +const yamlCodeLens_1 = require("./services/yamlCodeLens"); +const yamlCompletion_1 = require("./services/yamlCompletion"); +const yaml_documents_1 = require("./parser/yaml-documents"); +const schemaSelectionHandlers_1 = require("../languageserver/handlers/schemaSelectionHandlers"); +const yamlDefinition_1 = require("./services/yamlDefinition"); +const yamlSelectionRanges_1 = require("./services/yamlSelectionRanges"); +var SchemaPriority; +(function (SchemaPriority) { + SchemaPriority[SchemaPriority["SchemaStore"] = 1] = "SchemaStore"; + SchemaPriority[SchemaPriority["SchemaAssociation"] = 2] = "SchemaAssociation"; + SchemaPriority[SchemaPriority["Settings"] = 3] = "Settings"; +})(SchemaPriority = exports.SchemaPriority || (exports.SchemaPriority = {})); +function getLanguageService(params) { + const schemaService = new yamlSchemaService_1.YAMLSchemaService(params.schemaRequestService, params.workspaceContext); + const completer = new yamlCompletion_1.YamlCompletion(schemaService, params.clientCapabilities, yaml_documents_1.yamlDocumentsCache, params.telemetry); + const hover = new yamlHover_1.YAMLHover(schemaService, params.telemetry); + const yamlDocumentSymbols = new documentSymbols_1.YAMLDocumentSymbols(schemaService, params.telemetry); + const yamlValidation = new yamlValidation_1.YAMLValidation(schemaService, params.telemetry); + const formatter = new yamlFormatter_1.YAMLFormatter(); + const yamlCodeActions = new yamlCodeActions_1.YamlCodeActions(params.clientCapabilities); + const yamlCodeLens = new yamlCodeLens_1.YamlCodeLens(schemaService, params.telemetry); + const yamlLinks = new yamlLinks_1.YamlLinks(params.telemetry); + const yamlDefinition = new yamlDefinition_1.YamlDefinition(params.telemetry); + new schemaSelectionHandlers_1.JSONSchemaSelection(schemaService, params.yamlSettings, params.connection); + return { + configure: (settings) => { + schemaService.clearExternalSchemas(); + if (settings.schemas) { + schemaService.schemaPriorityMapping = new Map(); + settings.schemas.forEach((settings) => { + const currPriority = settings.priority ? settings.priority : 0; + schemaService.addSchemaPriority(settings.uri, currPriority); + schemaService.registerExternalSchema(settings.uri, settings.fileMatch, settings.schema, settings.name, settings.description, settings.versions); + }); + } + yamlValidation.configure(settings); + hover.configure(settings); + completer.configure(settings); + formatter.configure(settings); + yamlCodeActions.configure(settings); + }, + registerCustomSchemaProvider: (schemaProvider) => { + schemaService.registerCustomSchemaProvider(schemaProvider); + }, + findLinks: yamlLinks.findLinks.bind(yamlLinks), + doComplete: completer.doComplete.bind(completer), + doValidation: yamlValidation.doValidation.bind(yamlValidation), + doHover: hover.doHover.bind(hover), + findDocumentSymbols: yamlDocumentSymbols.findDocumentSymbols.bind(yamlDocumentSymbols), + findDocumentSymbols2: yamlDocumentSymbols.findHierarchicalDocumentSymbols.bind(yamlDocumentSymbols), + doDefinition: yamlDefinition.getDefinition.bind(yamlDefinition), + resetSchema: (uri) => { + return schemaService.onResourceChange(uri); + }, + doFormat: formatter.format.bind(formatter), + doDocumentOnTypeFormatting: yamlOnTypeFormatting_1.doDocumentOnTypeFormatting, + addSchema: (schemaID, schema) => { + return schemaService.saveSchema(schemaID, schema); + }, + deleteSchema: (schemaID) => { + return schemaService.deleteSchema(schemaID); + }, + modifySchemaContent: (schemaAdditions) => { + return schemaService.addContent(schemaAdditions); + }, + deleteSchemaContent: (schemaDeletions) => { + return schemaService.deleteContent(schemaDeletions); + }, + deleteSchemasWhole: (schemaDeletions) => { + return schemaService.deleteSchemas(schemaDeletions); + }, + getFoldingRanges: yamlFolding_1.getFoldingRanges, + getSelectionRanges: yamlSelectionRanges_1.getSelectionRanges, + getCodeAction: (document, params) => { + return yamlCodeActions.getCodeAction(document, params); + }, + getCodeLens: (document) => { + return yamlCodeLens.getCodeLens(document); + }, + resolveCodeLens: (param) => yamlCodeLens.resolveCodeLens(param), + }; +} +exports.getLanguageService = getLanguageService; +//# sourceMappingURL=yamlLanguageService.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js.map" index b410c6ac6b9ba48e4640d9dd64a79a67d339dbef..4fffa8447024b2cb34a8895e9cddf0cfeb7a5aaa 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlLanguageService.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9daacd83df5809f670b04dd977e901e719f97dec9f3bad827b44495914882562 -size 3618 +{"version":3,"file":"yamlLanguageService.js","sourceRoot":"","sources":["../../../../src/languageservice/yamlLanguageService.ts"],"names":[],"mappings":";AAAA;;;;gGAIgG;;;AAEhG,oEAMsC;AAiBtC,gEAAiE;AACjE,oDAAiD;AACjD,8DAA2D;AAC3D,4DAAyD;AAEzD,oDAAiD;AASjD,wDAA0D;AAE1D,gEAA6D;AAC7D,0EAA6E;AAC7E,0DAAuD;AAGvD,8DAA2D;AAC3D,4DAA6D;AAE7D,gGAAyF;AACzF,8DAA2D;AAC3D,wEAAoE;AAEpE,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iEAAe,CAAA;IACf,6EAAqB,CAAA;IACrB,2DAAY,CAAA;AACd,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA0HD,SAAgB,kBAAkB,CAAC,MAOlC;IACC,MAAM,aAAa,GAAG,IAAI,qCAAiB,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClG,MAAM,SAAS,GAAG,IAAI,+BAAc,CAAC,aAAa,EAA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CAAC,IAAI,CAAC,SAAS,CAAC;QAC1C,0BAA0B,EAA1B,iDAA0B;QAC1B,SAAS,EAAE,CAAC,QAAgB,EAAE,MAAkB,EAAE,EAAE;YAClD,OAAO,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACpD,CAAC;QACD,YAAY,EAAE,CAAC,QAAgB,EAAE,EAAE;YACjC,OAAO,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC9C,CAAC;QACD,mBAAmB,EAAE,CAAC,eAAgC,EAAE,EAAE;YACxD,OAAO,aAAa,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QACnD,CAAC;QACD,mBAAmB,EAAE,CAAC,eAAgC,EAAE,EAAE;YACxD,OAAO,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACtD,CAAC;QACD,kBAAkB,EAAE,CAAC,eAAmC,EAAE,EAAE;YAC1D,OAAO,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACtD,CAAC;QACD,gBAAgB,EAAhB,8BAAgB;QAChB,kBAAkB,EAAlB,wCAAkB;QAClB,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE;YAClC,OAAO,eAAe,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACzD,CAAC;QACD,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;YACxB,OAAO,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC5C,CAAC;QACD,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC;KAChE,CAAC;AACJ,CAAC;AArFD,gDAqFC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.d.ts" index 6d9522d05421a0371884999fa6ef66d388d914ef..657fe8d0e3a2c9f5f266de319d6f370efdbb9eae 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.d.ts" @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc2939382060ab53f5f1d26d2f2a93f94c034b762a89bbf4cb8a207cf4505c09 -size 548 +export interface FoldingRangesContext { + /** + * The maximal number of ranges returned. + */ + rangeLimit?: number; + /** + * Called when the result was cropped. + */ + onRangeLimitExceeded?: (uri: string) => void; + /** + * If set, the client signals that it only supports folding complete lines. If set, client will + * ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange. + */ + lineFoldingOnly?: boolean; +} +export declare type SchemaVersions = { + [version: string]: string; +}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js" index e23dd727f7327c6d264bda39ed4cc5c4b6b18d7f..eacaa94f1661901ef32344e111a90f5dd4a3cd1c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c46e842984d04837be9f0b6c87038c1c07490c6662dae01c85214eea1bca7153 -size 457 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=yamlTypes.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js.map" index ef0312d702f95d5b7373c547bd7338727f3c92c1..f327751aaad4f5db640ce6e98cc36474ebac175b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/languageservice/yamlTypes.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9dd3d3eccc6e8ed82dca45639cf7ef8a87f190b0cd810f1e2bc32d3073dab8ea -size 149 +{"version":3,"file":"yamlTypes.js","sourceRoot":"","sources":["../../../../src/languageservice/yamlTypes.ts"],"names":[],"mappings":";AAAA;;;gGAGgG"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.d.ts" index eb9684b36773316b8139f5a1fb6c16c1ace273ea..76ea15fe7de0ace6cf9231d743b64d559aa8d995 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.d.ts" @@ -1,3 +1,63 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f0820b26c5352d7b5b638a2c5724fa32a57170242e122042e76ef2bdfd2acb0 -size 2234 +import { NotificationType, RequestType } from 'vscode-languageserver'; +import { SchemaAdditions, SchemaDeletions } from './languageservice/services/yamlSchemaService'; +import { SchemaConfiguration } from './languageservice/yamlLanguageService'; +import { SchemaVersions } from './languageservice/yamlTypes'; +export declare type ISchemaAssociations = Record; +export interface JSONSchemaDescription { + /** + * Schema URI + */ + uri: string; + /** + * Schema name, from schema store + */ + name?: string; + /** + * Schema description, from schema store + */ + description?: string; +} +export interface JSONSchemaDescriptionExt extends JSONSchemaDescription { + /** + * Is schema used for current document + */ + usedForCurrentFile: boolean; + /** + * Is schema from schema store + */ + fromStore: boolean; + versions?: SchemaVersions; +} +export declare namespace SchemaAssociationNotification { + const type: NotificationType; +} +export declare namespace DynamicCustomSchemaRequestRegistration { + const type: NotificationType; +} +export declare namespace VSCodeContentRequestRegistration { + const type: NotificationType; +} +export declare namespace ResultLimitReachedNotification { + const type: NotificationType; +} +export declare namespace VSCodeContentRequest { + const type: RequestType; +} +export declare namespace CustomSchemaContentRequest { + const type: RequestType; +} +export declare namespace CustomSchemaRequest { + const type: RequestType; +} +export declare namespace ColorSymbolRequest { + const type: RequestType; +} +export declare namespace SchemaModificationNotification { + const type: RequestType; +} +export declare namespace SchemaSelectionRequests { + const type: NotificationType; + const getSchema: RequestType; + const getAllSchemas: RequestType; + const schemaStoreInitialized: NotificationType; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js" index 37a2def790ca2f828cc3695537d55aac74fa7ea7..8f569fbd0e7028846ad121d2891c2d52b5261026 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js" @@ -1,3 +1,49 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7b4f6cf05a5c2d76f7458223db944e240968789f02ce20b4aad3db5b37e9ef9 -size 3946 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SchemaSelectionRequests = exports.SchemaModificationNotification = exports.ColorSymbolRequest = exports.CustomSchemaRequest = exports.CustomSchemaContentRequest = exports.VSCodeContentRequest = exports.ResultLimitReachedNotification = exports.VSCodeContentRequestRegistration = exports.DynamicCustomSchemaRequestRegistration = exports.SchemaAssociationNotification = void 0; +/* eslint-disable @typescript-eslint/no-namespace */ +const vscode_languageserver_1 = require("vscode-languageserver"); +var SchemaAssociationNotification; +(function (SchemaAssociationNotification) { + SchemaAssociationNotification.type = new vscode_languageserver_1.NotificationType('json/schemaAssociations'); +})(SchemaAssociationNotification = exports.SchemaAssociationNotification || (exports.SchemaAssociationNotification = {})); +var DynamicCustomSchemaRequestRegistration; +(function (DynamicCustomSchemaRequestRegistration) { + DynamicCustomSchemaRequestRegistration.type = new vscode_languageserver_1.NotificationType('yaml/registerCustomSchemaRequest'); +})(DynamicCustomSchemaRequestRegistration = exports.DynamicCustomSchemaRequestRegistration || (exports.DynamicCustomSchemaRequestRegistration = {})); +var VSCodeContentRequestRegistration; +(function (VSCodeContentRequestRegistration) { + VSCodeContentRequestRegistration.type = new vscode_languageserver_1.NotificationType('yaml/registerContentRequest'); +})(VSCodeContentRequestRegistration = exports.VSCodeContentRequestRegistration || (exports.VSCodeContentRequestRegistration = {})); +var ResultLimitReachedNotification; +(function (ResultLimitReachedNotification) { + ResultLimitReachedNotification.type = new vscode_languageserver_1.NotificationType('yaml/resultLimitReached'); +})(ResultLimitReachedNotification = exports.ResultLimitReachedNotification || (exports.ResultLimitReachedNotification = {})); +var VSCodeContentRequest; +(function (VSCodeContentRequest) { + VSCodeContentRequest.type = new vscode_languageserver_1.RequestType('vscode/content'); +})(VSCodeContentRequest = exports.VSCodeContentRequest || (exports.VSCodeContentRequest = {})); +var CustomSchemaContentRequest; +(function (CustomSchemaContentRequest) { + CustomSchemaContentRequest.type = new vscode_languageserver_1.RequestType('custom/schema/content'); +})(CustomSchemaContentRequest = exports.CustomSchemaContentRequest || (exports.CustomSchemaContentRequest = {})); +var CustomSchemaRequest; +(function (CustomSchemaRequest) { + CustomSchemaRequest.type = new vscode_languageserver_1.RequestType('custom/schema/request'); +})(CustomSchemaRequest = exports.CustomSchemaRequest || (exports.CustomSchemaRequest = {})); +var ColorSymbolRequest; +(function (ColorSymbolRequest) { + ColorSymbolRequest.type = new vscode_languageserver_1.RequestType('json/colorSymbols'); +})(ColorSymbolRequest = exports.ColorSymbolRequest || (exports.ColorSymbolRequest = {})); +var SchemaModificationNotification; +(function (SchemaModificationNotification) { + SchemaModificationNotification.type = new vscode_languageserver_1.RequestType('json/schema/modify'); +})(SchemaModificationNotification = exports.SchemaModificationNotification || (exports.SchemaModificationNotification = {})); +var SchemaSelectionRequests; +(function (SchemaSelectionRequests) { + SchemaSelectionRequests.type = new vscode_languageserver_1.NotificationType('yaml/supportSchemaSelection'); + SchemaSelectionRequests.getSchema = new vscode_languageserver_1.RequestType('yaml/get/jsonSchema'); + SchemaSelectionRequests.getAllSchemas = new vscode_languageserver_1.RequestType('yaml/get/all/jsonSchemas'); + SchemaSelectionRequests.schemaStoreInitialized = new vscode_languageserver_1.NotificationType('yaml/schema/store/initialized'); +})(SchemaSelectionRequests = exports.SchemaSelectionRequests || (exports.SchemaSelectionRequests = {})); +//# sourceMappingURL=requestTypes.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js.map" index 84bf530fb9c5477ca91ba7d2daa77ab752a068d6..0339aa2f328afe687eb8a262a5a6d3d888381cfc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/requestTypes.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1334bbafd91fc5c41a2974df0f716310496548f23ed12fa07cb11f4568e399eb -size 1803 +{"version":3,"file":"requestTypes.js","sourceRoot":"","sources":["../../../src/requestTypes.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,iEAAsE;AAmCtE,IAAiB,6BAA6B,CAI7C;AAJD,WAAiB,6BAA6B;IAC/B,kCAAI,GAAkE,IAAI,wCAAgB,CACrG,yBAAyB,CAC1B,CAAC;AACJ,CAAC,EAJgB,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAI7C;AAED,IAAiB,sCAAsC,CAEtD;AAFD,WAAiB,sCA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A8B;IAChC,mCAAI,GAAkE,IAAI,mCAAW,CAAC,oBAAoB,CAAC,CAAC;AAC3H,CAAC,EAFgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAE9C;AAED,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACzB,4BAAI,GAA2B,IAAI,wCAAgB,CAAC,6BAA6B,CAAC,CAAC;IACnF,iCAAS,GAA0D,IAAI,mCAAW,CAAC,qBAAqB,CAAC,CAAC;IAC1G,qCAAa,GAA6D,IAAI,mCAAW,CACpG,0BAA0B,CAC3B,CAAC;IACW,8CAAsB,GAA8B,IAAI,wCAAgB,CAAC,+BAA+B,CAAC,CAAC;AACzH,CAAC,EAPgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOvC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js" index f7499bbff03886a4eb7e0869396e18ca215788cb..32dac9440a600b9f7663bc5e4699459e8a55ad7a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js" @@ -1,3 +1,59 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dff5456cc57753f3774162d8cf70338c8bcd2ed2bd3aa5749cfde34ab7906ed2 -size 2861 +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Copyright (c) Adam Voss. 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 }); +const node_1 = require("vscode-languageserver/node"); +const nls = require("vscode-nls"); +const schemaRequestHandler_1 = require("./languageservice/services/schemaRequestHandler"); +const yamlServerInit_1 = require("./yamlServerInit"); +const yamlSettings_1 = require("./yamlSettings"); +const fs_1 = require("fs"); +const objects_1 = require("./languageservice/utils/objects"); +const telemetry_1 = require("./languageserver/telemetry"); +// eslint-disable-next-line @typescript-eslint/no-explicit-any +nls.config(process.env['VSCODE_NLS_CONFIG']); +// Create a connection for the server. +let connection = null; +if (process.argv.indexOf('--stdio') === -1) { + connection = (0, node_1.createConnection)(node_1.ProposedFeatures.all); +} +else { + connection = (0, node_1.createConnection)(); +} +process.on('uncaughtException', (err) => { + // send all uncaught exception to telemetry with stack traces + connection.console.error((0, objects_1.convertErrorToTelemetryMsg)(err)); +}); +console.log = connection.console.log.bind(connection.console); +console.error = connection.console.error.bind(connection.console); +//vscode-nls calls console.error(null) in some cases, so we put that in info, to predict sending "null" in to telemetry +console.error = (arg) => { + if (arg === null) { + connection.console.info(arg); + } + else { + connection.console.error(arg); + } +}; +const yamlSettings = new yamlSettings_1.SettingsState(); +const fileSystem = { + readFile: async (fsPath, encoding) => { + const b = await fs_1.promises.readFile(fsPath, encoding); + return b.toString(); + }, +}; +/** + * 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 schemaRequestHandlerWrapper = (connection, uri) => { + return (0, schemaRequestHandler_1.schemaRequestHandler)(connection, uri, yamlSettings.workspaceFolders, yamlSettings.workspaceRoot, yamlSettings.useVSCodeContentRequest, fileSystem); +}; +const schemaRequestService = schemaRequestHandlerWrapper.bind(this, connection); +const telemetry = new telemetry_1.TelemetryImpl(connection); +new yamlServerInit_1.YAMLServerInit(connection, yamlSettings, schemaRequestHandler_1.workspaceContext, schemaRequestService, telemetry).start(); +//# sourceMappingURL=server.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js.map" index 546702bfe89a8d6de70a9a1fca84b9ceb0a8f5a6..6ac2a80d8a9991879903d2459ed63a18c7ad1b9b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/server.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6e75420691254be9e9808765d1f845532ac6fd0a9fd85287557f90bd55703336 -size 1795 +{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/server.ts"],"names":[],"mappings":"AAAA;;;;;gGAKgG;AAChG,YAAY,CAAC;;AAEb,qDAA4F;AAC5F,kCAAkC;AAClC,0FAAyG;AACzG,qDAAkD;AAClD,iDAA+C;AAC/C,2BAAoC;AACpC,6DAA6E;AAC7E,0DAA2D;AAE3D,8DAA8D;AAC9D,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAQ,CAAC,CAAC;AAEpD,sCAAsC;AACtC,IAAI,UAAU,GAAe,IAAI,CAAC;AAElC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE;IAC1C,UAAU,GAAG,IAAA,uBAAgB,EAAC,uBAAgB,CAAC,GAAG,CAAC,CAAC;CACrD;KAAM;IACL,UAAU,GAAG,IAAA,uBAAgB,GAAE,CAAC;CACjC;AAED,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,GAAU,EAAE,EAAE;I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,MAAM,SAAS,GAAG,IAAI,yBAAa,CAAC,UAAU,CAAC,CAAC;AAEhD,IAAI,+BAAc,CAAC,UAAU,EAAE,YAAY,EAAE,uCAAgB,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js" index 67d0af14422562ba1c9b433f10ff04318dec8d2d..f1d5adab33c13fff9482be1c558ae0b9e344d683 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js" @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0bc0b7125a14840acdbd29a9f3e0aff482376f0823de8255f9f166d3516049d -size 2213 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * 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. + *--------------------------------------------------------------------------------------------*/ +const vscode_languageserver_1 = require("vscode-languageserver"); +const browser_1 = require("vscode-languageserver/browser"); +const telemetry_1 = require("../languageserver/telemetry"); +const schemaRequestHandler_1 = require("../languageservice/services/schemaRequestHandler"); +const yamlServerInit_1 = require("../yamlServerInit"); +const yamlSettings_1 = require("../yamlSettings"); +// eslint-disable-next-line @typescript-eslint/no-namespace +var FSReadFile; +(function (FSReadFile) { + FSReadFile.type = new vscode_languageserver_1.RequestType('fs/readFile'); +})(FSReadFile || (FSReadFile = {})); +const messageReader = new browser_1.BrowserMessageReader(globalThis); +const messageWriter = new browser_1.BrowserMessageWriter(globalThis); +const connection = (0, browser_1.createConnection)(messageReader, messageWriter); +const yamlSettings = new yamlSettings_1.SettingsState(); +const fileSystem = { + readFile: (fsPath) => { + return connection.sendRequest(FSReadFile.type, fsPath); + }, +}; +/** + * 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 schemaRequestHandlerWrapper = (connection, uri) => { + return (0, schemaRequestHandler_1.schemaRequestHandler)(connection, uri, yamlSettings.workspaceFolders, yamlSettings.workspaceRoot, yamlSettings.useVSCodeContentRequest, fileSystem); +}; +const schemaRequestService = schemaRequestHandlerWrapper.bind(this, connection); +const telemetry = new telemetry_1.TelemetryImpl(connection); +new yamlServerInit_1.YAMLServerInit(connection, yamlSettings, schemaRequestHandler_1.workspaceContext, schemaRequestService, telemetry).start(); +//# sourceMappingURL=yamlServerMain.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js.map" index 5279c6c30ef7f8ca492fd2f68a01f737024cc26e..76f7c3880c0e7869b6e60097508017ab332c950a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/webworker/yamlServerMain.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9958e8ff3f87c0b7655daf2bc4b0a01ea830cc7fb2d68cd37d74a0dac9a4cc5 -size 1150 +{"version":3,"file":"yamlServerMain.js","sourceRoot":"","sources":["../../../../src/webworker/yamlServerMain.ts"],"names":[],"mappings":";;AAAA;;;;gGAIgG;AAChG,iEAAgE;AAChE,2DAA6G;AAC7G,2DAA4D;AAC5D,2FAA0G;AAC1G,sDAAmD;AACnD,kDAAgD;AAEhD,2DAA2D;AAC3D,IAAU,UAAU,CAEnB;AAFD,WAAU,UAAU;IACL,eAAI,GAAyC,IAAI,mCAAW,CAAC,aAAa,CAAC,CAAC;AAC3F,CAAC,EAFS,UAAU,KAAV,UAAU,QAEnB;AAED,MAAM,aAAa,GAAG,IAAI,8BAAoB,CAAC,UAAU,CAAC,CAAC;AAC3D,MAAM,aAAa,GAAG,IAAI,8BAAoB,CAAC,UAAU,CAAC,CAAC;AAE3D,MAAM,UAAU,GAAG,IAAA,0BAAgB,EAAC,aAAa,EAAE,aAAa,CAAC,CAAC;AAElE,MAAM,YAAY,GAAG,IAAI,4BAAa,EAAE,CAAC;AAEzC,MAAM,UAAU,GAAG;IACjB,QAAQ,EAAE,CAAC,MAAc,EAAE,EAAE;QAC3B,OAAO,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,2BAA2B,GAAG,CAAC,UAAsB,EAAE,GAAW,EAAmB,EAAE;IAC3F,OAAO,IAAA,2CAAoB,EACzB,UAAU,EACV,GAAG,EACH,YAAY,CAAC,gBAAgB,EAC7B,YAAY,CAAC,aAAa,EAC1B,YAAY,CAAC,uBAAuB,EACpC,UAAU,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,2BAA2B,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AAChF,MAAM,SAAS,GAAG,IAAI,yBAAa,CAAC,UAAU,CAAC,CAAC;AAEhD,IAAI,+BAAc,CAAC,UAAU,EAAE,YAAY,EAAE,uCAAgB,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.d.ts" index 87f7db93dfabbf58a598ee7c4f6110b188ccf822..9a91c4ce7844a8b607eecb4b2fba416f2c4d234f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.d.ts" @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfb702cd1d28247d0a72621df835858be9e7954c0cfec747bc9d111a3d875430 -size 1194 +import { Connection, InitializeParams, InitializeResult } from 'vscode-languageserver'; +import { LanguageService, SchemaRequestService, WorkspaceContextService } from './languageservice/yamlLanguageService'; +import { SettingsState } from './yamlSettings'; +import { LanguageHandlers } from './languageserver/handlers/languageHandlers'; +import { ValidationHandler } from './languageserver/handlers/validationHandlers'; +import { SettingsHandler } from './languageserver/handlers/settingsHandlers'; +import { Telemetry } from './languageservice/telemetry'; +export declare class YAMLServerInit { + private readonly connection; + private yamlSettings; + private workspaceContext; + private schemaRequestService; + private telemetry; + languageService: LanguageService; + languageHandler: LanguageHandlers; + validationHandler: ValidationHandler; + settingsHandler: SettingsHandler; + constructor(connection: Connection, yamlSettings: SettingsState, workspaceContext: WorkspaceContextService, schemaRequestService: SchemaRequestService, telemetry: Telemetry); + connectionInitialized(params: InitializeParams): InitializeResult; + private registerHandlers; + start(): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js" index 4440c7bb92f9681da8953f6d9cc3d8d692b5d79b..e6d882f280af155057da74f994062d7d28d9bdc4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js" @@ -1,3 +1,120 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21f44a85d107c89773d0ececa6feb949b34fff5387c48bcf5c7ec81a8c13c8c4 -size 6889 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.YAMLServerInit = void 0; +const vscode_languageserver_1 = require("vscode-languageserver"); +const yamlLanguageService_1 = require("./languageservice/yamlLanguageService"); +const paths_1 = require("./languageservice/utils/paths"); +const vscode_uri_1 = require("vscode-uri"); +const languageHandlers_1 = require("./languageserver/handlers/languageHandlers"); +const notificationHandlers_1 = require("./languageserver/handlers/notificationHandlers"); +const requestHandlers_1 = require("./languageserver/handlers/requestHandlers"); +const validationHandlers_1 = require("./languageserver/handlers/validationHandlers"); +const settingsHandlers_1 = require("./languageserver/handlers/settingsHandlers"); +const commands_1 = require("./commands"); +const workspaceHandlers_1 = require("./languageserver/handlers/workspaceHandlers"); +const commandExecutor_1 = require("./languageserver/commandExecutor"); +const yamlCommands_1 = require("./languageservice/services/yamlCommands"); +class YAMLServerInit { + constructor(connection, yamlSettings, workspaceContext, schemaRequestService, telemetry) { + this.connection = connection; + this.yamlSettings = yamlSettings; + this.workspaceContext = workspaceContext; + this.schemaRequestService = schemaRequestService; + this.telemetry = telemetry; + this.yamlSettings.documents.listen(this.connection); + /** + * Run when the client connects to the server after it is activated. + * The server receives the root path(s) of the workspace and the client capabilities. + */ + this.connection.onInitialize((params) => { + return this.connectionInitialized(params); + }); + this.connection.onInitialized(() => { + if (this.yamlSettings.hasWsChangeWatchedFileDynamicRegistration) { + this.connection.workspace.onDidChangeWorkspaceFolders((changedFolders) => { + this.yamlSettings.workspaceFolders = (0, paths_1.workspaceFoldersChanged)(this.yamlSettings.workspaceFolders, changedFolders); + }); + } + // need to call this after connection initialized + this.settingsHandler.registerHandlers(); + this.settingsHandler.pullConfiguration(); + }); + } + // public for test setup + connectionInitialized(params) { + this.yamlSettings.capabilities = params.capabilities; + this.languageService = (0, yamlLanguageService_1.getLanguageService)({ + schemaRequestService: this.schemaRequestService, + workspaceContext: this.workspaceContext, + connection: this.connection, + yamlSettings: this.yamlSettings, + telemetry: this.telemetry, + clientCapabilities: params.capabilities, + }); + // Only try to parse the workspace root if its not null. Otherwise initialize will fail + if (params.rootUri) { + this.yamlSettings.workspaceRoot = vscode_uri_1.URI.parse(params.rootUri); + } + this.yamlSettings.workspaceFolders = params.workspaceFolders || []; + this.yamlSettings.hierarchicalDocumentSymbolSupport = !!(this.yamlSettings.capabilities.textDocument && + this.yamlSettings.capabilities.textDocument.documentSymbol && + this.yamlSettings.capabilities.textDocument.documentSymbol.hierarchicalDocumentSymbolSupport); + this.yamlSettings.clientDynamicRegisterSupport = !!(this.yamlSettings.capabilities.textDocument && + this.yamlSettings.capabilities.textDocument.rangeFormatting && + this.yamlSettings.capabilities.textDocument.rangeFormatting.dynamicRegistration); + this.yamlSettings.hasWorkspaceFolderCapability = + this.yamlSettings.capabilities.workspace && !!this.yamlSettings.capabilities.workspace.workspaceFolders; + this.yamlSettings.hasConfigurationCapability = !!(this.yamlSettings.capabilities.workspace && !!this.yamlSettings.capabilities.workspace.configuration); + this.yamlSettings.hasWsChangeWatchedFileDynamicRegistration = !!(this.yamlSettings.capabilities.workspace && + this.yamlSettings.capabilities.workspace.didChangeWatchedFiles && + this.yamlSettings.capabilities.workspace.didChangeWatchedFiles.dynamicRegistration); + this.registerHandlers(); + (0, yamlCommands_1.registerCommands)(commandExecutor_1.commandExecutor, this.connection); + return { + capabilities: { + textDocumentSync: vscode_languageserver_1.TextDocumentSyncKind.Incremental, + completionProvider: { resolveProvider: false }, + hoverProvider: true, + documentSymbolProvider: true, + documentFormattingProvider: false, + documentOnTypeFormattingProvider: { + firstTriggerCharacter: '\n', + }, + documentRangeFormattingProvider: false, + definitionProvider: true, + documentLinkProvider: {}, + foldingRangeProvider: true, + selectionRangeProvider: true, + codeActionProvider: true, + codeLensProvider: { + resolveProvider: false, + }, + executeCommandProvider: { + commands: Object.keys(commands_1.YamlCommands).map((k) => commands_1.YamlCommands[k]), + }, + workspace: { + workspaceFolders: { + changeNotifications: true, + supported: true, + }, + }, + }, + }; + } + registerHandlers() { + // Register all features that the language server has + this.validationHandler = new validationHandlers_1.ValidationHandler(this.connection, this.languageService, this.yamlSettings); + this.settingsHandler = new settingsHandlers_1.SettingsHandler(this.connection, this.languageService, this.yamlSettings, this.validationHandler, this.telemetry); + // this.settingsHandler.registerHandlers(); + this.languageHandler = new languageHandlers_1.LanguageHandlers(this.connection, this.languageService, this.yamlSettings, this.validationHandler); + this.languageHandler.registerHandlers(); + new notificationHandlers_1.NotificationHandlers(this.connection, this.languageService, this.yamlSettings, this.settingsHandler).registerHandlers(); + new requestHandlers_1.RequestHandlers(this.connection, this.languageService).registerHandlers(); + new workspaceHandlers_1.WorkspaceHandlers(this.connection, commandExecutor_1.commandExecutor).registerHandlers(); + } + start() { + this.connection.listen(); + } +} +exports.YAMLServerInit = YAMLServerInit; +//# sourceMappingURL=yamlServerInit.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js.map" index 2e5b3cbddf8ef3d05f30350ad26c028e822fdc56..eaa77ee063d3537a8dd0dccb24e8c2b77aab2e43 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlServerInit.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe7978bb6206bd2092ee3428bb74f4d7c48214098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,EAAE,CAAC;IAC3B,CAAC;CACF;AAlID,wCAkIC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.d.ts" index 84a1b8397f2e01b794c8cd8453fb57e3294aef32..17d022ad8a4d1ef896d931ea067683954e5a366d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.d.ts" @@ -1,3 +1,104 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b677df1694d108309c4e90f1dc9efa3fca4a63ba9d335579764a8c5b47857b0 -size 3488 +/// +import { TextDocuments, Disposable, ClientCapabilities, WorkspaceFolder } from 'vscode-languageserver'; +import { CustomFormatterOptions, SchemaConfiguration } from './languageservice/yamlLanguageService'; +import { ISchemaAssociations } from './requestTypes'; +import { URI } from 'vscode-uri'; +import { JSONSchema } from './languageservice/jsonSchema'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { YamlVersion } from './languageservice/parser/yamlParser07'; +export interface Settings { + yaml: { + format: CustomFormatterOptions; + schemas: JSONSchemaSettings[]; + validate: boolean; + hover: boolean; + completion: boolean; + customTags: Array; + schemaStore: { + url: string; + enable: boolean; + }; + disableDefaultProperties: boolean; + disableAdditionalProperties: boolean; + suggest: { + parentSkeletonSelectedFirst: boolean; + }; + style: { + flowMapping: 'allow' | 'forbid'; + flowSequence: 'allow' | 'forbid'; + }; + keyOrdering: boolean; + maxItemsComputed: number; + yamlVersion: YamlVersion; + }; + http: { + proxy: string; + proxyStrictSSL: boolean; + }; + yamlEditor: { + 'editor.tabSize': number; + 'editor.insertSpaces': boolean; + 'editor.formatOnType': boolean; + }; + vscodeEditor: { + detectIndentation: boolean; + }; + files: { + associations: Map; + }; +} +export interface JSONSchemaSettings { + fileMatch?: string[]; + url?: string; + schema?: JSONSchema; +} +export declare class SettingsState { + yamlConfigurationSettings: JSONSchemaSettings[]; + schemaAssociations: ISchemaAssociations | SchemaConfiguration[] | undefined; + formatterRegistration: Thenable; + specificValidatorPaths: any[]; + schemaConfigurationSettings: any[]; + yamlShouldValidate: boolean; + yamlFormatterSettings: CustomFormatterOptions; + yamlShouldHover: boolean; + yamlShouldCompletion: boolean; + schemaStoreSettings: any[]; + customTags: any[]; + schemaStoreEnabled: boolean; + schemaStoreUrl: string; + indentation: string | undefined; + disableAdditionalProperties: boolean; + disableDefaultProperties: boolean; + suggest: { + parentSkeletonSelectedFirst: boolean; + }; + style: { + flowMapping: 'allow' | 'forbid'; + flowSequence: 'allow' | 'forbid'; + }; + keyOrdering: boolean; + maxItemsComputed: number; + pendingValidationRequests: { + [uri: string]: NodeJS.Timer; + }; + validationDelayMs: number; + documents: TextDocuments | TextDocumentTestManager; + capabilities: ClientCapabilities; + workspaceRoot: URI; + workspaceFolders: WorkspaceFolder[]; + clientDynamicRegisterSupport: boolean; + hierarchicalDocumentSymbolSupport: boolean; + hasWorkspaceFolderCapability: boolean; + hasConfigurationCapability: boolean; + useVSCodeContentRequest: boolean; + yamlVersion: YamlVersion; + useSchemaSelectionRequests: boolean; + hasWsChangeWatchedFileDynamicRegistration: boolean; + fileExtensions: string[]; +} +export declare class TextDocumentTestManager extends TextDocuments { + testTextDocuments: Map; + constructor(); + get(uri: string): TextDocument | undefined; + set(textDocument: TextDocument): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js" index 2ff57db83489e089d063edb824cc072524bffc01..8e973d8a633cbbb0066fd170a5e19eadb5467145 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js" @@ -1,3 +1,70 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0942e18ecaa21ed7881e6a3d0dd37613a8fe617037bb6d1f1ea9669922095e6f -size 2894 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TextDocumentTestManager = exports.SettingsState = void 0; +const vscode_languageserver_1 = require("vscode-languageserver"); +const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument"); +const schemaUrls_1 = require("./languageservice/utils/schemaUrls"); +// This class is responsible for handling all the settings +class SettingsState { + constructor() { + this.yamlConfigurationSettings = undefined; + this.schemaAssociations = undefined; + this.formatterRegistration = null; + this.specificValidatorPaths = []; + this.schemaConfigurationSettings = []; + this.yamlShouldValidate = true; + this.yamlFormatterSettings = { + singleQuote: false, + bracketSpacing: true, + proseWrap: 'preserve', + printWidth: 80, + enable: true, + }; + this.yamlShouldHover = true; + this.yamlShouldCompletion = true; + this.schemaStoreSettings = []; + this.customTags = []; + this.schemaStoreEnabled = true; + this.schemaStoreUrl = schemaUrls_1.JSON_SCHEMASTORE_URL; + this.indentation = undefined; + this.disableAdditionalProperties = false; + this.disableDefaultProperties = false; + this.suggest = { + parentSkeletonSelectedFirst: false, + }; + this.keyOrdering = false; + this.maxItemsComputed = 5000; + // File validation helpers + this.pendingValidationRequests = {}; + this.validationDelayMs = 200; + // Create a simple text document manager. The text document manager + // supports full document sync only + this.documents = new vscode_languageserver_1.TextDocuments(vscode_languageserver_textdocument_1.TextDocument); + this.workspaceRoot = null; + this.workspaceFolders = []; + this.clientDynamicRegisterSupport = false; + this.hierarchicalDocumentSymbolSupport = false; + this.hasWorkspaceFolderCapability = false; + this.hasConfigurationCapability = false; + this.useVSCodeContentRequest = false; + this.yamlVersion = '1.2'; + this.useSchemaSelectionRequests = false; + this.hasWsChangeWatchedFileDynamicRegistration = false; + this.fileExtensions = ['.yml', '.yaml']; + } +} +exports.SettingsState = SettingsState; +class TextDocumentTestManager extends vscode_languageserver_1.TextDocuments { + constructor() { + super(vscode_languageserver_textdocument_1.TextDocument); + this.testTextDocuments = new Map(); + } + get(uri) { + return this.testTextDocuments.get(uri); + } + set(textDocument) { + this.testTextDocuments.set(textDocument.uri, textDocument); + } +} +exports.TextDocumentTestManager = TextDocumentTestManager; +//# sourceMappingURL=yamlSettings.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js.map" index f21da9811d8e45fbd0fe23450584680d80ebc391..8df7a6587492ae1aa806bf88ee5b4440caa3a5b3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/src/yamlSettings.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3df8e7d66aa5e826a5422cada6c377f09a551c64ed008abcb95a0423338a20e1 -size 1679 +{"version":3,"file":"yamlSettings.js","sourceRoot":"","sources":["../../../src/yamlSettings.ts"],"names":[],"mappings":";;;AAAA,iEAAuG;AAKvG,2FAAkE;AAClE,mEAA0E;AAoD1E,0DAA0D;AAC1D,MAAa,aAAa;IAA1B;QACE,8BAAyB,GAAyB,SAAS,CAAC;QAC5D,uBAAkB,GAA4D,SAAS,CAAC;QACxF,0BAAqB,GAAyB,IAAI,CAAC;QACnD,2BAAsB,GAAG,EAAE,CAAC;QAC5B,gCAA2B,GAAG,EAAE,CAAC;QACjC,uBAAkB,GAAG,IAAI,CAAC;QAC1B,0BAAqB,GAAG;YACtB,WAAW,EAAE,KAAK;YAClB,cAAc,EAAE,IAAI;YACpB,SAAS,EAAE,UAAU;YACrB,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,IAAI;SACa,CAAC;QAC5B,oBAAe,GAAG,IAAI,CAAC;QACvB,yBAAoB,GAAG,IAAI,CAAC;QAC5B,wBAAmB,GAAG,EAAE,CAAC;QACzB,eAAU,GAAG,EAAE,CAAC;QAChB,uBAAkB,GAA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DAcC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js" index 70be49789a8b52a77af5a58e4a2d83723e4808ad..c3c0be4d34098c7b2cf5b24562b138defd1a65fc 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js" @@ -1,3 +1,60 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b328735a7ea66bfb5310b4118e02631943d8bfa8041aa117c68c467071928566 -size 2645 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const arrUtils_1 = require("../src/languageservice/utils/arrUtils"); +const assert = require("assert"); +describe('Array Utils Tests', () => { + describe('Server - Array Utils', function () { + describe('getLineOffsets', function () { + it('No offset', () => { + const offsets = (0, arrUtils_1.getLineOffsets)(''); + assert.equal(offsets.length, 0); + }); + it('One offset', () => { + const offsets = (0, arrUtils_1.getLineOffsets)('test_offset'); + assert.equal(offsets.length, 1); + assert.equal(offsets[0], 0); + }); + it('One offset with \\r\\n', () => { + const offsets = (0, arrUtils_1.getLineOffsets)('first_offset\r\n'); + assert.equal(offsets.length, 2); + assert.equal(offsets[0], 0); + }); + it('Multiple offsets', () => { + const offsets = (0, arrUtils_1.getLineOffsets)('first_offset\n second_offset\n third_offset'); + assert.equal(offsets.length, 3); + assert.equal(offsets[0], 0); + assert.equal(offsets[1], 13); + assert.equal(offsets[2], 29); + }); + }); + describe('removeDuplicatesObj', function () { + it('Remove one duplicate with property', () => { + const obj1 = { + test_key: 'test_value', + }; + const obj2 = { + test_key: 'test_value', + }; + const arr = [obj1, obj2]; + const result = (0, arrUtils_1.removeDuplicatesObj)(arr); + assert.equal(result.length, 1); + }); + it('Does not remove anything unneccessary', () => { + const obj1 = { + test_key: 'test_value', + }; + const obj2 = { + other_key: 'test_value', + }; + const arr = [obj1, obj2]; + const result = (0, arrUtils_1.removeDuplicatesObj)(arr); + assert.equal(result.length, 2); + }); + }); + }); +}); +//# sourceMappingURL=arrUtils.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js.map" index 4ec397a9fd90bf1e39e2194dc9e90847075106d8..c885e93f7556fc54c49da25aab16db267cca39ec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/arrUtils.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44f65642aa1bb0899d5fd010650e3d57cfd827f8d6d8d51a682b331334dcf7cf -size 2064 +{"version":3,"file":"arrUtils.test.js","sourceRoot":"","sources":["../../../test/arrUtils.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,oEAA4F;AAC5F,iCAAiC;AAEjC,QAAQ,CAAC,mBA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AK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC/B,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,qBAAqB,EAAE;YAC9B,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;gBAC5C,MAAM,IAAI,GAAG;oBACX,QAAQ,EAAE,YAAY;iBACvB,CAAC;gBAEF,MAAM,IAAI,GAAG;oBACX,QAAQ,EAAE,YAAY;iBACvB,CAAC;gBAEF,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACzB,MAAM,MAAM,GAAG,IAAA,8BAAmB,EAAC,GAAG,CAAC,CAAC;gBACxC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;gBAC/C,MAAM,IAAI,GAAG;oBACX,QAAQ,EAAE,YAAY;iBACvB,CAAC;gBAEF,MAAM,IAAI,GAAG;oBACX,SAAS,EAAE,YAAY;iBACxB,CAAC;gBAEF,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAEzB,MAAM,MAAM,GAAG,IAAA,8BAAmB,EAAC,GAAG,CAAC,CAAC;gBACxC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js" index cbb337d4f49d76cca43d9b8108884d085c090ea7..c2e46c8b82e0dfdc96579c74460b8622c8db6180 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js" @@ -1,3 +1,79 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b370b376e67fbd671fccfa70c069011b8fec6c703f849ea1fb374f623a1b151 -size 4385 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const chai = require("chai"); +const yaml_1 = require("yaml"); +const yaml_documents_1 = require("../src/languageservice/parser/yaml-documents"); +const astUtils_1 = require("../src/languageservice/utils/astUtils"); +const textBuffer_1 = require("../src/languageservice/utils/textBuffer"); +const testHelper_1 = require("./utils/testHelper"); +const expect = chai.expect; +describe('AST Utils Tests', () => { + let documents; + beforeEach(() => { + documents = new yaml_documents_1.YamlDocuments(); + }); + describe('Get Parent Node', () => { + it('get key parent', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [node] = yamlDoc.documents[0].getNodeFromPosition(2, new textBuffer_1.TextBuffer(doc)); + const result = (0, astUtils_1.getParent)(yamlDoc.documents[0].internalDocument, node); + expect(result).is.not.undefined; + expect((0, yaml_1.isPair)(result)).is.true; + expect(result.key).property('value', 'foo'); + }); + it('get value parent', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [node] = yamlDoc.documents[0].getNodeFromPosition(6, new textBuffer_1.TextBuffer(doc)); + const result = (0, astUtils_1.getParent)(yamlDoc.documents[0].internalDocument, node); + expect(result).is.not.undefined; + expect((0, yaml_1.isPair)(result)).is.true; + expect(result.value).property('value', 'bar'); + }); + it('get root map parent', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [node] = yamlDoc.documents[0].getNodeFromPosition(4, new textBuffer_1.TextBuffer(doc)); + const result = (0, astUtils_1.getParent)(yamlDoc.documents[0].internalDocument, node); + expect(result).is.undefined; + }); + it('get array parent', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n - bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [node] = yamlDoc.documents[0].getNodeFromPosition(10, new textBuffer_1.TextBuffer(doc)); + const result = (0, astUtils_1.getParent)(yamlDoc.documents[0].internalDocument, node); + expect(result).is.not.undefined; + expect((0, yaml_1.isSeq)(result)).is.true; + expect(result.items[0]).property('value', 'bar'); + }); + it('get pair parent', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n - bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [node] = yamlDoc.documents[0].getNodeFromPosition(7, new textBuffer_1.TextBuffer(doc)); + const result = (0, astUtils_1.getParent)(yamlDoc.documents[0].internalDocument, node); + expect(result).is.not.undefined; + expect((0, yaml_1.isPair)(result)).is.true; + expect(result.key).property('value', 'foo'); + }); + }); + describe('Is Offset in comment', () => { + it('should detect that offset in comment', () => { + const doc = (0, testHelper_1.setupTextDocument)('#some comment\nfoo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const result = (0, astUtils_1.isInComment)(yamlDoc.tokens, 4); + expect(result).to.be.true; + }); + it('should detect that comment inside object', () => { + const doc = (0, testHelper_1.setupTextDocument)('obj:\n#some comment\n foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const result = (0, astUtils_1.isInComment)(yamlDoc.tokens, 12); + expect(result).to.be.true; + }); + }); +}); +//# sourceMappingURL=astUtils.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js.map" index 0ed34c72b32c5cd73db84fbd9b4b8766fd88399d..4c80d76af54221fa5e86a774977d24aa5c2603ac 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/astUtils.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef92c795e420d2d1b4578ff08d349231e940e9b910b413ce402a77078d64a219 -size 3991 +{"version":3,"file":"astUtils.test.js","sourceRoot":"","sources":["../../../test/astUtils.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,6BAA6B;AAC7B,+BAAoD;AACpD,iFAA6E;AAC7E,oEAA+E;AAC/E,wEAAqE;AACrE,mDAAuD;AACvD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAE3B,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,SAAwB,CAAC;IAC7B,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,GAAG,IAAI,8BAAa,EAAE,CAAC;IAClC,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAC/B,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;YACxB,MAAM,GAAG,GAAG,IAAA,8BAAiB,EAAC,UAAU,CAAC,CAAC;YAC1C,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAE/C,MAAM,CAAC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E;YAClD,MAAM,GAAG,GAAG,IAAA,8BAAiB,EAAC,iCAAiC,CAAC,CAAC;YACjE,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YAC/C,MAAM,MAAM,GAAG,IAAA,sBAAW,EAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js" index 22db13e6e897417ababb7ea196be1e5a89a61863..91540258fc82662eb09d623c3a107ca2dff41f7b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js" @@ -1,3 +1,2675 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5c3fa78cbedf4685f8cad1b9d463d68293cda0c40fc6a71bb84211e4a52bcce3 -size 131315 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +/* eslint-disable @typescript-eslint/no-var-requires */ +const testHelper_1 = require("./utils/testHelper"); +const assert = require("assert"); +const path = require("path"); +const verifyError_1 = require("./utils/verifyError"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const chai_1 = require("chai"); +const yamlSettings_1 = require("../src/yamlSettings"); +describe('Auto Completion Tests', () => { + let languageSettingsSetup; + let languageService; + let languageHandler; + let yamlSettings; + let schemaProvider; + before(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withSchemaFileMatch({ + uri: 'http://google.com', + fileMatch: ['bad-schema.yaml'], + }); + const { languageService: langService, languageHandler: langHandler, yamlSettings: settings, schemaProvider: testSchemaProvider, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageService = langService; + languageHandler = langHandler; + yamlSettings = settings; + schemaProvider = testSchemaProvider; + }); + /** + * Generates a completion list for the given document and caret (cursor) position. + * @param content The content of the document. + * @param position The position of the caret in the document. + * Alternatively, `position` can be omitted if the caret is located in the content using `|` bookends. + * For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2` + * @returns A list of valid completions. + */ + function parseSetup(content, position) { + if (typeof position === 'undefined') { + ({ content, position } = (0, testHelper_1.caretPosition)(content)); + } + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.completionHandler({ + position: testTextDocument.positionAt(position), + textDocument: testTextDocument, + }); + } + afterEach(() => { + schemaProvider.deleteSchema(testHelper_1.SCHEMA_ID); + languageService.configure(languageSettingsSetup.languageSettings); + }); + describe('YAML Completion Tests', function () { + describe('JSON Schema Tests', function () { + it('Autocomplete on root without word', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }); + const content = ''; + const completion = parseSetup(content, 0); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('name', 'name: ', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete on root with partial word', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }); + const content = 'na'; // len: 2 + const completion = parseSetup(content, 2); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('name', 'name: ', 0, 0, 0, 2, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete on default value (without :)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + default: 'yaml', + }, + }, + }); + const content = 'name'; // len: 4 + const completion = parseSetup(content, 10); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('name', 'name: ${1:yaml}', 0, 0, 0, 4, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete on default value (without value content)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + default: 'yaml', + }, + }, + }); + const content = 'name: '; // len: 6 + const completion = parseSetup(content, 12); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('yaml', 'yaml', 0, 6, 0, 6, 12, 2, { + detail: 'Default value', + })); + }) + .then(done, done); + }); + it('Autocomplete on default value with \\"', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + default: '"yaml"', + }, + }, + }); + const content = 'name: '; // len: 6 + const completion = await parseSetup(content, 6); + assert.strictEqual(completion.items.length, 1); + assert.deepStrictEqual(completion.items[0], (0, verifyError_1.createExpectedCompletion)('"yaml"', '"yaml"', 0, 6, 0, 6, 12, 2, { + detail: 'Default value', + })); + }); + it('Autocomplete name and value with \\"', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + default: '"yaml"', + }, + }, + }); + const content = 'nam|e|'; // len: 4, pos: 3 + const completion = await parseSetup(content); + assert.strictEqual(completion.items.length, 1); + assert.deepStrictEqual(completion.items[0], (0, verifyError_1.createExpectedCompletion)('name', 'name: ${1:"yaml"}', 0, 0, 0, 4, 10, 2, { + documentation: '', + })); + }); + it('Autocomplete on default value (with value content)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + default: 'yaml', + }, + }, + }); + const content = 'name: ya'; // len: 8 + const completion = parseSetup(content, 15); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('yaml', 'yaml', 0, 6, 0, 8, 12, 2, { + detail: 'Default value', + })); + }) + .then(done, done); + }); + it('Autocomplete on default value (with value content contains dash)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + name: { + type: 'string', + default: 'yaml-language', + }, + }, + }); + const content = 'name: yaml-'; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('yaml-language', 'yaml-language', 0, 6, 0, 11, 12, 2, { + detail: 'Default value', + })); + }) + .then(done, done); + }); + it('Autocomplete on boolean value (without value content)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + yaml: { + type: 'boolean', + }, + }, + }); + const content = 'yaml: '; // len: 6 + const completion = parseSetup(content, 11); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('true', 'true', 0, 6, 0, 6, 12, 2, { + documentation: '', + })); + assert.deepEqual(result.items[1], (0, verifyError_1.createExpectedCompletion)('false', 'false', 0, 6, 0, 6, 12, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete on boolean value with key of `null`', () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + validation: { + type: 'object', + additionalProperties: false, + properties: { + null: { + type: 'boolean', + default: false, + }, + }, + }, + }, + }); + const content = ''; // len: 0 + const completion = parseSetup(content, 0); + completion.then(function (result) { + (0, chai_1.expect)(result.items.length).equal(1); + (0, chai_1.expect)(result.items[0].insertText).equal('validation:\n \\"null\\": ${1:false}'); + }); + }); + it('Autocomplete on boolean value (with value content)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + yaml: { + type: 'boolean', + }, + }, + }); + const content = 'yaml: fal'; // len: 9 + const completion = parseSetup(content, 11); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('true', 'true', 0, 6, 0, 9, 12, 2, { + documentation: '', + })); + assert.deepEqual(result.items[1], (0, verifyError_1.createExpectedCompletion)('false', 'false', 0, 6, 0, 9, 12, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete on number value (without value content)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + timeout: { + type: 'number', + default: 60000, + }, + }, + }); + const content = 'timeout: '; // len: 9 + const completion = parseSetup(content, 9); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('60000', '60000', 0, 9, 0, 9, 12, 2, { + detail: 'Default value', + })); + }) + .then(done, done); + }); + it('Autocomplete on number value (with value content)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + timeout: { + type: 'number', + default: 60000, + }, + }, + }); + const content = 'timeout: 6'; // len: 10 + const completion = parseSetup(content, 10); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('60000', '60000', 0, 9, 0, 10, 12, 2, { + detail: 'Default value', + })); + }) + .then(done, done); + }); + it('Autocomplete key in middle of file', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + enum: ['test'], + }, + }, + }, + }, + }); + const content = 'scripts:\n |s|ample'; // len: 17, pos: 11 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('sample', 'sample: ${1:test}', 1, 2, 1, 8, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete key with default value in middle of file', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + default: 'test', + }, + }, + }, + }, + }); + const content = 'scripts:\n |s|am'; // len: 14, pos: 11 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('sample', 'sample: ${1:test}', 1, 2, 1, 5, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete without default value - not required', async () => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion(); + languageSettingsSetup.languageSettings.disableDefaultProperties = true; + languageService.configure(languageSettingsSetup.languageSettings); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + default: 'test', + }, + objectSample: { + type: 'object', + }, + }, + }, + }, + }); + const content = ''; + const result = await parseSetup(content, 0); + (0, chai_1.expect)(result.items.length).to.be.equal(1); + (0, chai_1.expect)(result.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('scripts', 'scripts:\n ', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }); + it('Autocomplete without default value - required', async () => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion(); + languageSettingsSetup.languageSettings.disableDefaultProperties = true; + languageService.configure(languageSettingsSetup.languageSettings); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + default: 'test', + }, + objectSample: { + type: 'object', + }, + }, + required: ['sample', 'objectSample'], + }, + }, + }); + const content = ''; + const result = await parseSetup(content, 0); + (0, chai_1.expect)(result.items.length).to.be.equal(1); + (0, chai_1.expect)(result.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('scripts', 'scripts:\n sample: ${1:test}\n objectSample:\n $2', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }); + it('Autocomplete second key in middle of file', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + enum: ['test'], + }, + myOtherSample: { + type: 'string', + enum: ['test'], + }, + }, + }, + }, + }); + const content = 'scripts:\n sample: test\n myOth|e|r'; // len: 33, pos: 31 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('myOtherSample', 'myOtherSample: ${1:test}', 2, 2, 2, 9, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete does not happen right after key object', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + timeout: { + type: 'number', + default: 60000, + }, + }, + }); + const content = 'timeout:'; // len: 8 + const completion = parseSetup(content, 9); + completion + .then(function (result) { + assert.equal(result.items.length, 0); + }) + .then(done, done); + }); + it('Autocomplete does not happen right after : under an object', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + enum: ['test'], + }, + myOtherSample: { + type: 'string', + enum: ['test'], + }, + }, + }, + }, + }); + const content = 'scripts:\n sample:'; // len: 18 + const completion = parseSetup(content, 21); + completion + .then(function (result) { + assert.equal(result.items.length, 0); + }) + .then(done, done); + }); + it('Autocomplete with defaultSnippet markdown', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: {}, + defaultSnippets: [ + { + label: 'myOtherSample snippet', + body: { myOtherSample: {} }, + markdownDescription: 'snippet\n```yaml\nmyOtherSample:\n```\n', + }, + ], + }, + }, + }); + const content = 'scripts: '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, '\n myOtherSample:'); + assert.equal(result.items[0].documentation.value, 'snippet\n```yaml\nmyOtherSample:\n```\n'); + }) + .then(done, done); + }); + it('Autocomplete on multi yaml documents in a single file on root', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + timeout: { + type: 'number', + default: 60000, + }, + }, + }); + const content = '---\ntimeout: 10\n...\n---\n...'; // len: 27 + const completion = parseSetup(content, 28); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('timeout', 'timeout: ${1:60000}', 4, 0, 4, 3, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocomplete on multi yaml documents in a single file on scalar', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + timeout: { + type: 'number', + default: 60000, + }, + }, + }); + const content = '---\ntimeout: 10\n...\n---\nti|m|e \n...'; // len: 33, pos: 26 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('timeout', 'timeout: ${1:60000}', 4, 0, 4, 4, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocompletion has no results on value when they are not available', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + time: { + type: 'string', + }, + }, + }); + const content = 'time: '; // len: 6 + const completion = parseSetup(content, 6); + completion + .then(function (result) { + assert.equal(result.items.length, 0); + }) + .then(done, done); + }); + it('Test that properties that have multiple types get auto completed properly', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: ['string', 'boolean'], + enum: ['test', false, true], + }, + }, + }); + const content = 'scripts: '; // len: 9 + const completion = parseSetup(content, 9); + completion + .then(function (result) { + assert.equal(result.items.length, 3); + assert.equal(result.items[0].label, 'test'); + assert.equal(result.items[1].label, 'false'); + assert.equal(result.items[2].label, 'true'); + }) + .then(done, done); + }); + it('Test that properties that have multiple enums get auto completed properly', (done) => { + const schema = { + definitions: { + ImageBuild: { + type: 'object', + properties: { + kind: { + type: 'string', + enum: ['ImageBuild', 'ImageBuilder'], + }, + }, + }, + ImageStream: { + type: 'object', + properties: { + kind: { + type: 'string', + enum: ['ImageStream', 'ImageStreamBuilder'], + }, + }, + }, + }, + oneOf: [ + { + $ref: '#/definitions/ImageBuild', + }, + { + $ref: '#/definitions/ImageStream', + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'kind: '; // len: 6 + const validator = parseSetup(content, 6); + validator + .then(function (result) { + assert.equal(result.items.length, 4); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('ImageBuild', 'ImageBuild', 0, 6, 0, 6, 12, 2, { + documentation: undefined, + })); + assert.deepEqual(result.items[1], (0, verifyError_1.createExpectedCompletion)('ImageBuilder', 'ImageBuilder', 0, 6, 0, 6, 12, 2, { + documentation: undefined, + })); + assert.deepEqual(result.items[2], (0, verifyError_1.createExpectedCompletion)('ImageStream', 'ImageStream', 0, 6, 0, 6, 12, 2, { + documentation: undefined, + })); + assert.deepEqual(result.items[3], (0, verifyError_1.createExpectedCompletion)('ImageStreamBuilder', 'ImageStreamBuilder', 0, 6, 0, 6, 12, 2, { + documentation: undefined, + })); + }) + .then(done, done); + }); + it('Insert required attributes at correct level', (done) => { + const schema = require(path.join(__dirname, './fixtures/testRequiredProperties.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- top:\n prop1: demo\n- '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('top', 'top:\n prop1: ', 2, 2, 2, 2, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Insert required attributes at correct level even on first element', (done) => { + const schema = require(path.join(__dirname, './fixtures/testRequiredProperties.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('top', 'top:\n prop1: ', 0, 2, 0, 2, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Provide the 3 types when none provided', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayMaxProperties.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 3); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('prop1', 'prop1: ', 0, 2, 0, 2, 10, 2, { + documentation: '', + })); + assert.deepEqual(result.items[1], (0, verifyError_1.createExpectedCompletion)('prop2', 'prop2: ', 0, 2, 0, 2, 10, 2, { + documentation: '', + })); + assert.deepEqual(result.items[2], (0, verifyError_1.createExpectedCompletion)('prop3', 'prop3: ', 0, 2, 0, 2, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Provide the 2 types when one is provided', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayMaxProperties.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- prop1:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('prop2', 'prop2: ', 1, 2, 1, 2, 10, 2, { + documentation: '', + })); + assert.deepEqual(result.items[1], (0, verifyError_1.createExpectedCompletion)('prop3', 'prop3: ', 1, 2, 1, 2, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Provide the 2 types when one is provided and the second is typed', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayMaxProperties.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- prop1:\n p'; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('prop2', 'prop2: ', 1, 2, 1, 3, 10, 2, { + documentation: '', + })); + assert.deepEqual(result.items[1], (0, verifyError_1.createExpectedCompletion)('prop3', 'prop3: ', 1, 2, 1, 3, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Provide no completion when maxProperties reached', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayMaxProperties.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- prop1:\n prop2:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 0); + }) + .then(done, done); + }); + it('Autocompletion should escape @', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + '@type': { + type: 'string', + enum: ['foo'], + }, + }, + }); + const content = ''; + const completion = await parseSetup(content, 0); + (0, chai_1.expect)(completion.items.length).to.be.equal(1); + (0, chai_1.expect)(completion.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('@type', '"@type": ${1:foo}', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }); + it('Autocompletion should escape colon when indicating map', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + 'test: colon': { + type: 'object', + properties: { + none: { + type: 'boolean', + enum: [true], + }, + }, + }, + }, + }); + const content = ''; + const completion = await parseSetup(content, 0); + (0, chai_1.expect)(completion.items.length).to.be.equal(1); + (0, chai_1.expect)(completion.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('test: colon', '"test: colon":\n ', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }); + it('Autocompletion should not escape colon when no white-space following', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + 'test:colon': { + type: 'object', + properties: { + none: { + type: 'boolean', + enum: [true], + }, + }, + }, + }, + }); + const content = ''; + const completion = await parseSetup(content, 0); + (0, chai_1.expect)(completion.items.length).to.be.equal(1); + (0, chai_1.expect)(completion.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('test:colon', 'test:colon:\n ', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }); + it('Autocompletion should not escape colon when no key part present', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + ':colon': { + type: 'object', + properties: { + none: { + type: 'boolean', + enum: [true], + }, + }, + }, + }, + }); + const content = ''; + const completion = await parseSetup(content, 0); + (0, chai_1.expect)(completion.items.length).to.be.equal(1); + (0, chai_1.expect)(completion.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)(':colon', ':colon:\n ', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }); + describe('Conditional Schema', () => { + const schema = { + type: 'object', + title: 'basket', + properties: { + name: { type: 'string' }, + }, + if: { + filePatternAssociation: testHelper_1.SCHEMA_ID, + }, + then: { + properties: { + pineapple: { type: 'string' }, + }, + required: ['pineapple'], + }, + else: { + properties: { + tomato: { type: 'string' }, + }, + required: ['tomato'], + }, + }; + it('should suggest "then" block if "if" match filePatternAssociation', async () => { + schema.if.filePatternAssociation = testHelper_1.SCHEMA_ID; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name: aName\n '; + const completion = await parseSetup(content, content.length); + (0, chai_1.expect)(completion.items.map((i) => i.label)).to.deep.equal(['pineapple', 'basket']); + }); + }); + }); + describe('Array Specific Tests', function () { + it('Should insert empty array item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testStringArray.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'fooBa'; // len: 5 + const completion = parseSetup(content, content.lastIndexOf('Ba') + 2); // pos: 3+2 + completion + .then(function (result) { + assert.strictEqual('fooBar:\n - ${1:""}', result.items[0].insertText); + }) + .then(done, done); + }); + it('Array autocomplete without word and extra space', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n - '; // len: 13 + const completion = parseSetup(content, 14); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('name', 'name: ', 1, 4, 1, 4, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Array autocomplete without word and autocompletion beside -', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n -'; // len: 12 + const completion = parseSetup(content, 13); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('name', ' name: ', 1, 3, 1, 3, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Array autocomplete without word on space before array symbol', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + email: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n - name: test\n '; // len: 26 + const completion = parseSetup(content, 26); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('- (array item) object', '- ', 2, 2, 2, 2, 9, 2, { + documentation: { kind: 'markdown', value: 'Create an item of an array type `object`\n ```\n- \n```' }, + })); + }) + .then(done, done); + }); + it('Array autocomplete on empty node with array from schema', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + email: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n'; // len: 9 + const completion = parseSetup(content, 9); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('- (array item) object', '- ', 1, 0, 1, 0, 9, 2, { + documentation: { kind: 'markdown', value: 'Create an item of an array type `object`\n ```\n- \n```' }, + })); + }) + .then(done, done); + }); + it('Array autocomplete with letter', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n - n'; // len: 14 + const completion = parseSetup(content, 14); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('name', 'name: ', 1, 4, 1, 5, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Array autocomplete without word (second item)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + email: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n - name: test\n '; // len: 28 + const completion = parseSetup(content, 32); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('email', 'email: ', 2, 4, 2, 4, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Array autocomplete with letter (second item)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + email: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n - name: test\n | |e'; // len: 29, pos: 27 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('email', 'email: ', 2, 3, 2, 3, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocompletion after array', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + }, + email: { + type: 'string', + }, + }, + }, + }, + load: { + type: 'boolean', + }, + }, + }); + const content = 'authors:\n - name: test\n'; // len: 24 + const completion = parseSetup(content, 24); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('load', 'load: ', 2, 0, 2, 0, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Autocompletion after array with depth - no indent', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + archive: { + type: 'object', + properties: { + exclude: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + default: 'test', + }, + }, + }, + }, + }, + }, + include: { + type: 'string', + default: 'test', + }, + }, + }); + const content = 'archive:\n exclude:\n - name: test\n|\n|'; // len: 38, pos: 37 + const completion = parseSetup(content); //don't test on the last row + completion + .then(function (result) { + assert.equal(result.items.length, 1); + const expectedCompletion = (0, verifyError_1.createExpectedCompletion)('include', 'include: ${1:test}', 3, 0, 3, 0, 10, 2, { + documentation: '', + }); + assert.deepEqual(result.items[0], expectedCompletion); + }) + .then(done, done); + }); + it('Autocompletion after array with depth - indent', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + archive: { + type: 'object', + properties: { + exclude: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + default: 'test', + }, + }, + }, + }, + include: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'archive:\n exclude:\n - nam\n | |'; // len: 35, pos: 34 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('- (array item) object', '- name: ${1:test}', 3, 4, 3, 5, 9, 2, { + documentation: { kind: 'markdown', value: 'Create an item of an array type `object`\n ```\n- name: test\n```' }, + })); + }) + .then(done, done); + }); + it('Array of enum autocomplete without word on array symbol', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + references: { + type: 'array', + items: { + enum: ['Test'], + }, + }, + }, + }); + const content = 'references:\n -'; // len: 15 + const completion = parseSetup(content, 29); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('Test', ' Test', 1, 3, 1, 3, 12, 2, { + documentation: undefined, + })); + }) + .then(done, done); + }); + it('Array of enum autocomplete without word', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + references: { + type: 'array', + items: { + enum: ['Test'], + }, + }, + }, + }); + const content = 'references:\n - '; // len: 16 + const completion = parseSetup(content, 30); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('Test', 'Test', 1, 4, 1, 4, 12, 2, { + documentation: undefined, + })); + }) + .then(done, done); + }); + it('Array of enum autocomplete with letter', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + references: { + type: 'array', + items: { + enum: ['Test'], + }, + }, + }, + }); + const content = 'references:\n - T'; // len: 17 + const completion = parseSetup(content, 31); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('Test', 'Test', 1, 4, 1, 5, 12, 2, { + documentation: undefined, + })); + }) + .then(done, done); + }); + it('Array of objects autocomplete with 4 space indentation check', async () => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withIndentation(' '); + languageService.configure(languageSettingsSetup.languageSettings); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + metadata: { + type: 'object', + properties: { + ownerReferences: { + type: 'array', + items: { + type: 'object', + properties: { + apiVersion: { + type: 'string', + }, + kind: { + type: 'string', + }, + name: { + type: 'string', + }, + uid: { + type: 'string', + }, + }, + required: ['apiVersion', 'kind', 'name', 'uid'], + }, + }, + }, + }, + }, + }); + const content = 'metadata:\n ownerReferences'; // len: 29 + const completion = await parseSetup(content, 29); + (0, chai_1.expect)(completion.items[0]).deep.eq((0, verifyError_1.createExpectedCompletion)('ownerReferences', 'ownerReferences:\n - apiVersion: $1\n kind: $2\n name: $3\n uid: $4', 1, 4, 1, 19, 10, 2, { documentation: '' })); + }); + }); + it('Array of objects autocomplete with 2 space indentation check', async () => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withIndentation(' '); + languageService.configure(languageSettingsSetup.languageSettings); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + metadata: { + type: 'object', + properties: { + ownerReferences: { + type: 'array', + items: { + type: 'object', + properties: { + apiVersion: { + type: 'string', + }, + kind: { + type: 'string', + }, + name: { + type: 'string', + }, + uid: { + type: 'string', + }, + }, + required: ['apiVersion', 'kind', 'name', 'uid'], + }, + }, + }, + }, + }, + }); + const content = 'metadata:\n ownerReferences'; // len: 27 + const completion = await parseSetup(content, 27); + (0, chai_1.expect)(completion.items[0]).deep.eq((0, verifyError_1.createExpectedCompletion)('ownerReferences', 'ownerReferences:\n - apiVersion: $1\n kind: $2\n name: $3\n uid: $4', 1, 2, 1, 17, 10, 2, { documentation: '' })); + }); + it('Array of objects autocomplete with 3 space indentation check', async () => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withIndentation(' '); + languageService.configure(languageSettingsSetup.languageSettings); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + metadata: { + type: 'object', + properties: { + ownerReferences: { + type: 'array', + items: { + type: 'object', + properties: { + apiVersion: { + type: 'string', + }, + kind: { + type: 'string', + }, + name: { + type: 'string', + }, + uid: { + type: 'string', + }, + }, + required: ['apiVersion', 'kind', 'name', 'uid'], + }, + }, + }, + }, + }, + }); + const content = 'metadata:\n ownerReference|s|'; // len: 28, pos: 27 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items[0]).deep.eq((0, verifyError_1.createExpectedCompletion)('ownerReferences', 'ownerReferences:\n - apiVersion: $1\n kind: $2\n name: $3\n uid: $4', 1, 3, 1, 18, 10, 2, { documentation: '' })); + }); + it('Array completion - should not suggest const', async () => { + languageService.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + test: { + type: 'array', + items: { + type: 'object', + properties: { + constProp: { + type: 'string', + const: 'const1', + }, + }, + }, + }, + }, + }); + const content = 'test:\n - constProp:\n '; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.length).to.be.equal(0); + }); + it('Object in array with 4 space indentation check', async () => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withIndentation(' '); + languageService.configure(languageSettingsSetup.languageSettings); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + rules: { + type: 'array', + items: { + title: 'rules item', + type: 'object', + properties: { + id: { + type: 'string', + }, + notes: { + type: 'string', + }, + links: { + type: 'array', + items: { + properties: { + rel: { + type: 'string', + }, + url: { + type: 'string', + }, + }, + }, + }, + nomination: { + type: 'string', + pattern: '[a-z0-9_]+', + }, + weight: { + type: 'number', + minimum: 1, + }, + criteria: { + type: 'array', + minItems: 1, + items: { + type: 'object', + properties: { + field: { + type: 'string', + }, + operator: { + type: 'string', + }, + operand: { + type: 'string', + }, + }, + required: ['field', 'operator', 'operand'], + additionalProperties: false, + }, + }, + }, + required: ['id', 'weight', 'criteria', 'nomination'], + }, + }, + }, + }); + const content = 'rules:\n -|\n|'; // len: 13, pos: 12 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items.find((i) => i.label === 'rules item').textEdit.newText).equal(' id: $1\n nomination: $2\n weight: ${3:0}\n criteria:\n - field: $4\n operator: $5\n operand: $6'); + }); + }); + describe('JSON Schema 7 Specific Tests', function () { + it('Autocomplete works with examples', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + foodItems: { + type: 'string', + examples: ['Apple', 'Banana'], + default: 'Carrot', + }, + }, + }); + const content = 'foodItems: '; // len: 11 + const completion = parseSetup(content, 12); + completion + .then(function (result) { + assert.equal(result.items.length, 3); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('Carrot', 'Carrot', 0, 11, 0, 11, 12, 2, { + detail: 'Default value', + })); + assert.deepEqual(result.items[1], (0, verifyError_1.createExpectedCompletion)('Apple', 'Apple', 0, 11, 0, 11, 12, 2, {})); + assert.deepEqual(result.items[2], (0, verifyError_1.createExpectedCompletion)('Banana', 'Banana', 0, 11, 0, 11, 12, 2, {})); + }) + .then(done, done); + }); + it('Autocomplete works with const', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + fruit: { + const: 'Apple', + }, + }, + }); + const content = 'fruit: Ap|p|'; // len: 10, pos: 9 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('Apple', 'Apple', 0, 7, 0, 10, 12, 2, { + documentation: undefined, + })); + }) + .then(done, done); + }); + it('Autocomplete should suggest prop with const value', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + fruit: { + const: 'Apple', + }, + }, + }); + const content = ''; + const completion = parseSetup(content, 0); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('fruit', 'fruit: Apple', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Should insert quotation value if there is special char', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + from: { + type: 'string', + const: '@test', + }, + }, + }); + const content = 'from: '; + const completion = await parseSetup(content, content.length); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('@test', '"@test"', 0, 6, 0, 6, 12, 2, { + documentation: undefined, + })); + }); + }); + describe('Indentation Specific Tests', function () { + it('Indent should be considered with position relative to slash', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayIndent.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'install:\n - he'; // len: 15 + const completion = parseSetup(content, content.lastIndexOf('he') + 2); // pos: 13+2 + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('helm', 'helm:\n name: ', 1, 4, 1, 6, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Large indent should be considered with position relative to slash', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayIndent.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'install:\n - he'; // len: 25 + const completion = parseSetup(content, content.lastIndexOf('he') + 2); // pos: 23+2 + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('helm', 'helm:\n name: ', 1, 14, 1, 16, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + it('Tab indent should be considered with position relative to slash', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayIndent.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'install:\n -\t he'; // len: 27 + const completion = parseSetup(content, content.lastIndexOf('he') + 2); // pos: 25+2 + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('helm', 'helm:\n \t name: ', 1, 16, 1, 18, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + }); + describe('Yaml schema defined in file', function () { + const uri = (0, testHelper_1.toFsPath)(path.join(__dirname, './fixtures/testArrayMaxProperties.json')); + it('Provide completion from schema declared in file', (done) => { + const content = `# yaml-language-server: $schema=${uri}\n- `; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 3); + }) + .then(done, done); + }); + it('Provide completion from schema declared in file with several attributes', (done) => { + const content = `# yaml-language-server: $schema=${uri} anothermodeline=value\n- `; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 3); + }) + .then(done, done); + }); + it('Provide completion from schema declared in file with several documents', async () => { + const documentContent1 = `# yaml-language-server: $schema=${uri} anothermodeline=value\n- `; // 149 + const content = `${documentContent1}|\n|---\n- `; // len: 156, pos: 149 + const result = await parseSetup(content); + assert.equal(result.items.length, 3, `Expecting 3 items in completion but found ${result.items.length}`); + const resultDoc2 = await parseSetup(content, content.length); + assert.equal(resultDoc2.items.length, 0, `Expecting no items in completion but found ${resultDoc2.items.length}`); + }); + it('should handle absolute path', async () => { + const documentContent = `# yaml-language-server: $schema=${path.join(__dirname, './fixtures/testArrayMaxProperties.json')} anothermodeline=value\n- `; // len: 142 + const content = `${documentContent}|\n|---\n- `; // len: 149, pos: 142 + const result = await parseSetup(content); + assert.strictEqual(result.items.length, 3, `Expecting 3 items in completion but found ${result.items.length}`); + }); + it('should handle relative path', async () => { + const documentContent = `# yaml-language-server: $schema=./fixtures/testArrayMaxProperties.json anothermodeline=value\n- `; // 95 + const content = `${documentContent}\n---\n- `; + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content, path.join(__dirname, 'test.yaml')); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + const result = await languageHandler.completionHandler({ + position: testTextDocument.positionAt(documentContent.length), + textDocument: testTextDocument, + }); + assert.strictEqual(result.items.length, 3, `Expecting 3 items in completion but found ${result.items.length}`); + }); + const inlineSchemaLabel = 'Inline schema'; + it('should provide modeline completion on first character with no schema associated and no modeline yet', async () => { + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)('', path.join(__dirname, 'test.yaml')); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + const result = await languageHandler.completionHandler({ + position: testTextDocument.positionAt(0), + textDocument: testTextDocument, + }); + assert.strictEqual(result.items.length, 1, `Expecting 1 item in completion but found ${result.items.length}`); + assert.strictEqual(result.items[0].label, inlineSchemaLabel); + }); + it('should not provide modeline completion on first character when schema is associated', async () => { + const specificSchemaId = path.join(__dirname, 'test.yaml'); + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)('', specificSchemaId); + schemaProvider.addSchema(specificSchemaId, { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + const result = await languageHandler.completionHandler({ + position: testTextDocument.positionAt(0), + textDocument: testTextDocument, + }); + assert.strictEqual(result.items.length, 1, `Expecting 1 item in completion but found ${result.items.length}`); + assert.notStrictEqual(result.items[0].label, inlineSchemaLabel); + }); + it('should not provide modeline completion on first character when modeline already present', async () => { + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)('# yaml-language-server:', path.join(__dirname, 'test.yaml')); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + const result = await languageHandler.completionHandler({ + position: testTextDocument.positionAt(0), + textDocument: testTextDocument, + }); + assert.strictEqual(result.items.length, 0, `Expecting 0 item in completion but found ${result.items.length}`); + }); + it('should provide schema id completion in modeline', async () => { + const modeline = '# yaml-language-server: $schema='; + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(modeline, path.join(__dirname, 'test.yaml')); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + const result = await languageHandler.completionHandler({ + position: testTextDocument.positionAt(modeline.length), + textDocument: testTextDocument, + }); + assert.strictEqual(result.items.length, 1, `Expecting 1 item in completion but found ${result.items.length}`); + assert.strictEqual(result.items[0].label, 'http://google.com'); + }); + it('should provide schema id completion in modeline for any line', async () => { + const modeline = 'foo:\n bar\n# yaml-language-server: $schema='; + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(modeline, path.join(__dirname, 'test.yaml')); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + const result = await languageHandler.completionHandler({ + position: testTextDocument.positionAt(modeline.length), + textDocument: testTextDocument, + }); + assert.strictEqual(result.items.length, 1, `Expecting 1 item in completion but found ${result.items.length}`); + assert.strictEqual(result.items[0].label, 'http://google.com'); + }); + }); + describe('Configuration based indentation', () => { + it('4 space indentation', async () => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withIndentation(' '); + languageService.configure(languageSettingsSetup.languageSettings); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + enum: ['test'], + }, + myOtherSample: { + type: 'string', + enum: ['test'], + }, + }, + }, + }, + }); + const content = 'scripts:\n sample: test\n myOt|h|er'; // len: 37, pos: 34 + const completion = await parseSetup(content); + assert.strictEqual(completion.items.length, 1); + assert.deepStrictEqual(completion.items[0], (0, verifyError_1.createExpectedCompletion)('myOtherSample', 'myOtherSample: ${1:test}', 2, 4, 2, 11, 10, 2, { + documentation: '', + })); + }); + }); + describe('Bug fixes', () => { + it('Object in array completion indetetion', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + components: { + type: 'array', + items: { + type: 'object', + properties: { + id: { + type: 'string', + }, + settings: { + type: 'object', + required: ['data'], + properties: { + data: { + type: 'object', + required: ['arrayItems'], + properties: { + arrayItems: { + type: 'array', + items: { + type: 'object', + required: ['id'], + properties: { + show: { + type: 'boolean', + default: true, + }, + id: { + type: 'string', + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }); + const content = 'components:\n - id: jsakdh\n setti'; // len: 36 + const completion = await parseSetup(content, 36); + (0, chai_1.expect)(completion.items).lengthOf(1); + (0, chai_1.expect)(completion.items[0].textEdit.newText).to.equal('settings:\n data:\n arrayItems:\n - show: ${1:true}\n id: $2'); + }); + it('Object completion', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + env: { + type: 'object', + default: { + KEY: 'VALUE', + }, + }, + }, + }); + const content = 'env: '; // len: 5 + const completion = parseSetup(content, 5); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('Default value', '\n ${1:KEY}: ${2:VALUE}\n', 0, 5, 0, 5, 9, 2, { + detail: 'Default value', + })); + }) + .then(done, done); + }); + it('Complex default object completion', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + env: { + type: 'object', + default: { + KEY: 'VALUE', + KEY2: { + TEST: 'TEST2', + }, + KEY3: ['Test', 'Test2'], + }, + }, + }, + }); + const content = 'env: '; // len: 5 + const completion = parseSetup(content, 5); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('Default value', '\n ${1:KEY}: ${2:VALUE}\n ${3:KEY2}:\n ${4:TEST}: ${5:TEST2}\n ${6:KEY3}:\n - ${7:Test}\n - ${8:Test2}\n', 0, 5, 0, 5, 9, 2, { + detail: 'Default value', + })); + }) + .then(done, done); + }); + it('should handle array schema without items', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'array', + items: { + anyOf: [ + { + type: 'object', + properties: { + fooBar: { + type: 'object', + properties: { + name: { + type: 'string', + }, + aaa: { + type: 'array', + }, + }, + required: ['name', 'aaa'], + }, + }, + }, + ], + }, + }); + const content = '---\n- |\n|'; // len: 7, pos: 6 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(1); + (0, chai_1.expect)(completion.items[0].label).eq('fooBar'); + (0, chai_1.expect)(completion.items[0].insertText).eq('fooBar:\n name: $1\n aaa:\n - $2'); + }); + it('auto completion based on the list indentation', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'array', + items: { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + prop2: { + type: 'string', + }, + Object: { + type: 'array', + items: { + type: 'object', + properties: { + env_prop1: { + type: 'string', + }, + }, + }, + }, + }, + }, + }); + const content = '- prop1: value\n object:\n - env_prop1: value\n '; // len: 48 + const completion = await parseSetup(content, 49); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0].label).eq('prop2'); + (0, chai_1.expect)(completion.items[0].insertText).eq('prop2: '); + }); + it('should complete string which contains number in default value', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + env: { + type: 'integer', + default: '1', + }, + enum: { + type: 'string', + default: '1', + }, + }, + }); + const content = 'enu|m|'; // len: 4, pos: 3 + const completion = await parseSetup(content); + const enumItem = completion.items.find((i) => i.label === 'enum'); + (0, chai_1.expect)(enumItem).to.not.undefined; + (0, chai_1.expect)(enumItem.textEdit.newText).equal('enum: ${1:"1"}'); + const envItem = completion.items.find((i) => i.label === 'env'); + (0, chai_1.expect)(envItem).to.not.undefined; + (0, chai_1.expect)(envItem.textEdit.newText).equal('env: ${1:1}'); + }); + it('should complete string which contains number in examples values', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + fooBar: { + type: 'string', + examples: ['test', '1', 'true'], + }, + }, + }); + const content = 'fooBar: |\n|'; // len: 9, pos: 8 + const completion = await parseSetup(content); + const testItem = completion.items.find((i) => i.label === 'test'); + (0, chai_1.expect)(testItem).to.not.undefined; + (0, chai_1.expect)(testItem.textEdit.newText).equal('test'); + const oneItem = completion.items.find((i) => i.label === '1'); + (0, chai_1.expect)(oneItem).to.not.undefined; + (0, chai_1.expect)(oneItem.textEdit.newText).equal('"1"'); + const trueItem = completion.items.find((i) => i.label === 'true'); + (0, chai_1.expect)(trueItem).to.not.undefined; + (0, chai_1.expect)(trueItem.textEdit.newText).equal('"true"'); + }); + it('should provide label as string for examples completion item', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + fooBar: { + type: 'array', + items: { + type: 'string', + examples: ['test'], + }, + }, + }, + }); + const content = 'fooBar: |\n|'; // len: 9, pos: 8 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).length(1); + }); + it('should provide completion for flow map', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { A: { type: 'string', enum: ['a1', 'a2'] }, B: { type: 'string', enum: ['b1', 'b2'] } }, + }); + const content = '{A: |,| B: b1}'; // len: 12, pos: 4 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('a1', 'a1', 0, 4, 0, 4, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + (0, chai_1.expect)(completion.items[1]).eql((0, verifyError_1.createExpectedCompletion)('a2', 'a2', 0, 4, 0, 4, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + }); + it('should provide completion for "null" enum value', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + kind: { + enum: ['project', null], + }, + }, + }); + const content = 'kind: |\n|'; // len: 7, pos: 6 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('project', 'project', 0, 6, 0, 6, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + (0, chai_1.expect)(completion.items[1]).eql((0, verifyError_1.createExpectedCompletion)('null', 'null', 0, 6, 0, 6, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + }); + it('should provide completion for empty file', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + oneOf: [ + { + type: 'object', + description: 'dummy schema', + }, + { + properties: { + kind: { + type: 'string', + }, + }, + type: 'object', + additionalProperties: false, + }, + { + properties: { + name: { + type: 'string', + }, + }, + type: 'object', + additionalProperties: false, + }, + ], + }); + const content = ' \n\n|\n|'; // len: 4, pos: 3 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('kind', 'kind: ', 2, 0, 2, 0, 10, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: '' })); + (0, chai_1.expect)(completion.items[1]).eql((0, verifyError_1.createExpectedCompletion)('name', 'name: ', 2, 0, 2, 0, 10, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: '' })); + }); + it('should not provide additional ":" on existing property completion', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + kind: { + type: 'string', + }, + }, + required: ['kind'], + }); + const content = 'kin|d|: 111\n'; // len: 10, pos: 3 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('kind', 'kind', 0, 0, 0, 4, 10, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: '' })); + }); + it('should not provide additional ":" on existing property completion when try to complete partial property', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + kind: { + type: 'string', + }, + }, + required: ['kind'], + }); + const content = 'k|i|: 111\n'; // len: 8, pos: 1 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('kind', 'kind', 0, 0, 0, 2, 10, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: '' })); + }); + it('should use markdownDescription for property completion', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + kind: { + type: 'string', + description: 'Kind is a string value representing the REST', + markdownDescription: '**kind** (string)\n\nKind is a string value representing the REST resource this object represents.', + }, + }, + required: ['kind'], + }); + const content = 'k|i|n'; // len: 3, pos: 1 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('kind', 'kind: ', 0, 0, 0, 3, 10, vscode_languageserver_types_1.InsertTextFormat.Snippet, { + documentation: { + kind: vscode_languageserver_types_1.MarkupKind.Markdown, + value: '**kind** (string)\n\nKind is a string value representing the REST resource this object represents.', + }, + })); + }); + it('should follow $ref in additionalItems', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + test: { + $ref: '#/definitions/Recur', + }, + }, + definitions: { + Recur: { + type: 'array', + items: [ + { + type: 'string', + enum: ['and'], + }, + ], + additionalItems: { + $ref: '#/definitions/Recur', + }, + }, + }, + }); + const content = 'test:\n - and\n - - '; // len: 20 + const completion = await parseSetup(content, 20); + (0, chai_1.expect)(completion.items).lengthOf(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('and', 'and', 2, 6, 2, 6, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + }); + it('should follow $ref in additionalItems: extra space after cursor', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + test: { + $ref: '#/definitions/Recur', + }, + }, + definitions: { + Recur: { + type: 'array', + items: [ + { + type: 'string', + enum: ['and'], + }, + ], + additionalItems: { + $ref: '#/definitions/Recur', + }, + }, + }, + }); + const content = 'test:\n - and\n - - | | '; // len: 22, pos: 20 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('and', 'and', 2, 6, 2, 8, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + }); + it('should follow $ref in additionalItems for flow style array', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + test: { + $ref: '#/definitions/Recur', + }, + }, + definitions: { + Recur: { + type: 'array', + items: [ + { + type: 'string', + enum: ['and'], + }, + ], + additionalItems: { + $ref: '#/definitions/Recur', + }, + }, + }, + }); + const content = 'test:\n - and\n - |[|]'; // len: 20, pos: 18 + const completion = await parseSetup(content); + (0, chai_1.expect)(completion.items).lengthOf(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('and', 'and', 2, 4, 2, 4, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + }); + it('completion should handle bad schema', async () => { + const doc = (0, testHelper_1.setupSchemaIDTextDocument)('foo:\n bar', 'bad-schema.yaml'); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(doc); + const result = await languageHandler.completionHandler({ + position: vscode_languageserver_types_1.Position.create(0, 1), + textDocument: doc, + }); + (0, chai_1.expect)(result.items).to.be.empty; + }); + it('should convert to string non string completion label', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + version: { + default: 2.1, + enum: [2, 2.1], + }, + }, + }); + const content = 'version: '; // len: 9 + const completion = await parseSetup(content, 9); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('2', '2', 0, 9, 0, 9, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + (0, chai_1.expect)(completion.items[1]).eql((0, verifyError_1.createExpectedCompletion)('2.1', '2.1', 0, 9, 0, 9, 12, vscode_languageserver_types_1.InsertTextFormat.Snippet, { documentation: undefined })); + }); + }); + describe('Array completion', () => { + it('Simple array object completion with "-" without any item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_simpleArrayObject:\n -'; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.equal(result.items[0].label, 'obj1'); + assert.equal(result.items[0].insertText, ' obj1:\n '); + }) + .then(done, done); + }); + it('Simple array object completion without "-" after array item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_simpleArrayObject:\n - obj1:\n name: 1\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].label, '- (array item) obj1'); + }) + .then(done, done); + }); + it('Simple array object completion with "-" after array item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_simpleArrayObject:\n - obj1:\n name: 1\n -'; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.equal(result.items[0].label, 'obj1'); + assert.equal(result.items[0].insertText, ' obj1:\n '); + }) + .then(done, done); + }); + it('Array anyOf two objects completion with "- " without any item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_array_anyOf_2objects:\n - '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 4); + assert.equal(result.items[0].label, 'obj1'); + assert.equal(result.items[0].kind, 10); + assert.equal(result.items[1].label, 'obj1'); + assert.equal(result.items[1].kind, 7); + }) + .then(done, done); + }); + it('Array anyOf two objects completion with "-" without any item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_array_anyOf_2objects:\n -'; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 4); + assert.equal(result.items[0].label, 'obj1'); + assert.equal(result.items[0].insertText, ' obj1:\n '); + }) + .then(done, done); + }); + it('Simple array object completion without "-" befor array empty item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_simpleArrayObject:\n |\n| -'; // len: 30, pos: 26 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].label, '- (array item) obj1'); + }) + .then(done, done); + }); + it('Array anyOf two objects completion without "-" after array item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_array_anyOf_2objects:\n - obj1:\n name: 1\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + (0, chai_1.expect)(result.items.map((i) => i.label)).deep.eq(['- (array item) obj1', '- (array item) obj2']); + }) + .then(done, done); + }); + it('Array nested anyOf without "-" should return all array items', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_array_nested_anyOf:\n - obj1:\n name:1\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + (0, chai_1.expect)(result.items.map((i) => i.label)).deep.eq(['- (array item) obj1', '- (array item) obj2', '- (array item) obj3']); + }) + .then(done, done); + }); + it('Array anyOf two objects completion with "-" after array item', (done) => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_array_anyOf_2objects:\n - obj1:\n name: 1\n -'; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 4); + assert.equal(result.items[0].label, 'obj1'); + assert.equal(result.items[0].insertText, ' obj1:\n '); + }) + .then(done, done); + }); + it('Array anyOf two objects completion indentation', async () => { + const schema = require(path.join(__dirname, './fixtures/testArrayCompletionSchema.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test_array_anyOf_2objects:\n - obj'; + const completion = await parseSetup(content, content.length); + (0, chai_1.expect)(completion.items.length).is.equal(4); + const obj1 = completion.items.find((it) => it.label === 'obj1'); + (0, chai_1.expect)(obj1).is.not.undefined; + (0, chai_1.expect)(obj1.textEdit.newText).equal('obj1:\n '); + }); + it('Autocomplete key in nested object while typing', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + parent: { + type: 'object', + properties: { + child: { + type: 'object', + properties: { + prop: { + type: 'string', + default: 'test', + }, + }, + }, + }, + }, + }, + }); + const content = 'parent:\n child:\n p'; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.strictEqual(result.items.length, 1); + assert.deepEqual(result.items[0], (0, verifyError_1.createExpectedCompletion)('prop', 'prop: ${1:test}', 2, 4, 2, 5, 10, 2, { + documentation: '', + })); + }) + .then(done, done); + }); + }); + describe('Parent Completion', () => { + const obj1 = { + properties: { + type: { + const: 'typeObj1', + }, + options: { + type: 'object', + properties: { + label: { + type: 'string', + }, + }, + required: ['label'], + }, + }, + required: ['type', 'options'], + type: 'object', + description: 'Description1', + title: 'Object1', + }; + const obj2 = { + properties: { + type: { + const: 'typeObj2', + }, + options: { + type: 'object', + properties: { + description: { + type: 'string', + }, + }, + required: ['description'], + }, + }, + required: ['type', 'options'], + type: 'object', + }; + it('Should suggest all possible option in oneOf when content empty', async () => { + const schema = { + type: 'object', + oneOf: [ + { + additionalProperties: false, + properties: { + A: { + type: 'string', + }, + }, + required: ['A'], + }, + { + additionalProperties: false, + properties: { + B: { + type: 'string', + }, + }, + required: ['B'], + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.length).equal(4); + (0, chai_1.expect)(result.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('A', 'A: ', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + (0, chai_1.expect)(result.items[2]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('B', 'B: ', 0, 0, 0, 0, 10, 2, { + documentation: '', + })); + }); + it('Should suggest complete object skeleton', async () => { + const schema = { + definitions: { obj1, obj2 }, + anyOf: [ + { + $ref: '#/definitions/obj1', + }, + { + $ref: '#/definitions/obj2', + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.length).equal(5); + (0, chai_1.expect)(result.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('type', 'type: ${1|typeObj1,typeObj2|}', 0, 0, 0, 0, 10, 2, { documentation: '' })); + (0, chai_1.expect)(result.items[1]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('Object1', 'type: typeObj1\noptions:\n label: ', 0, 0, 0, 0, 7, 2, { + documentation: { + kind: 'markdown', + value: 'Description1\n\n----\n\n```yaml\ntype: typeObj1\noptions:\n label: \n```', + }, + sortText: '_Object1', + })); + (0, chai_1.expect)(result.items[2]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('options', 'options:\n label: ', 0, 0, 0, 0, 10, 2, { documentation: '' })); + (0, chai_1.expect)(result.items[3]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('obj2', 'type: typeObj2\noptions:\n description: ', 0, 0, 0, 0, 7, 2, { + documentation: { + kind: 'markdown', + value: '```yaml\ntype: typeObj2\noptions:\n description: \n```', + }, + sortText: '_obj2', + })); + (0, chai_1.expect)(result.items[4]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('options', 'options:\n description: ', 0, 0, 0, 0, 10, 2, { documentation: '' })); + }); + it('Should suggest complete object skeleton - array', async () => { + const schema = { + definitions: { obj1, obj2 }, + items: { + anyOf: [ + { + $ref: '#/definitions/obj1', + }, + { + $ref: '#/definitions/obj2', + }, + ], + }, + type: 'array', + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- '; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.length).equal(5); + (0, chai_1.expect)(result.items[0]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('type', 'type: ${1|typeObj1,typeObj2|}', 0, 2, 0, 2, 10, 2, { documentation: '' })); + (0, chai_1.expect)(result.items[1]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('Object1', 'type: typeObj1\n options:\n label: ', 0, 2, 0, 2, 7, 2, { + documentation: { + kind: 'markdown', + value: 'Description1\n\n----\n\n```yaml\n type: typeObj1\n options:\n label: \n```', + }, + sortText: '_Object1', + })); + (0, chai_1.expect)(result.items[2]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('options', 'options:\n label: ', 0, 2, 0, 2, 10, 2, { documentation: '' })); + (0, chai_1.expect)(result.items[3]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('obj2', 'type: typeObj2\n options:\n description: ', 0, 2, 0, 2, 7, 2, { + documentation: { + kind: 'markdown', + value: '```yaml\n type: typeObj2\n options:\n description: \n```', + }, + sortText: '_obj2', + })); + (0, chai_1.expect)(result.items[4]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('options', 'options:\n description: ', 0, 2, 0, 2, 10, 2, { documentation: '' })); + }); + it('Should not agregate suggested text from different schemas', async () => { + const schema = { + definitions: { obj1, obj2 }, + anyOf: [ + { + $ref: '#/definitions/obj1', + }, + { + $ref: '#/definitions/obj1', + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.length).equal(3); + (0, chai_1.expect)(result.items[1]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('Object1', 'type: typeObj1\noptions:\n label: ', 0, 0, 0, 0, 7, 2, { + documentation: { + kind: 'markdown', + value: 'Description1\n\n----\n\n```yaml\ntype: typeObj1\noptions:\n label: \n```', + }, + sortText: '_Object1', + })); + }); + it('Should suggest rest of the parent object', async () => { + const schema = { + definitions: { obj1 }, + $ref: '#/definitions/obj1', + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'type: typeObj1\n'; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.length).equal(2); + (0, chai_1.expect)(result.items[1]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('Object1', 'options:\n label: ', 1, 0, 1, 0, 7, 2, { + documentation: { + kind: 'markdown', + value: 'Description1\n\n----\n\n```yaml\noptions:\n label: \n```', + }, + sortText: '_Object1', + })); + }); + it('Should reindex $x', async () => { + const schema = { + properties: { + options: { + type: 'object', + properties: { + label: { + type: 'string', + }, + }, + required: ['label'], + }, + prop1: { + type: 'string', + }, + }, + required: ['type', 'options', 'prop1'], + type: 'object', + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.length).equal(3); + (0, chai_1.expect)(result.items[1]).to.deep.equal((0, verifyError_1.createExpectedCompletion)('object', 'options:\n label: $1\nprop1: $2', 0, 0, 0, 0, 7, 2, { + documentation: { + kind: 'markdown', + value: '```yaml\noptions:\n label: \nprop1: \n```', + }, + sortText: '_object', + })); + }); + describe('Select parent skeleton first', () => { + beforeEach(() => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion(); + languageSettingsSetup.languageSettings.parentSkeletonSelectedFirst = true; + languageService.configure(languageSettingsSetup.languageSettings); + }); + it('Should suggest complete object skeleton', async () => { + const schema = { + definitions: { obj1, obj2 }, + anyOf: [ + { + $ref: '#/definitions/obj1', + }, + { + $ref: '#/definitions/obj2', + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.map((i) => i.label)).to.have.members(['Object1', 'obj2']); + }); + it('Should suggest complete object skeleton - nested', async () => { + const schema = { + definitions: { obj1, obj2 }, + properties: { + name: { + anyOf: [ + { + $ref: '#/definitions/obj1', + }, + { + $ref: '#/definitions/obj2', + }, + ], + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name:\n '; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.map((i) => i.label)).to.have.members(['Object1', 'obj2']); + }); + it('Should suggest complete object skeleton - array', async () => { + const schema = { + definitions: { obj1, obj2 }, + items: { + anyOf: [ + { + $ref: '#/definitions/obj1', + }, + { + $ref: '#/definitions/obj2', + }, + ], + }, + type: 'array', + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = '- '; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.map((i) => i.label)).to.have.members(['Object1', 'obj2']); + }); + it('Should suggest rest of the parent object', async () => { + const schema = { + definitions: { obj1 }, + $ref: '#/definitions/obj1', + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'type: typeObj1\n'; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.map((i) => i.label)).to.have.members(['options', 'Object1']); + }); + it('Should suggest all feature when user is typing', async () => { + const schema = { + definitions: { obj1 }, + $ref: '#/definitions/obj1', + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'ty'; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.map((i) => i.label)).to.have.members(['type', 'options', 'Object1']); + }); + it('Should suggest all properties in empty yaml with now required props', async () => { + const schema = { + properties: { + fruit: {}, + vegetable: {}, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const result = await parseSetup(content, content.length); + (0, chai_1.expect)(result.items.map((i) => i.label)).to.have.members(['fruit', 'vegetable']); + }); + }); + }); +}); +//# sourceMappingURL=autoCompletion.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js.map" index 8c7c73da23a03e0e2bcf581028c509abc62f71b1..4014435c80d88b446c78c2cbe1a7b64faf4548d5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletion.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4de020e04cab02d5a327d42f7e9473b78b8a1a2e9e643099859653bc7b5111c8 -size 91445 +{"version":3,"file":"autoCompletion.test.js","sourceRoot":"","sources":["../../../test/autoCompletion.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,uDAAuD;AACvD,mDAO4B;AAC5B,iCAAkC;AAClC,6BAA8B;AAC9B,qDAA+D;AAC/D,uDAAoD;AACpD,6EAAoH;AACpH,+BAA8B;AAC9B,sDAA6E;AAI7E,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,qBAAmC,CAAC;IACxC,IAAI,eAAgC,CAAC;IACrC,IAAI,eAAiC,CAAC;IACtC,IAAI,YAA2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AC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js" index 3ba0ea74028ee0a42c83e32d12a55da91f27cbd2..ec19d4f4aff2642fd3a025c4f9f804ecaf7fb555 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js" @@ -1,3 +1,1175 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24f0ae1c72fd15af3cea5a7c589c7ab3d4219eb701476f6e63977f4467989c52 -size 52390 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const yamlSettings_1 = require("../src/yamlSettings"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const testHelper_1 = require("./utils/testHelper"); +const chai_1 = require("chai"); +const verifyError_1 = require("./utils/verifyError"); +const path = require("path"); +describe('Auto Completion Fix Tests', () => { + let languageSettingsSetup; + let languageService; + let languageHandler; + let yamlSettings; + let schemaProvider; + before(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withSchemaFileMatch({ + uri: 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json', + fileMatch: [testHelper_1.SCHEMA_ID], + }); + const { languageService: langService, languageHandler: langHandler, yamlSettings: settings, schemaProvider: testSchemaProvider, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageService = langService; + languageHandler = langHandler; + yamlSettings = settings; + schemaProvider = testSchemaProvider; + }); + /** + * Generates a completion list for the given document and caret (cursor) position. + * @param content The content of the document. + * @param line starts with 0 index + * @param character starts with 1 index + * @returns A list of valid completions. + */ + function parseSetup(content, line, character) { + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.completionHandler({ + position: vscode_languageserver_types_1.Position.create(line, character), + textDocument: testTextDocument, + }); + } + /** + * Generates a completion list for the given document and caret (cursor) position. + * @param content The content of the document. + * The caret is located in the content using `|` bookends. + * For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2` + * @returns A list of valid completions. + */ + function parseCaret(content) { + const { position, content: content2 } = (0, testHelper_1.caretPosition)(content); + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content2); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.completionHandler({ + position: testTextDocument.positionAt(position), + textDocument: testTextDocument, + }); + } + afterEach(() => { + schemaProvider.deleteSchema(testHelper_1.SCHEMA_ID); + languageService.configure(languageSettingsSetup.languageSettings); + }); + it('should show completion on map under array', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'array', + items: { + type: 'object', + properties: { + from: { + type: 'object', + properties: { + foo: { + type: 'boolean', + }, + }, + }, + }, + }, + }); + const content = '- from:\n | |'; // len: 12, pos: 11 + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items).lengthOf(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('foo', 'foo: ', 1, 3, 1, 4, 10, 2, { + documentation: '', + })); + }); + it('completion with array objects', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'array', + items: { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + prop2: { + type: 'string', + }, + prop3: { + type: 'string', + }, + }, + }, + }); + const content = '- prop1: a\n | |'; // len: 12, pos: 11 + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items).lengthOf(2); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('prop2', 'prop2: ', 1, 3, 1, 4, 10, 2, { + documentation: '', + })); + (0, chai_1.expect)(completion.items[1]).eql((0, verifyError_1.createExpectedCompletion)('prop3', 'prop3: ', 1, 3, 1, 4, 10, 2, { + documentation: '', + })); + }); + it('should show completion on array empty array item', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'array', + items: { + type: 'object', + properties: { + from: { + type: 'object', + properties: { + foo: { + type: 'boolean', + }, + }, + }, + }, + }, + }); + const content = '- '; // len: 2 + const completion = await parseSetup(content, 0, 2); + (0, chai_1.expect)(completion.items).lengthOf(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('from', 'from:\n ', 0, 2, 0, 2, 10, 2, { + documentation: '', + })); + }); + it('should show completion items in the middle of map in array', async () => { + const content = `apiVersion: v1 +kind: Pod +metadata: + name: foo +spec: + containers: + - name: test + + image: alpine + `; // len: 90 + const completion = await parseSetup(content, 7, 6); + (0, chai_1.expect)(completion.items).length.greaterThan(1); + }); + it('should show completion on array item on first line', async () => { + const content = '-d'; // len: 2 + const completion = await parseSetup(content, 0, 1); + (0, chai_1.expect)(completion.items).is.empty; + }); + it('should complete without error on map inside array', async () => { + const content = '- foo\n- bar:\n so'; // len: 19 + const completion = await parseSetup(content, 2, 6); + (0, chai_1.expect)(completion.items).is.empty; + }); + it('should complete array', async () => { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schema = require(path.join(__dirname, './fixtures/test-nested-object-array.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `objA: + - name: nameA1 + +objB: + size: midle + name: nameB2 +`; // len: 67 + const completion = await parseSetup(content, 2, 4); + (0, chai_1.expect)(completion.items).is.not.empty; + }); + it('should complete array item for "oneOf" schema', async () => { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schema = require(path.join(__dirname, './fixtures/test-completion-oneOf.json')); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `metadata: + Selector: + query: + - +`; // len: 42 + const completion = await parseSetup(content, 3, 8); + (0, chai_1.expect)(completion.items).length(5); + (0, chai_1.expect)(completion.items.map((it) => it.label)).to.have.members(['NOT', 'attribute', 'operation', 'value', 'FUNC_item']); + }); + it('Autocomplete with short nextLine - nested object', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + example: { + type: 'object', + properties: { + sample: { + type: 'object', + properties: { + detail: { + type: 'object', + }, + }, + }, + }, + }, + a: { + type: 'string', + description: 'short prop name because of distance to the cursor', + }, + }, + }); + const content = 'example:\n sample:\n '; // len: 23 + const completion = await parseSetup(content + '\na: test', 2, 4); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('detail', 'detail:\n ', 2, 4, 2, 4, 10, 2, { + documentation: '', + })); + }); + it('Should suggest valid matches from oneOf', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + oneOf: [ + { + type: 'object', + properties: { + spec: { + type: 'object', + }, + }, + }, + { + properties: { + spec: { + type: 'object', + required: ['bar'], + properties: { + bar: { + type: 'string', + }, + }, + }, + }, + }, + ], + }); + const content = '|s|'; // len: 1, pos: 1 + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('spec', 'spec:\n bar: ', 0, 0, 0, 1, 10, 2, { + documentation: '', + })); + }); + it('Should suggest all the matches from allOf', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + allOf: [ + { + type: 'object', + properties: { + spec: { + type: 'object', + }, + }, + }, + { + properties: { + spec: { + type: 'object', + required: ['bar'], + properties: { + bar: { + type: 'string', + }, + }, + }, + }, + }, + ], + }); + const content = '|s|'; // len: 1, pos: 1 + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('spec', 'spec:\n ', 0, 0, 0, 1, 10, 2, { + documentation: '', + })); + (0, chai_1.expect)(completion.items[1]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('spec', 'spec:\n bar: ', 0, 0, 0, 1, 10, 2, { + documentation: '', + })); + }); + it('Autocomplete with a new line inside the object', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + example: { + type: 'object', + properties: { + sample: { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + prop2: { + type: 'string', + }, + }, + }, + }, + }, + }, + }); + const content = 'example:\n sample:\n |\n| prop2: value2'; // len: 41, pos: 23 + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('prop1', 'prop1: ', 2, 4, 2, 4, 10, 2, { + documentation: '', + })); + }); + it('Autocomplete on the first array item', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + examples: { + type: 'array', + items: { + type: 'object', + properties: { + sample: { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + }, + }, + }, + }, + }, + }, + }); + const content = 'examples:\n |\n| - sample:\n prop1: value1'; // len: 44, pos: 12 + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('- (array item) object', '- ', 1, 2, 1, 2, 9, 2, { + documentation: { + kind: 'markdown', + value: 'Create an item of an array type `object`\n ```\n- \n```', + }, + })); + }); + it('Array of enum autocomplete of irregular order', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + apiVersion: { + type: 'string', + }, + metadata: { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }, + kind: { + type: 'string', + enum: ['Pod', 'PodTemplate'], + }, + }, + }); + const content = 'kind: Po'; // len: 8 + const completion = await parseSetup(content, 1, 9); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0].insertText).equal('Pod'); + (0, chai_1.expect)(completion.items[1].insertText).equal('PodTemplate'); + }); + it('Test that properties have enum of string type with number', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + version: { + type: 'array', + items: { + enum: ['12.1', 13, '13.1', '14.0', 'all', 14.4, false, null, ['test']], + type: ['string', 'integer', 'number', 'boolean', 'object', 'array'], + }, + }, + }, + }); + const content = 'version:\n - '; + const completion = await parseSetup(content, 2, 0); + (0, chai_1.expect)(completion.items).lengthOf(9); + (0, chai_1.expect)(completion.items[0].insertText).equal('"12.1"'); + (0, chai_1.expect)(completion.items[1].insertText).equal('13'); + (0, chai_1.expect)(completion.items[4].insertText).equal('all'); + (0, chai_1.expect)(completion.items[5].insertText).equal('14.4'); + (0, chai_1.expect)(completion.items[6].insertText).equal('false'); + (0, chai_1.expect)(completion.items[7].insertText).equal('null'); + (0, chai_1.expect)(completion.items[8].insertText).equal('\n - ${1:test}\n'); + }); + it('Autocomplete indent on array when parent is array', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + examples: { + type: 'array', + items: { + type: 'object', + properties: { + objectWithArray: { + type: 'array', + items: { + type: 'string', + }, + }, + }, + }, + }, + }, + }); + const content = 'examples:\n - '; // len: 14 + const completion = await parseSetup(content, 1, 4); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('objectWithArray', 'objectWithArray:\n - ${1:""}', 1, 4, 1, 4, 10, 2, { + documentation: '', + })); + }); + it('Autocomplete indent on array object when parent is array', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + examples: { + type: 'array', + items: { + type: 'object', + properties: { + objectWithArray: { + type: 'array', + items: { + type: 'object', + required: ['item', 'item2'], + properties: { + item: { type: 'string' }, + item2: { type: 'string' }, + }, + }, + }, + }, + }, + }, + }, + }); + const content = 'examples:\n - '; // len: 14 + const completion = await parseSetup(content, 1, 4); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('objectWithArray', 'objectWithArray:\n - item: $1\n item2: $2', 1, 4, 1, 4, 10, 2, { + documentation: '', + })); + }); + it('Autocomplete indent on array object when parent is array of an array', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + array1: { + type: 'array', + items: { + type: 'object', + required: ['thing1'], + properties: { + thing1: { + type: 'object', + required: ['array2'], + properties: { + array2: { + type: 'array', + items: { + type: 'object', + required: ['thing2', 'type'], + properties: { + type: { + type: 'string', + }, + thing2: { + type: 'object', + required: ['item1', 'item2'], + properties: { + item1: { type: 'string' }, + item2: { type: 'string' }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }); + const content = 'array1:\n - '; + const completion = await parseSetup(content, 1, 4); + (0, chai_1.expect)(completion.items[0].insertText).to.be.equal('thing1:\n array2:\n - type: $1\n thing2:\n item1: $2\n item2: $3'); + }); + describe('array indent on different index position', () => { + const schema = { + type: 'object', + properties: { + objectWithArray: { + type: 'array', + items: { + type: 'object', + required: ['item', 'item2'], + properties: { + item: { type: 'string' }, + item2: { + type: 'object', + required: ['prop1', 'prop2'], + properties: { + prop1: { type: 'string' }, + prop2: { type: 'string' }, + }, + }, + }, + }, + }, + }, + }; + it('array indent on the first item', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'objectWithArray:\n - '; // len: 21 + const completion = await parseSetup(content, 1, 4); + (0, chai_1.expect)(completion.items.length).equal(3); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('item', 'item: ', 1, 4, 1, 4, 10, 2, { + documentation: '', + })); + (0, chai_1.expect)(completion.items[2]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('item2', 'item2:\n prop1: $1\n prop2: $2', 1, 4, 1, 4, 10, 2, { + documentation: '', + })); + }); + it('array indent on the second item', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'objectWithArray:\n - item: first line\n '; // len: 42 + const completion = await parseSetup(content, 2, 4); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('item2', 'item2:\n prop1: $1\n prop2: $2', 2, 4, 2, 4, 10, 2, { + documentation: '', + })); + }); + }); + describe('merge properties from anyOf objects', () => { + it('should merge different simple values', async () => { + const schema = { + anyOf: [ + { + properties: { + simplePropWithSimpleValue: { type: 'string', const: 'const value' }, + }, + }, + { + properties: { + simplePropWithSimpleValue: { type: 'boolean', default: false }, + }, + }, + { + properties: { + simplePropWithSimpleValue: { type: 'null', default: null }, + }, + }, + { + properties: { + simplePropWithSimpleValue: { type: 'string' }, + }, + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const completion = await parseSetup(content, 0, 1); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0].insertText).to.be.equal('simplePropWithSimpleValue: ${1|const value,false,null|}'); + }); + it('should autocomplete as single item with same value', async () => { + const schema = { + anyOf: [ + { + properties: { + simplePropWithSameValue: { type: 'string', const: 'const value 1' }, + obj1: { properties: { prop1: { type: 'string' } } }, + }, + }, + { + properties: { + simplePropWithSameValue: { type: 'string', const: 'const value 1' }, + obj1: { properties: { prop1: { type: 'string' } } }, + }, + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const completion = await parseSetup(content, 0, 1); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0].insertText).to.be.equal('simplePropWithSameValue: const value 1'); + (0, chai_1.expect)(completion.items[1].insertText).to.be.equal('obj1:\n '); + }); + it('should not merge objects', async () => { + const schema = { + anyOf: [ + { + properties: { + obj1: { properties: { prop1: { type: 'string' } }, required: ['prop1'] }, + }, + }, + { + properties: { + obj1: { properties: { prop2: { type: 'string', const: 'value' } }, required: ['prop2'] }, + }, + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const completion = await parseSetup(content, 0, 1); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0].label).to.be.equal('obj1'); + (0, chai_1.expect)(completion.items[0].insertText).to.be.equal('obj1:\n prop1: '); + (0, chai_1.expect)(completion.items[1].label).to.be.equal('obj1'); + (0, chai_1.expect)(completion.items[1].insertText).to.be.equal('obj1:\n prop2: ${1:value}'); + }); + it('Autocomplete should not suggest items for parent object', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + sample: { + type: 'string', + }, + }, + }, + scripts2: { + type: 'string', + }, + }, + }); + const content = 'scripts: \n sample: | |'; + const completion = await parseSetup(content, 0, 9); // before line brake + (0, chai_1.expect)(completion.items.length).equal(0); + }); + it('autoCompletion when value is null inside anyOf object', async () => { + const schema = { + anyOf: [ + { + properties: { + prop: { + const: 'const value', + }, + }, + }, + { + properties: { + prop: { + type: 'null', + }, + }, + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const completion = await parseSetup(content, 0, 6); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0].label).to.be.equal('prop'); + (0, chai_1.expect)(completion.items[0].insertText).to.be.equal('prop: ${1|const value,null|}'); + }); + }); + describe('extra space after cursor', () => { + it('simple const', async () => { + const schema = { + properties: { + prop: { + const: 'const', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'prop: | | '; // len: 8, pos: 6 + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0].label).to.be.equal('const'); + (0, chai_1.expect)(completion.items[0].textEdit).to.be.deep.equal({ newText: 'const', range: vscode_languageserver_types_1.Range.create(0, 6, 0, 8) }); + }); + it('partial key with trailing spaces', async () => { + const schema = { + properties: { + name: { + const: 'my name', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'na '; + const completion = await parseSetup(content, 0, 2); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('name', 'name: my name', 0, 0, 0, 4, 10, 2, { + documentation: '', + })); + }); + it('partial key with trailing spaces with new line', async () => { + const schema = { + properties: { + name: { + const: 'my name', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'na \n'; + const completion = await parseSetup(content, 0, 2); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('name', 'name: my name', 0, 0, 0, 5, 10, 2, { + documentation: '', + })); + }); + it('partial key with leading and trailing spaces', async () => { + const schema = { + properties: { + name: { + const: 'my name', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ' na '; + const completion = await parseSetup(content, 0, 2); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('name', 'name: my name', 0, 2, 0, 4, 10, 2, { + documentation: '', + })); + }); + it('partial key with trailing spaces with special chars inside the array', async () => { + const schema = { + type: 'object', + properties: { + array: { + type: 'array', + items: { + type: 'object', + properties: { + 'name / 123': { + const: 'my name', + }, + }, + }, + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'array:\n - name / '; + const completion = await parseSetup(content, 1, 9); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('name / 123', 'name / 123: my name', 1, 3, 1, 12, 10, 2, { + documentation: '', + })); + }); + describe('partial value with trailing spaces', () => { + it('partial value with trailing spaces', async () => { + const schema = { + properties: { + name: { + const: 'my name', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name: my| | '; + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('my name', 'my name', 0, 6, 0, 12, 12, 2, { + documentation: undefined, + })); + }); + it('partial value with trailing spaces with new line', async () => { + const schema = { + properties: { + name: { + const: 'my name', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name: my| | \n'; + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('my name', 'my name', 0, 6, 0, 13, 12, 2, { + documentation: undefined, + })); + }); + it('partial value with leading and trailing spaces', async () => { + const schema = { + properties: { + name: { + const: 'my name', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name: my na| | '; + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('my name', 'my name', 0, 6, 0, 17, 12, 2, { + documentation: undefined, + })); + }); + it('partial value with trailing spaces with special chars inside the array', async () => { + const schema = { + type: 'object', + properties: { + array: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + const: 'my name / 123', + }, + }, + }, + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'array:\n - name: my name /| | '; + const completion = await parseCaret(content); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).eql((0, verifyError_1.createExpectedCompletion)('my name / 123', 'my name / 123', 1, 9, 1, 21, 12, 2, { + documentation: undefined, + })); + }); + }); + it('object - 2nd nested property', async () => { + const schema = { + properties: { + parent: { + properties: { + prop1: { + const: 'const1', + }, + prop2: { + const: 'const2', + }, + }, + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'parent:\n prop1: const1\n prop2: '; + const completion = await parseSetup(content, 2, 9); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0].label).to.be.equal('const2'); + (0, chai_1.expect)(completion.items[0].textEdit).to.be.deep.equal({ + newText: 'const2', + range: vscode_languageserver_types_1.Range.create(2, 9, 2, 11), + }); + }); + it('array - 2nd nested property', async () => { + const schema = { + properties: { + arrayObj: { + type: 'array', + items: { + type: 'object', + properties: { + item1: { + type: 'string', + }, + item2: { + const: 'const2', + }, + }, + required: ['item1', 'item2'], + }, + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'arrayObj:\n - item1: test\n - item2: '; + const completion = await parseSetup(content, 2, 11); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0].label).to.be.equal('const2'); + (0, chai_1.expect)(completion.items[0].textEdit).to.be.deep.equal({ + newText: 'const2', + range: vscode_languageserver_types_1.Range.create(2, 11, 2, 13), + }); + }); + describe('array object item', () => { + const schema = { + properties: { + arrayObj: { + type: 'array', + items: { + type: 'object', + properties: { + item1: { + type: 'string', + }, + item2: { + type: 'string', + }, + }, + required: ['item1', 'item2'], + }, + }, + }, + }; + it('1st item', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'arrayObj:\n - '; + const completion = await parseSetup(content, 1, 4); + (0, chai_1.expect)(completion.items.length).equal(3); + (0, chai_1.expect)(completion.items[1].textEdit).to.be.deep.equal({ + newText: 'item1: $1\n item2: $2', + range: vscode_languageserver_types_1.Range.create(1, 4, 1, 6), // removes extra spaces after cursor + }); + }); + it('next item', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'arrayObj:\n - item1: a\n - item2: b\n - '; + const completion = await parseSetup(content, 3, 4); + (0, chai_1.expect)(completion.items.length).equal(3); + (0, chai_1.expect)(completion.items[1].textEdit).to.be.deep.equal({ + newText: 'item1: $1\n item2: $2', + range: vscode_languageserver_types_1.Range.create(3, 4, 3, 6), // removes extra spaces after cursor + }); + }); + }); + it('array completion - should suggest correct indent when extra spaces after cursor', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + test: { + type: 'array', + items: { + type: 'object', + properties: { + objA: { + type: 'object', + required: ['itemA'], + properties: { + itemA: { + type: 'string', + }, + }, + }, + }, + }, + }, + }, + }); + const content = 'test:\n - '; + const result = await parseSetup(content, 1, 4); + (0, chai_1.expect)(result.items.length).to.be.equal(1); + (0, chai_1.expect)(result.items[0].insertText).to.be.equal('objA:\n itemA: '); + }); + it('array of arrays completion - should suggest correct indent when extra spaces after cursor', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + array1: { + type: 'array', + items: { + type: 'object', + required: ['array2'], + properties: { + array2: { + type: 'array', + items: { + type: 'object', + required: ['objA'], + properties: { + objA: { + type: 'object', + required: ['itemA'], + properties: { + itemA: { + type: 'string', + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }); + const content = 'array1:\n - '; + const result = await parseSetup(content, 1, 4); + (0, chai_1.expect)(result.items.length).to.be.equal(2); + (0, chai_1.expect)(result.items[0].insertText).to.be.equal('array2:\n - objA:\n itemA: '); + }); + it('object of array of arrays completion - should suggest correct indent when extra spaces after cursor', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + array1: { + type: 'array', + items: { + type: 'object', + properties: { + array2: { + type: 'array', + items: { + type: 'object', + properties: { + objA: { + type: 'object', + required: ['itemA'], + properties: { + itemA: { + type: 'string', + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }); + const content = 'array1:\n - array2:\n - '; + const result = await parseSetup(content, 2, 8); + (0, chai_1.expect)(result.items.length).to.be.equal(1); + (0, chai_1.expect)(result.items[0].insertText).to.be.equal('objA:\n itemA: '); + }); + }); //'extra space after cursor' + it('should suggest from additionalProperties', async () => { + const schema = { + type: 'object', + additionalProperties: { + anyOf: [ + { + type: 'string', + const: 'test1', + }, + ], + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'value: '; + const completion = await parseSetup(content, 0, content.length); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0].insertText).to.be.equal('test1'); + }); + describe('should suggest prop of the object (based on not completed prop name)', () => { + const schema = { + definitions: { + Obj: { + anyOf: [ + { type: 'string' }, + { + type: 'object', + properties: { + prop1: { type: 'string' }, + }, + required: ['prop1'], + }, + ], + }, + }, + properties: { + test1: { + properties: { + nested: { $ref: '#/definitions/Obj' }, + }, + }, + test2: { $ref: '#/definitions/Obj' }, + }, + }; + const content = ` +test2: + pr +test1: + nested: + pr +`; + it('nested object', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const completion = await parseSetup(content, 5, 6); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0].label).to.be.equal('prop1'); + }); + it('root object', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const completion = await parseSetup(content, 2, 4); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0].label).to.be.equal('prop1'); + }); + }); + describe('should suggest property before indented comment', () => { + const schema = { + type: 'object', + properties: { + example: { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + prop2: { + type: 'string', + }, + prop3: { + type: 'string', + }, + }, + }, + }, + }; + it('completion should handle indented comment on new line', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'example:\n prop1: "test"\n \n #comment'; + const completion = await parseSetup(content, 2, 2); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('prop2', 'prop2: ', 2, 2, 2, 2, vscode_languageserver_types_1.CompletionItemKind.Property, vscode_languageserver_types_1.InsertTextFormat.Snippet, { + documentation: '', + })); + }); + it('completion should handle comment at same indent level on new line', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'example:\n prop1: "test"\n \n #comment'; + const completion = await parseSetup(content, 2, 2); + (0, chai_1.expect)(completion.items.length).equal(2); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('prop2', 'prop2: ', 2, 2, 2, 2, vscode_languageserver_types_1.CompletionItemKind.Property, vscode_languageserver_types_1.InsertTextFormat.Snippet, { + documentation: '', + })); + }); + it('completion should handle suggestion without comment on next line', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'example:\n prop1: "test"\n \n prop3: "test"'; + const completion = await parseSetup(content, 2, 2); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0]).to.be.deep.equal((0, verifyError_1.createExpectedCompletion)('prop2', 'prop2: ', 2, 2, 2, 2, vscode_languageserver_types_1.CompletionItemKind.Property, vscode_languageserver_types_1.InsertTextFormat.Snippet, { + documentation: '', + })); + }); + }); + it('should suggest property of unknown object', async () => { + const schema = { + type: 'object', + additionalProperties: true, + propertyNames: { + title: 'property', + description: 'Property Description', + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = ''; + const completion = await parseSetup(content, 0, content.length); + (0, chai_1.expect)(completion.items.length).equal(1); + (0, chai_1.expect)(completion.items[0].insertText).to.be.equal('${1:property}: '); + (0, chai_1.expect)(completion.items[0].documentation).to.be.equal('Property Description'); + }); +}); +//# sourceMappingURL=autoCompletionFix.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js.map" index 15b811da2f3eafde3bf9f40f032697b147db9315..f59a95994f07dc82f8b1e784bbfd4f013175df85 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/autoCompletionFix.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97e558821c51df8b9948eea35829a837800917c1a28121fec5374031c20ff0d8 -size 37136 +{"version":3,"file":"autoCompletionFix.test.js","sourceRoot":"","sources":["../../../test/autoCompletionFix.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,6EAAoH;AAGpH,sDAA6E;AAC7E,uDAAoD;AACpD,mDAM4B;AAC5B,+BAA8B;AAC9B,qDAA+D;AAC/D,6BAA6B;AAG7B,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,IAAI,qBAAmC,CAAC;IACxC,IAAI,eAAgC,CAAC;IACrC,IAAI,eAAiC,CAAC;IACtC,IAAI,YAA2B,CAAC;IAChC,I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iB,CAAC,CAAC;QACtE,IAAA,aAAM,EAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js" index c4b745d5873568019ccc2cb1e13fce90e0177ed3..b162155917f8391554f7e61ea240bbaa4c54947b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js" @@ -1,3 +1,89 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2316e27ae4ff7a333035abbd6676afe13e7615e05f5768fffa4c7981b387084 -size 4721 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const vscode_languageserver_1 = require("vscode-languageserver"); +const chai_1 = require("chai"); +const yamlSettings_1 = require("../src/yamlSettings"); +const yamlCodeActions_1 = require("../src/languageservice/services/yamlCodeActions"); +describe('Schema Errors Code Action Tests', () => { + let languageSettingsSetup; + let validationHandler; + let yamlSettings; + let schemaProvider; + before(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate(); + const { validationHandler: valHandler, yamlSettings: settings, schemaProvider: testSchemaProvider, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + schemaProvider = testSchemaProvider; + }); + function parseSetup(content, customSchemaID) { + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content, customSchemaID); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return testTextDocument; + } + afterEach(() => { + schemaProvider.deleteSchema(testHelper_1.SCHEMA_ID); + }); + describe('Convert value code action tests', () => { + it('Should provide convert to boolean action for false', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'analytics: "false"'; + const doc = parseSetup(content); + const diagnostics = await validationHandler.validateTextDocument(doc); + const params = { + context: vscode_languageserver_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions({}); + const result = actions.getCodeAction(doc, params); + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result[0].title).to.be.equal('Convert to boolean'); + (0, chai_1.expect)(result[0].edit.changes[doc.uri]).to.exist; + const edit = result[0].edit.changes[doc.uri]; + (0, chai_1.expect)(edit.length).to.be.equal(1); + (0, chai_1.expect)(edit[0]).deep.equal(vscode_languageserver_1.TextEdit.replace(vscode_languageserver_1.Range.create(0, 11, 0, 18), 'false')); + }); + it('Should provide convert to boolean action for true', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = "analytics: 'true'"; + const doc = parseSetup(content); + const diagnostics = await validationHandler.validateTextDocument(doc); + const params = { + context: vscode_languageserver_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions({}); + const result = actions.getCodeAction(doc, params); + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result[0].title).to.be.equal('Convert to boolean'); + (0, chai_1.expect)(result[0].edit.changes[doc.uri]).to.exist; + const edit = result[0].edit.changes[doc.uri]; + (0, chai_1.expect)(edit.length).to.be.equal(1); + (0, chai_1.expect)(edit[0]).deep.equal(vscode_languageserver_1.TextEdit.replace(vscode_languageserver_1.Range.create(0, 11, 0, 17), 'true')); + }); + }); +}); +//# sourceMappingURL=code-action-schema.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js.map" index 3d3abc100598be273caf67caf80d787f26f174c8..84bbd1b0c2432644ed1993fee2f7d8b58465b151 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/code-action-schema.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:74ab4b4fcc8783acf3dee4c3c9f884b668f7f05dc2612e149b56e3086e1bf512 -size 3668 +{"version":3,"file":"code-action-schema.test.js","sourceRoot":"","sources":["../../../test/code-action-schema.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAM4B;AAC5B,uDAAoD;AACpD,iEAAqH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AG,CAAC,GAAG,CAAC,CAAC;YAC7C,IAAA,aAAM,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACnC,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gCAAQ,CAAC,OAAO,CAAC,6BAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js" index 827e35b1f7f4f2cf2b5461dca6606b61e41bd9f7..5640a57c5cdd8078359b980d5c1d040c417b9358 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js" @@ -1,3 +1,88 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1868094a8ba890a9f8d55ae42d4387e91e7aae8d9a3ce7dd960a7c35de38b508 -size 4159 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const verifyError_1 = require("./utils/verifyError"); +const assert = require("assert"); +// Defines a Mocha test describe to group tests of similar kind together +describe('Custom Tag tests Tests', () => { + let languageSettingsSetup; + let languageService; + let validationHandler; + before(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate(); + const { languageService: langService, validationHandler: valHandler } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + languageService = langService; + }); + function parseSetup(content, customTags) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + languageSettingsSetup.languageSettings.customTags = customTags; + languageService.configure(languageSettingsSetup.languageSettings); + return validationHandler.validateTextDocument(testTextDocument); + } + describe('Test that validation does not throw errors', function () { + it('Custom Tags without type not specified', (done) => { + const content = 'scalar_test: !Test test_example'; + const validator = parseSetup(content, ['!Test']); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Custom Tags with one type', (done) => { + const content = 'resolvers: !Ref\n - test'; + const validator = parseSetup(content, ['!Ref sequence']); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Custom Tags with multiple types', (done) => { + const content = 'resolvers: !Ref\n - test'; + const validator = parseSetup(content, ['!Ref sequence', '!Ref mapping', '!Ref scalar']); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Allow multiple different custom tag types with different use', (done) => { + const content = '!test\nhello: !test\n world'; + const validator = parseSetup(content, ['!test scalar', '!test mapping']); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Allow multiple different custom tag types with multiple different uses', (done) => { + const content = '!test\nhello: !test\n world\nsequence: !ref\n - item1'; + const validator = parseSetup(content, ['!test scalar', '!test mapping', '!ref sequence', '!ref mapping']); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + describe('Test that validation does throw errors', function () { + it('Error when custom tag is not available', (done) => { + const content = '!test'; + const validator = parseSetup(content, []); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createExpectedError)('Unresolved tag: !test', 0, 0, 0, 5)); + }) + .then(done, done); + }); + }); +}); +//# sourceMappingURL=customTags.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js.map" index bcdf98301617c3f02e3422de5ed95ef64dc05f62..53ced54f883c255bf20542cc66867a2b7c5e6bce 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/customTags.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4a37dcf8198770f7aa50be9bc1327b65b4d62c3ece651ddf41d6d06279f4ea85 -size 3071 +{"version":3,"file":"customTags.test.js","sourceRoot":"","sources":["../../../test/customTags.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAA6E;AAC7E,uDAAoD;AACpD,qDAA0D;AAC1D,iCAAiC;AAKjC,wEAAwE;AACxE,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,qBAAmC,CAAC;IACxC,IAAI,eAAgC,CAAC;IACrC,IAAI,iBAAoC,CAAC;IAEzC,MAAM,CAAC,GAAG,EAAE;QACV,qBAAqB,GAAG,IAAI,2BAAY,EAAE,CAAC,YAAY,EAAE,CAAC;QAC1D,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,E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AAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,wCAAwC,EAAE;QACjD,EAAE,CAAC,wCAAwC,EAAE,CAAC,IAAI,EAAE,EAAE;YACpD,MAAM,OAAO,GAAG,OAAO,CAAC;YACxB,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAC1C,SAAS;iBACN,IAAI,CAAC,UAAU,MAAM;gBACpB,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;gBAC/B,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAA,iCAAmB,EAAC,uBAAuB,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YACxF,CAAC,CAAC;iBACD,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js" index aad79a0e938c632073376ac39a8ae2394152fdbd..8ef89e640a97e0da1b81c9b786ee93a4b1e4a517 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js" @@ -1,3 +1,384 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b8e423cd65160de97519e128abc090053179a7e7e00cb8bf00967f550d0e6c3e -size 19541 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const assert = require("assert"); +const path = require("path"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const yamlSettings_1 = require("../src/yamlSettings"); +const chai_1 = require("chai"); +describe('Default Snippet Tests', () => { + let languageHandler; + let yamlSettings; + before(() => { + const uri = (0, testHelper_1.toFsPath)(path.join(__dirname, './fixtures/defaultSnippets.json')); + const fileMatch = ['*.yml', '*.yaml']; + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion().withSchemaFileMatch({ + fileMatch, + uri, + }); + const { languageHandler: langHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageHandler = langHandler; + yamlSettings = settings; + }); + describe('Snippet Tests', function () { + /** + * Generates a completion list for the given document and caret (cursor) position. + * @param content The content of the document. + * @param position The position of the caret in the document. + * Alternatively, `position` can be omitted if the caret is located in the content using `|` bookends. + * For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2` + * @returns A list of valid completions. + */ + function parseSetup(content, position) { + if (typeof position === 'undefined') { + ({ content, position } = (0, testHelper_1.caretPosition)(content)); + } + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.completionHandler({ + position: testTextDocument.positionAt(position), + textDocument: testTextDocument, + }); + } + it('Snippet in array schema should autocomplete with -', (done) => { + const content = 'array:\n - '; // len: 11 + const completion = parseSetup(content, 11); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, 'item1: $1\n item2: $2'); + assert.equal(result.items[0].label, 'My array item'); + }) + .then(done, done); + }); + it('Snippet in array schema should autocomplete with - if none is present', (done) => { + const content = 'array:\n '; // len: 9 + const completion = parseSetup(content, 9); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, '- item1: $1\n item2: $2'); + assert.equal(result.items[0].label, 'My array item'); + }) + .then(done, done); + }); + it('Snippet in array schema should autocomplete on same line as array', (done) => { + const content = 'array: | |'; // len: 8, pos: 7 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, '\n - item1: $1\n item2: $2'); + assert.equal(result.items[0].label, 'My array item'); + }) + .then(done, done); + }); + it('Snippet in array schema should autocomplete correctly on array level ', (done) => { + const content = 'array:\n - item1: asd\n item2: asd\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, '- item1: $1\n item2: $2'); + assert.equal(result.items[0].label, 'My array item'); + }) + .then(done, done); + }); + it('Snippet in array schema should suggest nothing inside array item if YAML already contains all props', (done) => { + const content = 'array:\n - item1: asd\n item2: asd\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 0); + }) + .then(done, done); + }); + it('Snippet in array schema should suggest only some of the props inside an array item if YAML already contains some of the props', (done) => { + const content = 'array:\n - item1: asd\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, 'item2: $2'); + assert.equal(result.items[0].label, 'My array item'); + }) + .then(done, done); + }); + it('Snippet in anyOf array schema should autocomplete correctly with "-" symbol', (done) => { + const content = 'anyOf_arrayObj:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, '- key: '); + }) + .then(done, done); + }); + it('Snippet custom suggestionKind', (done) => { + const content = 'anyOf_arrayObj:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.strictEqual(result.items.length, 1); + assert.strictEqual(result.items[0].kind, 9); + }) + .then(done, done); + }); + it('Snippet custom sort', (done) => { + const content = 'arrayNestedObjectSnippet:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.strictEqual(result.items.length, 1); + assert.strictEqual(result.items[0].sortText, 'custom'); + }) + .then(done, done); + }); + it('Snippet in object schema should autocomplete on next line ', (done) => { + const content = 'object:\n '; // len: 10 + const completion = parseSetup(content, 11); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.equal(result.items[0].insertText, 'key1: $1\nkey2: $2'); + assert.equal(result.items[0].label, 'Object item'); + assert.equal(result.items[1].insertText, 'key:\n '); + assert.equal(result.items[1].label, 'key'); + }) + .then(done, done); + }); + it('Snippet in object schema should autocomplete on next line with depth', (done) => { + const content = 'object:\n key:\n '; // len: 19 + const completion = parseSetup(content, 20); + completion + .then(function (result) { + assert.notEqual(result.items.length, 0); + assert.equal(result.items[0].insertText, 'key1: $1\nkey2: $2'); + assert.equal(result.items[0].label, 'Object item'); + assert.equal(result.items[1].insertText, 'key:\n '); + assert.equal(result.items[1].label, 'key'); + }) + .then(done, done); + }); + it('Snippet in object schema should suggest some of the snippet props because some of them are already in the YAML', (done) => { + const content = 'object:\n key:\n key2: value\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.notEqual(result.items.length, 0); + assert.equal(result.items[0].insertText, 'key1: '); + assert.equal(result.items[0].label, 'Object item'); + assert.equal(result.items[1].insertText, 'key:\n '); + assert.equal(result.items[1].label, 'key'); + }) + .then(done, done); + }); + it('Snippet in object schema should not suggest snippet props because all of them are already in the YAML', (done) => { + const content = 'object:\n key:\n key1: value\n key2: value\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, 'key:\n '); + assert.equal(result.items[0].label, 'key'); + }) + .then(done, done); + }); + it('Snippet in object schema should autocomplete on same line', (done) => { + const content = 'object: '; // len: 9 + const completion = parseSetup(content, 8); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + }) + .then(done, done); + }); + it('Snippet in object schema should not autocomplete on children', (done) => { + const content = 'object_any:\n someProp: '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 0); + }) + .then(done, done); + }); + it('Snippet in string schema should autocomplete on same line', (done) => { + const content = 'string: | |'; // len: 9, pos: 8 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.notEqual(result.items.length, 0); + assert.equal(result.items[0].insertText, 'test '); + assert.equal(result.items[0].label, 'My string item'); + }) + .then(done, done); + }); + it('Snippet in boolean schema should autocomplete on same line', (done) => { + const content = 'boolean: | |'; // len: 10, pos: 9 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.notEqual(result.items.length, 0); + assert.equal(result.items[0].label, 'My boolean item'); + assert.equal(result.items[0].insertText, 'false'); + }) + .then(done, done); + }); + it('Snippet in longSnipet schema should autocomplete on same line', (done) => { + const content = 'longSnippet: | |'; // len: 14, pos: 13 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].label, 'apply-manifests'); + // eslint-disable-next-line + assert.equal(result.items[0].insertText, '\n name: $1\n taskRef:\n name: apply-manifests\n resources:\n inputs:\n - name: source\n resource: $3\n params:\n - name: manifest_dir\n value: $2'); + }) + .then(done, done); + }); + it('Snippet in short snippet schema should autocomplete on same line', (done) => { + const content = 'lon| | '; // len: 5, pos: 3 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items.length, 15); // This is just checking the total number of snippets in the defaultSnippets.json + assert.equal(result.items[4].label, 'longSnippet'); + // eslint-disable-next-line + assert.equal(result.items[4].insertText, 'longSnippet:\n name: $1\n taskRef:\n name: apply-manifests\n resources:\n inputs:\n - name: source\n resource: $3\n params:\n - name: manifest_dir\n value: $2'); + }) + .then(done, done); + }); + it('Test array of arrays on properties completion', (done) => { + const content = 'arrayArrayS| | '; // len: 13, pos: 11 + const completion = parseSetup(content); + completion + .then(function (result) { + assert.equal(result.items[5].label, 'arrayArraySnippet'); + assert.equal(result.items[5].insertText, 'arrayArraySnippet:\n apple:\n - - name: source\n resource: $3'); + }) + .then(done, done); + }); + it('Test array of arrays on value completion', (done) => { + const content = 'arrayArraySnippet: '; // len: 19 + const completion = parseSetup(content, 20); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].label, 'Array Array Snippet'); + assert.equal(result.items[0].insertText, '\n apple:\n - - name: source\n resource: $3'); + }) + .then(done, done); + }); + it('Test array of arrays on indented completion', (done) => { + const content = 'arrayArraySnippet:\n '; // len: 21 + const completion = parseSetup(content, 21); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].label, 'Array Array Snippet'); + assert.equal(result.items[0].insertText, 'apple:\n - - name: source\n resource: $3'); + }) + .then(done, done); + }); + it('Test array of strings', (done) => { + const content = 'arrayStringSnippet:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, 'fruits:\n - banana\n - orange'); + }) + .then(done, done); + }); + it('Test array nested object indented completion', (done) => { + const content = 'arrayNestedObjectSnippet:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, 'apple:\n - name: source\n resource:\n prop1: value1\n prop2: value2'); + }) + .then(done, done); + }); + it('Test snippet in array indented completion', (done) => { + const content = 'arrayWithSnippet:\n - '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + assert.equal(result.items[0].insertText, 'item1: $1\n item2: $2'); + assert.equal(result.items[1].insertText, '\n item1: $1\n item2: $2'); + }) + .then(done, done); + }); + it('Test array of objects extra new line', (done) => { + const content = 'arrayObjectSnippet:\n '; + const completion = parseSetup(content, content.length); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].insertText, 'apple:\n - name: source\n - name: source2'); + }) + .then(done, done); + }); + it('Test string with boolean in string should insert string', (done) => { + const content = 'simpleBooleanString: '; // len: 21 + const completion = parseSetup(content, 21); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].label, 'Simple boolean string'); + assert.equal(result.items[0].insertText, '\n test: "true"'); + }) + .then(done, done); + }); + it('Test string with boolean NOT in string should insert boolean', (done) => { + const content = 'simpleBoolean: '; // len: 15 + const completion = parseSetup(content, 15); + completion + .then(function (result) { + assert.equal(result.items.length, 1); + assert.equal(result.items[0].label, 'Simple string'); + assert.equal(result.items[0].insertText, '\n test: true'); + }) + .then(done, done); + }); + it('should preserve space after ":" with prefix', async () => { + const content = 'boolean: |t|r\n'; // len: 12, pos: 9 + const result = await parseSetup(content); + assert.notEqual(result.items.length, 0); + assert.equal(result.items[0].label, 'My boolean item'); + const textEdit = result.items[0].textEdit; + assert.equal(textEdit.newText, 'false'); + assert.equal(textEdit.range.start.line, 0); + assert.equal(textEdit.range.start.character, 9); + assert.equal(textEdit.range.end.line, 0); + assert.equal(textEdit.range.end.character, 11); + }); + it('should preserve space after ":"', async () => { + const content = 'boolean: '; // len: 9 + const result = await parseSetup(content, 9); + assert.notEqual(result.items.length, 0); + assert.equal(result.items[0].label, 'My boolean item'); + const textEdit = result.items[0].textEdit; + assert.equal(textEdit.newText, 'false'); + assert.equal(textEdit.range.start.line, 0); + assert.equal(textEdit.range.start.character, 9); + assert.equal(textEdit.range.end.line, 0); + assert.equal(textEdit.range.end.character, 9); + }); + it('should add space before value on root node', async () => { + const content = 'name|\n|'; // len: 5, pos: 4 + const result = await parseSetup(content); + const item = result.items.find((i) => i.label === 'name'); + (0, chai_1.expect)(item).is.not.undefined; + (0, chai_1.expect)(item.textEdit.newText).to.be.equal('name: some'); + }); + }); +}); +//# sourceMappingURL=defaultSnippets.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js.map" index 379e40d4930c900226f095c8fe132a501ebfbdc2..e4a36ee53fb0bb03299d0994d833029ce7ec90e3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/defaultSnippets.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:086356a3a081ae236b72ea45c236a93830c6b16cf38e867c91633135e4a6dc69 -size 16903 +{"version":3,"file":"defaultSnippets.test.js","sourceRoot":"","sources":["../../../test/defaultSnippets.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAA8G;AAC9G,iCAAkC;AAClC,6BAA8B;AAC9B,uDAAoD;AAEpD,sDAA6E;AAE7E,+BAA8B;AAE9B,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,eAAiC,CAAC;IACtC,IAAI,YAA2B,CAAC;IAEhC,MAAM,CAAC,GAAG,EAAE;QACV,MAAM,GAAG,GAAG,IAAA,qBAAQ,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,iCAAiC,CAAC,CAAC,CAAC;QAC9E,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACtC,MAAM,qBAAqB,GAAG,IAAI,2BAAY,EAAE,CAAC,cAAc,EAAE,CAAC,mBAAmB,CAAC;YACpF,SAAS;YACT,GAAG;SACJ,CAAC,CAAC;QACH,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,IAAA,iCAA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YAChD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACzC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,4CAA4C,EAAE,KAAK,IAAI,EAAE;YAC1D,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,iBAAiB;YAC7C,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;YACzC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;YAC1D,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;YAC9B,IAAA,aAAM,EAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js" index 117e9b1f1aba7850230bfffc6d5e154cac483b62..c337ea1269dca23204a8e9aa1cac2e0bf5073731 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js" @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a04a610a35d8c32139247258935d8eabc4ee680ca34da61a7ebabf2ec1d59f7a -size 3473 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const documentPositionCalculator_1 = require("../src/languageservice/utils/documentPositionCalculator"); +const assert = require("assert"); +describe('DocumentPositionCalculator Tests', () => { + describe('binarySearch', function () { + it('Binary Search where we are looking for element to the left of center', () => { + const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + const find = 2; + const result = (0, documentPositionCalculator_1.binarySearch)(arr, find); + assert.equal(result, 1); + }); + it('Binary Search where we are looking for element to the right of center', () => { + const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + const find = 8; + const result = (0, documentPositionCalculator_1.binarySearch)(arr, find); + assert.equal(result, 7); + }); + it('Binary Search found at first check', () => { + const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + const find = 5; + const result = (0, documentPositionCalculator_1.binarySearch)(arr, find); + assert.equal(result, 4); + }); + it('Binary Search item not found', () => { + const arr = [1]; + const find = 5; + const result = (0, documentPositionCalculator_1.binarySearch)(arr, find); + assert.equal(result, -2); + }); + }); + describe('getLineStartPositions', function () { + it('getLineStartPositions with windows newline', () => { + const test_str = 'test: test\r\ntest: test'; + const result = (0, documentPositionCalculator_1.getLineStartPositions)(test_str); + assert.equal(result[0], 0); + assert.equal(result[1], 12); + }); + it('getLineStartPositions with normal newline', () => { + const test_str = 'test: test\ntest: test'; + const result = (0, documentPositionCalculator_1.getLineStartPositions)(test_str); + assert.equal(result[0], 0); + assert.equal(result[1], 11); + }); + }); + describe('getPosition', function () { + it('getPosition', () => { + const test_str = 'test: test\r\ntest: test'; + const startPositions = (0, documentPositionCalculator_1.getLineStartPositions)(test_str); + const result = (0, documentPositionCalculator_1.getPosition)(0, startPositions); + assert.notEqual(result, undefined); + assert.equal(result.line, 0); + assert.equal(result.character, 0); + }); + it('getPosition when not found', () => { + const test_str = 'test: test\ntest: test'; + const startPositions = (0, documentPositionCalculator_1.getLineStartPositions)(test_str); + const result = (0, documentPositionCalculator_1.getPosition)(5, startPositions); + assert.notEqual(result, undefined); + assert.equal(result.line, 0); + assert.equal(result.character, 5); + }); + }); +}); +//# sourceMappingURL=documentPositionCalculator.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js.map" index a03ee1f7df741432f0a22c847641a6b120b08f2a..e424910d0d625bc7732d1a7a38a80deda6a5106d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentPositionCalculator.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:14262df42e3ae0040d1074c1c044c62360008e9ea18813765aeba4ea46c39aa2 -size 2952 +{"version":3,"file":"documentPositionCalculator.test.js","sourceRoot":"","sources":["../../../test/documentPositionCalculator.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,wGAA2H;AAC3H,iCAAiC;AAEjC,QAAQ,C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AAC,CAAC;YACvD,MAAM,MAAM,GAAG,IAAA,wCAAW,EAAC,CAAC,EAAE,cAAc,CAAC,CAAC;YAC9C,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YACnC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC7B,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;YACpC,MAAM,QAAQ,GAAG,wBAAwB,CAAC;YAE1C,MAAM,cAAc,GAAG,IAAA,kDAAqB,EAAC,QAAQ,CAAC,CAAC;YACvD,MAAM,MAAM,GAAG,IAAA,wCAAW,EAAC,CAAC,EAAE,cAAc,CAAC,CAAC;YAC9C,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YACnC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC7B,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js" index 28b3ec06ad4d51f74f73f0cb5e719646ccee389b..c2216c68b0dd424da40cb9f02ffd8a3ebe0eb957 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js" @@ -1,3 +1,267 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8c8c02fe7527596257127a4321c6bbbed0611aba6e2348c72591f113cc613c2 -size 19411 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const verifyError_1 = require("./utils/verifyError"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const assert = require("assert"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const yamlSettings_1 = require("../src/yamlSettings"); +describe('Document Symbols Tests', () => { + let languageHandler; + let yamlSettings; + const limitContent = ` + a: [1, 2, 3] + b: [4, 5, 6] + `; + before(() => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup(); + const { languageHandler: langHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageHandler = langHandler; + yamlSettings = settings; + }); + afterEach(() => { + yamlSettings.maxItemsComputed = 5000; + }); + function assertLimitWarning() { + const warnings = languageHandler.pendingLimitExceededWarnings; + assert.deepEqual(Object.keys(warnings), [testHelper_1.TEST_URI]); + assert.deepEqual(warnings[testHelper_1.TEST_URI].features, { 'document symbols': 'document symbols' }); + assert(warnings[testHelper_1.TEST_URI].timeout); + } + describe('Document Symbols Tests (Non Hierarchical)', function () { + function parseNonHierarchicalSetup(content) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.documentSymbolHandler({ + textDocument: testTextDocument, + }); + } + it('Document is empty', (done) => { + const content = ''; + const symbols = parseNonHierarchicalSetup(content); + assert.deepStrictEqual(symbols, []); + done(); + }); + it('Simple document symbols', () => { + const content = 'cwd: test'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('cwd', 15, '', testHelper_1.TEST_URI, 0, 0, 0, 9)); + }); + it('Document Symbols with number', () => { + const content = 'node1: 10000'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('node1', 16, '', testHelper_1.TEST_URI, 0, 0, 0, 12)); + }); + it('Document Symbols with boolean', () => { + const content = 'node1: False'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('node1', 17, '', testHelper_1.TEST_URI, 0, 0, 0, 12)); + }); + it('Document Symbols with object', () => { + const content = 'scripts:\n node1: test\n node2: test'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 3); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('scripts', 2, '', testHelper_1.TEST_URI, 0, 0, 2, 13)); + assert.deepEqual(symbols[1], (0, verifyError_1.createExpectedSymbolInformation)('node1', 15, 'scripts', testHelper_1.TEST_URI, 1, 2, 1, 13)); + assert.deepEqual(symbols[2], (0, verifyError_1.createExpectedSymbolInformation)('node2', 15, 'scripts', testHelper_1.TEST_URI, 2, 2, 2, 13)); + }); + it('Document Symbols with null', () => { + const content = 'apiVersion: null'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('apiVersion', vscode_languageserver_types_1.SymbolKind.Variable, '', testHelper_1.TEST_URI, 0, 0, 0, 16)); + }); + it('Document Symbols with array of strings', () => { + const content = 'items:\n - test\n - test'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('items', vscode_languageserver_types_1.SymbolKind.Array, '', testHelper_1.TEST_URI, 0, 0, 2, 8)); + }); + it('Document Symbols with array', () => { + const content = 'authors:\n - name: Josh\n - email: jp'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 3); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('authors', 18, '', testHelper_1.TEST_URI, 0, 0, 2, 13)); + assert.deepEqual(symbols[1], (0, verifyError_1.createExpectedSymbolInformation)('name', 15, 'authors', testHelper_1.TEST_URI, 1, 4, 1, 14)); + assert.deepEqual(symbols[2], (0, verifyError_1.createExpectedSymbolInformation)('email', 15, 'authors', testHelper_1.TEST_URI, 2, 4, 2, 13)); + }); + it('Document Symbols with object and array', () => { + const content = 'scripts:\n node1: test\n node2: test\nauthors:\n - name: Josh\n - email: jp'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 6); + // Sort the items first so they have predictable order in the array + symbols.sort((a, b) => { + return a.name.localeCompare(b.name); + }); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('authors', 18, '', testHelper_1.TEST_URI, 3, 0, 5, 13)); + assert.deepEqual(symbols[1], (0, verifyError_1.createExpectedSymbolInformation)('email', 15, 'authors', testHelper_1.TEST_URI, 5, 4, 5, 13)); + assert.deepEqual(symbols[2], (0, verifyError_1.createExpectedSymbolInformation)('name', 15, 'authors', testHelper_1.TEST_URI, 4, 4, 4, 14)); + assert.deepEqual(symbols[3], (0, verifyError_1.createExpectedSymbolInformation)('node1', 15, 'scripts', testHelper_1.TEST_URI, 1, 2, 1, 13)); + assert.deepEqual(symbols[4], (0, verifyError_1.createExpectedSymbolInformation)('node2', 15, 'scripts', testHelper_1.TEST_URI, 2, 2, 2, 13)); + assert.deepEqual(symbols[5], (0, verifyError_1.createExpectedSymbolInformation)('scripts', 2, '', testHelper_1.TEST_URI, 0, 0, 2, 13)); + }); + it('Document Symbols with multi documents', () => { + const content = '---\nanalytics: true\n...\n---\njson: test\n...'; + const symbols = parseNonHierarchicalSetup(content); + assert.equal(symbols.length, 2); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('analytics', 17, '', testHelper_1.TEST_URI, 1, 0, 1, 15)); + assert.deepEqual(symbols[1], (0, verifyError_1.createExpectedSymbolInformation)('json', 15, '', testHelper_1.TEST_URI, 4, 0, 4, 10)); + }); + it('Document symbols with a limit', () => { + yamlSettings.maxItemsComputed = 1; + const symbols = parseNonHierarchicalSetup(limitContent); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedSymbolInformation)('a', vscode_languageserver_types_1.SymbolKind.Array, '', testHelper_1.TEST_URI, 1, 4, 1, 16)); + assertLimitWarning(); + }); + }); + describe('Document Symbols Tests (Hierarchical)', function () { + function parseHierarchicalSetup(content) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + yamlSettings.hierarchicalDocumentSymbolSupport = true; + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.documentSymbolHandler({ + textDocument: testTextDocument, + }); + } + it('Document is empty', (done) => { + const content = ''; + const symbols = parseHierarchicalSetup(content); + assert.deepStrictEqual(symbols, []); + done(); + }); + it('Simple document symbols', () => { + const content = 'cwd: test'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('cwd', 15, 0, 0, 0, 9, 0, 0, 0, 3, [], 'test')); + }); + it('Document Symbols with number', () => { + const content = 'node1: 10000'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('node1', 16, 0, 0, 0, 12, 0, 0, 0, 5, [], '10000')); + }); + it('Document Symbols with boolean', () => { + const content = 'node1: False'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('node1', 17, 0, 0, 0, 12, 0, 0, 0, 5, [], 'false')); + }); + it('Document Symbols with object', () => { + const content = 'scripts:\n node1: test\n node2: test'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + const child1 = (0, verifyError_1.createExpectedDocumentSymbol)('node1', vscode_languageserver_types_1.SymbolKind.String, 1, 2, 1, 13, 1, 2, 1, 7, [], 'test'); + const child2 = (0, verifyError_1.createExpectedDocumentSymbol)('node2', vscode_languageserver_types_1.SymbolKind.String, 2, 2, 2, 13, 2, 2, 2, 7, [], 'test'); + const children = [child1, child2]; + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('scripts', vscode_languageserver_types_1.SymbolKind.Module, 0, 0, 2, 13, 0, 0, 0, 7, children)); + }); + it('Document Symbols with null', () => { + const content = 'apiVersion: null'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('apiVersion', vscode_languageserver_types_1.SymbolKind.Variable, 0, 0, 0, 16, 0, 0, 0, 10, [], 'null')); + }); + it('Document Symbols with array of strings', () => { + const content = 'items:\n - test\n - test'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + const child1 = (0, verifyError_1.createExpectedDocumentSymbolNoDetail)('0', vscode_languageserver_types_1.SymbolKind.String, 1, 4, 1, 8, 1, 4, 1, 8); + const child2 = (0, verifyError_1.createExpectedDocumentSymbolNoDetail)('1', vscode_languageserver_types_1.SymbolKind.String, 2, 4, 2, 8, 2, 4, 2, 8); + const children = [child1, child2]; + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('items', vscode_languageserver_types_1.SymbolKind.Array, 0, 0, 2, 8, 0, 0, 0, 5, children)); + }); + it('Document Symbols with array', () => { + const content = 'authors:\n - name: Josh\n - email: jp'; + const symbols = parseHierarchicalSetup(content); + const object1 = (0, verifyError_1.createExpectedDocumentSymbol)('name', vscode_languageserver_types_1.SymbolKind.String, 1, 4, 1, 14, 1, 4, 1, 8, [], 'Josh'); + const arrayChild1 = (0, verifyError_1.createExpectedDocumentSymbolNoDetail)('0', vscode_languageserver_types_1.SymbolKind.Module, 1, 4, 1, 14, 1, 4, 1, 14, [object1]); + const object2 = (0, verifyError_1.createExpectedDocumentSymbol)('email', vscode_languageserver_types_1.SymbolKind.String, 2, 4, 2, 13, 2, 4, 2, 9, [], 'jp'); + const arrayChild2 = (0, verifyError_1.createExpectedDocumentSymbolNoDetail)('1', vscode_languageserver_types_1.SymbolKind.Module, 2, 4, 2, 13, 2, 4, 2, 13, [object2]); + const children = [arrayChild1, arrayChild2]; + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('authors', vscode_languageserver_types_1.SymbolKind.Array, 0, 0, 2, 13, 0, 0, 0, 7, children)); + }); + it('Document Symbols with object and array', () => { + const content = 'scripts:\n node1: test\n node2: test\nauthors:\n - name: Josh\n - email: jp'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 2); + const child1 = (0, verifyError_1.createExpectedDocumentSymbol)('node1', vscode_languageserver_types_1.SymbolKind.String, 1, 2, 1, 13, 1, 2, 1, 7, [], 'test'); + const child2 = (0, verifyError_1.createExpectedDocumentSymbol)('node2', vscode_languageserver_types_1.SymbolKind.String, 2, 2, 2, 13, 2, 2, 2, 7, [], 'test'); + const children = [child1, child2]; + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('scripts', vscode_languageserver_types_1.SymbolKind.Module, 0, 0, 2, 13, 0, 0, 0, 7, children)); + const object1 = (0, verifyError_1.createExpectedDocumentSymbol)('name', vscode_languageserver_types_1.SymbolKind.String, 4, 4, 4, 14, 4, 4, 4, 8, [], 'Josh'); + const arrayChild1 = (0, verifyError_1.createExpectedDocumentSymbolNoDetail)('0', vscode_languageserver_types_1.SymbolKind.Module, 4, 4, 4, 14, 4, 4, 4, 14, [object1]); + const object2 = (0, verifyError_1.createExpectedDocumentSymbol)('email', vscode_languageserver_types_1.SymbolKind.String, 5, 4, 5, 13, 5, 4, 5, 9, [], 'jp'); + const arrayChild2 = (0, verifyError_1.createExpectedDocumentSymbolNoDetail)('1', vscode_languageserver_types_1.SymbolKind.Module, 5, 4, 5, 13, 5, 4, 5, 13, [object2]); + const children2 = [arrayChild1, arrayChild2]; + assert.deepEqual(symbols[1], (0, verifyError_1.createExpectedDocumentSymbol)('authors', vscode_languageserver_types_1.SymbolKind.Array, 3, 0, 5, 13, 3, 0, 3, 7, children2)); + }); + it('Document Symbols with multi documents', () => { + const content = '---\nanalytics: true\n...\n---\njson: test\n...'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 2); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('analytics', vscode_languageserver_types_1.SymbolKind.Boolean, 1, 0, 1, 15, 1, 0, 1, 9, [], 'true')); + assert.deepEqual(symbols[1], (0, verifyError_1.createExpectedDocumentSymbol)('json', vscode_languageserver_types_1.SymbolKind.String, 4, 0, 4, 10, 4, 0, 4, 4, [], 'test')); + }); + it('Document Symbols with complex mapping and aliases', () => { + const content = ` + version: 0.0.1 + structure: + ? &root root + : + element: div + conditions: + ? *root + : + style: + height: 41`; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 3); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('version', vscode_languageserver_types_1.SymbolKind.String, 1, 12, 1, 26, 1, 12, 1, 19, [], '0.0.1')); + const element = (0, verifyError_1.createExpectedDocumentSymbol)('element', vscode_languageserver_types_1.SymbolKind.String, 5, 16, 5, 28, 5, 16, 5, 23, [], 'div'); + const root1 = (0, verifyError_1.createExpectedDocumentSymbol)('root', vscode_languageserver_types_1.SymbolKind.Module, 3, 22, 5, 28, 3, 22, 3, 26, [element]); + const height = (0, verifyError_1.createExpectedDocumentSymbol)('height', vscode_languageserver_types_1.SymbolKind.Number, 10, 18, 10, 28, 10, 18, 10, 24, [], '41'); + const style = (0, verifyError_1.createExpectedDocumentSymbol)('style', vscode_languageserver_types_1.SymbolKind.Module, 9, 16, 10, 28, 9, 16, 9, 21, [height]); + const root2 = (0, verifyError_1.createExpectedDocumentSymbol)('root', vscode_languageserver_types_1.SymbolKind.Module, 7, 16, 10, 28, 7, 16, 7, 21, [style]); + assert.deepEqual(symbols[1], (0, verifyError_1.createExpectedDocumentSymbol)('structure', vscode_languageserver_types_1.SymbolKind.Module, 2, 12, 5, 28, 2, 12, 2, 21, [root1])); + assert.deepEqual(symbols[2], (0, verifyError_1.createExpectedDocumentSymbol)('conditions', vscode_languageserver_types_1.SymbolKind.Module, 6, 12, 10, 28, 6, 12, 6, 22, [root2])); + }); + it('Document symbols with a limit', () => { + yamlSettings.maxItemsComputed = 3; + const symbols = parseHierarchicalSetup(limitContent); + assert.equal(symbols.length, 2); + assert.equal(symbols[0].children.length, 1); + assert.equal(symbols[1].children.length, 0); + const el = (0, verifyError_1.createExpectedDocumentSymbolNoDetail)('0', vscode_languageserver_types_1.SymbolKind.Number, 1, 8, 1, 9, 1, 8, 1, 9, []); + const root = (0, verifyError_1.createExpectedDocumentSymbol)('a', vscode_languageserver_types_1.SymbolKind.Array, 1, 4, 1, 16, 1, 4, 1, 5, [el]); + assert.deepEqual(symbols[0], root); + assertLimitWarning(); + }); + it('Document Symbols with numbers as keys', () => { + const content = 'items:\n 1: test\n 2: test'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + const child1 = (0, verifyError_1.createExpectedDocumentSymbol)('1', vscode_languageserver_types_1.SymbolKind.String, 1, 2, 1, 9, 1, 2, 1, 3, undefined, 'test'); + const child2 = (0, verifyError_1.createExpectedDocumentSymbol)('2', vscode_languageserver_types_1.SymbolKind.String, 2, 2, 2, 9, 2, 2, 2, 3, undefined, 'test'); + const children = [child1, child2]; + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('items', vscode_languageserver_types_1.SymbolKind.Module, 0, 0, 2, 9, 0, 0, 0, 5, children)); + }); + it('Document Symbols with mapping as keys', () => { + const content = '{foo: bar}: foo'; + const symbols = parseHierarchicalSetup(content); + assert.equal(symbols.length, 1); + assert.deepEqual(symbols[0], (0, verifyError_1.createExpectedDocumentSymbol)('{}', vscode_languageserver_types_1.SymbolKind.String, 0, 0, 0, 15, 0, 0, 0, 10, [], 'foo')); + }); + }); +}); +//# sourceMappingURL=documentSymbols.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js.map" index c032578deca0c7f526725dc0f53f0d3cd1bf4034..cc514062f9e6c58086d84a8f8aef4544f417240e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/documentSymbols.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4aeb587ee2eb0200b6a36a5907673c9feafff1f5671370def61f6f74864e65d9 -size 17827 +{"version":3,"file":"documentSymbols.test.js","sourceRoot":"","sources":["../../../test/documentSymbols.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAAuF;AACvF,qDAI6B;AAC7B,6EAA4F;AAC5F,iCAAkC;AAClC,uDAAoD;AACpD,sDAA6E;AAG7E,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,eAA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L,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js" index b3cc479311df258466d7f664f2249672fd1f4a82..ba0e4763231c325e7aa72467c0bc12685252a132 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69d6598c15cdc1baf215246f7ea57fa4618aba88e16903f70fd902632f873960 -size 2594 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const assert = require("assert"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const yamlSettings_1 = require("../src/yamlSettings"); +describe('Find Links Tests', () => { + let languageHandler; + let yamlSettings; + before(() => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup(); + const { languageHandler: langHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageHandler = langHandler; + yamlSettings = settings; + }); + function findLinks(content) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.documentLinkHandler({ + textDocument: testTextDocument, + }); + } + describe('Jump to definition', function () { + it('Find source definition', (done) => { + const content = "definitions:\n link:\n type: string\ntype: object\nproperties:\n uri:\n $ref: '#/definitions/link'\n"; + const definitions = findLinks(content); + definitions + .then(function (results) { + assert.equal(results.length, 1); + assert.deepEqual(results[0].range, { + start: { + line: 6, + character: 11, + }, + end: { + line: 6, + character: 29, + }, + }); + assert.deepEqual(results[0].target, 'file://~/Desktop/vscode-k8s/test.yaml#3,5'); + }) + .then(done, done); + }); + }); + describe('Bug fixes', () => { + it('should work with flow map', async () => { + const content = 'f: {ffff: fff, aa: [ddd, drr: {}]}'; + const results = await findLinks(content); + assert.equal(results.length, 0); + }); + }); +}); +//# sourceMappingURL=findLinks.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js.map" index 79979d693fe9bf4246e29a6a0ec12f8f73f535a5..ff8fca78531a95a5fc60a18704f07dff6e3079e6 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/findLinks.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cddf0f03e5965c3514145f440e5f3df0e3548f864e7eb6ab30c2263d63800ef6 -size 1709 +{"version":3,"file":"findLinks.test.js","sourceRoot":"","sources":["../../../test/findLinks.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAA6E;AAC7E,iCAAkC;AAClC,uDAAoD;A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;qBACd;iBACF,CAAC,CAAC;gBACH,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,2CAA2C,CAAC,CAAC;YACnF,CAAC,CAAC;iBACD,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,EAAE,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;YACzC,MAAM,OAAO,GAAG,oCAAoC,CAAC;YACrD,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC;YAEzC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js" index d0fb4179ea07a79f8577371c9b7b0de301d88a66..5c7370d1a6d826afea15ecb192f217514f8e234e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js" @@ -1,3 +1,79 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0765ebd72a04e0e9f74f1d8335925c08f6ab62b65f88750bc5e122557fa9564 -size 4475 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const yaml_documents_1 = require("../src/languageservice/parser/yaml-documents"); +const flow_style_rewriter_1 = require("../src/languageservice/utils/flow-style-rewriter"); +const testHelper_1 = require("./utils/testHelper"); +describe('Flow style rewriter', () => { + let writer; + let documents; + const indentation = ' '; + beforeEach(() => { + documents = new yaml_documents_1.YamlDocuments(); + writer = new flow_style_rewriter_1.FlowStyleRewriter(indentation); + }); + it('should return null if node is not flow style', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(1); + const result = writer.write(node); + (0, chai_1.expect)(result).to.be.null; + }); + it('should rewrite flow style map to block', () => { + const doc = (0, testHelper_1.setupTextDocument)('datacenter: { location: canada, cab: 15}'); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(13); + const result = writer.write(node); + (0, chai_1.expect)(result).not.to.be.null; + (0, chai_1.expect)(result).to.deep.equals(`\n${indentation}location: canada\n${indentation}cab: 15`); + }); + it('should rewrite flow style map and preserve space ', () => { + const doc = (0, testHelper_1.setupTextDocument)('datacenter: { location: canada, cab: 15}'); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(13); + const result = writer.write(node); + (0, chai_1.expect)(result).not.to.be.null; + (0, chai_1.expect)(result).to.deep.equals(`\n${indentation}location: canada\n${indentation}cab: 15`); + }); + it('should rewrite flow style map with null ', () => { + const doc = (0, testHelper_1.setupTextDocument)('datacenter: { "explicit": "entry",\n "implicit": "entry",\n null: null }'); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(13); + const result = writer.write(node); + (0, chai_1.expect)(result).not.to.be.null; + (0, chai_1.expect)(result).to.deep.equals(`\n${indentation}"explicit": "entry"\n${indentation}"implicit": "entry"\n${indentation}null: null `); + }); + it('should rewrite flow style map with explicit entry', () => { + const doc = (0, testHelper_1.setupTextDocument)('datacenter: { "foo bar": "baz" }'); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(13); + const result = writer.write(node); + (0, chai_1.expect)(result).not.to.be.null; + (0, chai_1.expect)(result).to.deep.equals(`\n${indentation}"foo bar": "baz" `); + }); + it('should rewrite flow style sequence', () => { + const doc = (0, testHelper_1.setupTextDocument)('animals: [dog , cat , mouse] '); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(9); + const result = writer.write(node); + (0, chai_1.expect)(result).not.to.be.null; + (0, chai_1.expect)(result).to.deep.equals(`\n${indentation}- dog \n${indentation}- cat \n${indentation}- mouse`); + }); + it('should rewrite flow style for mixed sequence and map', () => { + const doc = (0, testHelper_1.setupTextDocument)('animals: [ { "foo": "bar" } ]'); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(9); + const result = writer.write(node); + (0, chai_1.expect)(result).not.to.be.null; + (0, chai_1.expect)(result).to.deep.equals(`\n${indentation}- { "foo": "bar" } `); + }); + it('should rewrite flow style when parent is sequence', () => { + const doc = (0, testHelper_1.setupTextDocument)(`items:\n${indentation}- { location: some }`); + const yamlDoc = documents.getYamlDocument(doc); + const node = yamlDoc.documents[0].getNodeFromOffset(13); + const result = writer.write(node); + (0, chai_1.expect)(result).not.to.be.null; + (0, chai_1.expect)(result).to.deep.equals(` location: some `); + }); +}); +//# sourceMappingURL=flow-style-rewriter.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js.map" index b45773e45f72cdb889dfc27285e6a50c3a7ebe35..8aef5124f6469554971aaf51b98d51e65fe6c726 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/flow-style-rewriter.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e912a2f1cff714e3c4e3ea24234bb418f388796cc30c58708acd3d384fb96de3 -size 4235 +{"version":3,"file":"flow-style-rewriter.test.js","sourceRoot":"","sources":["../../../test/flow-style-rewriter.test.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAC9B,iFAA6E;AAC7E,0FAAqF;AACrF,mDAAuD;AAEvD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,MAAyB,CAAC;IAC9B,IAAI,SAAwB,CAAC;IAC7B,MAAM,WAAW,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,GAAG,IAAI,8BAAa,EAAE,CAAC;QAChC,MAAM,GAAG,IAAI,uCAAiB,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,GAAG,GAAG,IAAA,8BAAiB,EAAC,UAAU,CAAC,CAAC;QAC1C,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;QAE/C,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EA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C,eAAe,CAAC,GAAG,CAAC,CAAC;QAE/C,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;QACxD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC9B,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js" index 0d02ede62d82fc69d6e6b49735812e2b816cd3bb..00303fc867b5b4454ff3bad73ea1d89215361277 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js" @@ -1,3 +1,119 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:22afe627962f851f3951cf6fa36e3ac00a87d8a018991b3e3f5f72c18aee640c -size 4192 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const assert = require("assert"); +const yamlSettings_1 = require("../src/yamlSettings"); +describe('Formatter Tests', () => { + let languageHandler; + let yamlSettings; + before(() => { + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withFormat(); + const { languageHandler: langHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageHandler = langHandler; + yamlSettings = settings; + }); + // Tests for formatter + describe('Formatter', function () { + describe('Test that formatter works with custom tags', function () { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + function parseSetup(content, options = {}) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + yamlSettings.yamlFormatterSettings = options; + return languageHandler.formatterHandler({ + options, + textDocument: testTextDocument, + }); + } + it('Formatting works without custom tags', () => { + const content = 'cwd: test'; + const edits = parseSetup(content); + assert.notEqual(edits.length, 0); + assert.equal(edits[0].newText, 'cwd: test\n'); + }); + it('Formatting works with custom tags', () => { + const content = 'cwd: !Test test'; + const edits = parseSetup(content); + assert.notEqual(edits.length, 0); + assert.equal(edits[0].newText, 'cwd: !Test test\n'); + }); + it('Formatting wraps text', () => { + const content = `comments: > + test test test test test test test test test test test test`; + const edits = parseSetup(content, { + printWidth: 20, + proseWrap: 'always', + }); + assert.equal(edits[0].newText, 'comments: >\n test test test\n test test test\n test test test\n test test test\n'); + }); + it('Formatting uses tabSize', () => { + const content = `map: + k1: v1 + k2: v2 +list: + - item1 + - item2 +`; + const edits = parseSetup(content, { + tabSize: 5, + }); + const expected = `map: + k1: v1 + k2: v2 +list: + - item1 + - item2 +`; + assert.equal(edits[0].newText, expected); + }); + it('Formatting uses tabWidth', () => { + const content = `map: + k1: v1 + k2: v2 +list: + - item1 + - item2 +`; + const edits = parseSetup(content, { + tabWidth: 5, + }); + const expected = `map: + k1: v1 + k2: v2 +list: + - item1 + - item2 +`; + assert.equal(edits[0].newText, expected); + }); + it('Formatting uses tabWidth over tabSize', () => { + const content = `map: + k1: v1 + k2: v2 +list: + - item1 + - item2 +`; + const edits = parseSetup(content, { + tabSize: 3, + tabWidth: 5, + }); + const expected = `map: + k1: v1 + k2: v2 +list: + - item1 + - item2 +`; + assert.equal(edits[0].newText, expected); + }); + }); + }); +}); +//# sourceMappingURL=formatter.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js.map" index fca55b0a659d00f0465dcc662d43ea9cf78bc45d..2a2797f2408a014b4cb695aaeded4a9960cce7c9 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/formatter.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83b75c8c1cf0c7ebb3f467da73710c2f76e092f4f8e467555dd7232a7437994e -size 2728 +{"version":3,"file":"formatter.test.js","sourceRoot":"","sources":["../../../test/formatter.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAA6E;AAC7E,uDAAoD;AACpD,iCAAiC;AAEjC,sDAA6E;AAG7E,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,eAAiC,CAAC;IACtC,IAAI,YAA2B,CAAC;IAEhC,MAAM,CAAC,GAAG,EAAE;QACV,MAAM,qBAAqB,GAAG,IAAI,2BAAY,EAAE,CAAC,UAAU,EAAE,CAAC;QAC9D,MAAM,EAAE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AAM,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE;oBAChC,OAAO,EAAE,CAAC;oBACV,QAAQ,EAAE,CAAC;iBACZ,CAAC,CAAC;gBAEH,MAAM,QAAQ,GAAG;;;;;;CAMxB,CAAC;gBACM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC3C,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js" index 290d7f77874fae303a66c580c77f4a56b7f53054..84a323cf8ecdd4278780f3ae80c1009d93c94731 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js" @@ -1,3 +1,601 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b88caf75262ed7718fdb8f4b45f19d8bb7fe3f7fb58635138a609187db69a79 -size 30358 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const serviceSetup_1 = require("./utils/serviceSetup"); +const testHelper_1 = require("./utils/testHelper"); +const assert = require("assert"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const yamlSettings_1 = require("../src/yamlSettings"); +const chai_1 = require("chai"); +describe('Hover Tests', () => { + let languageSettingsSetup; + let languageHandler; + let yamlSettings; + let telemetry; + let schemaProvider; + before(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withHover().withSchemaFileMatch({ + uri: 'http://google.com', + fileMatch: ['bad-schema.yaml'], + }); + const { languageHandler: langHandler, yamlSettings: settings, telemetry: testTelemetry, schemaProvider: testSchemaProvider, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageHandler = langHandler; + yamlSettings = settings; + telemetry = testTelemetry; + schemaProvider = testSchemaProvider; + }); + afterEach(() => { + schemaProvider.deleteSchema(testHelper_1.SCHEMA_ID); + }); + /** + * Generates hover information for the given document and caret (cursor) position. + * @param content The content of the document. + * @param position The position of the caret in the document. + * Alternatively, `position` can be omitted if the caret is located in the content using `|` bookends. + * For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2` + * @returns An instance of `Hover`. + */ + function parseSetup(content, position) { + if (typeof position === 'undefined') { + ({ content, position } = (0, testHelper_1.caretPosition)(content)); + } + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.hoverHandler({ + position: testTextDocument.positionAt(position), + textDocument: testTextDocument, + }); + } + describe('Hover', function () { + it('Hover on key on root', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + description: 'The directory from which bower should run. All relative paths will be calculated according to this setting.', + }, + }, + }); + const content = 'c|w|d: test'; // len: 9, pos: 1 + const hover = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(hover.contents), true); + assert.strictEqual(hover.contents.kind, 'markdown'); + assert.strictEqual(hover.contents.value, `The directory from which bower should run\\. All relative paths will be calculated according to this setting\\.\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover on value on root', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + description: 'The directory from which bower should run. All relative paths will be calculated according to this setting.', + }, + }, + }); + const content = 'cwd: t|e|st'; // len: 9, pos: 6 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.kind, 'markdown'); + assert.strictEqual(result.contents.value, `The directory from which bower should run\\. All relative paths will be calculated according to this setting\\.\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover on key with depth', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + postinstall: { + type: 'string', + description: 'A script to run after install', + }, + }, + }, + }, + }); + const content = 'scripts:\n post|i|nstall: test'; // len: 28, pos: 15 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.kind, 'markdown'); + assert.strictEqual(result.contents.value, `A script to run after install\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover on value with depth', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + postinstall: { + type: 'string', + description: 'A script to run after install', + }, + }, + }, + }, + }); + const content = 'scripts:\n postinstall: te|s|t'; // len: 28, pos: 26 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.kind, 'markdown'); + assert.strictEqual(result.contents.value, `A script to run after install\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover works on both root node and child nodes works', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + postinstall: { + type: 'string', + description: 'A script to run after install', + }, + }, + description: 'Contains custom hooks used to trigger other automated tools', + }, + }, + }); + const content1 = 'scr|i|pts:\n postinstall: test'; // len: 28, pos: 3 + const firstHover = await parseSetup(content1); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(firstHover.contents), true); + assert.strictEqual(firstHover.contents.kind, 'markdown'); + assert.strictEqual(firstHover.contents.value, `Contains custom hooks used to trigger other automated tools\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + const content2 = 'scripts:\n post|i|nstall: test'; // len: 28, pos: 15 + const secondHover = await parseSetup(content2); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(secondHover.contents), true); + assert.strictEqual(secondHover.contents.value, `A script to run after install\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover does not show results when there isnt description field', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'ana|l|ytics: true'; // len: 15, pos: 3 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, ''); + }); + it('Hover on first document in multi document', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = '---\nanalytics: true\n...\n---\njson: test\n...'; + const result = await parseSetup(content, 10); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, ''); + }); + it('Hover on second document in multi document', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + json: { + type: 'string', + description: 'A file path to the configuration file', + }, + }, + }); + const content = '---\nanalytics: true\n...\n---\njs|o|n: test\n...'; // len: 42, pos: 30 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `A file path to the configuration file\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover should not return anything on key', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: {}, + }); + const content = 'm|y|_unknown_hover: test'; // len: 22, pos: 1 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, ''); + }); + it('Hover should not return anything on value', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: {}, + }); + const content = 'my_unknown_hover: tes|t|'; // len: 22, pos: 21 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, ''); + }); + it('Hover works on array nodes', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + description: 'Full name of the author.', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n - n|a|me: Josh'; // len: 23, pos: 14 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `Full name of the author\\.\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover works on additional array nodes', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + authors: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + description: 'Full name of the author.', + }, + email: { + type: 'string', + description: 'Email address of the author.', + }, + }, + }, + }, + }, + }); + const content = 'authors:\n - name: Josh\n - |e|mail: jp'; // len: 37, pos: 28 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `Email address of the author\\.\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover works on oneOf reference array nodes', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + definitions: { + stringoptions: { + $id: '#/definitions/stringoptions', + type: 'array', + additionalItems: false, + uniqueItems: true, + minItems: 1, + items: { + oneOf: [ + { + type: 'string', + }, + ], + }, + }, + }, + properties: { + ignition: { + type: 'object', + properties: { + proxy: { + type: 'object', + properties: { + no_proxy: { + $ref: '#/definitions/stringoptions', + title: 'no_proxy (list of strings):', + description: 'Specifies a list of strings to hosts that should be excluded from proxying. Each value is represented by an IP address prefix (1.2.3.4), an IP address prefix in CIDR notation (1.2.3.4/8), a domain name, or a special DNS label (*). An IP address prefix and domain name can also include a literal port number (1.2.3.4:80). A domain name matches that name and all subdomains. A domain name with a leading . matches subdomains only. For example foo.com matches foo.com and bar.foo.com; .y.com matches x.y.com but not y.com. A single asterisk (*) indicates that no proxying should be done.', + }, + }, + }, + }, + }, + storage: { + type: 'object', + properties: { + raid: { + type: 'array', + items: { + oneOf: [ + { + properties: { + name: { + type: 'string', + title: 'name (string):', + description: 'The name to use for the resulting md device.', + }, + devices: { + $ref: '#/definitions/stringoptions', + title: 'devices (list of strings):', + description: 'The list of devices (referenced by their absolute path) in the array.', + }, + options: { + $ref: '#/definitions/stringoptions', + title: 'options (list of strings):', + description: 'Any additional options to be passed to mdadm.', + }, + }, + }, + ], + }, + }, + }, + }, + }, + }); + const content1 = `ignition: + proxy: + no_proxy: + - 10|.|10.10.10 + - service.local +storage: + raid: + - name: Raid + devices: + - /dev/disk/by-id/ata-WDC_WD10SPZX-80Z10T2_WD-WX41A49H9FT4 + - /dev/disk/by-id/ata-WDC_WD10SPZX-80Z10T2_WD-WXL1A49KPYFD`; // len: 257, pos: 43 + let result = await parseSetup(content1); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `#### no\\_proxy \\(list of strings\\):\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + const content2 = `ignition: + proxy: + no_proxy: + - 10.10.10.10 + - service.local +storage: + raid: + - name: Raid + devices: + - /dev/disk/by-id/ata-WDC_WD|1|0SPZX-80Z10T2_WD-WX41A49H9FT4 + - /dev/disk/by-id/ata-WDC_WD10SPZX-80Z10T2_WD-WXL1A49KPYFD`; // len: 257, pos: 160 + result = await parseSetup(content2); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `#### devices \\(list of strings\\):\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover on refs node', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + additionalProperties: false, + properties: { + title: { + type: 'string', + description: 'Title of this file', + }, + refs: { + type: 'object', + }, + users: { + type: 'array', + items: { + type: 'object', + properties: { + name: { + type: 'string', + description: 'Name of the user', + }, + place: { + type: 'string', + description: 'Place of residence', + }, + }, + }, + }, + }, + }); + const content = `title: meetup +refs: + place: &default_place NYC +users: + - name: foo + place: SFC + - name: bar + |p|lace: *default_place`; + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `Place of residence\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover on null property', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + childObject: { + type: 'object', + description: 'should return this description', + }, + }, + }); + const content = 'c|h|ildObject: \n'; // len: 14, pos: 1 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `should return this description\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('hover on value and its description has multiline, indentation and special string', async () => { + (() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup() + .withHover() + .withIndentation(' ') + .withSchemaFileMatch({ + uri: 'http://google.com', + fileMatch: ['bad-schema.yaml'], + }); + const { languageHandler: langHandler, yamlSettings: settings, telemetry: testTelemetry, schemaProvider: testSchemaProvider, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageHandler = langHandler; + yamlSettings = settings; + telemetry = testTelemetry; + schemaProvider = testSchemaProvider; + })(); + //https://github.com/redhat-developer/vscode-yaml/issues/886 + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + title: 'Person', + properties: { + firstName: { + type: 'string', + description: 'At the top level my_var is shown properly.\n\n Issue with my_var2\n here my_var3', + }, + }, + }); + const content = 'fi|r|stName: '; // len: 12, pos: 1 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `#### Person\n\nAt the top level my\\_var is shown properly\\.\n\n  Issue with my\\_var2\n\n   here my\\_var3\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover works on examples', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + animal: { + type: 'string', + description: 'should return this description', + enum: ['cat', 'dog'], + examples: ['cat', 'dog'], + }, + }, + }); + const content = 'animal:\n ca|t|'; // len: 13, pos: 12 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.kind, 'markdown'); + assert.strictEqual(result.contents.value, `should return this description + +Examples: + +\`\`\`"cat"\`\`\` + +\`\`\`"dog"\`\`\` + +Source: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('Hover on property next value on null', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + childObject: { + type: 'object', + description: 'childObject description', + properties: { + prop: { + type: 'string', + description: 'should return this description', + }, + }, + }, + }, + }); + const content = 'childObject:\r\n |p|rop:\r\n '; // len: 25, pos: 16 + const result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `should return this description\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + }); + it('should work with bad schema', async () => { + const doc = (0, testHelper_1.setupSchemaIDTextDocument)('foo:\n bar', 'bad-schema.yaml'); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(doc); + const result = await languageHandler.hoverHandler({ + position: vscode_languageserver_types_1.Position.create(0, 1), + textDocument: doc, + }); + (0, chai_1.expect)(result).to.be.null; + }); + }); + describe('Hover on anyOf', () => { + it('should show all matched schemas in anyOf', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + title: 'The Root', + description: 'Root Object', + type: 'object', + properties: { + child: { + title: 'Child', + anyOf: [ + { + $ref: '#/definitions/FirstChoice', + }, + { + $ref: '#/definitions/SecondChoice', + }, + ], + }, + }, + required: ['child'], + additionalProperties: false, + definitions: { + FirstChoice: { + title: 'FirstChoice', + description: 'The first choice', + type: 'object', + properties: { + choice: { + title: 'Choice', + default: 'first', + enum: ['first'], + type: 'string', + }, + property_a: { + title: 'Property A', + type: 'string', + }, + }, + required: ['property_a'], + }, + SecondChoice: { + title: 'SecondChoice', + description: 'The second choice', + type: 'object', + properties: { + choice: { + title: 'Choice', + default: 'second', + enum: ['second'], + type: 'string', + }, + property_b: { + title: 'Property B', + type: 'string', + }, + }, + required: ['property_b'], + }, + }, + }); + let content = 'ch|i|ld:'; + let result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `#### FirstChoice || SecondChoice\n\nThe first choice || The second choice\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + //use case 1: + content = 'ch|i|ld: \n property_a: test'; + result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `#### FirstChoice\n\nThe first choice\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + //use case 2: + content = 'ch|i|ld: \n property_b: test'; + result = await parseSetup(content); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.value, `#### SecondChoice\n\nThe second choice\n\nSource: [${testHelper_1.SCHEMA_ID}](file:///${testHelper_1.SCHEMA_ID})`); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + }); + describe('Bug fixes', () => { + it('should convert binary data correctly', async () => { + const content = 'foo: [ !!binary R0lG|O|DlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5OTk6enp56enmleECcgggoBADs= ]\n'; // len: 107, pos: 20 + const result = await parseSetup(content); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + (0, chai_1.expect)(result).to.be.null; + }); + }); +}); +//# sourceMappingURL=hover.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js.map" index 06e43edc8b1ce0b5395e064f3dd27539675e9a06..5e3c3ad2c76f622c79069809acd98cd8148f6718 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/hover.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ffc25919ee4cad6f1ea0d985ea16303ef29501cbefe91921f4b99b7a4c1ee010 -size 16558 +{"version":3,"file":"hover.test.js","sourceRoot":"","sources":["../../../test/hover.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,uDAAoD;AACpD,mDAM4B;AAC5B,iCAAiC;AACjC,6EAA6E;AAE7E,sDAA6E;AAC7E,+BAA8B;AAG9B,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,IAAI,qBAAmC,CAAC;IACxC,IAAI,eAAiC,CAAC;IACtC,IAAI,YAA2B,CAAC;IAChC,IAAI,SAAwB,CAAC;IAC7B,IAAI,cAAwC,CAAC;IAE7C,MAAM,CAAC,GAAG,EAAE;QACV,qBAAqB,GAAG,IAAI,2BAAY,EAAE,CAAC,SAAS,EAAE,CAAC,mBAAmB,CAAC;YACzE,GAAG,EAAE,mBAAmB;YACxB,SAAS,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC,CAAC;QACH,MAAM,EACJ,eAAe,EAAE,WAAW,EAC5B,YAAY,EAAE,QAAQ,EACtB,SAAS,EAAE,aAAa,EACxB,cAAc,EAAE,kBAAkB,GACnC,GAAG,IAAA,iCAAoB,EAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QACjE,eAAe,GAAG,WAAW,CAAC;QAC9B,YAAY,GAAG,QAAQ,CAAC;QACxB,SAAS,GAAG,aAAa,CAAC;QAC1B,cAAc,GAAG,kBAAkB,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,cAAc,CAAC,YAAY,CAAC,sBAAS,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH;;;;;;;OAOG;IACH,SAAS,UAAU,CAAC,OAAe,EAAE,QAAiB;QACpD,IAAI,OAA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,CAAC;YAC5D,MAAM,CAAC,WAAW,CACf,MAAM,CAAC,QAA0B,CAAC,KAAK,EACxC,oDAAoD,sBAAS,aAAa,sBAAS,GAAG,CACvF,CAAC;YACF,IAAA,aAAM,EAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;YAEvC,aAAa;YACb,OAAO,GAAG,+BAA+B,CAAC;YAC1C,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;YACnC,MAAM,CAAC,WAAW,CAAC,2CAAa,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;YAC5D,MAAM,CAAC,WAAW,CACf,MAAM,CAAC,QAA0B,CAAC,KAAK,EACxC,sDAAsD,sBAAS,aAAa,sBAAS,GAAG,CACzF,CAAC;YACF,IAAA,aAAM,EAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,EAAE,CAAC,sCAAsC,EAAE,KAAK,IAAI,EAAE;YACpD,MAAM,OAAO,GACX,gHAAgH,CAAC,CAAC,oBAAoB;YACxI,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;YACzC,IAAA,aAAM,EAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;YACvC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js" index eade9133a1a24b3acff07851cb7f792662bfa1ef..0f0dc82e0c7e35b65b950bef1424af27923c7603 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js" @@ -1,3 +1,293 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dce1e7a5d6c27b26de198ba19804e77dafb267ed75163ef81f812fc0da51346d -size 14130 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const assert = require("assert"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const yamlSettings_1 = require("../src/yamlSettings"); +// Defines a Mocha test describe to group tests of similar kind together +describe('Kubernetes Integration Tests', () => { + let languageSettingsSetup; + let languageHandler; + let validationHandler; + let yamlSettings; + before(() => { + const uri = 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.22.4-standalone-strict/all.json'; + const fileMatch = ['*.yml', '*.yaml']; + languageSettingsSetup = new serviceSetup_1.ServiceSetup() + .withHover() + .withValidate() + .withCompletion() + .withSchemaFileMatch({ + fileMatch, + uri, + }) + .withKubernetes(); + const { validationHandler: valHandler, languageHandler: langHandler, yamlSettings: settings, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + languageHandler = langHandler; + yamlSettings = settings; + }); + // Tests for validator + describe('Yaml Validation with kubernetes', function () { + function parseSetup(content) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + yamlSettings.specificValidatorPaths = ['*.yml', '*.yaml']; + return validationHandler.validateTextDocument(testTextDocument); + } + //Validating basic nodes + describe('Test that validation does not throw errors', function () { + it('Basic test', (done) => { + const content = 'apiVersion: v1'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Basic test on nodes with children', (done) => { + const content = 'metadata:\n name: hello'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Advanced test on nodes with children', (done) => { + const content = 'apiVersion: v1\nmetadata:\n name: test1'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type string validates under children', (done) => { + const content = 'apiVersion: v1\nkind: Pod\nmetadata:\n resourceVersion: test'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + describe('Type tests', function () { + it('Type String does not error on valid node', (done) => { + const content = 'apiVersion: v1'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type Boolean does not error on valid node', (done) => { + const content = 'readOnlyRootFilesystem: false'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type Number does not error on valid node', (done) => { + const content = 'generation: 5'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type Object does not error on valid node', (done) => { + const content = 'metadata:\n clusterName: tes'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type Array does not error on valid node', (done) => { + const content = 'items:\n - apiVersion: v1'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + }); + /** + * Removed these tests because the schema pulled in from + * https://github.com/redhat-developer/yaml-language-server/pull/108 + * No longer has those types of validation + */ + // describe('Test that validation DOES throw errors', function () { + // it('Error when theres no value for a node', done => { + // const content = 'apiVersion:'; + // const validator = parseSetup(content); + // validator.then(function (result){ + // assert.notEqual(result.length, 0); + // }).then(done, done); + // }); + // it('Error on incorrect value type (number)', done => { + // const content = 'apiVersion: 1000'; + // const validator = parseSetup(content); + // validator.then(function (result){ + // assert.notEqual(result.length, 0); + // }).then(done, done); + // }); + // it('Error on incorrect value type (boolean)', done => { + // const content = 'apiVersion: False'; + // const validator = parseSetup(content); + // validator.then(function (result){ + // assert.notEqual(result.length, 0); + // }).then(done, done); + // }); + // it('Error on incorrect value type (string)', done => { + // const content = 'isNonResourceURL: hello_world'; + // const validator = parseSetup(content); + // validator.then(function (result){ + // assert.notEqual(result.length, 0); + // }).then(done, done); + // }); + // it('Error on incorrect value type (object)', done => { + // const content = 'apiVersion: v1\nkind: Pod\nmetadata:\n name: False'; + // const validator = parseSetup(content); + // validator.then(function (result){ + // assert.notEqual(result.length, 0); + // }).then(done, done); + // }); + // it('Error on incorrect value type in multiple yaml documents', done => { + // const content = '---\napiVersion: v1\n...\n---\napiVersion: False\n...'; + // const validator = parseSetup(content); + // validator.then(function (result){ + // assert.notEqual(result.length, 0); + // }).then(done, done); + // }); + // it('Property error message should be \"Property unknown_node is not allowed.\" when property is not allowed ', done => { + // const content = 'unknown_node: test'; + // const validator = parseSetup(content); + // validator.then(function (result){ + // assert.equal(result.length, 1); + // assert.equal(result[0].message, 'Property unknown_node is not allowed.'); + // }).then(done, done); + // }); + // }); + }); + describe('yamlCompletion with kubernetes', function () { + describe('doComplete', function () { + function parseSetup(content, position) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.completionHandler({ + position: testTextDocument.positionAt(position), + textDocument: testTextDocument, + }); + } + /** + * Known issue: https://github.com/redhat-developer/yaml-language-server/issues/51 + */ + // it('Autocomplete on root node without word', done => { + // const content = ''; + // const completion = parseSetup(content, 0); + // completion.then(function (result){ + // assert.notEqual(result.items.length, 0); + // }).then(done, done); + // }); + // it('Autocomplete on root node with word', done => { + // const content = 'api'; + // const completion = parseSetup(content, 6); + // completion.then(function (result){ + // assert.notEqual(result.items.length, 0); + // }).then(done, done); + // }); + /** + * Removed these tests because the schema pulled in from + * https://github.com/redhat-developer/yaml-language-server/pull/108 + * No longer has those types of completion + */ + // it('Autocomplete on default value (without value content)', done => { + // const content = 'apiVersion: '; + // const completion = parseSetup(content, 10); + // completion.then(function (result){ + // assert.notEqual(result.items.length, 0); + // }).then(done, done); + // }); + it('Autocomplete on default value (with value content)', (done) => { + const content = 'apiVersion: v1\nkind: Depl'; + const completion = parseSetup(content, 19); + completion + .then(function (result) { + assert.notEqual(result.items.length, 0); + }) + .then(done, done); + }); + it('Autocomplete on boolean value (without value content)', (done) => { + const content = 'spec:\n allowPrivilegeEscalation: '; + const completion = parseSetup(content, 38); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + }) + .then(done, done); + }); + it('Autocomplete on boolean value (with value content)', (done) => { + const content = 'spec:\n allowPrivilegeEscalation: fal'; + const completion = parseSetup(content, 43); + completion + .then(function (result) { + assert.equal(result.items.length, 2); + }) + .then(done, done); + }); + it('Autocomplete key in middle of file', (done) => { + const content = 'metadata:\n nam'; + const completion = parseSetup(content, 14); + completion + .then(function (result) { + assert.notEqual(result.items.length, 0); + }) + .then(done, done); + }); + it('Autocomplete key in middle of file 2', (done) => { + const content = 'metadata:\n name: test\n cluster'; + const completion = parseSetup(content, 31); + completion + .then(function (result) { + assert.notEqual(result.items.length, 0); + }) + .then(done, done); + }); + }); + }); + describe('yamlHover with kubernetes', function () { + function parseSetup(content, offset) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.hoverHandler({ + position: testTextDocument.positionAt(offset), + textDocument: testTextDocument, + }); + } + it('Hover on incomplete kubernetes document', async () => { + const content = 'apiVersion: v1\nmetadata:\n name: test\nkind: Deployment\nspec:\n '; + const hover = await parseSetup(content, 58); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(hover?.contents), true); + assert.strictEqual((hover?.contents).value, ''); + }); + }); +}); +//# sourceMappingURL=integration.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js.map" index 403d00acc87cd155ba93303a30cfce2e2942640c..b2ebeaefe7505789c727b9355463adc472aee82c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/integration.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:49309f7ce051d20c54ef2f19b633ac63ed4d2c809496701ecd7325b738cf47f1 -size 7811 +{"version":3,"file":"integration.test.js","sourceRoot":"","sources":["../../../test/integration.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAA6E;AAC7E,iCAAiC;AACjC,6EAA+F;AAC/F,uDAAoD;AAEpD,sDAA6E;AAG7E,wEAAwE;AACxE,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,IAAI,qBAAmC,CAAC;IACxC,IAAI,eAAiC,CAAC;IACtC,IAAI,iBAAoC,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AI,CAAC,CAAC;YAC5D,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,QAA0B,CAAA,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js" index ae6ab89837f8f19ac94c57dd25f527d1fe4bd766..317eb08b361b53b25ffac4faa2da2b268dada030 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js" @@ -1,3 +1,1663 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b8b2f36025cea24d9607c5f8cfccea2e62591213a05a376ad7f1166ee7119f5 -size 64071 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * 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. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const jsonParser07_1 = require("./../src/languageservice/parser/jsonParser07"); +const vscode_json_languageservice_1 = require("vscode-json-languageservice"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +describe('JSON Parser', () => { + function isValid(json) { + const { jsonDoc } = toDocument(json); + assert.equal(jsonDoc.syntaxErrors.length, 0); + } + function isInvalid(json, ...expectedErrors) { + const { jsonDoc } = toDocument(json); + if (expectedErrors.length === 0) { + assert.ok(jsonDoc.syntaxErrors.length > 0, json); + } + else { + assert.deepEqual(jsonDoc.syntaxErrors.map((e) => e.code), expectedErrors, json); + } + // these should be caught by the parser, not the last-ditch guard + assert.notEqual(jsonDoc.syntaxErrors[0].message, 'Invalid JSON', json); + } + function toDocument(text) { + const textDoc = vscode_languageserver_types_1.TextDocument.create('foo://bar/file.json', 'json', 0, text); + const ls = (0, vscode_json_languageservice_1.getLanguageService)({}); + const jsonDoc = ls.parseJSONDocument(textDoc); + return { textDoc, jsonDoc }; + } + function toRange(text, offset, length) { + const textDoc = vscode_languageserver_types_1.TextDocument.create('foo://bar/file.json', 'json', 0, text); + return vscode_languageserver_types_1.Range.create(textDoc.positionAt(offset), textDoc.positionAt(offset + length)); + } + function validate(text, schema) { + const { textDoc, jsonDoc } = toDocument(text); + return jsonDoc.validate(textDoc, schema); + } + function assertObject(node, expectedProperties) { + assert.equal(node.type, 'object'); + assert.equal(node.properties.length, expectedProperties.length); + const keyList = node.properties.map((p) => p.keyNode.value); + assert.deepEqual(keyList, expectedProperties); + } + it('Invalid body', function () { + const { jsonDoc } = toDocument('*'); + assert.equal(jsonDoc.syntaxErrors.length, 1); + isInvalid('{}[]'); + }); + it('Trailing Whitespace', function () { + isValid('{}\n\n'); + }); + it('No content', function () { + isValid(''); + isValid(' '); + isValid('\n\n'); + isValid('/*hello*/ '); + }); + it('Objects', function () { + isValid('{}'); + isValid('{"key": "value"}'); + isValid('{"key1": true, "key2": 3, "key3": [null], "key4": { "nested": {}}}'); + isValid('{"constructor": true }'); + isInvalid('{'); + isInvalid('{3:3}'); + isInvalid("{'key': 3}"); + isInvalid('{"key" 3}', vscode_json_languageservice_1.ErrorCode.ColonExpected); + isInvalid('{"key":3 "key2": 4}', vscode_json_languageservice_1.ErrorCode.CommaExpected); + isInvalid('{"key":42, }', vscode_json_languageservice_1.ErrorCode.TrailingComma); + isInvalid('{"key:42', vscode_json_languageservice_1.ErrorCode.UnexpectedEndOfString, vscode_json_languageservice_1.ErrorCode.ColonExpected); + }); + it('Arrays', function () { + isValid('[]'); + isValid('[1, 2]'); + isValid('[1, "string", false, {}, [null]]'); + isInvalid('['); + isInvalid('[,]', vscode_json_languageservice_1.ErrorCode.ValueExpected); + isInvalid('[1 2]', vscode_json_languageservice_1.ErrorCode.CommaExpected); + isInvalid('[true false]', vscode_json_languageservice_1.ErrorCode.CommaExpected); + isInvalid('[1, ]', vscode_json_languageservice_1.ErrorCode.TrailingComma); + isInvalid('[[]', vscode_json_languageservice_1.ErrorCode.CommaOrCloseBacketExpected); + isInvalid('["something"'); + isInvalid('[magic]'); + }); + it('Strings', function () { + isValid('["string"]'); + isValid('["\\"\\\\\\/\\b\\f\\n\\r\\t\\u1234\\u12AB"]'); + isValid('["\\\\"]'); + isInvalid('["'); + isInvalid('["]'); + isInvalid('["\\z"]'); + isInvalid('["\\u"]'); + isInvalid('["\\u123"]'); + isInvalid('["\\u123Z"]'); + isInvalid("['string']"); + isInvalid('"\tabc"', vscode_json_languageservice_1.ErrorCode.InvalidCharacter); + }); + it('Numbers', function () { + isValid('[0, -1, 186.1, 0.123, -1.583e+4, 1.583E-4, 5e8]'); + isInvalid('[+1]'); + isInvalid('[01]'); + isInvalid('[1.]'); + isInvalid('[1.1+3]'); + isInvalid('[1.4e]'); + isInvalid('[-A]'); + }); + it('Comments', function () { + isValid('/*d*/ { } /*e*/'); + isInvalid('/*d { }'); + }); + it('Simple AST', function () { + { + const { jsonDoc } = toDocument('{}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const node = jsonDoc.getNodeFromOffset(1); + assert.equal(node.type, 'object'); + assert.strictEqual(jsonDoc.getNodeFromOffset(2), undefined); + } + { + const { jsonDoc } = toDocument('[null]'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const node = jsonDoc.getNodeFromOffset(2); + assert.equal(node.type, 'null'); + } + { + const { jsonDoc } = toDocument('{"a":true}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + let node = jsonDoc.getNodeFromOffset(3); + assert.equal(node.type, 'string'); + node = jsonDoc.getNodeFromOffset(4); + assert.equal(node.type, 'property'); + node = jsonDoc.getNodeFromOffset(0); + assert.equal(node.type, 'object'); + node = jsonDoc.getNodeFromOffset(10); + assert.equal(node, undefined); + node = jsonDoc.getNodeFromOffset(5); + assert.equal(node.type, 'boolean'); + } + }); + it('Nested AST', function () { + const content = '{\n\t"key" : {\n\t"key2": 42\n\t}\n}'; + const { jsonDoc } = toDocument(content); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + }); + it('Nested AST in Array', function () { + const { jsonDoc } = toDocument('{"key":[{"key2":42}]}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + }); + it('Multiline', function () { + { + const content = '{\n\t\n}'; + const { jsonDoc } = toDocument(content); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const node = jsonDoc.getNodeFromOffset(content.indexOf('\t') + 1); + assert.notEqual(node, null); + } + { + const content = '{\n"first":true\n\n}'; + const { jsonDoc } = toDocument(content); + let node = jsonDoc.getNodeFromOffset(content.length - 2); + assert.equal(node.type, 'object'); + node = jsonDoc.getNodeFromOffset(content.length - 4); + assert.equal(node.type, 'boolean'); + } + }); + it('Expand errors to entire tokens', function () { + const content = '{\n"key":32,\nerror\n}'; + const { jsonDoc } = toDocument(content); + assert.equal(jsonDoc.syntaxErrors.length, 2); + assert.deepEqual(jsonDoc.syntaxErrors[0].range, toRange(content, content.indexOf('error'), 5)); + }); + it('Errors at the end of the file', function () { + const content = '{\n"key":32\n '; + const { jsonDoc } = toDocument(content); + assert.equal(jsonDoc.syntaxErrors.length, 1); + assert.deepEqual(jsonDoc.syntaxErrors[0].range, toRange(content, 9, 1)); + }); + it('Getting keys out of an object', function () { + const content = '{\n"key":32,\n\n"key2":45}'; + const { jsonDoc } = toDocument(content); + assert.equal(jsonDoc.syntaxErrors.length, 0); + const node = jsonDoc.getNodeFromOffset(content.indexOf('32,\n') + 4); + assertObject(node, ['key', 'key2']); + }); + it('Missing colon', function () { + const content = '{\n"key":32,\n"key2"\n"key3": 4 }'; + const { jsonDoc } = toDocument(content); + assert.equal(jsonDoc.syntaxErrors.length, 1); + assert.equal(jsonDoc.syntaxErrors[0].code, vscode_json_languageservice_1.ErrorCode.ColonExpected); + const root = jsonDoc.root; + assertObject(root, ['key', 'key2', 'key3']); + }); + it('Missing comma', function () { + const content = '{\n"key":32,\n"key2": 1 \n"key3": 4 }'; + const { jsonDoc } = toDocument(content); + assert.equal(jsonDoc.syntaxErrors.length, 1); + assert.equal(jsonDoc.syntaxErrors[0].code, vscode_json_languageservice_1.ErrorCode.CommaExpected); + assertObject(jsonDoc.root, ['key', 'key2', 'key3']); + }); + it('Validate types', function () { + const str = '{"number": 3.4, "integer": 42, "string": "some string", "boolean":true, "null":null, "object":{}, "array":[1, 2]}'; + const { textDoc, jsonDoc } = toDocument(str); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + let semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'array', + }); + assert.strictEqual(semanticErrors.length, 1); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + number: { + type: 'number', + }, + integer: { + type: 'integer', + }, + string: { + type: 'string', + }, + boolean: { + type: 'boolean', + }, + null: { + type: 'null', + }, + object: { + type: 'object', + }, + array: { + type: 'array', + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + number: { + type: 'array', + }, + integer: { + type: 'string', + }, + string: { + type: 'object', + }, + boolean: { + type: 'null', + }, + null: { + type: 'integer', + }, + object: { + type: 'boolean', + }, + array: { + type: 'number', + }, + }, + }); + assert.strictEqual(semanticErrors.length, 7); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + number: { + type: 'integer', + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + integer: { + type: 'number', + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + array: { + type: 'array', + items: { + type: 'integer', + }, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + array: { + type: 'array', + items: { + type: 'string', + }, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 2); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + array: false, + }, + }); + assert.strictEqual(semanticErrors.length, 1); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + array: true, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + }); + it('Required properties', function () { + const str = '{"integer": 42, "string": "some string", "boolean":true}'; + const { textDoc, jsonDoc } = toDocument(str); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + let semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + required: ['string'], + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + required: ['notpresent'], + }); + assert.strictEqual(semanticErrors.length, 1); + }); + it('Arrays', function () { + const str = '[1, 2, 3]'; + const { textDoc, jsonDoc } = toDocument(str); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + let semanticErrors = jsonDoc.validate(textDoc, { + type: 'array', + items: { + type: 'number', + }, + minItems: 1, + maxItems: 5, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'array', + items: { + type: 'number', + }, + minItems: 10, + }); + assert.strictEqual(semanticErrors.length, 1); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'array', + items: { + type: 'number', + }, + maxItems: 2, + }); + assert.strictEqual(semanticErrors.length, 1); + }); + it('Strings', function () { + const str = '{"one":"test"}'; + const { textDoc, jsonDoc } = toDocument(str); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + let semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'string', + minLength: 1, + maxLength: 10, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'string', + minLength: 10, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'string', + maxLength: 3, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'string', + pattern: '^test$', + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'string', + pattern: 'fail', + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1); + const schemaWithURI = { + type: 'object', + properties: { + one: { + type: 'string', + format: 'uri', + }, + }, + }; + semanticErrors = jsonDoc.validate(textDoc, schemaWithURI); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'String is not a URI: URI with a scheme is expected.'); + semanticErrors = validate('{"one":"http://foo/bar"}', schemaWithURI); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = validate('{"one":""}', schemaWithURI); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'String is not a URI: URI expected.'); + semanticErrors = validate('{"one":"//foo/bar"}', schemaWithURI); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'String is not a URI: URI with a scheme is expected.'); + const schemaWithURIReference = { + type: 'object', + properties: { + one: { + type: 'string', + format: 'uri-reference', + }, + }, + }; + semanticErrors = validate('{"one":""}', schemaWithURIReference); + assert.strictEqual(semanticErrors.length, 1, 'uri-reference'); + assert.strictEqual(semanticErrors[0].message, 'String is not a URI: URI expected.'); + semanticErrors = validate('{"one":"//foo/bar"}', schemaWithURIReference); + assert.strictEqual(semanticErrors.length, 0, 'uri-reference'); + const schemaWithEMail = { + type: 'object', + properties: { + mail: { + type: 'string', + format: 'email', + }, + }, + }; + semanticErrors = validate('{"mail":"foo@bar.com"}', schemaWithEMail); + assert.strictEqual(semanticErrors.length, 0, 'email'); + semanticErrors = validate('{"mail":"foo"}', schemaWithEMail); + assert.strictEqual(semanticErrors.length, 1, 'email'); + assert.strictEqual(semanticErrors[0].message, 'String is not an e-mail address.'); + const schemaWithColor = { + type: 'object', + properties: { + color: { + type: 'string', + format: 'color-hex', + }, + }, + }; + semanticErrors = validate('{"color":"#FF00FF"}', schemaWithColor); + assert.strictEqual(semanticErrors.length, 0, 'email'); + semanticErrors = validate('{"color":"#FF00F"}', schemaWithColor); + assert.strictEqual(semanticErrors.length, 1, 'email'); + assert.strictEqual(semanticErrors[0].message, 'Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.'); + const schemaWithDateTime = { + type: 'object', + properties: { + 'date-time': { + type: 'string', + format: 'date-time', + }, + date: { + type: 'string', + format: 'date', + }, + time: { + type: 'string', + format: 'time', + }, + }, + }; + semanticErrors = validate('{"date-time":"1985-04-12T23:20:50.52Z"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 0, 'date-time'); + semanticErrors = validate('{"date-time":"1996-12-19T16:39:57-08:00"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 0, 'date-time'); + semanticErrors = validate('{"date-time":"1990-12-31T23:59:60Z"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 0, 'date-time'); + semanticErrors = validate('{"date-time":"1937-01-01T12:00:27.87+00:20"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 0, 'date-time'); + semanticErrors = validate('{"date-time":"198a-04-12T23:20:50.52Z"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 1, 'date-time'); + assert.strictEqual(semanticErrors[0].message, 'String is not a RFC3339 date-time.'); + semanticErrors = validate('{"date-time":"198a-04-12"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 1, 'date-time'); + assert.strictEqual(semanticErrors[0].message, 'String is not a RFC3339 date-time.'); + semanticErrors = validate('{"date-time":""}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 1, 'date-time'); + assert.strictEqual(semanticErrors[0].message, 'String is not a RFC3339 date-time.'); + semanticErrors = validate('{"date":"1937-01-01"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 0, 'date'); + semanticErrors = validate('{"date":"23:20:50.52Z"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 1, 'date'); + assert.strictEqual(semanticErrors[0].message, 'String is not a RFC3339 date.'); + semanticErrors = validate('{"time":"23:20:50.52Z"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 0, 'time'); + semanticErrors = validate('{"time":"198a-04-12T23:20:50.52Z"}', schemaWithDateTime); + assert.strictEqual(semanticErrors.length, 1, 'time'); + assert.strictEqual(semanticErrors[0].message, 'String is not a RFC3339 time.'); + }); + it('Numbers', function () { + const str = '{"one": 13.45e+1}'; + const { textDoc, jsonDoc } = toDocument(str); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + let semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + minimum: 1, + maximum: 135, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + minimum: 200, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1, 'below minimum'); + assert.strictEqual(semanticErrors[0].message, 'Value is below the minimum of 200.'); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + maximum: 130, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1, 'above maximum'); + assert.strictEqual(semanticErrors[0].message, 'Value is above the maximum of 130.'); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + minimum: 134.5, + exclusiveMinimum: true, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1, 'at exclusive mininum'); + assert.strictEqual(semanticErrors[0].message, 'Value is below the exclusive minimum of 134.5.'); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + minimum: 134.5, + exclusiveMinimum: false, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + exclusiveMinimum: 134.5, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1, 'at exclusive mininum'); + assert.strictEqual(semanticErrors[0].message, 'Value is below the exclusive minimum of 134.5.'); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + maximum: 134.5, + exclusiveMaximum: true, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1, 'at exclusive mininum'); + assert.strictEqual(semanticErrors[0].message, 'Value is above the exclusive maximum of 134.5.'); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + maximum: 134.5, + exclusiveMaximum: false, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + exclusiveMaximum: 134.5, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 1, 'at exclusive mininum'); + assert.strictEqual(semanticErrors[0].message, 'Value is above the exclusive maximum of 134.5.'); + semanticErrors = jsonDoc.validate(textDoc, { + type: 'object', + properties: { + one: { + type: 'number', + minimum: 134.5, + maximum: 134.5, + }, + }, + }); + assert.strictEqual(semanticErrors.length, 0, 'equal to min and max'); + }); + it('getNodeFromOffset', function () { + const content = '{"a": 1,\n\n"d": 2}'; + const { jsonDoc } = toDocument(content); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const node = jsonDoc.getNodeFromOffset(content.indexOf(': 2') + 1); + assert.strictEqual(node.type, 'property'); + }); + it('Duplicate keys', function () { + { + const { jsonDoc } = toDocument('{"a": 1, "a": 2}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 2, 'Keys should not be the same'); + } + { + const { jsonDoc } = toDocument('{"a": { "a": 2, "a": 3}}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 2, 'Keys should not be the same'); + } + { + const { jsonDoc } = toDocument('[{ "a": 2, "a": 3, "a": 7}]'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 3, 'Keys should not be the same'); + } + }); + it('allOf', function () { + const schema = { + id: 'test://schemas/main', + allOf: [ + { + type: 'object', + }, + { + properties: { + prop1: { + type: 'number', + }, + }, + }, + { + properties: { + prop2: { + type: 'boolean', + }, + }, + }, + ], + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": true}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": 123}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('anyOf', function () { + const schema = { + id: 'test://schemas/main', + anyOf: [ + { + properties: { + prop1: { + type: 'number', + }, + }, + }, + { + properties: { + prop2: { + type: 'boolean', + }, + }, + }, + ], + }; + { + const str = '{"prop1": 42, "prop2": true}'; + const { textDoc, jsonDoc } = toDocument(str); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": 123}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": "a string", "prop2": 123}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('oneOf', function () { + const schema = { + id: 'test://schemas/main', + oneOf: [ + { + properties: { + prop1: { + type: 'number', + }, + }, + }, + { + properties: { + prop2: { + type: 'boolean', + }, + }, + }, + ], + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": true}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": 123}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": "a string", "prop2": 123}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('not', function () { + const schema = { + id: 'test://schemas/main', + not: { + properties: { + prop1: { + type: 'number', + }, + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": "test"}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + }); + it('if/then/else', function () { + const schema = { + id: 'test://schemas/main', + if: { + properties: { + foo: { + const: 'bar', + }, + }, + }, + then: { + properties: { + abc: { + type: 'boolean', + }, + }, + }, + else: { + properties: { + abc: { + type: 'string', + }, + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"foo": "bar", "abc": true}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "bar", "abc": "baz"}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "test", "abc": true}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "test", "abc": "baz"}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + }); + it('nested if/then/else', function () { + const schema = { + id: 'test://schemas/main', + if: { + properties: { + foo: { + const: 'bar', + }, + }, + }, + then: { + properties: { + abc: { + type: 'boolean', + }, + }, + }, + else: { + if: { + properties: { + foo: { + const: 'baz', + }, + }, + }, + then: { + properties: { + abc: { + type: 'array', + }, + }, + }, + else: { + properties: { + abc: { + type: 'string', + }, + }, + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"foo": "bar", "abc": true}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "bar", "abc": "baz"}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "baz", "abc": []}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "baz", "abc": "baz"}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "test", "abc": true}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"foo": "test", "abc": "baz"}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + }); + it('minProperties', function () { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": true}'); + const schema = { + minProperties: 2, + }; + let semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + schema.minProperties = 1; + semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + schema.minProperties = 3; + semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + }); + it('maxProperties', function () { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": true}'); + const schema = { + maxProperties: 2, + }; + let semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + schema.maxProperties = 3; + semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + schema.maxProperties = 1; + semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + }); + it('patternProperties', function () { + let schema = { + id: 'test://schemas/main', + patternProperties: { + '^prop\\d$': { + type: 'number', + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": 42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": 123, "aprop3": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + schema = { + id: 'test://schemas/main', + patternProperties: { + '^prop\\d$': true, + '^invalid$': false, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42 }'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"invalid": 42 }'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('additionalProperties', function () { + let schema = { + additionalProperties: { + type: 'number', + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": 42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": 42, "prop2": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + schema = { + properties: { + prop1: { + type: 'boolean', + }, + }, + additionalProperties: { + type: 'number', + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": true, "prop2": 42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + schema = { + properties: { + prop1: { + type: 'boolean', + }, + }, + additionalProperties: false, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop1": true, "prop2": 42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop1": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + }); + it('enum', function () { + let schema = { + properties: { + prop: { + enum: ['violin', 'harmonica', 'banjo'], + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop": "harmonica"}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop": "harp"}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + schema = { + properties: { + prop: { + enum: [1, 42, 999], + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop": 42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop": 1337}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + schema = { + properties: { + prop: { + enum: ['violin', { name: 'David' }, null], + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop": { "name": "David" }}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + }); + it('const', function () { + const schema = { + properties: { + prop: { + const: 'violin', + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop": "violin"}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop": "harmonica"}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].code, vscode_json_languageservice_1.ErrorCode.EnumValueMismatch); + } + { + const schema = { + properties: { + prop: { + const: { foo: 2 }, + }, + }, + }; + const { textDoc, jsonDoc } = toDocument('{"prop": { "foo": 2 }'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + }); + it('oneOf const', function () { + const schema = { + properties: { + prop: { + oneOf: [ + { + const: 0, + title: 'Value of 0', + }, + { + const: 1, + title: 'Value of 1', + }, + { + const: 2, + title: 'Value of 2', + }, + ], + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop": 0}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop": 4}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].code, vscode_json_languageservice_1.ErrorCode.EnumValueMismatch); + } + }); + it('propertyNames', function () { + const schema = { + propertyNames: { + type: 'string', + minLength: 2, + maxLength: 6, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"violin": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"harmonica": false, "violin": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'String is longer than the maximum length of 6.'); + } + }); + it('uniqueItems', function () { + const { textDoc, jsonDoc } = toDocument('[1, 2, 3]'); + const schema = { + type: 'array', + uniqueItems: true, + }; + { + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('[1, 2, 3, 2]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + { + const { textDoc, jsonDoc } = toDocument('[1, 2, "string", 52, "string"]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('containsItem', function () { + const schema = { + type: 'array', + contains: { type: 'number', const: 3 }, + }; + { + const { textDoc, jsonDoc } = toDocument('[1, 2, 3]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('[1, 2, 5]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('items as array', function () { + const schema = { + type: 'array', + items: [ + { + type: 'integer', + }, + { + type: 'boolean', + }, + { + type: 'string', + }, + ], + }; + { + const { textDoc, jsonDoc } = toDocument('[1, true, "string"]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('["string", 1, true]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 3); + } + { + const { textDoc, jsonDoc } = toDocument('[1, true, "string", "another", 42]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + }); + it('additionalItems', function () { + let schema = { + type: 'array', + items: [ + { + type: 'integer', + }, + { + type: 'boolean', + }, + { + type: 'string', + }, + ], + additionalItems: false, + }; + { + const { textDoc, jsonDoc } = toDocument('[1, true, "string"]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('[1, true, "string", 42]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + schema = { + type: 'array', + items: [ + { + type: 'integer', + }, + { + type: 'boolean', + }, + { + type: 'string', + }, + ], + additionalItems: { + type: 'boolean', + }, + }; + { + const { textDoc, jsonDoc } = toDocument('[1, true, "string"]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('[1, true, "string", false, true]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('[1, true, "string", true, "Hello"]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('multipleOf', function () { + const schema = { + type: 'array', + items: { + type: 'integer', + multipleOf: 2, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('[42]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('[43]'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('dependencies with array', function () { + const schema = { + type: 'object', + properties: { + a: { + type: 'boolean', + }, + }, + dependencies: { + a: ['b'], + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"a":true, "b":42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"a":true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('dependencies with schema', function () { + const schema = { + type: 'object', + properties: { + a: { + type: 'boolean', + }, + }, + dependencies: { + a: { + properties: { + b: { + type: 'integer', + }, + }, + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"a":true, "b":42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"a":true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"a":true, "b": "string"}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('type as array', function () { + const schema = { + type: 'object', + properties: { + prop: { + type: ['number', 'string'], + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"prop": 42}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop": "string"}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + } + { + const { textDoc, jsonDoc } = toDocument('{"prop": true}'); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + } + }); + it('deprecated', function () { + const { textDoc, jsonDoc } = toDocument('{"prop": 42}'); + const schema = { + type: 'object', + properties: { + prop: { + deprecationMessage: 'Prop is deprecated', + }, + }, + }; + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + }); + it('Strings with spaces', function () { + const { jsonDoc } = toDocument('{"key1":"first string", "key2":["second string"]}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + let node = jsonDoc.getNodeFromOffset(9); + assert.strictEqual((0, jsonParser07_1.getNodeValue)(node), 'first string'); + node = jsonDoc.getNodeFromOffset(34); + assert.strictEqual((0, jsonParser07_1.getNodeValue)(node), 'second string'); + }); + it('Schema information on node', function () { + const { jsonDoc } = toDocument('{"key":42}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const schema = { + type: 'object', + properties: { + key: { + oneOf: [ + { + type: 'number', + description: 'this is a number', + }, + { + type: 'string', + description: 'this is a string', + }, + ], + }, + }, + }; + const node = jsonDoc.getNodeFromOffset(7); + assert.strictEqual(node.type, 'number'); + assert.strictEqual((0, jsonParser07_1.getNodeValue)(node), 42); + const matchingSchemas = jsonDoc.getMatchingSchemas(schema); + const schemas = matchingSchemas.filter((s) => s.node === node && !s.inverted).map((s) => s.schema); + assert.ok(Array.isArray(schemas)); + // 0 is the most specific schema, + // 1 is the schema that contained the "oneOf" clause, + assert.strictEqual(schemas.length, 2); + assert.strictEqual(schemas[0].description, 'this is a number'); + }); + it('parse with comments', function () { + function parse(v) { + const { jsonDoc } = toDocument(v); + assert.equal(jsonDoc.syntaxErrors.length, 0); + return (0, jsonParser07_1.getNodeValue)(jsonDoc.root); + } + let value = parse('// comment\n{\n"far": "boo"\n}'); + assert.equal(value.far, 'boo'); + value = parse('/* comm\nent\nent */\n{\n"far": "boo"\n}'); + assert.equal(value.far, 'boo'); + value = parse('{\n"far": "boo"\n}'); + assert.equal(value.far, 'boo'); + }); + it('parse with comments collected', function () { + function assertParse(v, expectedComments) { + const { jsonDoc } = toDocument(v); + assert.equal(jsonDoc.comments.length, expectedComments); + } + assertParse('// comment\n{\n"far": "boo"\n}', 1); + assertParse('/* comm\nent\nent */\n{\n"far": "boo"\n}', 1); + assertParse('{\n"far": "boo"\n}', 0); + }); + it('validate alternatives', function () { + const schema = { + type: 'object', + properties: { + key: { + oneOf: [ + { + type: 'object', + properties: { + type: { + enum: ['foo'], + }, + prop1: { + type: 'boolean', + }, + prop2: { + type: 'boolean', + }, + }, + }, + { + type: 'object', + properties: { + type: { + enum: ['bar'], + }, + prop2: { + type: 'number', + }, + }, + }, + ], + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"key":{"type":"foo", "prop2":1 }}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'Incorrect type. Expected "boolean".'); + } + { + const { textDoc, jsonDoc } = toDocument('{"key":{"type":"bar", "prop1":true, "prop2":false }}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'Incorrect type. Expected "number".'); + } + }); + it('validate alternatives 2', function () { + const schema = { + type: 'object', + properties: { + key: { + oneOf: [ + { + type: 'object', + properties: { + type: { + enum: ['foo'], + }, + prop1: { + enum: ['v1, v2'], + }, + prop2: { + enum: ['w1', 'w2'], + }, + }, + }, + { + type: 'object', + properties: { + type: { + enum: ['bar'], + }, + prop2: { + enum: ['x1', 'x2'], + }, + }, + }, + ], + }, + }, + }; + { + const { textDoc, jsonDoc } = toDocument('{"key":{"type":"foo", "prop2":"x1" }}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'Value is not accepted. Valid values: "w1", "w2".'); + } + { + const { textDoc, jsonDoc } = toDocument('{"key":{"type":"bar", "prop1":"v1", "prop2":"w1" }}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'Value is not accepted. Valid values: "x1", "x2".'); + } + }); + it('enum value merge', function () { + const schema = { + type: 'object', + properties: { + key: { + oneOf: [ + { + enum: ['a', 'b'], + }, + { + enum: ['c', 'd'], + }, + ], + }, + }, + }; + const { textDoc, jsonDoc } = toDocument('{"key":3 }'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 1); + assert.strictEqual(semanticErrors[0].message, 'Value is not accepted. Valid values: "a", "b", "c", "d".'); + }); + it('value matches more than one schema in oneOf', function () { + const schema = { + type: 'object', + properties: { + repository: { + oneOf: [ + { + type: 'string', + format: 'uri', + }, + { + type: 'string', + pattern: '^@', + }, + ], + }, + }, + }; + const { textDoc, jsonDoc } = toDocument('{"repository":"@bitnami"}'); + assert.strictEqual(jsonDoc.syntaxErrors.length, 0); + const semanticErrors = jsonDoc.validate(textDoc, schema); + assert.strictEqual(semanticErrors.length, 0); + }); + it('validate API', async function () { + const { textDoc, jsonDoc } = toDocument('{ "pages": [ "pages/index", "pages/log", ] }'); + const ls = (0, vscode_json_languageservice_1.getLanguageService)({}); + let res = await ls.doValidation(textDoc, jsonDoc); + assert.strictEqual(res.length, 1); + assert.strictEqual(res[0].message, 'Trailing comma'); + res = await ls.doValidation(textDoc, jsonDoc, { trailingCommas: 'error' }); + assert.strictEqual(res.length, 1); + assert.strictEqual(res[0].message, 'Trailing comma'); + res = await ls.doValidation(textDoc, jsonDoc, { trailingCommas: 'ignore' }); + assert.strictEqual(res.length, 0); + const schema = { type: 'object', required: ['foo'] }; + res = await ls.doValidation(textDoc, jsonDoc, { trailingCommas: 'ignore' }, schema); + assert.strictEqual(res.length, 1); + assert.strictEqual(res[0].message, 'Missing property "foo".'); + }); +}); +//# sourceMappingURL=jsonParser.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js.map" index 246eedcf546a3092d9d908caab50efa08ebc9905..6b15707497e27c19cdb0c5d93a5d511f1e369a86 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/jsonParser.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2894b21ef5ecefb36c884e4fe44689c616fb4714c252440d7e685cd46b8deb3c -size 51856 +{"version":3,"file":"jsonParser.test.js","sourceRoot":"","sources":["../../../test/jsonParser.test.ts"],"names":[],"mappings":";AAAA;;;;gGAIgG;;AAEhG,iCAAiC;AACjC,+EAA0F;AAG1F,6EAA4E;AAC5E,6EAA8E;AAE9E,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,SAAS,OAAO,CAAC,IAAY;QAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;QACrC,MAAM,CAAC,KAAK,CAAC,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AC;QAElC,MAAM,MAAM,GAA0B,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5E,GAAG,GAAG,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAC;QACpF,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAClC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js" index e1959f42db88391e177c5c5ec5051ac9f5885be0..493ce06f9369a77c19869596cd36896bd2efe596 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js" @@ -1,3 +1,117 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ef97a817c7c9021efa0d0f1433f98ff6cab2f36e1af0f3ce77010d82da44f32 -size 4773 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const path = require("path"); +const testHelper_1 = require("./utils/testHelper"); +const assert = require("assert"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const yamlSettings_1 = require("../src/yamlSettings"); +/** + * Setup the schema we are going to use with the language settings + */ +// Defines a Mocha test describe to group tests of similar kind together +describe('Multiple Documents Validation Tests', () => { + let languageSettingsSetup; + let languageHandler; + let validationHandler; + let languageService; + let yamlSettings; + before(() => { + const uri = (0, testHelper_1.toFsPath)(path.join(__dirname, './fixtures/customMultipleSchemaSequences.json')); + const fileMatch = ['*.yml', '*.yaml']; + languageSettingsSetup = new serviceSetup_1.ServiceSetup() + .withHover() + .withIndentation(' ') + .withValidate() + .withSchemaFileMatch({ + fileMatch, + uri, + }) + .withCustomTags(['!Test', '!Ref sequence']); + const { languageService: langService, validationHandler: valHandler, languageHandler: langHandler, yamlSettings: settings, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageService = langService; + validationHandler = valHandler; + languageHandler = langHandler; + yamlSettings = settings; + }); + describe('Multiple Documents Validation', function () { + function validatorSetup(content) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + languageService.configure(languageSettingsSetup.languageSettings); + return validationHandler.validateTextDocument(testTextDocument); + } + function hoverSetup(content, position) { + const testTextDocument = (0, testHelper_1.setupTextDocument)(content); + languageService.configure(languageSettingsSetup.languageSettings); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return languageHandler.hoverHandler({ + position: testTextDocument.positionAt(position), + textDocument: testTextDocument, + }); + } + it('Should validate multiple documents', (done) => { + const content = ` +name: jack +age: 22 +--- +cwd: test + `; + const validator = validatorSetup(content); + validator + .then((result) => { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Should find errors in both documents', (done) => { + const content = `name1: jack +age: asd +--- +cwd: False`; + const validator = validatorSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 3); + }) + .then(done, done); + }); + it('Should find errors in first document', (done) => { + const content = `name: jack +age: age +--- +cwd: test`; + const validator = validatorSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + }) + .then(done, done); + }); + it('Should find errors in second document', (done) => { + const content = `name: jack +age: 22 +--- +cwd: False +`; + const validator = validatorSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + }) + .then(done, done); + }); + it('Should hover in first document', async () => { + const content = 'name: jack\nage: 22\n---\ncwd: False'; + const result = await hoverSetup(content, 1 + content.indexOf('age')); + assert.strictEqual(vscode_languageserver_types_1.MarkupContent.is(result.contents), true); + assert.strictEqual(result.contents.kind, 'markdown'); + assert.strictEqual(result.contents.value, 'The age of this person'); + }); + }); +}); +//# sourceMappingURL=multipleDocuments.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js.map" index af1f46f3154b2de165e0cb44736420deeb3660c5..1c1e626ebf062fae27bfa10dadb4773cfa8173ea 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/multipleDocuments.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97f9372a42a3b9edfe54085eec2aa81a505efa0a97dc28f7eadab9282a2960af -size 3334 +{"version":3,"file":"multipleDocuments.test.js","sourceRoot":"","sources":["../../../test/multipleDocuments.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;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AC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js" index ac41aa4b3845e86d2a32ce7c17f7bf33ef057f3d..82b9c195bf87269e35b88222105128c44e2a644d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js" @@ -1,3 +1,110 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ffbaf0086376fb1e4a5f84541e5db695dc4f858d83f71696b951a9368fa63b2c -size 4197 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const objects_1 = require("../src/languageservice/utils/objects"); +const assert = require("assert"); +describe('Object Equals Tests', () => { + describe('Equals', function () { + it('Both are null', () => { + const one = null; + const other = null; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, true); + }); + it('One is null the other is true', () => { + const one = null; + const other = true; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + it('One is string the other is boolean', () => { + const one = 'test'; + const other = false; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + it('One is not object', () => { + const one = 'test'; + const other = false; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + it('One is array the other is not', () => { + const one = new Proxy([], {}); + const other = Object.keys({ + 1: '2', + 2: '3', + }); + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + it('Both are arrays of different length', () => { + const one = [1, 2, 3]; + const other = [1, 2, 3, 4]; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + it('Both are arrays of same elements but in different order', () => { + const one = [1, 2, 3]; + const other = [3, 2, 1]; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + it('Arrays that are equal', () => { + const one = [1, 2, 3]; + const other = [1, 2, 3]; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, true); + }); + it('Objects that are equal', () => { + const one = { + test: 1, + }; + const other = { + test: 1, + }; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, true); + }); + it('Objects that have same keys but different values', () => { + const one = { + test: 1, + }; + const other = { + test: 5, + }; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + it('Objects that have different keys', () => { + const one = { + test_one: 1, + }; + const other = { + test_other: 1, + }; + const result = (0, objects_1.equals)(one, other); + assert.equal(result, false); + }); + }); +}); +describe('Telemetry message conversion test', () => { + it('null values should not cause problems', () => { + assert.doesNotThrow(() => (0, objects_1.convertErrorToTelemetryMsg)(null)); + }); + it('should convert errors with stack correctly', () => { + const e = new Error('Test message'); + const msg = (0, objects_1.convertErrorToTelemetryMsg)(e); + assert.equal(msg, e.stack); + }); + it('should convert errors with no stack correctly', () => { + const e = new Error('Test message'); + e.stack = null; + const msg = (0, objects_1.convertErrorToTelemetryMsg)(e); + assert.equal(msg, e.toString()); + }); +}); +//# sourceMappingURL=objects.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js.map" index 990a7d2609a224c9b9fac0461ed131bdfbb4ac19..f3ffb0484acdddd30c1495722a250d449af3482a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/objects.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:484ce7d950e105e8bc83977022fc34190c9776363027866c5134b42b7b44e92e -size 3917 +{"version":3,"file":"objects.test.js","sourceRoot":"","sources":["../../../test/objects.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,kEAA0F;AAC1F,iCAAiC;AAEjC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,QAAQ,CAAC,QAAQ,EAAE;QACjB,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;YACvB,MAAM,GAAG,GAAG,IAAI,CAAC;YACjB,MAAM,KAAK,GAAG,IAAI,CAAC;YAEnB,MAAM,MAAM,GAAG,IAAA,gBAAM,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAClC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;YACvC,MAAM,GAAG,GAAG,IAAI,CAAC;YACjB,MAAM,KAAK,GAAG,IAAI,CAAC;YAEnB,MAAM,MAAM,GAAG,IAAA,gBAAM,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAClC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;YAC5C,MAAM,GAAG,GAAG,MAAM,CAAC;YACnB,MAAM,KAAK,GAAG,KAAK,CAAC;YAEpB,MAAM,MA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C"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js" index a78705a3bdb039587254ad719056c8c1357a3c02..6e6dc473a367c8a91a82eb3f213064173dccdeec 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js" @@ -1,3 +1,223 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1747cdcd79b89536a111e80b45fd9f7001a74b634def7ab4279bd50bf8ace62e -size 12012 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const path_1 = require("path"); +const paths_1 = require("../src/languageservice/utils/paths"); +const vscode_uri_1 = require("vscode-uri"); +class TestWorkspace { + constructor(workspaceFolders, workspaceRoot) { + this.folders = workspaceFolders; + this.root = vscode_uri_1.URI.parse(workspaceRoot); + } + resolve(relPath) { + return (0, paths_1.relativeToAbsolutePath)(this.folders, this.root, relPath); + } +} +const ws1 = new TestWorkspace([ + { + uri: 'file:///home/aFolder/', + name: 'aFolder', + }, +], 'file:///home/aFolder/'); +const ws2 = new TestWorkspace([ + { + uri: 'file:///usr/testuser/projects/workspace/folder-1/', + name: 'folder-1', + }, + { + uri: 'file:///usr/testuser/projects/workspace/folder-2/', + name: 'folder-2', + }, + { + uri: 'file:///usr/testuser/projects/workspace/folder-3/', + name: 'folder-3', + }, +], 'file:///usr/testuser/projects/workspace/'); +const ws3 = new TestWorkspace([ + { + uri: 'file:///c%3A/Users/testuser/dev/carrots', + name: 'carrots', + }, + { + uri: 'file:///c%3A/Users/testuser/dev/potatoes', + name: 'potatoes', + }, +], 'file:///c%3A/Users/testuser/dev/potatoes'); +const ws4 = new TestWorkspace([ + { + uri: 'file:///c%3A/Users/testuser/dev/test', + name: 'test', + }, + { + uri: 'file:///c%3A/Users/testuser/dev/test2', + name: 'test2', + }, +], 'file:///c%3A/Users/testuser/dev/test2'); +const checkBadPath = (path) => { + it('Rejects "' + path + '"', () => { + assert(!(0, paths_1.isRelativePath)(path)); + }); +}; +const checkGoodPath = (path, expect1, expect2, expect3) => { + describe('Relative path = "' + path + '"', () => { + it('Recognises relative path', () => { + assert((0, paths_1.isRelativePath)(path)); + }); + it('Resolves relative path in single-root workspace', () => { + assert.equal(ws1.resolve(path), expect1); + }); + it('Resolves relative path in multi-root workspace', () => { + assert.equal(ws2.resolve(path), expect2); + }); + it('Resolves relative path in multi-root nested workspace', () => { + assert.equal(ws3.resolve(path), expect3); + }); + }); +}; +describe('File path tests', () => { + describe('Recognises not relative paths', () => { + checkBadPath((0, path_1.join)('/', 'file.json')); + checkBadPath((0, path_1.join)('/', 'absolutepath', 'file.json.')); + checkBadPath((0, path_1.join)('//', 'notrelativepath', 'file.json')); + checkBadPath((0, path_1.join)('C:', 'notrelativepath', 'file.json')); + checkBadPath((0, path_1.join)('directory.json', '/')); + checkBadPath((0, path_1.join)('.', 'dir', 'subdir', '/')); + }); + describe('Recognises and correctly resolves relative paths', () => { + checkGoodPath('file.json', 'file:///home/aFolder/file.json', 'file:///usr/testuser/projects/workspace/file.json', 'file:///c%3A/Users/testuser/dev/potatoes/file.json'); + checkGoodPath('file.long.extension.json', 'file:///home/aFolder/file.long.extension.json', 'file:///usr/testuser/projects/workspace/file.long.extension.json', 'file:///c%3A/Users/testuser/dev/potatoes/file.long.extension.json'); + checkGoodPath((0, path_1.join)('.', 'file.json'), 'file:///home/aFolder/file.json', 'file:///usr/testuser/projects/workspace/file.json', 'file:///c%3A/Users/testuser/dev/potatoes/file.json'); + checkGoodPath((0, path_1.join)('.', 'folder', 'file.json'), 'file:///home/aFolder/folder/file.json', 'file:///usr/testuser/projects/workspace/folder/file.json', 'file:///c%3A/Users/testuser/dev/potatoes/folder/file.json'); + checkGoodPath((0, path_1.join)('.', 'long', 'path', 'to', 'file.json'), 'file:///home/aFolder/long/path/to/file.json', 'file:///usr/testuser/projects/workspace/long/path/to/file.json', 'file:///c%3A/Users/testuser/dev/potatoes/long/path/to/file.json'); + checkGoodPath((0, path_1.join)('..', 'file.json'), 'file:///home/file.json', 'file:///usr/testuser/projects/file.json', 'file:///c%3A/Users/testuser/dev/file.json'); + checkGoodPath((0, path_1.join)('.', 'relativepath', '..', 'file.json'), 'file:///home/aFolder/file.json', 'file:///usr/testuser/projects/workspace/file.json', 'file:///c%3A/Users/testuser/dev/potatoes/file.json'); + checkGoodPath((0, path_1.join)('..', '..', 'relative', 'path', 'file.json'), 'file:///relative/path/file.json', 'file:///usr/testuser/relative/path/file.json', 'file:///c%3A/Users/testuser/relative/path/file.json'); + checkGoodPath((0, path_1.join)('..', '..', 'relative', '@path', 'file.json'), 'file:///relative/%40path/file.json', 'file:///usr/testuser/relative/%40path/file.json', 'file:///c%3A/Users/testuser/relative/%40path/file.json'); + describe('Relative path = a workspace folder', () => { + const path1 = (0, path_1.join)('aFolder', 'file.json'); + const path2 = (0, path_1.join)('folder-2', 'file.json'); + const path3 = (0, path_1.join)('carrots', 'file.json'); + const path4 = (0, path_1.join)('test', 'test.json'); + it('Recognises relative path "' + path1 + '"', () => { + assert((0, paths_1.isRelativePath)(path1)); + }); + it('Resolves "' + path1 + '" in single-root workspace', () => { + assert.equal(ws1.resolve(path1), 'file:///home/aFolder/file.json'); + }); + it('Resolves "' + path2 + '" in multi-root workspace', () => { + assert.equal(ws2.resolve(path2), 'file:///usr/testuser/projects/workspace/folder-2/file.json'); + }); + it('Resolves "' + path3 + '" in multi-root nested workspace', () => { + assert.equal(ws3.resolve(path3), 'file:///c%3A/Users/testuser/dev/carrots/file.json'); + }); + it('Resolves "' + path4 + '" in multi-root nested workspace', () => { + assert.equal(ws4.resolve(path4), 'file:///c%3A/Users/testuser/dev/test/test.json'); + }); + }); + describe('Path with mixed delimiters (Windows only)', () => { + const path = 'some/strange\\but/functional\\path\\file.json'; + it('Recognises relative path "' + path + '"', function () { + if (process.platform !== 'win32') { + this.skip(); + } + else { + assert((0, paths_1.isRelativePath)(path)); + } + }); + it('Resolves "' + path + '" in single-root workspace', function () { + if (process.platform !== 'win32') { + this.skip(); + } + else { + assert.equal(ws1.resolve(path), 'file:///home/aFolder/some/strange/but/functional/path/file.json'); + } + }); + it('Resolves "' + path + '" in multi-root workspace', function () { + if (process.platform !== 'win32') { + this.skip(); + } + else { + assert.equal(ws2.resolve(path), 'file:///usr/testuser/projects/workspace/some/strange/but/functional/path/file.json'); + } + }); + it('Resolves "' + path + '" in multi-root nested workspace', function () { + if (process.platform !== 'win32') { + this.skip(); + } + else { + assert.equal(ws3.resolve(path), 'file:///c%3A/Users/testuser/dev/potatoes/some/strange/but/functional/path/file.json'); + } + }); + }); + describe('Tests for workspaceFoldersChanged', () => { + it('workspaceFolders are added correctly', () => { + const newWorkspaceFolders = (0, paths_1.workspaceFoldersChanged)(ws2.folders, { + added: [ + { + name: 'folder-4', + uri: 'file:///usr/testuser/projects/workspace/folder-4/', + }, + ], + removed: [], + }); + assert.equal(newWorkspaceFolders.length, 4); + assert.equal(newWorkspaceFolders[0].name, 'folder-1'); + assert.equal(newWorkspaceFolders[0].uri, 'file:///usr/testuser/projects/workspace/folder-1/'); + assert.equal(newWorkspaceFolders[1].name, 'folder-2'); + assert.equal(newWorkspaceFolders[1].uri, 'file:///usr/testuser/projects/workspace/folder-2/'); + assert.equal(newWorkspaceFolders[2].name, 'folder-3'); + assert.equal(newWorkspaceFolders[2].uri, 'file:///usr/testuser/projects/workspace/folder-3/'); + assert.equal(newWorkspaceFolders[3].name, 'folder-4'); + assert.equal(newWorkspaceFolders[3].uri, 'file:///usr/testuser/projects/workspace/folder-4/'); + }); + it('workspaceFolders are not added if duplicate uri', () => { + const newWorkspaceFolders = (0, paths_1.workspaceFoldersChanged)(ws2.folders, { + added: [ + { + name: 'folder-3', + uri: 'file:///usr/testuser/projects/workspace/folder-3/', + }, + ], + removed: [], + }); + assert.equal(newWorkspaceFolders.length, 3); + assert.equal(newWorkspaceFolders[0].name, 'folder-1'); + assert.equal(newWorkspaceFolders[0].uri, 'file:///usr/testuser/projects/workspace/folder-1/'); + assert.equal(newWorkspaceFolders[1].name, 'folder-2'); + assert.equal(newWorkspaceFolders[1].uri, 'file:///usr/testuser/projects/workspace/folder-2/'); + assert.equal(newWorkspaceFolders[2].name, 'folder-3'); + assert.equal(newWorkspaceFolders[2].uri, 'file:///usr/testuser/projects/workspace/folder-3/'); + }); + it('workspaceFolders are removed correctly', () => { + const newWorkspaceFolders = (0, paths_1.workspaceFoldersChanged)(ws2.folders, { + added: [], + removed: [ + { + name: 'folder-3', + uri: 'file:///usr/testuser/projects/workspace/folder-3/', + }, + ], + }); + assert.equal(newWorkspaceFolders.length, 2); + assert.equal(newWorkspaceFolders[0].name, 'folder-1'); + assert.equal(newWorkspaceFolders[0].uri, 'file:///usr/testuser/projects/workspace/folder-1/'); + assert.equal(newWorkspaceFolders[1].name, 'folder-2'); + assert.equal(newWorkspaceFolders[1].uri, 'file:///usr/testuser/projects/workspace/folder-2/'); + }); + it('workspaceFolders empty event does nothing', () => { + const newWorkspaceFolders = (0, paths_1.workspaceFoldersChanged)(ws2.folders, { + added: [], + removed: [], + }); + assert.equal(newWorkspaceFolders.length, 3); + assert.equal(newWorkspaceFolders[0].name, 'folder-1'); + assert.equal(newWorkspaceFolders[0].uri, 'file:///usr/testuser/projects/workspace/folder-1/'); + assert.equal(newWorkspaceFolders[1].name, 'folder-2'); + assert.equal(newWorkspaceFolders[1].uri, 'file:///usr/testuser/projects/workspace/folder-2/'); + assert.equal(newWorkspaceFolders[2].name, 'folder-3'); + assert.equal(newWorkspaceFolders[2].uri, 'file:///usr/testuser/projects/workspace/folder-3/'); + }); + }); + }); +}); +//# sourceMappingURL=paths.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js.map" index 4c70a479d258ccbface4a21337dee529ac4b5591..164bd40cb843a0f05bcf59c905684d38ad289b8f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/paths.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce4e0442c8d0bde894320f9a44d60f7cf09fb52152f04ef55528fdae02bfa08e -size 8751 +{"version":3,"file":"paths.test.js","sourceRoot":"","sources":["../../../test/paths.test.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AAEjC,+BAA4B;AAE5B,8DAAqH;AACrH,2CAAiC;AAEjC,MAAM,aAAa;IAIjB,YAAY,gBAAmC,EAAE,aAAqB;QACpE,IAAI,CAAC,OAAO,GAAG,gBAAgB,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,gBAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,CAAC,OAAe;QACrB,OAAO,IAAA,8BAAsB,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AAED,MAAM,GAAG,GAAG,IAAI,aAAa,CAC3B;IACE;QACE,GAAG,EAAE,uBAAuB;QAC5B,IAAI,EAAE,SAA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,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBACtD,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,mDAAmD,CAAC,CAAC;YAChG,CAAC,CAAC,CAAC;YACH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;gBACnD,MAAM,mBAAmB,GAAG,IAAA,+BAAuB,EAAC,GAAG,CAAC,OAAO,EAAE;oBAC/D,KAAK,EAAE,EAAE;oBACT,OAAO,EAAE,EAAE;iBACZ,CAAC,CAAC;gBACH,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;gBAC5C,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBACtD,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,mDAAmD,CAAC,CAAC;gBAC9F,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBACtD,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,mDAAmD,CAAC,CAAC;gBAC9F,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBACtD,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,mDAAmD,CAAC,CAAC;YAChG,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js" index de4737899fbf75bff61e01a0f6fc6923dd9f1077..d5d06ae82a7d162e9050be98031cba8ed944d000 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js" @@ -1,3 +1,660 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c09757710e6baf4d8e432a75dd4c91dbc1645ec532af6d94f1fa9ebb109b860d -size 28865 +'use strict'; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert = require("assert"); +const parser = require("../src/languageservice/parser/yamlParser07"); +const SchemaService = require("../src/languageservice/services/yamlSchemaService"); +const url = require("url"); +const path = require("path"); +const request_light_1 = require("request-light"); +const yamlSchemaService_1 = require("../src/languageservice/services/yamlSchemaService"); +const schemaUrls_1 = require("../src/languageservice/utils/schemaUrls"); +const chai_1 = require("chai"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const testHelper_1 = require("./utils/testHelper"); +const src_1 = require("../src"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const yaml_1 = require("yaml"); +const modelineUtil_1 = require("../src/languageservice/services/modelineUtil"); +const requestServiceMock = function (uri) { + return Promise.reject(`Resource ${uri} not found.`); +}; +const workspaceContext = { + resolveRelativePath: (relativePath, resource) => { + return url.resolve(resource, relativePath); + }, +}; +const schemaRequestServiceForURL = (uri) => { + const 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 || error.toString()); + }); +}; +describe('JSON Schema', () => { + let languageSettingsSetup; + let languageService; + beforeEach(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup() + .withValidate() + .withCustomTags(['!Test', '!Ref sequence']) + .withSchemaFileMatch({ uri: schemaUrls_1.KUBERNETES_SCHEMA_URL, fileMatch: ['.drone.yml'] }) + .withSchemaFileMatch({ uri: 'https://json.schemastore.org/drone', fileMatch: ['.drone.yml'] }) + .withSchemaFileMatch({ uri: schemaUrls_1.KUBERNETES_SCHEMA_URL, fileMatch: ['test.yml'] }) + .withSchemaFileMatch({ uri: 'https://json.schemastore.org/composer', fileMatch: ['test.yml'] }); + const { languageService: langService } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageService = langService; + }); + it('Resolving $refs', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + 'https://myschemastore/main': { + id: 'https://myschemastore/main', + type: 'object', + properties: { + child: { + $ref: 'https://myschemastore/child', + }, + }, + }, + 'https://myschemastore/child': { + id: 'https://myschemastore/child', + type: 'bool', + description: 'Test description', + }, + }, + }); + service + .getResolvedSchema('https://myschemastore/main') + .then((solvedSchema) => { + assert.deepEqual(solvedSchema.schema.properties['child'], { + id: 'https://myschemastore/child', + type: 'bool', + description: 'Test description', + _$ref: 'https://myschemastore/child', + url: 'https://myschemastore/child', + }); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Resolving $refs 2', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + 'https://json.schemastore.org/swagger-2.0': { + id: 'https://json.schemastore.org/swagger-2.0', + type: 'object', + properties: { + responseValue: { + $ref: '#/definitions/jsonReference', + }, + }, + definitions: { + jsonReference: { + type: 'object', + required: ['$ref'], + properties: { + $ref: { + type: 'string', + }, + }, + }, + }, + }, + }, + }); + service + .getResolvedSchema('https://json.schemastore.org/swagger-2.0') + .then((fs) => { + assert.deepEqual(fs.schema.properties['responseValue'], { + type: 'object', + required: ['$ref'], + properties: { $ref: { type: 'string' } }, + _$ref: '#/definitions/jsonReference', + }); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Resolving $refs 3', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + 'https://myschemastore/main/schema1.json': { + id: 'https://myschemastore/schema1.json', + type: 'object', + properties: { + p1: { + $ref: 'schema2.json#/definitions/hello', + }, + p2: { + $ref: './schema2.json#/definitions/hello', + }, + p3: { + $ref: '/main/schema2.json#/definitions/hello', + }, + }, + }, + 'https://myschemastore/main/schema2.json': { + id: 'https://myschemastore/main/schema2.json', + definitions: { + hello: { + type: 'string', + enum: ['object'], + }, + }, + }, + }, + }); + service + .getResolvedSchema('https://myschemastore/main/schema1.json') + .then((fs) => { + assert.deepEqual(fs.schema.properties['p1'], { + type: 'string', + enum: ['object'], + _$ref: 'schema2.json#/definitions/hello', + url: 'https://myschemastore/main/schema2.json', + }); + assert.deepEqual(fs.schema.properties['p2'], { + type: 'string', + enum: ['object'], + _$ref: './schema2.json#/definitions/hello', + url: 'https://myschemastore/main/schema2.json', + }); + assert.deepEqual(fs.schema.properties['p3'], { + type: 'string', + enum: ['object'], + _$ref: '/main/schema2.json#/definitions/hello', + url: 'https://myschemastore/main/schema2.json', + }); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('FileSchema', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + main: { + id: 'main', + type: 'object', + properties: { + child: { + type: 'object', + properties: { + grandchild: { + type: 'number', + description: 'Meaning of Life', + }, + }, + }, + }, + }, + }, + }); + service + .getResolvedSchema('main') + .then((fs) => { + const section = fs.getSection(['child', 'grandchild']); + assert.equal(section.description, 'Meaning of Life'); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Array FileSchema', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + main: { + id: 'main', + type: 'object', + properties: { + child: { + type: 'array', + items: { + type: 'object', + properties: { + grandchild: { + type: 'number', + description: 'Meaning of Life', + }, + }, + }, + }, + }, + }, + }, + }); + service + .getResolvedSchema('main') + .then((fs) => { + const section = fs.getSection(['child', '0', 'grandchild']); + assert.equal(section.description, 'Meaning of Life'); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Missing subschema', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + main: { + id: 'main', + type: 'object', + properties: { + child: { + type: 'object', + }, + }, + }, + }, + }); + service + .getResolvedSchema('main') + .then((fs) => { + const section = fs.getSection(['child', 'grandchild']); + assert.strictEqual(section, undefined); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Preloaded Schema', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + const id = 'https://myschemastore/test1'; + const schema = { + type: 'object', + properties: { + child: { + type: 'object', + properties: { + grandchild: { + type: 'number', + description: 'Meaning of Life', + }, + }, + }, + }, + }; + service.registerExternalSchema(id, ['*.json'], schema); + service + .getSchemaForResource('test.json', undefined) + .then((schema) => { + const section = schema.getSection(['child', 'grandchild']); + assert.equal(section.description, 'Meaning of Life'); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Schema has url', async () => { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + const id = 'https://myschemastore/test1'; + const schema = { + type: 'object', + properties: { + child: { + type: 'object', + properties: { + grandchild: { + type: 'number', + description: 'Meaning of Life', + }, + }, + }, + }, + }; + service.registerExternalSchema(id, ['*.json'], schema); + const result = await service.getSchemaForResource('test.json', undefined); + (0, chai_1.expect)(result.schema.url).equal(id); + }); + it('Null Schema', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service + .getSchemaForResource('test.json', undefined) + .then((schema) => { + assert.equal(schema, null); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Schema not found', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service + .loadSchema('test.json') + .then((schema) => { + assert.notEqual(schema.errors.length, 0); + }) + .then(() => { + return testDone(); + }, (error) => { + testDone(error); + }); + }); + it('Schema with non uri registers correctly', function (testDone) { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + const non_uri = 'non_uri'; + service.registerExternalSchema(non_uri, ['*.yml', '*.yaml'], { + properties: { + test_node: { + description: 'my test_node description', + enum: ['test 1', 'test 2'], + }, + }, + }); + service.getResolvedSchema(non_uri).then((schema) => { + assert.notEqual(schema, undefined); + testDone(); + }); + }); + it('Modifying schema', async () => { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + 'https://myschemastore/main/schema1.json': { + type: 'object', + properties: { + apiVersion: { + type: 'string', + enum: ['v1'], + }, + kind: { + type: 'string', + enum: ['Pod'], + }, + }, + }, + }, + }); + await service.addContent({ + action: yamlSchemaService_1.MODIFICATION_ACTIONS.add, + path: 'properties/apiVersion', + key: 'enum', + content: ['v2', 'v3'], + schema: 'https://myschemastore/main/schema1.json', + }); + const fs = await service.getResolvedSchema('https://myschemastore/main/schema1.json'); + assert.deepEqual(fs.schema.properties['apiVersion'], { + type: 'string', + enum: ['v2', 'v3'], + }); + assert.deepEqual(fs.schema.properties['kind'], { + type: 'string', + enum: ['Pod'], + }); + }); + it('Deleting schema', async () => { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + 'https://myschemastore/main/schema1.json': { + type: 'object', + properties: { + apiVersion: { + type: 'string', + enum: ['v1'], + }, + kind: { + type: 'string', + enum: ['Pod'], + }, + }, + }, + }, + }); + await service.deleteContent({ + action: yamlSchemaService_1.MODIFICATION_ACTIONS.delete, + path: 'properties', + key: 'apiVersion', + schema: 'https://myschemastore/main/schema1.json', + }); + const fs = await service.getResolvedSchema('https://myschemastore/main/schema1.json'); + assert.notDeepEqual(fs.schema.properties['apiVersion'], { + type: 'string', + enum: ['v2', 'v3'], + }); + assert.equal(fs.schema.properties['apiVersion'], undefined); + assert.deepEqual(fs.schema.properties['kind'], { + type: 'string', + enum: ['Pod'], + }); + }); + it('Deleting schemas', async () => { + const service = new SchemaService.YAMLSchemaService(requestServiceMock, workspaceContext); + service.setSchemaContributions({ + schemas: { + 'https://myschemastore/main/schema1.json': { + type: 'object', + }, + }, + }); + await service.deleteSchemas({ + action: yamlSchemaService_1.MODIFICATION_ACTIONS.deleteAll, + schemas: ['https://myschemastore/main/schema1.json'], + }); + const fs = await service.getResolvedSchema('https://myschemastore/main/schema1.json'); + assert.equal(fs, undefined); + }); + it('Modifying schema works with kubernetes resolution', async () => { + const service = new SchemaService.YAMLSchemaService(schemaRequestServiceForURL, workspaceContext); + service.registerExternalSchema(schemaUrls_1.KUBERNETES_SCHEMA_URL); + await service.addContent({ + action: yamlSchemaService_1.MODIFICATION_ACTIONS.add, + path: 'oneOf/1/properties/kind', + key: 'enum', + content: ['v2', 'v3'], + schema: schemaUrls_1.KUBERNETES_SCHEMA_URL, + }); + const fs = await service.getResolvedSchema(schemaUrls_1.KUBERNETES_SCHEMA_URL); + assert.deepEqual(fs.schema.oneOf[1].properties['kind']['enum'], ['v2', 'v3']); + }); + it('Deleting schema works with Kubernetes resolution', async () => { + const service = new SchemaService.YAMLSchemaService(schemaRequestServiceForURL, workspaceContext); + service.registerExternalSchema(schemaUrls_1.KUBERNETES_SCHEMA_URL); + await service.deleteContent({ + action: yamlSchemaService_1.MODIFICATION_ACTIONS.delete, + path: 'oneOf/1/properties/kind', + key: 'enum', + schema: schemaUrls_1.KUBERNETES_SCHEMA_URL, + }); + const fs = await service.getResolvedSchema(schemaUrls_1.KUBERNETES_SCHEMA_URL); + assert.equal(fs.schema.oneOf[1].properties['kind']['enum'], undefined); + }); + it('Adding a brand new schema', async () => { + const service = new SchemaService.YAMLSchemaService(schemaRequestServiceForURL, workspaceContext); + service.saveSchema('hello_world', { + enum: ['test1', 'test2'], + }); + const hello_world_schema = await service.getResolvedSchema('hello_world'); + assert.deepEqual(hello_world_schema.schema.enum, ['test1', 'test2']); + }); + it('Deleting an existing schema', async () => { + const service = new SchemaService.YAMLSchemaService(schemaRequestServiceForURL, workspaceContext); + service.saveSchema('hello_world', { + enum: ['test1', 'test2'], + }); + await service.deleteSchema('hello_world'); + const hello_world_schema = await service.getResolvedSchema('hello_world'); + assert.equal(hello_world_schema, null); + }); + describe('Test schema priority', function () { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schemaAssociationSample = require(path.join(__dirname, './fixtures/sample-association.json')); + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schemaStoreSample = require(path.join(__dirname, './fixtures/sample-schemastore.json')); + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schemaSettingsSample = require(path.join(__dirname, './fixtures/sample-settings.json')); + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schemaModelineSample = path.join(__dirname, './fixtures/sample-modeline.json'); + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schemaDefaultSnippetSample = require(path.join(__dirname, './fixtures/defaultSnippets-const-if-else.json')); + const languageSettingsSetup = new serviceSetup_1.ServiceSetup().withCompletion(); + it('Modeline Schema takes precendence over all other schema APIs', async () => { + languageSettingsSetup + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaStore, + schema: schemaStoreSample, + }) + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaAssociation, + schema: schemaAssociationSample, + }) + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.Settings, + schema: schemaSettingsSample, + }); + languageService.configure(languageSettingsSetup.languageSettings); + languageService.registerCustomSchemaProvider((uri) => Promise.resolve(uri)); + const testTextDocument = (0, testHelper_1.setupTextDocument)(`# yaml-language-server: $schema=${schemaModelineSample}\n\n`); + const result = await languageService.doComplete(testTextDocument, vscode_languageserver_types_1.Position.create(1, 0), false); + assert.strictEqual(result.items.length, 1); + assert.strictEqual(result.items[0].label, 'modeline'); + }); + it('Manually setting schema takes precendence over all other lower priority schemas', async () => { + languageSettingsSetup + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaStore, + schema: schemaStoreSample, + }) + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaAssociation, + schema: schemaAssociationSample, + }) + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.Settings, + schema: schemaSettingsSample, + }); + languageService.configure(languageSettingsSetup.languageSettings); + const testTextDocument = (0, testHelper_1.setupTextDocument)(''); + const result = await languageService.doComplete(testTextDocument, vscode_languageserver_types_1.Position.create(0, 0), false); + assert.strictEqual(result.items.length, 1); + assert.strictEqual(result.items[0].label, 'settings'); + }); + it('SchemaAssociation takes precendence over SchemaStore', async () => { + languageSettingsSetup + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaStore, + schema: schemaStoreSample, + }) + .withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaAssociation, + schema: schemaAssociationSample, + }); + languageService.configure(languageSettingsSetup.languageSettings); + const testTextDocument = (0, testHelper_1.setupTextDocument)(''); + const result = await languageService.doComplete(testTextDocument, vscode_languageserver_types_1.Position.create(0, 0), false); + assert.strictEqual(result.items.length, 1); + assert.strictEqual(result.items[0].label, 'association'); + }); + it('SchemaStore is highest priority if nothing else is available', async () => { + languageSettingsSetup.withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaStore, + schema: schemaStoreSample, + }); + languageService.configure(languageSettingsSetup.languageSettings); + const testTextDocument = (0, testHelper_1.setupTextDocument)(''); + const result = await languageService.doComplete(testTextDocument, vscode_languageserver_types_1.Position.create(0, 0), false); + assert.strictEqual(result.items.length, 1); + assert.strictEqual(result.items[0].label, 'schemastore'); + }); + it('Default snippet with description', async () => { + languageSettingsSetup.withSchemaFileMatch({ + fileMatch: ['test.yaml'], + uri: testHelper_1.TEST_URI, + priority: src_1.SchemaPriority.SchemaStore, + schema: schemaDefaultSnippetSample, + }); + languageService.configure(languageSettingsSetup.languageSettings); + const testTextDocument = (0, testHelper_1.setupTextDocument)('foo: '); + const result = await languageService.doComplete(testTextDocument, vscode_languageserver_types_1.Position.create(0, 5), false); + assert.strictEqual(result.items.length, 2); + assert.notStrictEqual(result.items[0].documentation, undefined); + assert.notStrictEqual(result.items[1].documentation, undefined); + assert.strictEqual(result.items[0].documentation.value, '# FooBar\n```Foo Bar```'); + assert.strictEqual(result.items[1].documentation.value, '# FooBaz\n```Foo Baz```'); + }); + }); + describe('Test getSchemaFromModeline', function () { + it('simple case', async () => { + checkReturnSchemaUrl('# yaml-language-server: $schema=expectedUrl', 'expectedUrl'); + }); + it('with several spaces between # and yaml-language-server', async () => { + checkReturnSchemaUrl('# yaml-language-server: $schema=expectedUrl', 'expectedUrl'); + }); + it('with several spaces between yaml-language-server and :', async () => { + checkReturnSchemaUrl('# yaml-language-server : $schema=expectedUrl', 'expectedUrl'); + }); + it('with several spaces between : and $schema', async () => { + checkReturnSchemaUrl('# yaml-language-server: $schema=expectedUrl', 'expectedUrl'); + }); + it('with several spaces at the end', async () => { + checkReturnSchemaUrl('# yaml-language-server: $schema=expectedUrl ', 'expectedUrl'); + }); + it('with several spaces at several places', async () => { + checkReturnSchemaUrl('# yaml-language-server : $schema=expectedUrl ', 'expectedUrl'); + }); + it('with several attributes', async () => { + checkReturnSchemaUrl('# yaml-language-server: anotherAttribute=test $schema=expectedUrl aSecondAttribtute=avalue', 'expectedUrl'); + }); + it('with tabs', async () => { + checkReturnSchemaUrl('#\tyaml-language-server:\t$schema=expectedUrl', 'expectedUrl'); + }); + it('with several $schema - pick the first', async () => { + checkReturnSchemaUrl('# yaml-language-server: $schema=url1 $schema=url2', 'url1'); + }); + it('no schema returned if not yaml-language-server', async () => { + checkReturnSchemaUrl('# somethingelse: $schema=url1', undefined); + }); + it('no schema returned if not $schema', async () => { + checkReturnSchemaUrl('# yaml-language-server: $notschema=url1', undefined); + }); + function checkReturnSchemaUrl(modeline, expectedResult) { + const yamlDoc = new parser.SingleYAMLDocument(new yaml_1.LineCounter()); + yamlDoc.lineComments = [modeline]; + assert.strictEqual((0, modelineUtil_1.getSchemaFromModeline)(yamlDoc), expectedResult); + } + }); +}); +//# sourceMappingURL=schema.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js.map" index db9780b8e14edf97ea3a998dc5d921ed3558cfcd..ee1d1c407aeb21a064ed64cfa07f4074b2a15456 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schema.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ae3c286c9e1e3f9b2ee3b0f738fd1c2309803e621fe6728ca1575b6f5cfb0855 -size 20425 +{"version":3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,MAAM,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gDAAgD,EAAE,KAAK,IAAI,EAAE;YAC9D,oBAAoB,CAAC,+BAA+B,EAAE,SAAS,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;YACjD,oBAAoB,CAAC,yCAAyC,EAAE,SAAS,CAAC,CAAC;QAC7E,CAAC,CAAC,CAAC;QAEH,SAAS,oBAAoB,CAAC,QAAgB,EAAE,cAAsB;YACpE,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,kBAAkB,CAAC,IAAI,kBAAW,EAAE,CAAC,CAAC;YACjE,OAAO,CAAC,YAAY,GAAG,CAAC,QAAQ,CAAC,CAAC;YAClC,MAAM,CAAC,WAAW,CAAC,IAAA,oCAAqB,EAAC,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC;QACrE,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js" index 51066609ed184f48fde64d7fb702f3d4e320031d..db68570e9eff903cd78adb0c710d98ae27e41f9d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js" @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f8d2d38936c01e013a4b2a6ffece4107195cb3ddd316aa0e38c9e2d7784546d0 -size 2660 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const schemaRequestHandler_1 = require("../src/languageservice/services/schemaRequestHandler"); +const sinon = require("sinon"); +const vscode_uri_1 = require("vscode-uri"); +const chai = require("chai"); +const sinonChai = require("sinon-chai"); +const expect = chai.expect; +chai.use(sinonChai); +const testHelper_1 = require("./utils/testHelper"); +describe('Schema Request Handler Tests', () => { + describe('schemaRequestHandler', () => { + const sandbox = sinon.createSandbox(); + let readFileStub; + beforeEach(() => { + readFileStub = sandbox.stub(testHelper_1.testFileSystem, 'readFile'); + readFileStub.returns(Promise.resolve('{some: "json"}')); + }); + afterEach(() => { + sandbox.restore(); + }); + it('Should care Win URI', async () => { + const connection = {}; + const resultPromise = (0, schemaRequestHandler_1.schemaRequestHandler)(connection, 'c:\\some\\window\\path\\scheme.json', [], vscode_uri_1.URI.parse(''), false, testHelper_1.testFileSystem); + expect(readFileStub).calledOnceWith('c:\\some\\window\\path\\scheme.json'); + const result = await resultPromise; + expect(result).to.be.equal('{some: "json"}'); + }); + it('UNIX URI should works', async () => { + const connection = {}; + const resultPromise = (0, schemaRequestHandler_1.schemaRequestHandler)(connection, '/some/unix/path/', [], vscode_uri_1.URI.parse(''), false, testHelper_1.testFileSystem); + const result = await resultPromise; + expect(result).to.be.equal('{some: "json"}'); + }); + it('should handle not valid Windows path', async () => { + const connection = {}; + const resultPromise = (0, schemaRequestHandler_1.schemaRequestHandler)(connection, 'A:/some/window/path/scheme.json', [], vscode_uri_1.URI.parse(''), false, testHelper_1.testFileSystem); + expect(readFileStub).calledOnceWith(vscode_uri_1.URI.file('a:/some/window/path/scheme.json').fsPath); + const result = await resultPromise; + expect(result).to.be.equal('{some: "json"}'); + }); + }); +}); +//# sourceMappingURL=schemaRequestHandler.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js.map" index 6a2b84a3ca4adf9c80c287fbc4faf58fa909eedc..ac9a1fe877946399512f117be715bb6c53ca4b90 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaRequestHandler.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83f4ce65dde961685e558d035acae867a75857d2b2590605ab242272206160ca -size 1934 +{"version":3,"file":"schemaRequestHandler.test.js","sourceRoot":"","sources":["../../../test/schemaRequestHandler.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,+FAA4F;AAC5F,+BAA+B;AAE/B,2CAAiC;AACjC,6BAA6B;AAC7B,wCAAwC;AAExC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACpB,mDAAoD;AAEpD,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;QACpC,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;QACtC,IAAI,YAA6B,CAAC;QAElC,UAAU,CAAC,GAAG,EAAE;YACd,YAAY,GAAG,OAAO,CAAC,IAAI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C,UAAU,EACV,iCAAiC,EACjC,EAAE,EACF,gBAAG,CAAC,KAAK,CAAC,EAAE,CAAC,EACb,KAAK,EACL,2BAAc,CACf,CAAC;YACF,MAAM,CAAC,YAAY,CAAC,CAAC,cAAc,CAAC,gBAAG,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC,MAAM,CAAC,CAAC;YACxF,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC;YACnC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js" index e78b279d3a993abf6760057ae96aed682f1ba878..39ea4a2b7a59a1921d8afc479041a716b992234d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js" @@ -1,3 +1,99 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3aa31287ff31913e3fd16739f256e5cb103a4878c6ad106bb1c081f4c58cb1b2 -size 5337 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const sinon = require("sinon"); +const chai = require("chai"); +const sinonChai = require("sinon-chai"); +const schemaSelectionHandlers_1 = require("../src/languageserver/handlers/schemaSelectionHandlers"); +const yamlSchemaService_1 = require("../src/languageservice/services/yamlSchemaService"); +const yamlSettings_1 = require("../src/yamlSettings"); +const requestTypes_1 = require("../src/requestTypes"); +const testHelper_1 = require("./utils/testHelper"); +const expect = chai.expect; +chai.use(sinonChai); +describe('Schema Selection Handlers', () => { + const sandbox = sinon.createSandbox(); + const connection = {}; + let service; + let requestServiceMock; + beforeEach(() => { + requestServiceMock = sandbox.fake.resolves(undefined); + service = new yamlSchemaService_1.YAMLSchemaService(requestServiceMock); + connection.client = {}; + const onRequest = sandbox.fake(); + connection.onRequest = onRequest; + }); + afterEach(() => { + sandbox.restore(); + }); + it('add handler for "getSchema" and "getAllSchemas" requests', () => { + new schemaSelectionHandlers_1.JSONSchemaSelection(service, new yamlSettings_1.SettingsState(), connection); + expect(connection.onRequest).calledWith(requestTypes_1.SchemaSelectionRequests.getSchema); + expect(connection.onRequest).calledWith(requestTypes_1.SchemaSelectionRequests.getAllSchemas); + }); + it('getAllSchemas should return all schemas', async () => { + service.registerExternalSchema('https://some.com/some.json', ['foo.yaml'], undefined, 'Schema name', 'Schema description'); + const settings = new yamlSettings_1.SettingsState(); + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(''); + settings.documents = new yamlSettings_1.TextDocumentTestManager(); + settings.documents.set(testTextDocument); + const selection = new schemaSelectionHandlers_1.JSONSchemaSelection(service, settings, connection); + const result = await selection.getAllSchemas(testTextDocument.uri); + expect(result).length(1); + expect(result[0]).to.be.eqls({ + uri: 'https://some.com/some.json', + fromStore: true, + usedForCurrentFile: false, + name: 'Schema name', + description: 'Schema description', + versions: undefined, + }); + }); + it('getAllSchemas should return all schemas and mark used for current file', async () => { + service.registerExternalSchema('https://some.com/some.json', [testHelper_1.SCHEMA_ID], undefined, 'Schema name', 'Schema description'); + const settings = new yamlSettings_1.SettingsState(); + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(''); + settings.documents = new yamlSettings_1.TextDocumentTestManager(); + settings.documents.set(testTextDocument); + const selection = new schemaSelectionHandlers_1.JSONSchemaSelection(service, settings, connection); + const result = await selection.getAllSchemas(testTextDocument.uri); + expect(result).length(1); + expect(result[0]).to.be.eqls({ + uri: 'https://some.com/some.json', + name: 'Schema name', + description: 'Schema description', + fromStore: false, + usedForCurrentFile: true, + versions: undefined, + }); + }); + it('getSchemas should return all schemas', async () => { + service.registerExternalSchema('https://some.com/some.json', [testHelper_1.SCHEMA_ID], undefined, 'Schema name', 'Schema description'); + const settings = new yamlSettings_1.SettingsState(); + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(''); + settings.documents = new yamlSettings_1.TextDocumentTestManager(); + settings.documents.set(testTextDocument); + const selection = new schemaSelectionHandlers_1.JSONSchemaSelection(service, settings, connection); + const result = await selection.getSchemas(testTextDocument.uri); + expect(result).length(1); + expect(result[0]).to.be.eqls({ + uri: 'https://some.com/some.json', + name: 'Schema name', + description: 'Schema description', + versions: undefined, + }); + }); + it('getSchemas should handle empty schemas', async () => { + const settings = new yamlSettings_1.SettingsState(); + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(''); + settings.documents = new yamlSettings_1.TextDocumentTestManager(); + settings.documents.set(testTextDocument); + const selection = new schemaSelectionHandlers_1.JSONSchemaSelection(service, settings, connection); + const result = await selection.getSchemas(testTextDocument.uri); + expect(result).length(0); + }); +}); +//# sourceMappingURL=schemaSelectionHandlers.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js.map" index cb20b52c8405266c608bbf6ebefa77dc57deb08f..6a4a753abb310b850d9e012aefb1a78400d21ca5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaSelectionHandlers.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e741f12822e8165dbca102ae66e0f7eaab74d45335a7d81686174bdd84ea12c5 -size 3947 +{"version":3,"file":"schemaSelectionHandlers.test.js","sourceRoot":"","sources":["../../../test/schemaSelectionHandlers.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,+BAA+B;AAC/B,6BAA6B;AAC7B,wCAAwC;AACxC,oGAA6F;AAC7F,yFAAsF;AAEtF,sDAA6E;AAC7E,sDAA8D;AAC9D,mDAA0E;AAE1E,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAEpB,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IACtC,MAAM,UAAU,GAAe,EAAgB,CAAC;IAChD,IAAI,OAA0B,CAAC;IAC/B,IAAI,kBAAkC,CAAC;IAEvC,UAAU,CAAC,GAAG,EAAE;QACd,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACtD,OAAO,GAAG,IAAI,qCAAiB,CAAC,kBAAkB,CAAC,CAAC;QACpD,UAAU,CAAC,MAAM,GAAG,EAAkB,CAAC;QACvC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QACjC,UAAU,CA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EhE,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js" index abd69ad718a2c034dade00d80ab6a7f71b913776..56968ef782b70060465b49c4cbe742f2ec1a8bb3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js" @@ -1,3 +1,1708 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:169364e0871827050677656433048f6f790bfcc0fd1079176b5ce9b633ae7c43 -size 73027 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const testHelper_1 = require("./utils/testHelper"); +const verifyError_1 = require("./utils/verifyError"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const errorMessages_1 = require("./utils/errorMessages"); +const assert = require("assert"); +const path = require("path"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const chai_1 = require("chai"); +const yamlSettings_1 = require("../src/yamlSettings"); +const schemaUrls_1 = require("../src/languageservice/utils/schemaUrls"); +describe('Validation Tests', () => { + let languageSettingsSetup; + let validationHandler; + let languageService; + let yamlSettings; + let telemetry; + let schemaProvider; + before(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup() + .withValidate() + .withCompletion() + .withCustomTags(['!Test', '!Ref sequence']) + .withSchemaFileMatch({ uri: schemaUrls_1.KUBERNETES_SCHEMA_URL, fileMatch: ['.drone.yml'] }) + .withSchemaFileMatch({ uri: 'https://json.schemastore.org/drone', fileMatch: ['.drone.yml'] }) + .withSchemaFileMatch({ uri: schemaUrls_1.KUBERNETES_SCHEMA_URL, fileMatch: ['test.yml'] }) + .withSchemaFileMatch({ + uri: 'https://raw.githubusercontent.com/composer/composer/master/res/composer-schema.json', + fileMatch: ['test.yml'], + }); + const { languageService: langService, validationHandler: valHandler, yamlSettings: settings, telemetry: testTelemetry, schemaProvider: testSchemaProvider, } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + languageService = langService; + validationHandler = valHandler; + yamlSettings = settings; + telemetry = testTelemetry; + schemaProvider = testSchemaProvider; + }); + function parseSetup(content, customSchemaID) { + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content, customSchemaID); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return validationHandler.validateTextDocument(testTextDocument); + } + afterEach(() => { + schemaProvider.deleteSchema(testHelper_1.SCHEMA_ID); + }); + describe('Boolean tests', () => { + it('Boolean true test', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'analytics: true'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Basic false test', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'analytics: false'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Test that boolean value without quotations is valid', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = '%YAML 1.1\n---\nanalytics: no'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Test that boolean value in quotations is interpreted as string not boolean', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'analytics: "no"'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.strictEqual(result.length, 1); + assert.deepStrictEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.BooleanTypeError, 0, 11, 0, 15, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + it('Error on incorrect value type (boolean)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + }, + }); + const content = 'cwd: False'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.StringTypeError, 0, 5, 0, 10, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + }); + describe('String tests', () => { + it('Test that boolean inside of quotations is of type string', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'string', + }, + }, + }); + const content = 'analytics: "no"'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type string validates under children', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + register: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'registry:\n register: file://test_url'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type String does not error on valid node', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + }, + }); + const content = 'cwd: this'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Error on incorrect value type (string)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'analytics: hello'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.BooleanTypeError, 0, 11, 0, 16, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + it('Test that boolean is invalid when no strings present and schema wants string', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + }, + }); + const content = '%YAML 1.1\n---\ncwd: no'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.StringTypeError, 2, 5, 2, 7, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + }); + describe('Pattern tests', () => { + it('Test a valid Unicode pattern', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + prop: { + type: 'string', + pattern: '^tes\\p{Letter}$', + }, + }, + }); + parseSetup('prop: "tesT"') + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Test an invalid Unicode pattern', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + prop: { + type: 'string', + pattern: '^tes\\p{Letter}$', + }, + }, + }); + parseSetup('prop: "tes "') + .then(function (result) { + assert.equal(result.length, 1); + assert.ok(result[0].message.startsWith('String does not match the pattern')); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(result[0].message, 0, 6, 0, 12, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + it('Test a valid Unicode patternProperty', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + patternProperties: { + '^tes\\p{Letter}$': true, + }, + additionalProperties: false, + }); + parseSetup('tesT: true') + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Test an invalid Unicode patternProperty', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + patternProperties: { + '^tes\\p{Letter}$': true, + }, + additionalProperties: false, + }); + parseSetup('tes9: true') + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)('Property tes9 is not allowed.', 0, 0, 0, 4, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + }); + describe('Number tests', () => { + it('Type Number does not error on valid node', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + timeout: { + type: 'number', + }, + }, + }); + const content = 'timeout: 60000'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Error on incorrect value type (number)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + }, + }); + const content = 'cwd: 100000'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.StringTypeError, 0, 5, 0, 11, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + }); + describe('Null tests', () => { + it('Basic test on nodes with null', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + additionalProperties: false, + properties: { + columns: { + type: 'object', + patternProperties: { + '^[a-zA-Z]+$': { + type: 'object', + properties: { + int: { + type: 'null', + }, + long: { + type: 'null', + }, + id: { + type: 'null', + }, + unique: { + type: 'null', + }, + }, + oneOf: [ + { + required: ['int'], + }, + { + required: ['long'], + }, + ], + }, + }, + }, + }, + }); + const content = 'columns:\n ColumnA: { int, id }\n ColumnB: { long, unique }\n ColumnC: { long, unique }'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + describe('Object tests', () => { + it('Basic test on nodes with children', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'object', + properties: { + preinstall: { + type: 'string', + }, + postinstall: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'scripts:\n preinstall: test1\n postinstall: test2'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Test with multiple nodes with children', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + cwd: { + type: 'string', + }, + scripts: { + type: 'object', + properties: { + preinstall: { + type: 'string', + }, + postinstall: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'analytics: true\ncwd: this\nscripts:\n preinstall: test1\n postinstall: test2'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Type Object does not error on valid node', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + registry: { + type: 'object', + properties: { + search: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'registry:\n search: file://test_url'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Error on incorrect value type (object)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + title: 'Object', + properties: { + scripts: { + type: 'object', + properties: { + search: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'scripts: test'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)('Incorrect type. Expected "object(Object)".', 0, 9, 0, 13, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: Object`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + }); + describe('Array tests', () => { + it('Type Array does not error on valid node', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + resolvers: { + type: 'array', + items: { + type: 'string', + }, + }, + }, + }); + const content = 'resolvers:\n - test\n - test\n - test'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Error on incorrect value type (array)', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + resolvers: { + type: 'array', + }, + }, + }); + const content = 'resolvers: test'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.ArrayTypeError, 0, 11, 0, 15, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + }); + describe('Anchor tests', () => { + it('Anchor should not error', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + default: { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'default: &DEFAULT\n name: Anchor\nanchor_test:\n <<: *DEFAULT'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Anchor with multiple references should not error', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + default: { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'default: &DEFAULT\n name: Anchor\nanchor_test:\n <<: *DEFAULT\nanchor_test2:\n <<: *DEFAULT'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Multiple Anchor in array of references should not error', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + default: { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'default: &DEFAULT\n name: Anchor\ncustomname: &CUSTOMNAME\n custom_name: Anchor\nanchor_test:\n <<: [*DEFAULT, *CUSTOMNAME]'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Multiple Anchors being referenced in same level at same time for yaml 1.1', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + customize: { + type: 'object', + properties: { + register: { + type: 'string', + }, + }, + }, + }, + }); + const content = '%YAML 1.1\n---\ndefault: &DEFAULT\n name: Anchor\ncustomname: &CUSTOMNAME\n custom_name: Anchor\nanchor_test:\n <<: *DEFAULT\n <<: *CUSTOMNAME\n'; + const result = await parseSetup(content); + assert.strictEqual(result.length, 0); + }); + it('Multiple Anchors being referenced in same level at same time for yaml generate error for 1.2', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + customize: { + type: 'object', + properties: { + register: { + type: 'string', + }, + }, + }, + }, + }); + const content = 'default: &DEFAULT\n name: Anchor\ncustomname: &CUSTOMNAME\n custom_name: Anchor\nanchor_test:\n <<: *DEFAULT\n <<: *CUSTOMNAME\n'; + const result = await parseSetup(content); + assert.strictEqual(result.length, 1); + assert.deepStrictEqual(result[0], (0, verifyError_1.createExpectedError)('Map keys must be unique', 6, 2, 6, 18, vscode_languageserver_types_1.DiagnosticSeverity.Error)); + }); + it('Nested object anchors should expand properly', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + additionalProperties: { + type: 'object', + additionalProperties: false, + properties: { + akey: { + type: 'string', + }, + }, + required: ['akey'], + }, + }); + const content = ` + l1: &l1 + akey: avalue + + l2: &l2 + <<: *l1 + + l3: &l3 + <<: *l2 + + l4: + <<: *l3 + `; + const validator = await parseSetup(content); + assert.strictEqual(validator.length, 0); + }); + it('Anchor reference with a validation error in a sub-object emits the error in the right location', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + src: {}, + dest: { + type: 'object', + properties: { + outer: { + type: 'object', + required: ['otherkey'], + }, + }, + }, + }, + required: ['src', 'dest'], + }); + const content = ` + src: &src + outer: + akey: avalue + + dest: + <<: *src + `; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + // The key thing we're checking is *where* the validation error gets reported. + // "outer" isn't required to contain "otherkey" inside "src", but it is inside + // "dest". Since "outer" doesn't appear inside "dest" because of the alias, we + // need to move the error into "src". + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.MissingRequiredPropWarning.replace('{0}', 'otherkey'), 2, 10, 2, 15, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + it('Array Anchor merge', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + arr: { + type: 'array', + items: { + type: 'number', + }, + }, + obj: { + properties: { + arr2: { + type: 'array', + items: { + type: 'string', + }, + }, + }, + }, + }, + }); + const content = ` +arr: &a + - 1 + - 2 +obj: + <<: *a + arr2: + - << *a +`; + const result = await parseSetup(content); + assert.equal(result.length, 0); + }); + }); + describe('Custom tag tests', () => { + it('Custom Tags without type', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'analytics: !Test false'; + const result = await parseSetup(content); + assert.equal(result.length, 1); + assert.deepStrictEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.BooleanTypeError, 0, 17, 0, 22, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }); + it('Custom Tags with type', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + resolvers: { + type: 'array', + items: { + type: 'string', + }, + }, + }, + }); + const content = 'resolvers: !Ref\n - test'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Include with value should not error', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + customize: { + type: 'string', + }, + }, + }); + const content = 'customize: !include customize.yaml'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Include without value should error', (done) => { + const content = 'customize: !include'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createExpectedError)(errorMessages_1.IncludeWithoutValueError, 0, 11, 0, 19)); + }) + .then(done, done); + }); + }); + describe('Multiple type tests', function () { + it('Do not error when there are multiple types in schema and theyre valid', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + license: { + type: ['string', 'boolean'], + }, + }, + }); + const content = 'license: MIT'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + describe('Invalid YAML errors', function () { + it('Error when theres a finished untyped item', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + analytics: { + type: 'boolean', + }, + }, + }); + const content = 'cwd: hello\nan'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createExpectedError)(errorMessages_1.BlockMappingEntryError, 1, 0, 1, 2)); + }) + .then(done, done); + }); + it('Error when theres no value for a node', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + }, + }); + const content = 'cwd:'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.StringTypeError, 0, 4, 0, 4, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }) + .then(done, done); + }); + }); + describe('Test with no schemas', () => { + it('Duplicate properties are reported', (done) => { + const content = 'kind: a\ncwd: b\nkind: c'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 1); + assert.deepEqual(result[0], (0, verifyError_1.createExpectedError)(errorMessages_1.DuplicateKeyError, 2, 0, 2, 7)); + }) + .then(done, done); + }); + }); + describe('Test anchors', function () { + it('Test that anchors with a schema do not report Property << is not allowed', (done) => { + const schema = { + type: 'object', + properties: { + sample: { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + prop2: { + type: 'string', + }, + }, + additionalProperties: false, + }, + }, + $schema: 'http://json-schema.org/draft-07/schema#', + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'test: &test\n prop1: hello\nsample:\n <<: *test\n prop2: another_test'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + describe('Test with custom kubernetes schemas', function () { + it('Test that properties that match multiple enums get validated properly', (done) => { + languageService.configure(languageSettingsSetup.withKubernetes().languageSettings); + yamlSettings.specificValidatorPaths = ['*.yml', '*.yaml']; + const schema = { + definitions: { + ImageStreamImport: { + type: 'object', + properties: { + kind: { + type: 'string', + enum: ['ImageStreamImport'], + }, + }, + }, + ImageStreamLayers: { + type: 'object', + properties: { + kind: { + type: 'string', + enum: ['ImageStreamLayers'], + }, + }, + }, + }, + oneOf: [ + { + $ref: '#/definitions/ImageStreamImport', + }, + { + $ref: '#/definitions/ImageStreamLayers', + }, + ], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'kind: '; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 2); + // eslint-disable-next-line + assert.equal(result[1].message, `Value is not accepted. Valid values: "ImageStreamImport", "ImageStreamLayers".`); + }) + .then(done, done); + }); + }); + // https://github.com/redhat-developer/yaml-language-server/issues/118 + describe('Null literals', () => { + ['NULL', 'Null', 'null', '~', ''].forEach((content) => { + it(`Test type null is parsed from [${content}]`, (done) => { + const schema = { + type: 'object', + properties: { + nulltest: { + type: 'null', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const validator = parseSetup('nulltest: ' + content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + it('Test type null is working correctly in array', (done) => { + const schema = { + properties: { + values: { + type: 'array', + items: { + type: 'null', + }, + }, + }, + required: ['values'], + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'values: [Null, NULL, null, ~,]'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + describe('Multi Document schema validation tests', () => { + it('Document does not error when --- is present with schema', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + }, + }); + const content = '---\n# this is a test\ncwd: this'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + it('Multi Document does not error when --- is present with schema', (done) => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + cwd: { + type: 'string', + }, + }, + }); + const content = '---\n# this is a test\ncwd: this...\n---\n# second comment\ncwd: hello\n...'; + const validator = parseSetup(content); + validator + .then(function (result) { + assert.equal(result.length, 0); + }) + .then(done, done); + }); + }); + describe('Schema with title', () => { + it('validator uses schema title instead of url', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + title: 'Schema Super title', + properties: { + analytics: { + type: 'string', + }, + }, + }); + const content = 'analytics: 1'; + const result = await parseSetup(content); + (0, chai_1.expect)(result[0]).deep.equal((0, verifyError_1.createDiagnosticWithData)(errorMessages_1.StringTypeError, 0, 11, 0, 12, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'yaml-schema: Schema Super title', 'file:///default_schema_id.yaml')); + }); + }); + describe('Multiple schema for single file', () => { + after(() => { + // remove Kubernetes setting not to affect next tests + languageService.configure(languageSettingsSetup.withKubernetes(false).languageSettings); + yamlSettings.specificValidatorPaths = []; + }); + it('should add proper source to diagnostic', async () => { + const content = ` + abandoned: v1 + archive: + exclude: + asd: asd`; + languageService.configure(languageSettingsSetup.withKubernetes().languageSettings); + yamlSettings.specificValidatorPaths = ['*.yml', '*.yaml']; + const result = await parseSetup(content, 'file://~/Desktop/vscode-yaml/test.yml'); + (0, chai_1.expect)(result[0]).deep.equal((0, verifyError_1.createDiagnosticWithData)(errorMessages_1.ArrayTypeError, 4, 10, 4, 18, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'yaml-schema: Package', 'https://raw.githubusercontent.com/composer/composer/master/res/composer-schema.json')); + }); + it('should add proper source to diagnostic in case of drone', async () => { + const content = ` + apiVersion: v1 + kind: Deployment + `; + const result = await parseSetup(content, 'file://~/Desktop/vscode-yaml/.drone.yml'); + (0, chai_1.expect)(result[5]).deep.equal((0, verifyError_1.createDiagnosticWithData)((0, errorMessages_1.propertyIsNotAllowed)('apiVersion'), 1, 6, 1, 16, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'yaml-schema: Drone CI configuration file', 'https://json.schemastore.org/drone', { + properties: [ + 'type', + 'environment', + 'steps', + 'volumes', + 'services', + 'image_pull_secrets', + 'node', + 'concurrency', + 'name', + 'platform', + 'workspace', + 'clone', + 'trigger', + 'depends_on', + ], + })); + }); + }); + describe('Conditional Schema', () => { + it('validator use "then" block if "if" valid', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + default: [], + properties: { + name: { + type: 'string', + }, + var: { + type: 'string', + }, + }, + if: { + properties: { + var: { + type: 'string', + }, + }, + }, + then: { + required: ['pineapple'], + }, + else: { + required: ['tomato'], + }, + additionalProperties: true, + }); + const content = ` + name: aName + var: something + inputs:`; + const result = await parseSetup(content); + (0, chai_1.expect)(result[0].message).to.eq('Missing property "pineapple".'); + }); + describe('filePatternAssociation', () => { + const schema = { + type: 'object', + properties: { + name: { + type: 'string', + }, + }, + if: { + filePatternAssociation: testHelper_1.SCHEMA_ID, + }, + then: { + required: ['pineapple'], + }, + else: { + required: ['tomato'], + }, + }; + it('validator use "then" block if "if" match filePatternAssociation', async () => { + schema.if.filePatternAssociation = testHelper_1.SCHEMA_ID; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name: aName'; + const result = await parseSetup(content); + (0, chai_1.expect)(result.map((r) => r.message)).to.deep.eq(['Missing property "pineapple".']); + }); + it('validator use "then" block if "if" match filePatternAssociation - regexp', async () => { + schema.if.filePatternAssociation = '*.yaml'; // SCHEMA_ID: "default_schema_id.yaml" + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name: aName'; + const result = await parseSetup(content); + (0, chai_1.expect)(result.map((r) => r.message)).to.deep.eq(['Missing property "pineapple".']); + }); + it('validator use "else" block if "if" not match filePatternAssociation', async () => { + schema.if.filePatternAssociation = 'wrong'; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = 'name: aName'; + const result = await parseSetup(content); + (0, chai_1.expect)(result.map((r) => r.message)).to.deep.eq(['Missing property "tomato".']); + }); + }); + }); + describe('Schema with uri-reference', () => { + it('should validate multiple uri-references', async () => { + const schemaWithURIReference = { + type: 'object', + properties: { + one: { + type: 'string', + format: 'uri-reference', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schemaWithURIReference); + let content = ` + one: '//foo/bar' + `; + let result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(0); + content = ` + one: '#/components/schemas/service' + `; + result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(0); + content = ` + one: 'some/relative/path/foo.schema.yaml' + `; + result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(0); + content = ` + one: 'http://foo/bar' + `; + result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(0); + }); + it('should not validate empty uri-reference', async () => { + const schemaWithURIReference = { + type: 'object', + properties: { + one: { + type: 'string', + format: 'uri-reference', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schemaWithURIReference); + const content = ` + one: '' + `; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(1); + (0, chai_1.expect)(result[0].message).to.eq('String is not a URI: URI expected.'); + }); + }); + describe('Multiple similar schemas validation', () => { + const sharedSchemaId = 'sharedSchema.json'; + before(() => { + // remove Kubernetes setting set by previous test + languageService.configure(languageSettingsSetup.withKubernetes(false).languageSettings); + yamlSettings.specificValidatorPaths = []; + }); + afterEach(() => { + schemaProvider.deleteSchema(testHelper_1.SCHEMA_ID); + schemaProvider.deleteSchema(sharedSchemaId); + }); + it('should distinguish types in error "Incorrect type (Expected "type1 | type2 | type3")"', async () => { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schema = require(path.join(__dirname, './fixtures/testMultipleSimilarSchema.json')); + schemaProvider.addSchemaWithUri(testHelper_1.SCHEMA_ID, 'file:///sharedSchema.json', schema.sharedSchema); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema.schema); + const content = 'test_anyOf_objects:\n '; + const result = await parseSetup(content); + assert.strictEqual(result.length, 1); + assert.strictEqual(result[0].message, 'Incorrect type. Expected "type1 | type2 | type3".'); + assert.strictEqual(result[0].source, 'yaml-schema: file:///sharedSchema.json | file:///default_schema_id.yaml'); + assert.deepStrictEqual(result[0].data.schemaUri, [ + 'file:///sharedSchema.json', + 'file:///default_schema_id.yaml', + ]); + }); + it('should combine types in "Incorrect type error"', async () => { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schema = require(path.join(__dirname, './fixtures/testMultipleSimilarSchema.json')); + schemaProvider.addSchemaWithUri(testHelper_1.SCHEMA_ID, 'file:///sharedSchema.json', schema.sharedSchema); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema.schema); + const content = 'test_anyOf_objects:\n propA:'; + const result = await parseSetup(content); + assert.strictEqual(result.length, 3); + assert.strictEqual(result[2].message, 'Incorrect type. Expected "string".'); + assert.strictEqual(result[2].source, 'yaml-schema: file:///sharedSchema.json | file:///default_schema_id.yaml'); + }); + it('should combine const value', async () => { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schema = require(path.join(__dirname, './fixtures/testMultipleSimilarSchema.json')); + schemaProvider.addSchemaWithUri(testHelper_1.SCHEMA_ID, 'file:///sharedSchema.json', schema.sharedSchema); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema.schema); + const content = 'test_anyOf_objects:\n constA:'; + const result = await parseSetup(content); + assert.strictEqual(result.length, 4); + assert.strictEqual(result[3].message, 'Value must be "constForType1" | "constForType3".'); + assert.strictEqual(result[3].source, 'yaml-schema: file:///sharedSchema.json | file:///default_schema_id.yaml'); + }); + it('should distinguish types in error: "Missing property from multiple schemas"', async () => { + // eslint-disable-next-line @typescript-eslint/no-var-requires + const schema = require(path.join(__dirname, './fixtures/testMultipleSimilarSchema.json')); + schemaProvider.addSchemaWithUri(sharedSchemaId, 'file:///sharedSchema.json', schema.sharedSchema); + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema.schema); + const content = 'test_anyOf_objects:\n someProp:'; + const result = await parseSetup(content); + assert.strictEqual(result.length, 3); + assert.strictEqual(result[0].message, 'Missing property "objA".'); + assert.strictEqual(result[0].source, 'yaml-schema: file:///sharedSchema.json | file:///default_schema_id.yaml'); + assert.deepStrictEqual(result[0].data.schemaUri, [ + 'file:///sharedSchema.json', + 'file:///default_schema_id.yaml', + ]); + assert.strictEqual(result[1].message, 'Missing property "propA".'); + assert.strictEqual(result[1].source, 'yaml-schema: file:///sharedSchema.json | file:///default_schema_id.yaml'); + assert.deepStrictEqual(result[1].data.schemaUri, [ + 'file:///sharedSchema.json', + 'file:///default_schema_id.yaml', + ]); + assert.strictEqual(result[2].message, 'Missing property "constA".'); + assert.strictEqual(result[2].source, 'yaml-schema: file:///sharedSchema.json | file:///default_schema_id.yaml'); + assert.deepStrictEqual(result[2].data.schemaUri, [ + 'file:///sharedSchema.json', + 'file:///default_schema_id.yaml', + ]); + }); + }); + describe('Empty document validation', () => { + it('should provide validation for empty document', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'string', + }, + }, + required: ['scripts'], + }); + const content = ''; + const result = await parseSetup(content); + assert.strictEqual(result.length, 1); + assert.deepStrictEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.MissingRequiredPropWarning.replace('{0}', 'scripts'), 0, 0, 0, 0, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }); + it('should provide validation for document which contains only whitespaces', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + scripts: { + type: 'string', + }, + }, + required: ['scripts'], + }); + const content = ' \n \n'; + const result = await parseSetup(content); + assert.deepStrictEqual(result[0], (0, verifyError_1.createDiagnosticWithData)(errorMessages_1.MissingRequiredPropWarning.replace('{0}', 'scripts'), 0, 0, 0, 1, vscode_languageserver_types_1.DiagnosticSeverity.Error, `yaml-schema: file:///${testHelper_1.SCHEMA_ID}`, `file:///${testHelper_1.SCHEMA_ID}`)); + }); + }); + describe('Additional properties validation', () => { + it('should allow additional props on object by default', async () => { + const schema = { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `prop2: you could be there 'prop2'`; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(0); + }); + describe('Additional properties validation with enabled disableAdditionalProperties', () => { + before(() => { + languageSettingsSetup.languageSettings.disableAdditionalProperties = true; + languageService.configure(languageSettingsSetup.languageSettings); + }); + after(() => { + languageSettingsSetup.languageSettings.disableAdditionalProperties = false; + }); + it('should return additional prop error when there is extra prop', async () => { + const schema = { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `prop2: you should not be there 'prop2'`; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(1); + (0, chai_1.expect)(result[0].message).to.eq('Property prop2 is not allowed.'); + (0, chai_1.expect)(result[0].data?.properties).to.deep.eq(['prop1']); + }); + it('should return additional prop error when there is unknown prop - suggest missing props)', async () => { + const schema = { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + prop2: { + type: 'string', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `prop1: value1\npropX: you should not be there 'propX'`; + const result = await parseSetup(content); + (0, chai_1.expect)(result.map((r) => ({ + message: r.message, + properties: r.data?.properties, + }))).to.deep.eq([ + { + message: 'Property propX is not allowed.', + properties: ['prop2'], + }, + ]); + }); + it('should allow additional props on object when additionalProp is true on object', async () => { + const schema = { + type: 'object', + properties: { + prop1: { + type: 'string', + }, + }, + additionalProperties: true, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `prop2: you could be there 'prop2'`; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(0); + }); + }); + }); + describe('Bug fixes', () => { + it('schema should validate additionalProp oneOf', async () => { + const schema = { + properties: { + env: { + $ref: 'https://json.schemastore.org/github-workflow.json#/definitions/env', + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `env: \${{ matrix.env1 }`; + const result = await parseSetup(content); + (0, chai_1.expect)(result).to.be.not.empty; + (0, chai_1.expect)(telemetry.messages).to.be.empty; + (0, chai_1.expect)(result.length).to.eq(1); + assert.deepStrictEqual(result[0].message, 'String does not match the pattern of "^.*\\$\\{\\{(.|[\r\n])*\\}\\}.*$".'); + }); + it('schema should validate ipv4 format - Negative Case', async () => { + const schema = { + type: 'array', + items: { + type: 'string', + format: 'ipv4', + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `- 10.15.12.500`; + const result = await parseSetup(content); + (0, chai_1.expect)(result).to.be.not.empty; + (0, chai_1.expect)(telemetry.messages).to.be.empty; + (0, chai_1.expect)(result.length).to.eq(1); + assert.deepStrictEqual(result[0].message, 'String does not match IPv4 format.'); + }); + it('schema should validate ipv4 format - Positive Case', async () => { + const schema = { + type: 'array', + items: { + type: 'string', + format: 'ipv4', + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `- 255.255.255.255`; + const result = await parseSetup(content); + (0, chai_1.expect)(result).to.be.empty; + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + it('schema should validate ipv6 format - Negative Case', async () => { + const schema = { + type: 'array', + items: { + type: 'string', + format: 'ipv6', + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `- 10.15.12.500`; + const result = await parseSetup(content); + (0, chai_1.expect)(result).to.be.not.empty; + (0, chai_1.expect)(telemetry.messages).to.be.empty; + (0, chai_1.expect)(result.length).to.eq(1); + assert.deepStrictEqual(result[0].message, 'String does not match IPv6 format.'); + }); + it('schema should validate ipv6 format - Positive Case', async () => { + const schema = { + type: 'array', + items: { + type: 'string', + format: 'ipv6', + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `- 2001:0db8:85a3:0000:0000:8a2e:0370:7334\n- 2001:0db8:85a3:0000:0000:8a2e:0370:7334\n- FEDC:BA98:7654:3210:FEDC:BA98:7654:3210\n- 1080::8:800:200C:417A\n- FF01::101\n- ::1`; + const result = await parseSetup(content); + (0, chai_1.expect)(result).to.be.empty; + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + it('should handle not valid schema object', async () => { + const schema = 'Foo'; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `foo: bar`; + const result = await parseSetup(content); + (0, chai_1.expect)(result).to.have.length(1); + (0, chai_1.expect)(result[0].message).to.include("Schema 'default_schema_id.yaml' is not valid"); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + it('should handle bad schema refs', async () => { + const schema = { + type: 'object', + properties: { + bar: { + oneOf: ['array', 'boolean'], + }, + }, + additionalProperties: true, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `bar: ddd`; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(1); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + it('should not use same AST for completion and validation', async () => { + const schema = { + type: 'object', + properties: { + container: { + type: 'object', + properties: { + image: { + type: 'string', + }, + command: { + type: 'array', + items: { + type: 'string', + }, + }, + }, + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `container: + image: alpine + command: + - aaa + - bbb + - dddddd + - ccc`; + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + await languageService.doComplete(testTextDocument, vscode_languageserver_types_1.Position.create(6, 8), false); + const result = await validationHandler.validateTextDocument(testTextDocument); + (0, chai_1.expect)(result).to.be.empty; + }); + }); + describe('Enum tests', () => { + afterEach(() => { + schemaProvider.deleteSchema(testHelper_1.SCHEMA_ID); + }); + it('Enum Validation with invalid enum value', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + first: { + type: 'string', + enum: ['a', 'b'], + }, + second: { + type: 'number', + enum: [1, 2], + }, + }, + }); + const content = 'first: c\nsecond: 3'; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(2); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + it('Enum Validation with invalid type', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + first: { + type: 'string', + enum: ['a', 'b'], + }, + second: { + type: 'number', + enum: [1, 2], + }, + }, + }); + const content = 'first: c\nsecond: a'; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(3); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + it('Enum Validation with invalid data', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + definitions: { + rule: { + description: 'A rule', + type: 'object', + properties: { + kind: { + description: 'The kind of rule', + type: 'string', + enum: ['tested'], + }, + }, + required: ['kind'], + additionalProperties: false, + }, + }, + properties: { + rules: { + description: 'Rule list', + type: 'array', + items: { + $ref: '#/definitions/rule', + }, + minProperties: 1, + additionalProperties: false, + }, + }, + }); + const content = 'rules:\n - kind: test'; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(1); + (0, chai_1.expect)(result[0].message).to.eq('Value is not accepted. Valid values: "tested".'); + }); + it('value matches more than one schema in oneOf - but among one is format matches', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + repository: { + oneOf: [ + { + type: 'string', + format: 'uri', + }, + { + type: 'string', + pattern: '^@', + }, + ], + }, + }, + }); + const content = `repository: '@bittrr'`; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(0); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + it('value matches more than one schema in oneOf', async () => { + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, { + type: 'object', + properties: { + foo: {}, + bar: {}, + }, + oneOf: [ + { + required: ['foo'], + }, + { + required: ['bar'], + }, + ], + }); + const content = `foo: bar\nbar: baz`; + const result = await parseSetup(content); + (0, chai_1.expect)(result.length).to.eq(1); + (0, chai_1.expect)(result[0].message).to.eq('Matches multiple schemas when only one must validate.'); + (0, chai_1.expect)(telemetry.messages).to.be.empty; + }); + }); + it('Nested AnyOf const should correctly evaluate and merge problems', async () => { + // note that 'missing form property' is necessary to trigger the bug (there has to be some problem in both subSchemas) + // order of the object in `anyOf` is also important + const schema = { + type: 'object', + properties: { + options: { + anyOf: [ + { + type: 'object', + properties: { + form: { + type: 'string', + }, + provider: { + type: 'string', + const: 'test1', + }, + }, + required: ['form', 'provider'], + }, + { + type: 'object', + properties: { + form: { + type: 'string', + }, + provider: { + anyOf: [ + { + type: 'string', + const: 'testX', + }, + ], + }, + }, + required: ['form', 'provider'], + }, + ], + }, + }, + }; + schemaProvider.addSchema(testHelper_1.SCHEMA_ID, schema); + const content = `options:\n provider: testX`; + const result = await parseSetup(content); + assert.deepEqual(result.map((e) => e.message), ['Missing property "form".'] // not inclide provider error + ); + }); +}); +//# sourceMappingURL=schemaValidation.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js.map" index b82db9b42cc4eb1ee324cff97055503b61fe5ea1..c522a621717e10856fcd28406b5da9b948b19b17 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/schemaValidation.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d3c0cc483f9d72189a437638cb8ff330a8b109afeda41af224ca4deb6b69faeb -size 49058 +{"version":3,"file":"schemaValidation.test.js","sourceRoot":"","sources":["../../../test/schemaValidation.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mDAA0H;AAC1H,qDAAoF;AACpF,uDAAoD;AACpD,yDAS+B;AAC/B,iCAAiC;AACjC,6BAA6B;AAC7B,6EAAuF;AACvF,+BAA8B;AAC9B,sDAA6E;AAG7E,wEAAgF;AAKhF,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAI,qBAAmC,CAAC;IACxC,IAAI,iBAAoC,CAAC;IACzC,IAAI,eAAgC,CAAC;IACrC,IAAI,YAA2B,CAAC;IAChC,IAAI,SAAwB,CAAC;IAC7B,IAAI,cAAwC,CAAC;IAE7C,MAAM,CAAC,GAAG,EAAE;QACV,qBAAqB,GAAG,IAAI,2BAAY,EAAE;aACvC,YAAY,EAAE;aACd,cAAc,EAAE;aAChB,cAAc,CAAC,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;aAC1C,mBAAmB,CAAC,EAAE,GAAG,EAAE,kCAAqB,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;aAC9E,mBAAmB,CAAC,EAAE,GAAG,EAAE,oCAAoC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;aAC7F,mBAAmB,CAAC,EAAE,GAAG,EAAE,kCAAqB,EAAE,SAAS,EAAE,CAAC,UAAU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IAAI,EAAE;QAC/E,sHAAsH;QACtH,mDAAmD;QACnD,MAAM,MAAM,GAAe;YACzB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ;iCACf;gCACD,QAAQ,EAAE;oCACR,IAAI,EAAE,QAAQ;oCACd,KAAK,EAAE,OAAO;iCACf;6BACF;4BACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;yBAC/B;wBACD;4BACE,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ;iCACf;gCACD,QAAQ,EAAE;oCACR,KAAK,EAAE;wCACL;4CACE,IAAI,EAAE,QAAQ;4CACd,KAAK,EAAE,OAAO;yCACf;qCACF;iCACF;6BACF;4BACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;yBAC/B;qBACF;iBACF;aACF;SACF,CAAC;QACF,cAAc,CAAC,SAAS,CAAC,sBAAS,EAAE,MAAM,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,6BAA6B,CAAC;QAC9C,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;QACzC,MAAM,CAAC,SAAS,CACd,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAC5B,CAAC,0BAA0B,CAAC,CAAC,6BAA6B;SAC3D,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js" index df60c07da3443e755cb000283431617be9dab885..4e4db7107070b168f96671cffd7e31b1a6d37af2 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js" @@ -1,3 +1,299 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d4ea91b74b352cd51b525eb7e0480418539bdbcf3113b7aba59d39fd52a054d -size 15699 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const chai = require("chai"); +const request = require("request-light"); +const sinon = require("sinon"); +const sinonChai = require("sinon-chai"); +const src_1 = require("../src"); +const settingsHandlers_1 = require("../src/languageserver/handlers/settingsHandlers"); +const validationHandlers_1 = require("../src/languageserver/handlers/validationHandlers"); +const yamlSettings_1 = require("../src/yamlSettings"); +const testHelper_1 = require("./utils/testHelper"); +const testsTypes_1 = require("./utils/testsTypes"); +const expect = chai.expect; +chai.use(sinonChai); +describe('Settings Handlers Tests', () => { + const sandbox = sinon.createSandbox(); + const connection = {}; + let workspaceStub; + let languageService; + let settingsState; + let validationHandler; + let xhrStub; + beforeEach(() => { + workspaceStub = sandbox.createStubInstance(testsTypes_1.TestWorkspace); + connection.workspace = workspaceStub; + connection.onDidChangeConfiguration = sandbox.mock(); + connection.client = {}; + connection.client.register = sandbox.mock(); + const languageServerSetup = (0, testHelper_1.setupLanguageService)({}); + languageService = languageServerSetup.languageService; + settingsState = new yamlSettings_1.SettingsState(); + validationHandler = sandbox.mock(validationHandlers_1.ValidationHandler); + xhrStub = sandbox.stub(request, 'xhr'); + const sendRequest = sandbox.fake(); + connection.sendRequest = sendRequest; + }); + afterEach(() => { + sandbox.restore(); + }); + it('should not register configuration notification handler if client not supports dynamic handlers', () => { + settingsState.clientDynamicRegisterSupport = false; + settingsState.hasConfigurationCapability = false; + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + settingsHandler.registerHandlers(); + expect(connection.client.register).not.called; + }); + it('should register configuration notification handler only if client supports dynamic handlers', () => { + settingsState.clientDynamicRegisterSupport = true; + settingsState.hasConfigurationCapability = true; + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + settingsHandler.registerHandlers(); + expect(connection.client.register).calledOnce; + }); + describe('Settings for YAML style should ', () => { + it(' reflect to the settings ', async () => { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{ style: { flowMapping: 'forbid', flowSequence: 'forbid' } }, {}, {}, {}, {}]); + await settingsHandler.pullConfiguration(); + expect(settingsState.style).to.exist; + expect(settingsState.style.flowMapping).to.eqls('forbid'); + expect(settingsState.style.flowSequence).to.eqls('forbid'); + }); + it(' reflect default values if no settings given', async () => { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}, {}]); + await settingsHandler.pullConfiguration(); + expect(settingsState.style).to.exist; + expect(settingsState.style.flowMapping).to.eqls('allow'); + expect(settingsState.style.flowSequence).to.eqls('allow'); + }); + }); + describe('Settings for key ordering should ', () => { + it(' reflect to the settings ', async () => { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{ keyOrdering: true }, {}, {}, {}, {}]); + await settingsHandler.pullConfiguration(); + expect(settingsState.keyOrdering).to.exist; + expect(settingsState.keyOrdering).to.be.true; + }); + it(' reflect default values if no settings given', async () => { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}, {}]); + await settingsHandler.pullConfiguration(); + expect(settingsState.style).to.exist; + expect(settingsState.keyOrdering).to.be.false; + }); + }); + describe('Settings for file associations should ', () => { + it('reflect to settings state', async () => { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}, { associations: { '*.bu': 'yaml' } }]); + await settingsHandler.pullConfiguration(); + expect(settingsState.fileExtensions).to.include('*.bu'); + expect(settingsState.fileExtensions).to.include('.yml'); + expect(settingsState.fileExtensions).to.include('.yaml'); + }); + it('SettingsHandler should match patterns from file associations', async () => { + const languageServerSetup = (0, testHelper_1.setupLanguageService)({}); + const languageService = languageServerSetup.languageService; + xhrStub.resolves({ + responseText: `{"schemas": [ + { + "name": "Butane config schema", + "description": "Schema to validate butane files for Fedora CoreOS", + "fileMatch": [ + "*.bu" + ], + "url": "https://raw.githubusercontent.com/Relativ-IT/Butane-Schemas/Release/Butane-Schema.json" + }]}`, + }); + settingsState.fileExtensions.push('*.bu'); + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}]); + const configureSpy = sinon.stub(languageService, 'configure'); + await settingsHandler.pullConfiguration(); + configureSpy.restore(); + expect(settingsState.schemaStoreSettings).deep.include({ + uri: 'https://raw.githubusercontent.com/Relativ-IT/Butane-Schemas/Release/Butane-Schema.json', + fileMatch: ['*.bu'], + priority: src_1.SchemaPriority.SchemaStore, + name: 'Butane config schema', + description: 'Schema to validate butane files for Fedora CoreOS', + versions: undefined, + }); + }); + it('SettingsHandler should not match non-yaml files if there is no file assosication', async () => { + const languageServerSetup = (0, testHelper_1.setupLanguageService)({}); + const languageService = languageServerSetup.languageService; + xhrStub.resolves({ + responseText: `{"schemas": [ + { + "name": "Butane config schema", + "description": "Schema to validate butane files for Fedora CoreOS", + "fileMatch": [ + "*.bu" + ], + "url": "https://raw.githubusercontent.com/Relativ-IT/Butane-Schemas/Release/Butane-Schema.json" + }]}`, + }); + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}]); + const configureSpy = sinon.stub(languageService, 'configure'); + await settingsHandler.pullConfiguration(); + configureSpy.restore(); + expect(settingsState.schemaStoreSettings).not.deep.include({ + uri: 'https://raw.githubusercontent.com/Relativ-IT/Butane-Schemas/Release/Butane-Schema.json', + fileMatch: ['*.bu'], + priority: src_1.SchemaPriority.SchemaStore, + name: 'Butane config schema', + description: 'Schema to validate butane files for Fedora CoreOS', + versions: undefined, + }); + }); + }); + it('SettingsHandler should not modify file match patterns', async () => { + const languageServerSetup = (0, testHelper_1.setupLanguageService)({}); + const languageService = languageServerSetup.languageService; + xhrStub.resolves({ + responseText: `{"schemas": [ + { + "name": ".adonisrc.json", + "description": "AdonisJS configuration file", + "fileMatch": [ + ".adonisrc.yaml" + ], + "url": "https://raw.githubusercontent.com/adonisjs/application/master/adonisrc.schema.json" + }]}`, + }); + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}]); + const configureSpy = sinon.stub(languageService, 'configure'); + await settingsHandler.pullConfiguration(); + configureSpy.restore(); + expect(settingsState.schemaStoreSettings).deep.include({ + uri: 'https://raw.githubusercontent.com/adonisjs/application/master/adonisrc.schema.json', + fileMatch: ['.adonisrc.yaml'], + priority: src_1.SchemaPriority.SchemaStore, + name: '.adonisrc.json', + description: 'AdonisJS configuration file', + versions: undefined, + }); + }); + describe('Test that schema priorities are available', async () => { + const testSchemaFileMatch = ['foo/*.yml']; + const testSchemaURI = 'file://foo.json'; + async function configureSchemaPriorityTest() { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + const configureSpy = sinon.spy(languageService, 'configure'); + await settingsHandler.pullConfiguration(); + configureSpy.restore(); + return configureSpy.args[0][0]; + } + it('Schema Settings should have a priority', async () => { + xhrStub.resolves({ + responseText: `{"schemas": [ + { + "name": ".adonisrc.json", + "description": "AdonisJS configuration file", + "fileMatch": [ + ".adonisrc.yaml" + ], + "url": "https://raw.githubusercontent.com/adonisjs/application/master/adonisrc.schema.json" + }]}`, + }); + const schemas = {}; + schemas[testSchemaURI] = testSchemaFileMatch; + workspaceStub.getConfiguration.resolves([{ schemas: schemas }, {}, {}, {}]); + const configureSpy = await configureSchemaPriorityTest(); + expect(configureSpy.schemas).deep.include({ + uri: testSchemaURI, + fileMatch: testSchemaFileMatch, + schema: undefined, + priority: src_1.SchemaPriority.Settings, + }); + }); + it('Schema Associations should have a priority when schema association is an array', async () => { + xhrStub.resolves({ + responseText: `{"schemas": [ + { + "name": ".adonisrc.json", + "description": "AdonisJS configuration file", + "fileMatch": [ + ".adonisrc.yaml" + ], + "url": "https://raw.githubusercontent.com/adonisjs/application/master/adonisrc.schema.json" + }]}`, + }); + settingsState.schemaAssociations = [ + { + fileMatch: testSchemaFileMatch, + uri: testSchemaURI, + }, + ]; + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}]); + const configureSpy = await configureSchemaPriorityTest(); + expect(configureSpy.schemas).deep.include({ + uri: testSchemaURI, + fileMatch: testSchemaFileMatch, + schema: undefined, + priority: src_1.SchemaPriority.SchemaAssociation, + }); + }); + it('Schema Associations should have a priority when schema association is a record', async () => { + settingsState.schemaAssociations = { + [testSchemaURI]: testSchemaFileMatch, + }; + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}]); + const configureSpy = await configureSchemaPriorityTest(); + expect(configureSpy.schemas).deep.include({ + uri: testSchemaURI, + fileMatch: testSchemaFileMatch, + priority: src_1.SchemaPriority.SchemaAssociation, + }); + }); + }); + describe('Settings fetch', () => { + it('should fetch preferences', async () => { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, {}, {}]); + await settingsHandler.pullConfiguration(); + expect(workspaceStub.getConfiguration).calledOnceWith([ + { section: 'yaml' }, + { section: 'http' }, + { section: '[yaml]' }, + { section: 'editor' }, + { section: 'files' }, + ]); + }); + it('should set schemaStoreSettings to empty when schemaStore is disabled', async () => { + const languageServerSetup = (0, testHelper_1.setupLanguageService)({}); + const languageService = languageServerSetup.languageService; + settingsState.schemaStoreEnabled = true; + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{ schemaStore: { enable: false, url: 'http://shouldnot.activate' } }, {}, {}, {}]); + // const configureSpy = sinon.spy(languageService, 'configure'); + await settingsHandler.pullConfiguration(); + // configureSpy.restore(); + expect(settingsState.schemaStoreEnabled).to.be.false; + expect(settingsState.schemaStoreSettings).to.be.empty; + }); + it('detect indentation settings change', async () => { + const settingsHandler = new settingsHandlers_1.SettingsHandler(connection, languageService, settingsState, validationHandler, {}); + workspaceStub.getConfiguration.resolves([{}, {}, {}, { tabSize: 4, detectIndentation: false }]); + await settingsHandler.pullConfiguration(); + expect(workspaceStub.getConfiguration).calledOnceWith([ + { section: 'yaml' }, + { section: 'http' }, + { section: '[yaml]' }, + { section: 'editor' }, + { section: 'files' }, + ]); + }); + }); +}); +//# sourceMappingURL=settingsHandlers.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js.map" index 47b0f54b6ae6451e473ac78023e961cc28a2e90a..44f4322538436924f1a4edb611db2889629661f5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/settingsHandlers.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c443a61ac52b725edaef9502b39c055f105446b414c1242d71c3c4693ee5b64 -size 10949 +{"version":3,"file":"settingsHandlers.test.js","sourceRoot":"","sources":["../../../test/settingsHandlers.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,6BAA6B;AAC7B,yCAAyC;AACzC,+BAA+B;AAC/B,wCAAwC;AAExC,gCAAgG;AAChG,sFAAkF;AAClF,0FAAsF;AAEtF,sDAAoD;AACpD,mDAA0D;AAC1D,mDAAmD;AAEnD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAEpB,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IACtC,MAAM,UAAU,GAAe,EAAgB,CAAC;IAChD,IAAI,aAA0D,CAAC;IAC/D,IAAI,eAAgC,CAAC;IACrC,IAAI,aAA4B,CAAC;IACjC,IAAI,iBAAkC,CAAC;IACvC,IAAI,OAAwB,CAAC;IAE7B,UAAU,CAAC,GAAG,EAAE;QACd,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,0BAAa,CAAC,CAAC;QAC1D,UAAU,CAAC,SAAS,GAAG,aAA2C,CAAC;QACnE,UAAU,CAAC,wBAAwB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QACrD,UAAU,CAAC,MAAM,GAAG,EAAkB,CAAC;QACvC,UAAU,C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YAC1B,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;YACrD,MAAM,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACxD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;YAClD,MAAM,eAAe,GAAG,IAAI,kCAAe,CACzC,UAAU,EACV,eAA6C,EAC7C,aAAa,EACb,iBAAiD,EACjD,EAAe,CAChB,CAAC;YACF,aAAa,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YAChG,MAAM,eAAe,CAAC,iBAAiB,EAAE,CAAC;YAE1C,MAAM,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,cAAc,CAAC;gBACpD,EAAE,OAAO,EAAE,MAAM,EAAE;gBACnB,EAAE,OAAO,EAAE,MAAM,EAAE;gBACnB,EAAE,OAAO,EAAE,QAAQ,EAAE;gBACrB,EAAE,OAAO,EAAE,QAAQ,EAAE;gBACrB,EAAE,OAAO,EAAE,OAAO,EAAE;aACrB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js" index b1f5b39a221ed05204dbb794183a89cf16fffb0d..12756f3e98193b2ef800c5a1831687d979b6db1b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js" @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dacbfd3b7ab215c090d9e67de88d271c9f2fc5252678c82b9e275cfed6c06602 -size 4382 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const strings_1 = require("../src/languageservice/utils/strings"); +const assert = require("assert"); +const chai_1 = require("chai"); +describe('String Tests', () => { + describe('startsWith', function () { + it('String with different lengths', () => { + const one = 'hello'; + const other = 'goodbye'; + const result = (0, strings_1.startsWith)(one, other); + assert.equal(result, false); + }); + it('String with same length different first letter', () => { + const one = 'hello'; + const other = 'jello'; + const result = (0, strings_1.startsWith)(one, other); + assert.equal(result, false); + }); + it('Same string', () => { + const one = 'hello'; + const other = 'hello'; + const result = (0, strings_1.startsWith)(one, other); + assert.equal(result, true); + }); + }); + describe('endsWith', function () { + it('String with different lengths', () => { + const one = 'hello'; + const other = 'goodbye'; + const result = (0, strings_1.endsWith)(one, other); + assert.equal(result, false); + }); + it('Strings that are the same', () => { + const one = 'hello'; + const other = 'hello'; + const result = (0, strings_1.endsWith)(one, other); + assert.equal(result, true); + }); + it('Other is smaller then one', () => { + const one = 'hello'; + const other = 'hi'; + const result = (0, strings_1.endsWith)(one, other); + assert.equal(result, false); + }); + }); + describe('convertSimple2RegExp', function () { + it('Test of convertRegexString2RegExp', () => { + const result = (0, strings_1.convertSimple2RegExp)('/toc\\.yml/i').test('TOC.yml'); + assert.equal(result, true); + }); + it('Test of convertGlobalPattern2RegExp', () => { + let result = (0, strings_1.convertSimple2RegExp)('toc.yml').test('toc.yml'); + assert.equal(result, true); + result = (0, strings_1.convertSimple2RegExp)('toc.yml').test('TOC.yml'); + assert.equal(result, false); + }); + }); + describe('safeCreateUnicodeRegExp', () => { + it('should create unicode RegExp for non unicode patterns', () => { + const result = (0, strings_1.safeCreateUnicodeRegExp)( + // eslint-disable-next-line prettier/prettier + '^([2-9])\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$'); + (0, chai_1.expect)(result).is.not.undefined; + }); + it('should create unicode RegExp for non unicode patterns2', () => { + // eslint-disable-next-line prettier/prettier + const result = (0, strings_1.safeCreateUnicodeRegExp)('^[^\\/~\\^\\: \\[\\]\\\\]+(\\/[^\\/~\\^\\: \\[\\]\\\\]+)*$'); + (0, chai_1.expect)(result).is.not.undefined; + }); + it('should create unicode RegExp for non unicode patterns3', () => { + // eslint-disable-next-line prettier/prettier + const result = (0, strings_1.safeCreateUnicodeRegExp)('^(\\s?)+=[^\\=](.+)'); + (0, chai_1.expect)(result).is.not.undefined; + }); + it('should create unicode RegExp for non unicode patterns4', () => { + // eslint-disable-next-line prettier/prettier + const result = (0, strings_1.safeCreateUnicodeRegExp)('^x-[\\w\\d\\.\\-\\_]+$'); + (0, chai_1.expect)(result).is.not.undefined; + }); + it('should create unicode RegExp for non unicode patterns5', () => { + // eslint-disable-next-line prettier/prettier + const result = (0, strings_1.safeCreateUnicodeRegExp)('^[\\w\\-_]+$'); + (0, chai_1.expect)(result).is.not.undefined; + }); + }); +}); +//# sourceMappingURL=strings.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js.map" index 6e6b7c4fed13d630497fb313b1481014af1e0d76..75dddc957db3a6304a2dcfc39728dd2eda073242 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/strings.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c06c0291726283b254a94eadf4f6ca2163ec145d2f20f2200db48e4e799eebc9 -size 3285 +{"version":3,"file":"strings.test.js","sourceRoot":"","sources":["../../../test/strings.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,kEAA2H;AAC3H,iCAAiC;AACjC,+BAA8B;AAE9B,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,QAAQ,CAAC,YAAY,EAAE;QACrB,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;YACvC,MAAM,GAAG,GAAG,OAAO,CAAC;YACpB,MAAM,KAAK,GAAG,SAAS,CAAC;YAExB,MAAM,MAAM,GAAG,IAAA,oBAAU,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACtC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;YACxD,MAAM,GAAG,GAAG,OAAO,CAAC;YACpB,MAAM,KAAK,GAAG,OAAO,CAAC;YAEtB,MAAM,MAAM,GAAG,IAAA,oBAAU,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACtC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE;YACrB,MAAM,GAAG,GAAG,OAAO,CAAC;YACpB,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,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;YAChE,6CAA6C;YAC7C,MAAM,MAAM,GAAG,IAAA,iCAAuB,EAAC,wBAAwB,CAAC,CAAC;YACjE,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;QAClC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;YAChE,6CAA6C;YAC7C,MAAM,MAAM,GAAG,IAAA,iCAAuB,EAAC,cAAc,CAAC,CAAC;YACvD,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;QAClC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js" index 4a6cea1037805d52fe36729faa4f2656f058ba5c..24c7cf43759b2f5557122adc6938b47a60b73988 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js" @@ -1,3 +1,36 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd3a47fc935ca444b24da48bdc9ddf8349e7f30a00282580a3969df2d5c40cb7 -size 1728 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const sinon = require("sinon"); +const sinonChai = require("sinon-chai"); +const chai = require("chai"); +const schemaUrls_1 = require("../src/languageservice/utils/schemaUrls"); +const telemetry_1 = require("../src/languageserver/telemetry"); +const vscode_uri_1 = require("vscode-uri"); +const expect = chai.expect; +chai.use(sinonChai); +describe('Telemetry Tests', () => { + const sandbox = sinon.createSandbox(); + let telemetry; + beforeEach(() => { + const telemetryInstance = new telemetry_1.TelemetryImpl({}); + telemetry = sandbox.stub(telemetryInstance); + }); + afterEach(() => { + sandbox.restore(); + }); + describe('Kubernetos schema mapping', () => { + it('should not report if schema is not k8s', () => { + (0, schemaUrls_1.checkSchemaURI)([], vscode_uri_1.URI.parse('file:///some/path'), 'file:///some/path/to/schema.json', telemetry); + expect(telemetry.send).not.called; + }); + it('should report if schema is k8s', () => { + (0, schemaUrls_1.checkSchemaURI)([], vscode_uri_1.URI.parse('file:///some/path'), 'kubernetes', telemetry); + expect(telemetry.send).calledOnceWith({ name: 'yaml.schema.configured', properties: { kubernetes: true } }); + }); + }); +}); +//# sourceMappingURL=telemetry.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js.map" index 27470e60a6dbefb0ce0c7adc5ec902fe233f5019..934dd08411adad3e6cf63a6e759bd8f40c6cf2c7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/telemetry.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7bcbc7bc9ccb68b5c196f2590d12cc30839cd240ad0d20af0d9ba01783b7dca3 -size 1213 +{"version":3,"file":"telemetry.test.js","sourceRoot":"","sources":["../../../test/telemetry.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,+BAA+B;AAC/B,wCAAwC;AACxC,6BAA6B;AAC7B,wEAAyE;AACzE,+DAAgE;AAChE,2CAAiC;AAGjC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAEpB,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IAEtC,IAAI,SAAoD,CAAC;IACzD,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,iBAAiB,GAAG,IAAI,yBAAa,CAAC,EAAgB,CAAC,CAAC;QAC9D,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,OAAO,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACzC,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;YAChD,IAAA,2BAAc,EAAC,EAAE,EAAE,gBAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,kCAAkC,EAAE,SAAS,CAAC,CAAC;YAClG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;QACpC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;YACxC,IAAA,2BAAc,EAAC,EAAE,EAAE,gBAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;YAC5E,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9G,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js" index b727224233f0cefa9e21e24716a9a6b7b0b3ce3c..1af8be99669c7b42674b931edb3ae3019b1b8696 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js" @@ -1,3 +1,41 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9727972a757cee4cd69d7eea135a6aa74f703986134bd404cf66223c654ed5e -size 2496 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const textBuffer_1 = require("../src/languageservice/utils/textBuffer"); +const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument"); +const assert = require("assert"); +describe('TextBuffer', () => { + it('getLineLength should return actual line length', () => { + const buffer = new textBuffer_1.TextBuffer(vscode_languageserver_textdocument_1.TextDocument.create('file://foo/bar', 'yaml', 1, 'Foo\nbar')); + const length = buffer.getLineLength(0); + assert.strictEqual(length, 4); + const length2 = buffer.getLineLength(1); + assert.strictEqual(length2, 3); + }); + it('getLineLength should return actual line length, win style', () => { + const buffer = new textBuffer_1.TextBuffer(vscode_languageserver_textdocument_1.TextDocument.create('file://foo/bar', 'yaml', 1, 'Foo\r\nbar')); + const length = buffer.getLineLength(0); + assert.strictEqual(length, 5); + const length2 = buffer.getLineLength(1); + assert.strictEqual(length2, 3); + }); + it('getLineContent should return actual line content', () => { + const buffer = new textBuffer_1.TextBuffer(vscode_languageserver_textdocument_1.TextDocument.create('file://foo/bar', 'yaml', 1, 'Foo\nbar\nfooBar\nsome')); + const line = buffer.getLineContent(1); + assert.strictEqual(line, 'bar\n'); + }); + it('getLineContent should return last line', () => { + const buffer = new textBuffer_1.TextBuffer(vscode_languageserver_textdocument_1.TextDocument.create('file://foo/bar', 'yaml', 1, 'Foo\nbar\nfooBar\nsome')); + const line = buffer.getLineContent(3); + assert.strictEqual(line, 'some'); + }); + it('getLineCharCode should return charCode', () => { + const buffer = new textBuffer_1.TextBuffer(vscode_languageserver_textdocument_1.TextDocument.create('file://foo/bar', 'yaml', 1, 'Foo\nbar\nfooBar\nsome')); + const charCode = buffer.getLineCharCode(3, 3); + assert.strictEqual(charCode, 'B'.charCodeAt(0)); + }); +}); +//# sourceMappingURL=textBuffer.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js.map" index 004bd200e819c822283d1671dad6144d23b6628b..703674ddc96b6ca084dc0d449e3cc1635c37f0b5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/textBuffer.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd512d535bf9bb2159a3f5487b59204bbd325b1f7c3457a4b658fa9bc02356d9 -size 1870 +{"version":3,"file":"textBuffer.test.js","sourceRoot":"","sources":["../../../test/textBuffer.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,wEAAqE;AACrE,2FAAkE;AAClE,iCAAiC;AAEjC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACxD,MAAM,MAAM,GAAG,IAAI,uBAAU,CAAC,iDAAY,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;QAC5F,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAC9B,MAAM,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACnE,MAAM,MAAM,GAAG,IAAI,uBAAU,CAAC,iDAAY,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;QAC9F,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;Q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\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.d.ts" index 107f87939dd33805390af4160a31179a8d6aa725..f1559d243b317d7c572e5f1129b0bd81386c16ba 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.d.ts" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f77764a0d92c724492b729e85541c1d3a7a196de9eeebfd7a2ae6ccd8a1e610e -size 1059 +/** + * List of error messages + */ +/** + * Type Errors + */ +export declare const StringTypeError = "Incorrect type. Expected \"string\"."; +export declare const NumberTypeError = "Incorrect type. Expected \"number\"."; +export declare const BooleanTypeError = "Incorrect type. Expected \"boolean\"."; +export declare const ArrayTypeError = "Incorrect type. Expected \"array\"."; +export declare const ObjectTypeError = "Incorrect type. Expected \"object\"."; +export declare const TypeMismatchWarning = "Incorrect type. Expected \"{0}\"."; +export declare const MissingRequiredPropWarning = "Missing property \"{0}\"."; +export declare const ConstWarning = "Value must be {0}."; +export declare function propertyIsNotAllowed(name: string): string; +/** + * Parse errors + */ +export declare const BlockMappingEntryError = "Implicit map keys need to be followed by map values"; +/** + * Value Errors + */ +export declare const IncludeWithoutValueError = "!include without value"; +/** + * Duplicate Key error + */ +export declare const DuplicateKeyError = "Map keys must be unique"; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js" index b990b5fda35dc6595c3b125257c196f58ff6f1db..106c2c7675d4480f94856610790f2d9964d40363 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js" @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5d3cd953f684e1f5cf981b140fa734385abeb5c6dd30ba1159cd291908a8e86 -size 1785 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DuplicateKeyError = exports.IncludeWithoutValueError = exports.BlockMappingEntryError = exports.propertyIsNotAllowed = exports.ConstWarning = exports.MissingRequiredPropWarning = exports.TypeMismatchWarning = exports.ObjectTypeError = exports.ArrayTypeError = exports.BooleanTypeError = exports.NumberTypeError = exports.StringTypeError = void 0; +/** + * List of error messages + */ +/** + * Type Errors + */ +exports.StringTypeError = 'Incorrect type. Expected "string".'; +exports.NumberTypeError = 'Incorrect type. Expected "number".'; +exports.BooleanTypeError = 'Incorrect type. Expected "boolean".'; +exports.ArrayTypeError = 'Incorrect type. Expected "array".'; +exports.ObjectTypeError = 'Incorrect type. Expected "object".'; +exports.TypeMismatchWarning = 'Incorrect type. Expected "{0}".'; +exports.MissingRequiredPropWarning = 'Missing property "{0}".'; +exports.ConstWarning = 'Value must be {0}.'; +function propertyIsNotAllowed(name) { + return `Property ${name} is not allowed.`; +} +exports.propertyIsNotAllowed = propertyIsNotAllowed; +/** + * Parse errors + */ +exports.BlockMappingEntryError = 'Implicit map keys need to be followed by map values'; +/** + * Value Errors + */ +exports.IncludeWithoutValueError = '!include without value'; +/** + * Duplicate Key error + */ +exports.DuplicateKeyError = 'Map keys must be unique'; +//# sourceMappingURL=errorMessages.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js.map" index b13d5cc0ce57ac1895fb8d72dc6fdd28abe882f8..37164b01d33f8313360df5469ebd3e2f092c7783 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/errorMessages.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:748e6e6e6570577f24d8e9693e28569df7f62f4cf8ba3db19d4dc781064e3af6 -size 663 +{"version":3,"file":"errorMessages.js","sourceRoot":"","sources":["../../../../test/utils/errorMessages.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG;;GAEG;AAEH;;GAEG;AACU,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,gBAAgB,GAAG,qCAAqC,CAAC;AACzD,QAAA,cAAc,GAAG,mCAAmC,CAAC;AACrD,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,mBAAmB,GAAG,iCAAiC,CAAC;AACxD,QAAA,0BAA0B,GAAG,yBAAyB,CAAC;AACvD,QAAA,YAAY,GAAG,oBAAoB,CAAC;AAEjD,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,OAAO,YAAY,IAAI,kBAAkB,CAAC;AAC5C,CAAC;AAFD,oDAEC;AAED;;GAEG;AACU,QAAA,sBAAsB,GAAG,qDAAqD,CAAC;AAE5F;;GAEG;AACU,QAAA,wBAAwB,GAAG,wBAAwB,CAAC;AAEjE;;GAEG;AACU,QAAA,iBAAiB,GAAG,yBAAyB,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.d.ts" index 6b02dde362aff651722035395cc7b1a2ed8e5b37..b25dfc51abb1fe59034907cef019f259a61b87e8 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.d.ts" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da367a315ff5f0deef89f81fd16dfe2816eb5f79b93ea92c6f722457d8e8290b -size 728 +import { LanguageSettings, SchemasSettings } from '../../src/languageservice/yamlLanguageService'; +export declare class ServiceSetup { + languageSettings: LanguageSettings; + withValidate(): ServiceSetup; + withHover(): ServiceSetup; + withCompletion(): ServiceSetup; + withFormat(): ServiceSetup; + withKubernetes(allow?: boolean): ServiceSetup; + withSchemaFileMatch(schemaFileMatch: SchemasSettings): ServiceSetup; + withCustomTags(customTags: string[]): ServiceSetup; + withIndentation(indentation: string): ServiceSetup; + withFlowMapping(mapping: 'allow' | 'forbid'): ServiceSetup; + withFlowSequence(sequence: 'allow' | 'forbid'): ServiceSetup; + withKeyOrdering(order?: boolean): ServiceSetup; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js" index 186b7bf48584e8d7c609c3c2b3f281f6acd1ce3f..ec16eafbfd03c6a962f3085ebdbf8e3cbabd883a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js" @@ -1,3 +1,70 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d17e62a7a85a363b9a5ba853c88cac2bc4a3c0fda8ff0e8b5e3f0f89062662b6 -size 1988 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServiceSetup = void 0; +class ServiceSetup { + constructor() { + /* + * By default the service setup is going to have everything disabled + * and each test is going to enable a feature with a with function call + */ + this.languageSettings = { + validate: false, + hover: false, + completion: false, + format: false, + isKubernetes: false, + schemas: [], + customTags: [], + indentation: undefined, + yamlVersion: '1.2', + flowMapping: 'allow', + flowSequence: 'allow', + }; + } + withValidate() { + this.languageSettings.validate = true; + return this; + } + withHover() { + this.languageSettings.hover = true; + return this; + } + withCompletion() { + this.languageSettings.completion = true; + return this; + } + withFormat() { + this.languageSettings.format = true; + return this; + } + withKubernetes(allow = true) { + this.languageSettings.isKubernetes = allow; + return this; + } + withSchemaFileMatch(schemaFileMatch) { + this.languageSettings.schemas.push(schemaFileMatch); + return this; + } + withCustomTags(customTags) { + this.languageSettings.customTags = customTags; + return this; + } + withIndentation(indentation) { + this.languageSettings.indentation = indentation; + return this; + } + withFlowMapping(mapping) { + this.languageSettings.flowMapping = mapping; + return this; + } + withFlowSequence(sequence) { + this.languageSettings.flowSequence = sequence; + return this; + } + withKeyOrdering(order = true) { + this.languageSettings.keyOrdering = order; + return this; + } +} +exports.ServiceSetup = ServiceSetup; +//# sourceMappingURL=serviceSetup.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js.map" index 2cd7f31ffb41defa55a133884167333e5adc4ea3..7f5c29e8255dcb729a682c761ac2eacd4fd3721a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/serviceSetup.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e32bfce24dea53e6ca016ca6768c30496398ab163e129b6fb71d45bb712121e1 -size 1541 +{"version":3,"file":"serviceSetup.js","sourceRoot":"","sources":["../../../../test/utils/serviceSetup.ts"],"names":[],"mappings":";;;AAMA,MAAa,YAAY;IAAzB;QACE;;;WAGG;QACH,qBAAgB,GAAqB;YACnC,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,KAAK;YACnB,OAAO,EAAE,EAAE;YACX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,QAAQ,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,eAAe,CAAC,KAAK,GAAG,IAAI;QAC1B,IAAI,CAAC,gBAAgB,CAAC,WAAW,GAAG,KAAK,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvED,oCAuEC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.d.ts" index 20ddedbfd84fa83419ebe60525372220ee9a7db8..9450fae109795914252b0fa8e15638b0bc59c991 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.d.ts" @@ -1,3 +1,78 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc3994377b1324d95b0c1fba4c99dc28e9a751cc7e426d52a20a9b242333ccdd -size 3418 +import { SettingsState } from '../../src/yamlSettings'; +import { FileSystem } from '../../src/languageservice/services/schemaRequestHandler'; +import { LanguageService, LanguageSettings } from '../../src'; +import { ValidationHandler } from '../../src/languageserver/handlers/validationHandlers'; +import { LanguageHandlers } from '../../src/languageserver/handlers/languageHandlers'; +import { TextDocument } from 'vscode-languageserver-textdocument'; +import { TestTelemetry } from './testsTypes'; +import { JSONSchema } from '../../src/languageservice/jsonSchema'; +export declare function toFsPath(str: unknown): string; +export declare const TEST_URI = "file://~/Desktop/vscode-k8s/test.yaml"; +export declare const SCHEMA_ID = "default_schema_id.yaml"; +export declare function setupTextDocument(content: string): TextDocument; +export declare function setupSchemaIDTextDocument(content: string, customSchemaID?: string): TextDocument; +export declare const testFileSystem: FileSystem; +export interface TestLanguageServerSetup { + languageService: LanguageService; + validationHandler: ValidationHandler; + languageHandler: LanguageHandlers; + yamlSettings: SettingsState; + telemetry: TestTelemetry; + schemaProvider: TestCustomSchemaProvider; +} +export declare function setupLanguageService(languageSettings: LanguageSettings): TestLanguageServerSetup; +/** + * Derives the absolute `position` of the caret given `content` containing a virtual caret. + * @param content The content of the document. + * The caret is located in the content using `|` bookends. + * For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2` + * @returns The absolute position of the caret. + */ +export declare function caretPosition(content: string): { + position: number; + content: string; +}; +export declare class TestCustomSchemaProvider { + private schemas; + private static self; + private constructor(); + static instance(): TestCustomSchemaProvider; + /** + * Adds a schema to the list of custom schemas. + * @param doc The uri of the document + * @param schema The JSON schema object. + */ + addSchema(doc: string, schema: JSONSchema): void; + /** + * Adds a schema to the list of custom schemas. + * @param doc The uri of the document + * @param uri The uri of the schema + * @param schema The JSON schema object. + */ + addSchemaWithUri(doc: string, uri: string, schema: JSONSchema): void; + /** + * Deletes a schema from the list of custom schemas. + * @param doc The uri of the document + */ + deleteSchema(doc: string): void; + /** + * Checks if a schema exists for a given document. + * @param doc The uri of the document + * @returns True if a schema exists for the document, false otherwise. + */ + has(doc: string): boolean; + /** + * Returns the schemas for a given document + * @param doc The uri of the document. + * @returns The uris of the schemas + * @throws Error if no schema found + */ + getSchemas(doc: string): string | string[]; + /** + * Returns the content of a schema for a given uri. + * @param uri The uri of the schema. + * @returns The content of the schema as a string, or null if the schema is not found. + */ + getContentForSchema(uri: string): string | null; +} +export declare function schemaItSelfCustomSchemaProvider(uri: string): Promise; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js" index b4fa2065ef065498f3e60ba268e4d11a2c88bf64..c9a988d80756ae7b809ad971673d6f1ef823ab10 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js" @@ -1,3 +1,197 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:248558c9a9a5c07a2add814444b4637c996df39063c6cf8cd845626da8f11844 -size 8643 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.schemaItSelfCustomSchemaProvider = exports.TestCustomSchemaProvider = exports.caretPosition = exports.setupLanguageService = exports.testFileSystem = exports.setupSchemaIDTextDocument = exports.setupTextDocument = exports.SCHEMA_ID = exports.TEST_URI = exports.toFsPath = void 0; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const node_1 = require("vscode-languageserver/node"); +const path = require("path"); +const fs_1 = require("fs"); +const yamlSettings_1 = require("../../src/yamlSettings"); +const schemaRequestHandler_1 = require("../../src/languageservice/services/schemaRequestHandler"); +const yamlServerInit_1 = require("../../src/yamlServerInit"); +const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument"); +const vscode_json_languageservice_1 = require("vscode-json-languageservice"); +const yaml_documents_1 = require("../../src/languageservice/parser/yaml-documents"); +const testsTypes_1 = require("./testsTypes"); +function toFsPath(str) { + if (typeof str !== 'string') { + throw new TypeError(`Expected a string, got ${typeof str}`); + } + let pathName; + pathName = path.resolve(str); + pathName = pathName.replace(/\\/g, '/'); + // Windows drive letter must be prefixed with a slash + if (pathName[0] !== '/') { + pathName = `/${pathName}`; + } + return encodeURI(`file://${pathName}`).replace(/[?#]/g, encodeURIComponent); +} +exports.toFsPath = toFsPath; +exports.TEST_URI = 'file://~/Desktop/vscode-k8s/test.yaml'; +exports.SCHEMA_ID = 'default_schema_id.yaml'; +function setupTextDocument(content) { + yaml_documents_1.yamlDocumentsCache.clear(); // clear cache + return vscode_languageserver_textdocument_1.TextDocument.create(exports.TEST_URI, 'yaml', 0, content); +} +exports.setupTextDocument = setupTextDocument; +function setupSchemaIDTextDocument(content, customSchemaID) { + yaml_documents_1.yamlDocumentsCache.clear(); // clear cache + if (customSchemaID) { + return vscode_languageserver_textdocument_1.TextDocument.create(customSchemaID, 'yaml', 0, content); + } + else { + return vscode_languageserver_textdocument_1.TextDocument.create(exports.SCHEMA_ID, 'yaml', 0, content); + } +} +exports.setupSchemaIDTextDocument = setupSchemaIDTextDocument; +exports.testFileSystem = { readFile: (fsPath) => fs_1.promises.readFile(fsPath).then((c) => c.toString()) }; +function setupLanguageService(languageSettings) { + const yamlSettings = new yamlSettings_1.SettingsState(); + process.argv.push('--node-ipc'); + const connection = (0, node_1.createConnection)(); + const schemaRequestHandlerWrapper = (connection, uri) => { + const testSchemaProvider = TestCustomSchemaProvider.instance(); + const testSchema = testSchemaProvider.getContentForSchema(uri); + if (testSchema) { + return Promise.resolve(testSchema); + } + return (0, schemaRequestHandler_1.schemaRequestHandler)(connection, uri, yamlSettings.workspaceFolders, yamlSettings.workspaceRoot, yamlSettings.useVSCodeContentRequest, exports.testFileSystem); + }; + const schemaRequestService = schemaRequestHandlerWrapper.bind(this, connection); + const telemetry = new testsTypes_1.TestTelemetry(connection); + const serverInit = new yamlServerInit_1.YAMLServerInit(connection, yamlSettings, schemaRequestHandler_1.workspaceContext, schemaRequestService, telemetry); + serverInit.connectionInitialized({ + processId: null, + capabilities: vscode_json_languageservice_1.ClientCapabilities.LATEST, + rootUri: null, + workspaceFolders: null, + }); + const languageService = serverInit.languageService; + const validationHandler = serverInit.validationHandler; + const languageHandler = serverInit.languageHandler; + languageService.configure(languageSettings); + const schemaProvider = TestCustomSchemaProvider.instance(); + languageService.registerCustomSchemaProvider(schemaItSelfCustomSchemaProvider); + return { + languageService, + validationHandler, + languageHandler, + yamlSettings, + telemetry, + schemaProvider, + }; +} +exports.setupLanguageService = setupLanguageService; +/** + * Derives the absolute `position` of the caret given `content` containing a virtual caret. + * @param content The content of the document. + * The caret is located in the content using `|` bookends. + * For example, `content = 'ab|c|d'` places the caret over the `'c'`, at `position = 2` + * @returns The absolute position of the caret. + */ +function caretPosition(content) { + // console.log(`was: len: ${content.length}, content: "${content}", str: "${content.substring(position)}"`); + // Find bookends `|.|` in content + const position = content.search(/\|[^]\|/); // | -> any char including newline -> | + if (position === -1) + throw new Error('Error in test case: no caret found in content'); + // Elide bookends from content + content = content.substring(0, position) + content.substring(position + 1, position + 2) + content.substring(position + 3); + // console.log(`now: len: ${content.length}, content: "${content}", pos: ${position}, str: "${content.substring(position)}"`); + return { position, content }; +} +exports.caretPosition = caretPosition; +/* + * A class that provides custom schemas for testing purposes. + */ +class TestCustomSchemaProvider { + constructor() { + this.schemas = new Array(0); + // use instance only + } + static instance() { + if (!TestCustomSchemaProvider.self) { + TestCustomSchemaProvider.self = new TestCustomSchemaProvider(); + } + return TestCustomSchemaProvider.self; + } + /** + * Adds a schema to the list of custom schemas. + * @param doc The uri of the document + * @param schema The JSON schema object. + */ + addSchema(doc, schema) { + this.addSchemaWithUri(doc, `file:///${doc}`, schema); + } + /** + * Adds a schema to the list of custom schemas. + * @param doc The uri of the document + * @param uri The uri of the schema + * @param schema The JSON schema object. + */ + addSchemaWithUri(doc, uri, schema) { + const item = [doc, uri, schema]; + this.schemas.push(item); + } + /** + * Deletes a schema from the list of custom schemas. + * @param doc The uri of the document + */ + deleteSchema(doc) { + const items = this.schemas.filter((item) => item[0] === doc); + if (items.length > 0) { + this.schemas = this.schemas.filter((item) => item[0] !== doc); + } + } + /** + * Checks if a schema exists for a given document. + * @param doc The uri of the document + * @returns True if a schema exists for the document, false otherwise. + */ + has(doc) { + const item = this.schemas.findIndex((item) => item[0] === doc); + return item > -1; + } + /** + * Returns the schemas for a given document + * @param doc The uri of the document. + * @returns The uris of the schemas + * @throws Error if no schema found + */ + getSchemas(doc) { + if (this.has(doc)) { + const items = this.schemas.filter((item) => item[0] === doc); + if (items.length === 1) { + return items[0][1]; + } + return items.map((item) => { + return item[1]; + }); + } + throw new Error(`Test schema not found for ${doc}`); + } + /** + * Returns the content of a schema for a given uri. + * @param uri The uri of the schema. + * @returns The content of the schema as a string, or null if the schema is not found. + */ + getContentForSchema(uri) { + const item = this.schemas.findIndex((item) => item[1] === uri); + if (item < 0) { + return null; + } + return JSON.stringify(this.schemas[item][2]); + } +} +exports.TestCustomSchemaProvider = TestCustomSchemaProvider; +async function schemaItSelfCustomSchemaProvider(uri) { + const schemaProvider = TestCustomSchemaProvider.instance(); + if (schemaProvider.has(uri)) { + return schemaProvider.getSchemas(uri); + } + return undefined; +} +exports.schemaItSelfCustomSchemaProvider = schemaItSelfCustomSchemaProvider; +//# sourceMappingURL=testHelper.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js.map" index e9354a34530a8a328bb86d24b2a9b039649673fa..38b3c1de3f72878fec14768a1300d1dcb646bca5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testHelper.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb9a479f5bed088aaf6cea6bd85c1651d25fa914e09a792c8857fa2385e1ce91 -size 5283 +{"version":3,"file":"testHelper.js","sourceRoot":"","sources":["../../../../test/utils/testHelper.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG,qDAAuH;AACvH,6BAA8B;AAC9B,2BAAoC;AACpC,yDAAuD;AACvD,kGAA6H;AAC7H,6DAA0D;AAI1D,2FAAkE;AAClE,6EAAiE;AACjE,oFAAqF;AACrF,6CAA6C;AAG7C,SAAgB,QAAQ,CAAC,GAAY;IACnC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,MAAM,IAAI,SAAS,CAAC,0BAA0B,OAAO,GAAG,EAAE,CAAC,CAAC;KAC7D;IAED,IAAI,QAAQ,CAAC;IACb,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7B,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,C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J;QACD,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CAAC,GAAW;QACpC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;QAC/D,IAAI,IAAI,GAAG,CAAC,EAAE;YACZ,OAAO,IAAI,CAAC;SACb;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,CAAC;CACF;AAvFD,4DAuFC;AAEM,KAAK,UAAU,gCAAgC,CAAC,GAAW;IAChE,MAAM,cAAc,GAAG,wBAAwB,CAAC,QAAQ,EAAE,CAAC;IAC3D,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAC3B,OAAO,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;KACvC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAND,4EAMC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.d.ts" index f8a1aeb765bb0fe261b4c2f598ae07aec45ece45..3ad0666bea80f72b164b66fcf9342479de38274a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.d.ts" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f533c7cecfd94d3d48bb3a4e643ff4f8e5ff21693e2c6eb14b25f0e89f84bf22 -size 1783 +import { Event, NotificationHandler, RequestHandler } from 'vscode-jsonrpc'; +import { ApplyWorkspaceEditParams, WorkspaceEdit, ApplyWorkspaceEditResponse, ConfigurationItem, WorkspaceFolder, WorkspaceFoldersChangeEvent, CreateFilesParams, RenameFilesParams, DeleteFilesParams } from 'vscode-languageserver-protocol'; +import { Connection, RemoteWorkspace } from 'vscode-languageserver'; +import { TelemetryImpl } from '../../src/languageserver/telemetry'; +import { TelemetryEvent } from '../../src/languageservice/telemetry'; +export declare class TestWorkspace implements RemoteWorkspace { + connection: Connection; + applyEdit(paramOrEdit: ApplyWorkspaceEditParams | WorkspaceEdit): Promise; + getConfiguration(): Promise; + getConfiguration(section: string): Promise; + getConfiguration(item: ConfigurationItem): Promise; + getConfiguration(items: ConfigurationItem[]): Promise; + getWorkspaceFolders(): Promise; + onDidChangeWorkspaceFolders: Event; + onDidCreateFiles(handler: NotificationHandler): void; + onDidRenameFiles(handler: NotificationHandler): void; + onDidDeleteFiles(handler: NotificationHandler): void; + onWillCreateFiles(handler: RequestHandler): void; + onWillRenameFiles(handler: RequestHandler): void; + onWillDeleteFiles(handler: RequestHandler): void; +} +export declare class TestTelemetry extends TelemetryImpl { + messages: TelemetryEvent[]; + constructor(connection: Connection); + send(event: TelemetryEvent): void; + clearMessages(): void; +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js" index d8dcefd3215c1fbe6c68d42045a6981d2ad60c82..5cd084b0494826030f8771fcc8f94fdfa3a29ed4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js" @@ -1,3 +1,55 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50613e7266c189a6a085d1d973827b38e2358d8397b3a24dd12855103ba42b05 -size 1928 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TestTelemetry = exports.TestWorkspace = void 0; +const telemetry_1 = require("../../src/languageserver/telemetry"); +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ +class TestWorkspace { + applyEdit(paramOrEdit) { + throw new Error('Method not implemented.'); + } + getConfiguration(items) { + throw new Error('Method not implemented.'); + } + getWorkspaceFolders() { + throw new Error('Method not implemented.'); + } + onDidCreateFiles(handler) { + throw new Error('Method not implemented.'); + } + onDidRenameFiles(handler) { + throw new Error('Method not implemented.'); + } + onDidDeleteFiles(handler) { + throw new Error('Method not implemented.'); + } + onWillCreateFiles(handler) { + throw new Error('Method not implemented.'); + } + onWillRenameFiles(handler) { + throw new Error('Method not implemented.'); + } + onWillDeleteFiles(handler) { + throw new Error('Method not implemented.'); + } +} +exports.TestWorkspace = TestWorkspace; +class TestTelemetry extends telemetry_1.TelemetryImpl { + constructor(connection) { + super(connection); + this.messages = []; + } + send(event) { + this.messages.push(event); + } + clearMessages() { + this.messages = []; + } +} +exports.TestTelemetry = TestTelemetry; +//# sourceMappingURL=testsTypes.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js.map" index 66bfc9a013fd6799cae7674e28406f59b3dded14..7f0546e1591649a352bd5659ad29bace7b39feea 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/testsTypes.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:858de793da51b72cf571356c44cab81507e9823c5c37c420186c3afa6bdb46c1 -size 1177 +{"version":3,"file":"testsTypes.js","sour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AAQ,GAAG,EAAE,CAAC;IACrB,CAAC;CACF;AAZD,sCAYC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.d.ts" index 43420e3b054b7deb253e253fbbeacc7e68901a26..67fd32de7755ffbfea40abe65d725b568114176e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.d.ts" @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:93cd824c92aace172e39198f473ead66f8ec3b20403630332ad1cedd9d89cf68 -size 2024 +import { CompletionItem, CompletionItemKind, Diagnostic, DiagnosticSeverity, DocumentSymbol, InsertTextFormat, SymbolKind, SymbolInformation } from 'vscode-languageserver-types'; +export declare function createExpectedError(message: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number, severity?: DiagnosticSeverity, source?: string, code?: string | number): Diagnostic; +export declare function createDiagnosticWithData(message: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number, severity: DiagnosticSeverity, source: string, schemaUri: string | string[], data?: Record): Diagnostic; +export declare function createUnusedAnchorDiagnostic(message: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number): Diagnostic; +export declare function createExpectedSymbolInformation(name: string, kind: SymbolKind, containerName: string | undefined, uri: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number): SymbolInformation; +export declare function createExpectedDocumentSymbol(name: string, kind: SymbolKind, startLine: number, startCharacter: number, endLine: number, endCharacter: number, startLineSelection: number, startCharacterSelection: number, endLineSelection: number, endCharacterSelection: number, children?: DocumentSymbol[], detail?: string): DocumentSymbol; +export declare function createExpectedDocumentSymbolNoDetail(name: string, kind: SymbolKind, startLine: number, startCharacter: number, endLine: number, endCharacter: number, startLineSelection: number, startCharacterSelection: number, endLineSelection: number, endCharacterSelection: number, children?: DocumentSymbol[]): DocumentSymbol; +export declare function createExpectedCompletion(label: string, insertText: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number, kind: CompletionItemKind, insertTextFormat?: InsertTextFormat, extra?: {}): CompletionItem; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js" index 264ddfc2d127637e754231871606b07f5c09ecd5..6fd9b28dc45cbe6cc320a3342c9f1031aa92a60d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js" @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dcf7b368519b683f6efecaee6708420ac5115410fab6925b34e540cc6125038f -size 4853 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createExpectedCompletion = exports.createExpectedDocumentSymbolNoDetail = exports.createExpectedDocumentSymbol = exports.createExpectedSymbolInformation = exports.createUnusedAnchorDiagnostic = exports.createDiagnosticWithData = exports.createExpectedError = void 0; +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const vscode_json_languageservice_1 = require("vscode-json-languageservice"); +function createExpectedError(message, startLine, startCharacter, endLine, endCharacter, severity = 1, source = 'YAML', code = vscode_json_languageservice_1.ErrorCode.Undefined) { + return vscode_languageserver_types_1.Diagnostic.create(vscode_languageserver_types_1.Range.create(startLine, startCharacter, endLine, endCharacter), message, severity, code, source); +} +exports.createExpectedError = createExpectedError; +function createDiagnosticWithData(message, startLine, startCharacter, endLine, endCharacter, severity = 1, source = 'YAML', schemaUri, data = {}) { + const diagnostic = createExpectedError(message, startLine, startCharacter, endLine, endCharacter, severity, source); + diagnostic.data = { schemaUri: typeof schemaUri === 'string' ? [schemaUri] : schemaUri, ...data }; + return diagnostic; +} +exports.createDiagnosticWithData = createDiagnosticWithData; +function createUnusedAnchorDiagnostic(message, startLine, startCharacter, endLine, endCharacter) { + const diagnostic = createExpectedError(message, startLine, startCharacter, endLine, endCharacter, vscode_languageserver_types_1.DiagnosticSeverity.Hint, 'YAML'); + diagnostic.tags = [vscode_languageserver_types_1.DiagnosticTag.Unnecessary]; + return diagnostic; +} +exports.createUnusedAnchorDiagnostic = createUnusedAnchorDiagnostic; +function createExpectedSymbolInformation(name, kind, containerName, uri, startLine, startCharacter, endLine, endCharacter) { + return { + name, + kind, + containerName, + location: { + uri, + range: { + start: { + line: startLine, + character: startCharacter, + }, + end: { + line: endLine, + character: endCharacter, + }, + }, + }, + }; +} +exports.createExpectedSymbolInformation = createExpectedSymbolInformation; +function createExpectedDocumentSymbol(name, kind, startLine, startCharacter, endLine, endCharacter, startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection, children = [], detail) { + return vscode_languageserver_types_1.DocumentSymbol.create(name, detail, kind, vscode_languageserver_types_1.Range.create(startLine, startCharacter, endLine, endCharacter), vscode_languageserver_types_1.Range.create(startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection), children); +} +exports.createExpectedDocumentSymbol = createExpectedDocumentSymbol; +function createExpectedDocumentSymbolNoDetail(name, kind, startLine, startCharacter, endLine, endCharacter, startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection, children = []) { + const docSymbol = vscode_languageserver_types_1.DocumentSymbol.create(name, undefined, kind, vscode_languageserver_types_1.Range.create(startLine, startCharacter, endLine, endCharacter), vscode_languageserver_types_1.Range.create(startLineSelection, startCharacterSelection, endLineSelection, endCharacterSelection), children); + delete docSymbol.detail; + return docSymbol; +} +exports.createExpectedDocumentSymbolNoDetail = createExpectedDocumentSymbolNoDetail; +function createExpectedCompletion(label, insertText, startLine, startCharacter, endLine, endCharacter, kind, insertTextFormat = 2, extra = {}) { + return { + ...{ + insertText, + label, + insertTextFormat, + kind, + textEdit: { + newText: insertText, + range: { + start: { + line: startLine, + character: startCharacter, + }, + end: { + line: endLine, + character: endCharacter, + }, + }, + }, + }, + ...extra, + }; +} +exports.createExpectedCompletion = createExpectedCompletion; +//# sourceMappingURL=verifyError.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js.map" index 530f1a9fb3e8f927a28c0008e62c845ce0eb44b8..4576c4a03c79afed5ac1db5d1afcc2196dc1f9db 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/utils/verifyError.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:501381e07da33698c578aae8dbcbfd4072c75927fe9ab88f4ad16619d55f3509 -size 2878 +{"version":3,"file":"verifyError.js","sourceRoot":"","sources":["../../../../test/utils/verifyError.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,6EAWqC;AACrC,6EAAwD;AAExD,SAAgB,mBAAmB,CACjC,OAAe,EACf,SAAiB,EACjB,cAAsB,EACtB,OAAe,EACf,YAAoB,EACpB,WAA+B,CAAC,EAChC,MAAM,GAAG,MAAM,EACf,OAAwB,uCAAS,CAAC,SAAS;IAE3C,OAAO,wCAAU,CAAC,MAAM,CAAC,mCAAK,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC5H,CAAC;AAXD,kDAWC;AAED,SAAgB,wBAAwB,CACtC,OAAe,EACf,SAAiB,EACjB,cAAsB,EACtB,OAAe,EACf,YAAoB,EACpB,WAA+B,CAAC,EAChC,MAAM,GAAG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AI,EAAE,SAAS;wBACf,SAAS,EAAE,cAAc;qBAC1B;oBACD,GAAG,EAAE;wBACH,IAAI,EAAE,OAAO;wBACb,SAAS,EAAE,YAAY;qBACxB;iBACF;aACF;SACF;QACD,GAAG,KAAK;KACT,CAAC;AACJ,CAAC;AAjCD,4DAiCC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js" index 3410882133baf1456b7308829b53f081afd3d109..2d4720976290d4c1bcceb3de3dc2f08c8c960e24 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js" @@ -1,3 +1,198 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e99eba0a66728ea4b3a585126ad4686d711b86b3c6f66e86a87f862da9cd74ba -size 10118 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const sinon = require("sinon"); +const sinonChai = require("sinon-chai"); +const chai = require("chai"); +const yaml_documents_1 = require("../src/languageservice/parser/yaml-documents"); +const testHelper_1 = require("./utils/testHelper"); +const yamlParser = require("../src/languageservice/parser/yamlParser07"); +const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument"); +const yaml_1 = require("yaml"); +const textBuffer_1 = require("../src/languageservice/utils/textBuffer"); +const expect = chai.expect; +chai.use(sinonChai); +describe('YAML Documents', () => { + const sandbox = sinon.createSandbox(); + describe('YAML Documents Cache Tests', () => { + let parseStub; + beforeEach(() => { + parseStub = sandbox.stub(yamlParser, 'parse'); + }); + afterEach(() => { + sandbox.restore(); + }); + it('should cache parsed document', () => { + const cache = new yaml_documents_1.YamlDocuments(); + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + parseStub.returns({}); + const result1 = cache.getYamlDocument(doc); + const result2 = cache.getYamlDocument(doc); + expect(parseStub).calledOnce; + expect(result1).to.be.equal(result2); + }); + it('should re parse document if document changed', () => { + const cache = new yaml_documents_1.YamlDocuments(); + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + parseStub.onFirstCall().returns({}); + parseStub.onSecondCall().returns({ foo: 'bar' }); + const result1 = cache.getYamlDocument(doc); + vscode_languageserver_textdocument_1.TextDocument.update(doc, [], 2); + const result2 = cache.getYamlDocument(doc); + expect(parseStub).calledTwice; + expect(result1).to.be.not.equal(result2); + }); + it('should invalidate cache if custom tags provided', () => { + const cache = new yaml_documents_1.YamlDocuments(); + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + parseStub.onFirstCall().returns({}); + parseStub.onSecondCall().returns({ foo: 'bar' }); + const result1 = cache.getYamlDocument(doc); + const result2 = cache.getYamlDocument(doc, getParserOptions(['some'])); + expect(parseStub).calledTwice; + expect(result1).to.not.equal(result2); + }); + it('should use cache if custom tags are same', () => { + const cache = new yaml_documents_1.YamlDocuments(); + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + parseStub.onFirstCall().returns({}); + parseStub.onSecondCall().returns({ foo: 'bar' }); + const result1 = cache.getYamlDocument(doc, getParserOptions(['some'])); + const result2 = cache.getYamlDocument(doc, getParserOptions(['some'])); + expect(parseStub).calledOnce; + expect(result1).to.be.equal(result2); + }); + }); + describe('Single YAML Document Tests', () => { + let documents; + beforeEach(() => { + documents = new yaml_documents_1.YamlDocuments(); + }); + afterEach(() => { + sandbox.restore(); + }); + it('Get node from position: key', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(2, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isScalar)(result)).is.true; + expect(result.value).eqls('foo'); + }); + it('Get node from position: value', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(6, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isScalar)(result)).is.true; + expect(result.value).eqls('bar'); + }); + it('Get node from position: map', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(4, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isMap)(result)).is.true; + expect(result.items).length(1); + }); + it('Get node from position: scalar in array', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n - bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(9, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isScalar)(result)).is.true; + expect(result.value).equal('bar'); + }); + it('Get node from position: array', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n - bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(8, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isSeq)(result)).is.true; + expect(result.items).length(1); + }); + it('Get node from position: map with array', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n - bar'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(6, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isMap)(result)).is.true; + expect(result.items).length(1); + }); + it('Get node from position: flow map key', () => { + const doc = (0, testHelper_1.setupTextDocument)('{foo: bar}'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(3, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isScalar)(result)).is.true; + expect(result.value).eqls('foo'); + }); + it('Get node from position: flow map value', () => { + const doc = (0, testHelper_1.setupTextDocument)('{foo: bar}'); + const yamlDoc = documents.getYamlDocument(doc); + const [result] = yamlDoc.documents[0].getNodeFromPosition(8, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isScalar)(result)).is.true; + expect(result.value).eqls('bar'); + }); + it('get pair parent in array', () => { + const doc = (0, testHelper_1.setupTextDocument)(`objA: + - name: nameA1 + +objB: + size: midle + name: nameB2 +`); + const yamlDoc = documents.getYamlDocument(doc); + const result = yamlDoc.documents[0].findClosestNode(27, new textBuffer_1.TextBuffer(doc)); + expect(result).is.not.undefined; + expect((0, yaml_1.isMap)(result)).is.true; + const resultItem = result.items[0]; + expect(resultItem.key).property('value', 'name'); + expect(resultItem.value).property('value', 'nameA1'); + }); + it('Find closes node: map', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n bar: aaa\n '); + const yamlDoc = documents.getYamlDocument(doc); + const textBuffer = new textBuffer_1.TextBuffer(doc); + const result = yamlDoc.documents[0].findClosestNode(18, textBuffer); + expect(result).is.not.undefined; + expect((0, yaml_1.isMap)(result)).is.true; + expect(result.items[0].key.value).eqls('bar'); + }); + it('Find closes node: array', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n - bar: aaa\n '); + const yamlDoc = documents.getYamlDocument(doc); + const textBuffer = new textBuffer_1.TextBuffer(doc); + const result = yamlDoc.documents[0].findClosestNode(20, textBuffer); + expect(result).is.not.undefined; + expect((0, yaml_1.isSeq)(result)).is.true; + expect(result.items[0].items[0].key.value).eqls('bar'); + }); + it('Find closes node: root map', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n bar: aaa\n '); + const yamlDoc = documents.getYamlDocument(doc); + const textBuffer = new textBuffer_1.TextBuffer(doc); + const result = yamlDoc.documents[0].findClosestNode(17, textBuffer); + expect(result).is.not.undefined; + expect((0, yaml_1.isMap)(result)).is.true; + expect(result.items[0].key.value).eqls('bar'); + }); + it('should parse document when no yamlVersion is provided', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const opts = { + customTags: ['some'], + yamlVersion: undefined, + }; + const yamlDoc = documents.getYamlDocument(doc, opts); + expect(yamlDoc).is.not.undefined; + }); + }); +}); +function getParserOptions(customTags) { + return { customTags, yamlVersion: '1.2' }; +} +//# sourceMappingURL=yaml-documents.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js.map" index e578f70a86ffc0fe6a83a07f282627b003fed88e..eef7f43d87b124ca7a6adaa56fa003d75587bb26 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yaml-documents.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e6992ae937e6002e2edda76027aca0349668d878bff5018c074f1cbc0a9da68e -size 9724 +{"version":3,"file":"yaml-documents.test.js","sourceRoot":"","sources":["../../../test/yaml-documents.test.ts"],"names":[],"mappings":";AAAA;;;gG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E,SAAS;aACvB,CAAC;YACF,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YACrD,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAS,gBAAgB,CAAC,UAAoB;IAC5C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;AAC5C,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js" index ce3d77e6c092661e8b036d7884fa96592a263de7..cc1a46e0ecd8dbf7521960eb043b61b4dc0ba665 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js" @@ -1,3 +1,280 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9cd9210e549977cf98b9d2f5e98013ab53378ff7227d867683136db963c4cd78 -size 19085 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const sinon = require("sinon"); +const sinonChai = require("sinon-chai"); +const chai = require("chai"); +const yamlCodeActions_1 = require("../src/languageservice/services/yamlCodeActions"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const testHelper_1 = require("./utils/testHelper"); +const verifyError_1 = require("./utils/verifyError"); +const commands_1 = require("../src/commands"); +const expect = chai.expect; +chai.use(sinonChai); +const JSON_SCHEMA_LOCAL = 'file://some/path/schema.json'; +const JSON_SCHEMA2_LOCAL = 'file://some/path/schema2.json'; +describe('CodeActions Tests', () => { + const sandbox = sinon.createSandbox(); + let clientCapabilities; + beforeEach(() => { + clientCapabilities = {}; + }); + afterEach(() => { + sandbox.restore(); + }); + describe('JumpToSchema tests', () => { + it('should not provide any actions if there are no diagnostics', () => { + const doc = (0, testHelper_1.setupTextDocument)(''); + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(undefined), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.be.undefined; + }); + it('should provide action if diagnostic has uri for schema', () => { + const doc = (0, testHelper_1.setupTextDocument)(''); + const diagnostics = [(0, verifyError_1.createDiagnosticWithData)('foo', 0, 0, 0, 0, 1, JSON_SCHEMA_LOCAL, JSON_SCHEMA_LOCAL)]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + clientCapabilities.window = { showDocument: { support: true } }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + const codeAction = vscode_languageserver_types_1.CodeAction.create('Jump to schema location (schema.json)', vscode_languageserver_types_1.Command.create('JumpToSchema', commands_1.YamlCommands.JUMP_TO_SCHEMA, JSON_SCHEMA_LOCAL)); + codeAction.diagnostics = diagnostics; + expect(result[0]).to.deep.equal(codeAction); + }); + it('should provide multiple action if diagnostic has uri for multiple schemas', () => { + const doc = (0, testHelper_1.setupTextDocument)(''); + const diagnostics = [ + (0, verifyError_1.createDiagnosticWithData)('foo', 0, 0, 0, 0, 1, JSON_SCHEMA_LOCAL, [JSON_SCHEMA_LOCAL, JSON_SCHEMA2_LOCAL]), + ]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + clientCapabilities.window = { showDocument: { support: true } }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + const codeAction = vscode_languageserver_types_1.CodeAction.create('Jump to schema location (schema.json)', vscode_languageserver_types_1.Command.create('JumpToSchema', commands_1.YamlCommands.JUMP_TO_SCHEMA, JSON_SCHEMA_LOCAL)); + const codeAction2 = vscode_languageserver_types_1.CodeAction.create('Jump to schema location (schema2.json)', vscode_languageserver_types_1.Command.create('JumpToSchema', commands_1.YamlCommands.JUMP_TO_SCHEMA, JSON_SCHEMA2_LOCAL)); + codeAction.diagnostics = diagnostics; + codeAction2.diagnostics = diagnostics; + expect(result[0]).to.deep.equal(codeAction); + expect(result[1]).to.deep.equal(codeAction2); + }); + }); + describe('Convert TAB to Spaces', () => { + it('should add "Convert TAB to Spaces" CodeAction', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n\t- bar'); + const diagnostics = [(0, verifyError_1.createExpectedError)('Using tabs can lead to unpredictable results', 1, 0, 1, 1, 1, JSON_SCHEMA_LOCAL)]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.has.length(2); + expect(result[0].title).to.be.equal('Convert Tab to Spaces'); + expect(vscode_languageserver_types_1.WorkspaceEdit.is(result[0].edit)).to.be.true; + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(1, 0, 1, 1), ' ')]); + }); + it('should support current indentation chars settings', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n\t- bar'); + const diagnostics = [(0, verifyError_1.createExpectedError)('Using tabs can lead to unpredictable results', 1, 0, 1, 1, 1, JSON_SCHEMA_LOCAL)]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + actions.configure({ indentation: ' ' }); + const result = actions.getCodeAction(doc, params); + expect(result[0].title).to.be.equal('Convert Tab to Spaces'); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(1, 0, 1, 1), ' ')]); + }); + it('should provide "Convert all Tabs to Spaces"', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n\t\t\t- bar\n\t\t'); + const diagnostics = [(0, verifyError_1.createExpectedError)('Using tabs can lead to unpredictable results', 1, 0, 1, 3, 1, JSON_SCHEMA_LOCAL)]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result[1].title).to.be.equal('Convert all Tabs to Spaces'); + expect(result[1].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(1, 0, 1, 3), ' '), + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(2, 0, 2, 2), ' '), + ]); + }); + }); + describe('Remove Unused Anchor', () => { + it('should generate proper action', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: &bar bar\n'); + const diagnostics = [(0, verifyError_1.createUnusedAnchorDiagnostic)('Unused anchor "&bar"', 0, 5, 0, 9)]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result[0].title).to.be.equal('Delete unused anchor: &bar'); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([vscode_languageserver_types_1.TextEdit.del(vscode_languageserver_types_1.Range.create(0, 5, 0, 10))]); + }); + it('should delete all whitespace after unused anchor', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: &bar \tbar\n'); + const diagnostics = [(0, verifyError_1.createUnusedAnchorDiagnostic)('Unused anchor "&bar"', 0, 5, 0, 9)]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result[0].title).to.be.equal('Delete unused anchor: &bar'); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([vscode_languageserver_types_1.TextEdit.del(vscode_languageserver_types_1.Range.create(0, 5, 0, 13))]); + }); + }); + describe('Convert to Block Style', () => { + it(' should generate action to convert flow map to block map ', () => { + const yaml = `host: phl-42 +datacenter: {location: canada , cab: 15} +animals: [dog , cat , mouse] `; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const diagnostics = [ + (0, verifyError_1.createExpectedError)('Flow style mapping is forbidden', 1, 12, 1, 39, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'flowMap'), + (0, verifyError_1.createExpectedError)('Flow style sequence is forbidden', 2, 9, 2, 27, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'flowSeq'), + ]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.be.not.empty; + expect(result).to.have.lengthOf(2); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(1, 12, 1, 39), `\n location: canada \n cab: 15`), + ]); + expect(result[1].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(2, 9, 2, 27), `\n - dog \n - cat \n - mouse`), + ]); + }); + }); + describe('Map Key Order', () => { + it(' should generate action to order a map with incorrect key order', () => { + const yaml = '- key 2: v\n key 1: val\n key 5: valu\n key 3: ff'; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const diagnostics = [ + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key 2" in mapping', 0, 2, 0, 9, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key 5" in mapping', 2, 0, 2, 9, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + ]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.be.not.empty; + expect(result).to.have.lengthOf(2); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(0, 2, 3, 11), `key 1: val\n key 2: v\n key 3: ff\n key 5: valu`), + ]); + expect(result[1].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(0, 2, 3, 11), `key 1: val\n key 2: v\n key 3: ff\n key 5: valu`), + ]); + }); + it(' should generate action to order nested and block maps', () => { + const yaml = '- key 2: v\n key 1: val\n key 5: {b: 1, a: 2}\n '; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const diagnostics = [ + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key 2" in mapping', 0, 2, 0, 9, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key b" in mapping', 2, 9, 3, 0, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + ]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.be.not.empty; + expect(result).to.have.lengthOf(2); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(0, 2, 3, 0), `key 1: val\n key 2: v\n key 5: {b: 1, a: 2}\n`), + ]); + expect(result[1].edit.changes[testHelper_1.TEST_URI]).deep.equal([vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(2, 9, 2, 21), `{a: 2, b: 1}\n`)]); + }); + it(' should generate action to order maps with multi-line strings', () => { + const yaml = '- cc: 1\n gg: 2\n aa: >\n some\n text\n vv: 4'; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const diagnostics = [ + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key gg" in mapping', 1, 0, 1, 8, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + ]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.be.not.empty; + expect(result).to.have.lengthOf(1); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(0, 2, 5, 7), `aa: >\n some\n text\n cc: 1\n gg: 2\n vv: 4`), + ]); + }); + it(' should generate actions when values are missing', () => { + const yaml = '- cc: 1\n gg: 2\n aa:'; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const diagnostics = [ + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key gg" in mapping', 1, 0, 1, 8, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + ]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.be.not.empty; + expect(result).to.have.lengthOf(1); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(0, 2, 2, 5), `aa: cc: 1\n gg: 2`)]); + }); + it(' should preserve comments', () => { + const yaml = '- cc: 1\n gg: 2 #a comment\n aa: 1'; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const diagnostics = [ + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key gg" in mapping', 1, 0, 1, 8, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + ]; + const params = { + context: vscode_languageserver_types_1.CodeActionContext.create(diagnostics), + range: undefined, + textDocument: vscode_languageserver_types_1.TextDocumentIdentifier.create(testHelper_1.TEST_URI), + }; + const actions = new yamlCodeActions_1.YamlCodeActions(clientCapabilities); + const result = actions.getCodeAction(doc, params); + expect(result).to.be.not.empty; + expect(result).to.have.lengthOf(1); + expect(result[0].edit.changes[testHelper_1.TEST_URI]).deep.equal([ + vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(0, 2, 2, 7), `aa: 1\n cc: 1\n gg: 2 #a comment`), + ]); + }); + }); +}); +//# sourceMappingURL=yamlCodeActions.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js.map" index 2b4d6f5686429b835c8dd604d10c8326a1881535..d4d9b6362ccbe15f873584f56322103506c78ce4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeActions.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c2d4ab82d4b2695db760ceb56143615f12f5013c2ac5a524d4dc8b47e1e4f9a -size 14525 +{"version":3,"file":"yamlCodeActions.test.js","sourceRoot":"","sources":["../../../test/yamlCodeActions.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,+BAA+B;AAC/B,wCAAwC;AACxC,6BAA6B;AAC7B,qFAAkF;AAClF,6EASqC;AAErC,mDAAiE;AACjE,qDAAkH;AAClH,8CA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D,CAAC,EACD,CAAC,EACD,gDAAkB,CAAC,KAAK,EACxB,MAAM,EACN,aAAa,CACd;aACF,CAAC;YACF,MAAM,MAAM,GAAqB;gBAC/B,OAAO,EAAE,+CAAiB,CAAC,MAAM,CAAC,WAAW,CAAC;gBAC9C,KAAK,EAAE,SAAS;gBAChB,YAAY,EAAE,oDAAsB,CAAC,MAAM,CAAC,qBAAQ,CAAC;aACtD,CAAC;YACF,MAAM,OAAO,GAAG,IAAI,iCAAe,CAAC,kBAAkB,CAAC,CAAC;YACxD,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;YAC/B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACnC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;gBAClD,sCAAQ,CAAC,OAAO,CAAC,mCAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,qCAAqC,CAAC;aAClF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js" index a1b73f7d48d28856d9779508e83589375cdb8825..705f1ef1fd7d8c2db3e2379742b8e3e4cff59f99 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js" @@ -1,3 +1,165 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:714f37fbbaea4f9cbd867ee9f4d89b1ec6f345714ffc37cd7722e368b7941524 -size 8150 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const sinon = require("sinon"); +const sinonChai = require("sinon-chai"); +const chai = require("chai"); +const yamlCodeLens_1 = require("../src/languageservice/services/yamlCodeLens"); +const yamlSchemaService_1 = require("../src/languageservice/services/yamlSchemaService"); +const testHelper_1 = require("./utils/testHelper"); +const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); +const commands_1 = require("../src/commands"); +const telemetry_1 = require("../src/languageserver/telemetry"); +const expect = chai.expect; +chai.use(sinonChai); +describe('YAML CodeLens', () => { + const sandbox = sinon.createSandbox(); + let yamlSchemaService; + let telemetryStub; + let telemetry; + beforeEach(() => { + yamlSchemaService = sandbox.createStubInstance(yamlSchemaService_1.YAMLSchemaService); + telemetryStub = sandbox.createStubInstance(telemetry_1.TelemetryImpl); + telemetry = telemetryStub; + }); + afterEach(() => { + sandbox.restore(); + }); + function createCommand(title, command, arg) { + return { + title, + command, + arguments: [arg], + }; + } + function createCodeLens(title, command, arg) { + const lens = vscode_languageserver_protocol_1.CodeLens.create(vscode_languageserver_protocol_1.Range.create(0, 0, 0, 0)); + lens.command = createCommand(title, command, arg); + return lens; + } + it('should provides CodeLens with jumpToSchema command', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const schema = { + url: 'some://url/to/schema.json', + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result).is.not.empty; + expect(result[0].command).is.not.undefined; + expect(result[0].command).is.deep.equal(createCommand('schema.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/to/schema.json')); + }); + it('should place CodeLens at beginning of the file and it has command', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const schema = { + url: 'some://url/to/schema.json', + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result[0].range).is.deep.equal(vscode_languageserver_protocol_1.Range.create(0, 0, 0, 0)); + expect(result[0].command).is.deep.equal(createCommand('schema.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/to/schema.json')); + }); + it('should place one CodeLens at beginning of the file for multiple documents', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar\n---\nfoo: bar'); + const schema = { + url: 'some://url/to/schema.json', + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result.length).to.eq(1); + expect(result[0].range).is.deep.equal(vscode_languageserver_protocol_1.Range.create(0, 0, 0, 0)); + expect(result[0].command).is.deep.equal(createCommand('schema.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/to/schema.json')); + }); + it('command name should contains schema title', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const schema = { + url: 'some://url/to/schema.json', + title: 'fooBar', + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result[0].command).is.deep.equal(createCommand('fooBar (schema.json)', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/to/schema.json')); + }); + it('command name should contains schema title and description', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const schema = { + url: 'some://url/to/schema.json', + title: 'fooBar', + description: 'fooBarDescription', + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result[0].command).is.deep.equal(createCommand('fooBar - fooBarDescription (schema.json)', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/to/schema.json')); + }); + it('should provide lens for oneOf schemas', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const schema = { + oneOf: [ + { + url: 'some://url/schema1.json', + }, + { + url: 'some://url/schema2.json', + }, + ], + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result).has.length(2); + expect(result).is.deep.equal([ + createCodeLens('schema1.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/schema1.json'), + createCodeLens('schema2.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/schema2.json'), + ]); + }); + it('should provide lens for allOf schemas', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const schema = { + allOf: [ + { + url: 'some://url/schema1.json', + }, + { + url: 'some://url/schema2.json', + }, + ], + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result).has.length(2); + expect(result).is.deep.equal([ + createCodeLens('schema1.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/schema1.json'), + createCodeLens('schema2.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/schema2.json'), + ]); + }); + it('should provide lens for anyOf schemas', async () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: bar'); + const schema = { + anyOf: [ + { + url: 'some://url/schema1.json', + }, + { + url: 'some://url/schema2.json', + }, + ], + }; + yamlSchemaService.getSchemaForResource.resolves({ schema }); + const codeLens = new yamlCodeLens_1.YamlCodeLens(yamlSchemaService, telemetry); + const result = await codeLens.getCodeLens(doc); + expect(result).has.length(2); + expect(result).is.deep.equal([ + createCodeLens('schema1.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/schema1.json'), + createCodeLens('schema2.json', commands_1.YamlCommands.JUMP_TO_SCHEMA, 'some://url/schema2.json'), + ]); + }); +}); +//# sourceMappingURL=yamlCodeLens.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js.map" index 9d75fcd5a19528cd5ef462e35edaa36838965a13..0d965cd87877942e2207d2dbbeaf2580190df96c 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCodeLens.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:16a2d59a1f7d9fe561d008256aaadea05e00a67fb1ab17941dc1d9eb99493b71 -size 6385 +{"version":3,"file":"yamlCodeLens.test.js","sourceRoot":"","sources":["../../../test/yamlCodeLens.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,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CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js" index 6dd0e76444f14f62ec59ec909ecbab8cd6323ae7..1db63a3dfe970fb2e827990376a5d5a9e0abe0b5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js" @@ -1,3 +1,60 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0247c99c79167fd565531808c0ee55238a2168ab194d81788ff4477566d0a39c -size 2777 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const sinon = require("sinon"); +const sinonChai = require("sinon-chai"); +const chai = require("chai"); +const yamlCommands_1 = require("../src/languageservice/services/yamlCommands"); +const commandExecutor_1 = require("../src/languageserver/commandExecutor"); +const vscode_uri_1 = require("vscode-uri"); +const expect = chai.expect; +chai.use(sinonChai); +describe('Yaml Commands', () => { + const JSON_SCHEMA_LOCAL = 'file://some/path/schema.json'; + const sandbox = sinon.createSandbox(); + let commandExecutorStub; + beforeEach(() => { + commandExecutorStub = sandbox.stub(commandExecutor_1.commandExecutor, 'registerCommand'); + }); + afterEach(() => { + sandbox.restore(); + }); + it('should register handler for "JumpToSchema" command', () => { + (0, yamlCommands_1.registerCommands)(commandExecutor_1.commandExecutor, {}); + expect(commandExecutorStub).to.have.been.calledWithMatch(sinon.match('jumpToSchema'), sinon.match.func); + }); + it('JumpToSchema handler should call "showDocument"', async () => { + const showDocumentStub = sandbox.stub(); + const connection = { + window: { + showDocument: showDocumentStub, + }, + }; + showDocumentStub.resolves(true); + (0, yamlCommands_1.registerCommands)(commandExecutor_1.commandExecutor, connection); + const arg = commandExecutorStub.args[0]; + await arg[1](JSON_SCHEMA_LOCAL); + expect(showDocumentStub).to.have.been.calledWith({ uri: JSON_SCHEMA_LOCAL, external: false, takeFocus: true }); + }); + it('JumpToSchema handler should call "showDocument" with plain win path', async () => { + const showDocumentStub = sandbox.stub(); + const connection = { + window: { + showDocument: showDocumentStub, + }, + }; + showDocumentStub.resolves(true); + (0, yamlCommands_1.registerCommands)(commandExecutor_1.commandExecutor, connection); + const arg = commandExecutorStub.args[0]; + await arg[1]('a:\\some\\path\\to\\schema.json'); + expect(showDocumentStub).to.have.been.calledWith({ + uri: vscode_uri_1.URI.file('a:\\some\\path\\to\\schema.json').toString(), + external: false, + takeFocus: true, + }); + }); +}); +//# sourceMappingURL=yamlCommands.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js.map" index 22d46e234d2c30b8668b0ead90e510b4d3bcda5d..a4e81199614d094e2eccdd3c90bf598eb1e74b86 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlCommands.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:42b6b802a41a2a41b900c53c59e6859d351421ea8f584c95fdb4f207c8260355 -size 2032 +{"version":3,"file":"yamlCommands.test.js","sourceRoot":"","sources":["../../../test/yamlCommands.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,+BAA+B;AAC/B,wCAAwC;AACxC,6BAA6B;AAC7B,+EAAgF;AAChF,2EAAwE;AAExE,2CAAiC;AAEjC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAEpB,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;IACzD,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IAEtC,IAAI,mBAAoC,CAAC;IAEzC,UAAU,CAAC,GAAG,EAAE;QACd,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,iCAAe,EAAE,iBAAiB,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,OAAO,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC5D,IAAA,+BAAgB,EAAC,iCAAe,EAAE,EAAgB,CAAC,CAAC;QACpD,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1G,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;QAC/D,MAAM,gBAAgB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,UAAU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C"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js" index 52214cb77ed96d5ce4b6440e4fcdd9252337f6bc..3900de325c725b6d2c2ebbc6d2d10bd4fbace1cb 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js" @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c696a25b38fdfcc50e4a2a048fe9a41e71b0cdbaddd5719336e34ac4d72cb45a -size 1860 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const testHelper_1 = require("./utils/testHelper"); +const chai_1 = require("chai"); +const yamlDefinition_1 = require("../src/languageservice/services/yamlDefinition"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +describe('YAML Definition', () => { + it('should not provide definition for non anchor node', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: &bar some\naaa: *bar'); + const result = new yamlDefinition_1.YamlDefinition({}).getDefinition(doc, { + position: vscode_languageserver_types_1.Position.create(1, 2), + textDocument: { uri: testHelper_1.TEST_URI }, + }); + (0, chai_1.expect)(result).is.undefined; + }); + it('should provide definition for anchor', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo: &bar some\naaa: *bar'); + const result = new yamlDefinition_1.YamlDefinition({}).getDefinition(doc, { + position: vscode_languageserver_types_1.Position.create(1, 7), + textDocument: { uri: testHelper_1.TEST_URI }, + }); + (0, chai_1.expect)(result).is.not.undefined; + (0, chai_1.expect)(result[0]).is.eqls(vscode_languageserver_types_1.LocationLink.create(testHelper_1.TEST_URI, vscode_languageserver_types_1.Range.create(0, 10, 1, 0), vscode_languageserver_types_1.Range.create(0, 10, 0, 14))); + }); +}); +//# sourceMappingURL=yamlDefinition.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js.map" index 22eefdb73ad3fb54aa037e3dd141f6160369d653..5a91114096dc1721e316419ab23be133357e925b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlDefinition.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb087e293c6a3f811932be7154f5132b55e01001816fecc7aafc23fcc94c4f54 -size 1228 +{"version":3,"file":"yamlDefinition.test.js","sourceRoot":"","sources":["../../../test/yamlDefinition.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,mDAAiE;AACjE,+BAA8B;AAC9B,mFAAgF;AAChF,6EAA4E;AAG5E,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,GAA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ipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js" index ab5b39c657d3078e3707395cfc88bc9941b0527b..dd036e481161d9f1d2cb46656044d64fcff2a5b4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js" @@ -1,3 +1,142 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ffc3ed01779d17a844e17285bc60a0cbf87c8134a80d105317e7ae9efe99a226 -size 6398 +"use strict"; +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const yamlFolding_1 = require("../src/languageservice/services/yamlFolding"); +const testHelper_1 = require("./utils/testHelper"); +const context = { rangeLimit: 100000 }; +describe('YAML Folding', () => { + it('should return undefined if no document provided', () => { + const ranges = (0, yamlFolding_1.getFoldingRanges)(undefined, context); + (0, chai_1.expect)(ranges).to.be.undefined; + }); + it('should return empty array for empty document', () => { + const doc = (0, testHelper_1.setupTextDocument)(''); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges).to.be.empty; + }); + it('should provide folding ranges for object', () => { + const yaml = ` + foo: bar + aaa: + bbb: ccc + `; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges.length).to.equal(1); + (0, chai_1.expect)(ranges[0]).to.be.eql(vscode_languageserver_types_1.FoldingRange.create(2, 3, 4, 14)); + }); + it('should provide folding ranges for array', () => { + const yaml = ` + foo: bar + aaa: + - bbb + ccc: ddd + `; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges.length).to.equal(1); + (0, chai_1.expect)(ranges[0]).to.be.eql(vscode_languageserver_types_1.FoldingRange.create(2, 3, 4, 11)); + }); + it('should provide folding ranges for multiple documents', () => { + const yaml = `---\nname: jack\nage: 22\n---\ncwd: test\n`; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges.length).to.equal(2); + (0, chai_1.expect)(ranges[0]).to.be.eql(vscode_languageserver_types_1.FoldingRange.create(1, 2, 0, 7)); + (0, chai_1.expect)(ranges[1]).to.be.eql(vscode_languageserver_types_1.FoldingRange.create(4, 4, 0, 9)); + }); + it('should not include comments on folding ranges', () => { + const yaml = `# a comment\nname: jack\n# age comment\nage:\n - october`; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges.length).to.equal(1); + (0, chai_1.expect)(ranges[0]).to.be.eql(vscode_languageserver_types_1.FoldingRange.create(3, 4, 0, 11)); + }); + it('should provide folding ranges for multiline string', () => { + const yaml = ` + foo: + bar: + aaa: + bbb + zzz + `; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges).to.deep.include.members([vscode_languageserver_types_1.FoldingRange.create(1, 2, 4, 14), vscode_languageserver_types_1.FoldingRange.create(3, 5, 4, 13)]); + }); + it('should provide folding ranges for mapping in array', () => { + const yaml = ` + foo: bar + aaa: + - bbb: "bbb" + fff: "fff" + ccc: ddd + `; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges).to.deep.include.members([vscode_languageserver_types_1.FoldingRange.create(2, 4, 4, 18), vscode_languageserver_types_1.FoldingRange.create(3, 4, 8, 18)]); + }); + it('should provide folding ranges for mapping in mapping', () => { + const yaml = ` + foo: bar + aaa: + bbb: + fff: "fff" + ccc: ddd + `; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges).to.deep.include.members([vscode_languageserver_types_1.FoldingRange.create(2, 4, 4, 18), vscode_languageserver_types_1.FoldingRange.create(3, 4, 6, 18)]); + }); + it('should provide proper folding for map in map with array', () => { + const yaml = `FirstDict: + FirstDictFirstKey: + SomeList: + - foo +SecondDict: + SecondDictFirstKey: foo`; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges).to.deep.include.members([vscode_languageserver_types_1.FoldingRange.create(1, 3, 2, 11)]); + }); + it('should provide proper folding for map in map with array2', () => { + const yaml = `top1: + second11: + name: one + events: + - element + second12: + name: two`; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlFolding_1.getFoldingRanges)(doc, context); + (0, chai_1.expect)(ranges).to.deep.include.members([vscode_languageserver_types_1.FoldingRange.create(1, 4, 2, 15)]); + }); + it('should respect range limits', () => { + const yaml = ` + a: + - 1 + b: + - 2 + `; + const warnings = []; + const doc = (0, testHelper_1.setupTextDocument)(yaml); + const unlimitedRanges = (0, yamlFolding_1.getFoldingRanges)(doc, { + rangeLimit: 10, + onRangeLimitExceeded: (uri) => warnings.push(uri), + }); + (0, chai_1.expect)(unlimitedRanges.length).to.equal(2); + (0, chai_1.expect)(warnings).to.be.empty; + const limitedRanges = (0, yamlFolding_1.getFoldingRanges)(doc, { + rangeLimit: 1, + onRangeLimitExceeded: (uri) => warnings.push(uri), + }); + (0, chai_1.expect)(limitedRanges.length).to.equal(1); + (0, chai_1.expect)(warnings).to.deep.equal([testHelper_1.TEST_URI]); + }); +}); +//# sourceMappingURL=yamlFolding.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js.map" index bf6f90f9a5da6e39cd21736f9bd6e2e00bcfdb87..e369a23182bde27fbea743a207a9c34859aae719 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlFolding.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a416e40ba67880d704304ce0227805fbe7f68db8c3f9142d933eb4bcd9a78ed7 -size 5484 +{"version":3,"file":"yamlFolding.test.js","sourceRoot":"","sources":["../../../test/yamlFolding.test.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,+BAA8B;AAC9B,6EAA2D;AAC3D,6EAA+E;AAE/E,mDAAiE;AAEjE,MAAM,OAAO,GAAyB,EAAE,UAAU,EAAE,MAAO,EAAE,CAAC;AAE9D,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,MAAM,MAAM,GAAG,IAAA,8BAAgB,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACpD,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAA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_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js" index 9455dbef6e4a1c49272e9b6aadeab426fa7961c0..6b378bf84624b472f552bc0e8a3165ba5225cf65 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js" @@ -1,3 +1,90 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38d58f35bc19b01eadd7af3c60b5451e977ed3b816510b89f99c17ad8526d27f -size 3725 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const chai_1 = require("chai"); +const src_1 = require("../src"); +const schemaRequestHandler_1 = require("../src/languageservice/services/schemaRequestHandler"); +const testHelper_1 = require("./utils/testHelper"); +/** + * Builds a simple schema request service + * @param contentMap Mapping of a schema uri to the schema content + */ +function schemaRequestServiceBuilder(contentMap) { + return async (uri) => { + return contentMap[uri]; + }; +} +describe('getLanguageService()', () => { + it('successfully creates an instance without optional arguments', () => { + (0, src_1.getLanguageService)({ + schemaRequestService: {}, + workspaceContext: {}, + }); + }); + describe('minimal language service hover happy path', () => { + const schemaUri = 'my.schema.uri'; + const schemaContentMap = {}; + let schemaRequestService; + let textDocument; + let hoverPosition; // Position the 'mouse' is hovering on the content + let minimalYamlService; + before(async () => { + // Setup object that resolves schema content + schemaContentMap[schemaUri] = ` + { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "firstName": { + "type": "string", + "description": "The person's first name." + } + } + } + `; + schemaRequestService = schemaRequestServiceBuilder(schemaContentMap); + // Setup the document and where the hover is on it + const contentWithHoverPosition = 'fi|r|stName: "Nikolas"'; + const { content, position: offset } = (0, testHelper_1.caretPosition)(contentWithHoverPosition); + textDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content); + hoverPosition = textDocument.positionAt(offset); + // Setup minimal language service + indicate to provide hover functionality + minimalYamlService = (0, src_1.getLanguageService)({ + schemaRequestService: schemaRequestService, + workspaceContext: schemaRequestHandler_1.workspaceContext, + }); + minimalYamlService.configure({ + hover: true, + schemas: [ + { + fileMatch: [textDocument.uri], + uri: schemaUri, + }, + ], + }); + }); + it('successfully creates an instance without optional arguments', async () => { + const result = await minimalYamlService.doHover(textDocument, hoverPosition); + chai_1.assert.deepEqual(result, { + contents: { + kind: 'markdown', + value: "The person's first name\\.\n\nSource: [my.schema.uri](my.schema.uri)", + }, + range: { + start: { + line: 0, + character: 0, + }, + end: { + line: 0, + character: 9, + }, + }, + }); + }); + }); +}); +//# sourceMappingURL=yamlLanguageService.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js.map" index d77176003d8486e6ded66235556f5b5f5986f1bc..117f7e80acdc3e088f09719ae94885100485ab91 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlLanguageService.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4848bf5089af027e296c736e91219f1eabaa20406fedb6bab3aa6256f834e215 -size 1856 +{"version":3,"file":"yamlLanguageService.test.js","sourceRoot":"","sources":["../../../test/yamlLanguageService.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,+BAA8B;AAE9B,gCAA4G;AAC5G,+FAAwF;AACxF,mDAA8E;AAE9E;;;GAGG;AACH,SAAS,2BAA2B,CAAC,UAAqC;IACxE,OAAO,KAAK,EAAE,GAAW,EAAE,EAAE;QAC3B,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACrE,IAAA,wBAAkB,EAAC;YACjB,oBAAoB,EAAE,EAA0B;YAChD,gBAAgB,EAAE,EAA6B;SAChD,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACzD,MAAM,SAAS,GAAG,eAAe,CAAC;QAClC,MAAM,gBAAgB,GAA8B,EAAE,CAAC;QAEvD,IAAI,oBAA0C,CAAC;QAC/C,IAAI,YAA0B,CAAC;QAC/B,IAAI,aAAuB,CAAC,CAAC,kDAAkD;QAC/E,IAAI,kBAAmC,CAAC;QAExC,MAAM,CAAC,KAAK,IAAI,EAAE;YAChB,4CAA4C;YAC5C,gBAAgB,CAAC,SAAS,CAAC,GAAG;;;;;;;;;;;OAW7B,CAAC;YACF,oBAAoB,GAAG,2BAA2B,CAAC,gBAAgB,CAAC,CAAC;YAErE,kDAAkD;YAClD,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;YAC1D,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAA,0BAAa,EAAC,wBAAwB,CAAC,CAAC;YAC9E,YAAY,GAAG,IAAA,sCAAyB,EAAC,OAAO,CAAC,CAAC;YAClD,aAAa,GAAG,YAAY,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YAEhD,2EAA2E;YAC3E,kBAAkB,GAAG,IAAA,wBAAkB,EAAC;gBACtC,oBAAoB,EAAE,oBAAoB;gBAC1C,gBAAgB,EAAE,uCAAgB;aACnC,CAAC,CAAC;YACH,kBAAkB,CAAC,SAAS,CAAC;gBAC3B,KAAK,EAAE,IAAI;gBACX,OAAO,EAAE;oBACP;wBACE,SAAS,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC;wBAC7B,GAAG,EAAE,SAAS;qBACf;iBACF;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,6DAA6D,EAAE,KAAK,IAAI,EAAE;YAC3E,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;YAE7E,aAAM,CAAC,SAAS,CAAC,MAAM,EAAE;gBACvB,QAAQ,EAAE;oBACR,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,sEAAsE;iBAC9E;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,IAAI,EAAE,CAAC;wBACP,SAAS,EAAE,CAAC;qBACb;oBACD,GAAG,EAAE;wBACH,IAAI,EAAE,CAAC;wBACP,SAAS,EAAE,CAAC;qBACb;iBACF;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js" index cc48ee336de4693b6002fdcff2915ffe7b54fed9..0ec622e85138166b76f1828af3d280a66e0db4d5 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js" @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2422b735b22ca7bf4ec43a669ccb5a75a37339e5dba5371c347b39595c6acf9f -size 4264 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const chai_1 = require("chai"); +const vscode_languageserver_types_1 = require("vscode-languageserver-types"); +const yamlOnTypeFormatting_1 = require("../src/languageservice/services/yamlOnTypeFormatting"); +const testHelper_1 = require("./utils/testHelper"); +function createParams(position) { + return { + textDocument: (0, testHelper_1.setupTextDocument)(''), + ch: '\n', + options: vscode_languageserver_types_1.FormattingOptions.create(2, true), + position, + }; +} +describe('YAML On Type Formatter', () => { + it('should react on "\n" only', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:'); + const params = createParams(vscode_languageserver_types_1.Position.create(1, 0)); + params.ch = '\t'; + const result = (0, yamlOnTypeFormatting_1.doDocumentOnTypeFormatting)(doc, params); + (0, chai_1.expect)(result).is.undefined; + }); + it('should add indentation for mapping', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n'); + const params = createParams(vscode_languageserver_types_1.Position.create(1, 0)); + const result = (0, yamlOnTypeFormatting_1.doDocumentOnTypeFormatting)(doc, params); + (0, chai_1.expect)(result).to.deep.include(vscode_languageserver_types_1.TextEdit.insert(vscode_languageserver_types_1.Position.create(1, 0), ' ')); + }); + it('should add indentation for scalar array items', () => { + const doc = (0, testHelper_1.setupTextDocument)('foo:\n - some\n '); + const pos = vscode_languageserver_types_1.Position.create(2, 2); + const params = createParams(pos); + const result = (0, yamlOnTypeFormatting_1.doDocumentOnTypeFormatting)(doc, params); + (0, chai_1.expect)(result[0]).to.eqls(vscode_languageserver_types_1.TextEdit.insert(pos, '- ')); + }); + it('should add indentation for mapping in array', () => { + const doc = (0, testHelper_1.setupTextDocument)('some:\n - arr:\n '); + const pos = vscode_languageserver_types_1.Position.create(2, 2); + const params = createParams(pos); + const result = (0, yamlOnTypeFormatting_1.doDocumentOnTypeFormatting)(doc, params); + (0, chai_1.expect)(result).to.deep.include(vscode_languageserver_types_1.TextEdit.insert(pos, ' ')); + }); + it('should replace all spaces in newline', () => { + const doc = (0, testHelper_1.setupTextDocument)('some:\n '); + const pos = vscode_languageserver_types_1.Position.create(1, 0); + const params = createParams(pos); + const result = (0, yamlOnTypeFormatting_1.doDocumentOnTypeFormatting)(doc, params); + (0, chai_1.expect)(result).to.deep.include.members([vscode_languageserver_types_1.TextEdit.del(vscode_languageserver_types_1.Range.create(pos, vscode_languageserver_types_1.Position.create(1, 3))), vscode_languageserver_types_1.TextEdit.insert(pos, ' ')]); + }); + it('should keep all non white spaces characters in newline', () => { + const doc = (0, testHelper_1.setupTextDocument)('some:\n foo'); + const pos = vscode_languageserver_types_1.Position.create(1, 0); + const params = createParams(pos); + const result = (0, yamlOnTypeFormatting_1.doDocumentOnTypeFormatting)(doc, params); + (0, chai_1.expect)(result).is.undefined; + }); + it('should add indentation for multiline string', () => { + const doc = (0, testHelper_1.setupTextDocument)('some: |\n'); + const pos = vscode_languageserver_types_1.Position.create(1, 0); + const params = createParams(pos); + const result = (0, yamlOnTypeFormatting_1.doDocumentOnTypeFormatting)(doc, params); + (0, chai_1.expect)(result).to.deep.include(vscode_languageserver_types_1.TextEdit.insert(pos, ' ')); + }); +}); +//# sourceMappingURL=yamlOnTypeFormatting.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js.map" index fbcc604c7286fb2ee446ba2a88a65832aecf02b8..4f16fb0e1a61abe180795def04501376d0f91680 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlOnTypeFormatting.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f045a8184596df5155d144a8fafee6ab3ec370c6a1c8397e5cb036648b27e74 -size 3316 +{"version":3,"file":"yamlOnTypeFormatting.test.js","sourceRoot":"","sources":["../../../test/yamlOnTypeFormatting.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,+BAA8B;AAE9B,6EAA2F;AAC3F,+FAAkG;AAClG,mDAAuD;AAEvD,SAAS,YAAY,CAAC,QAAkB;IACtC,OAAO;QACL,YAAY,EAAE,IAAA,8BAAiB,EAAC,EAAE,CAAC;QACnC,EAAE,EAAE,IAAI;QACR,OAAO,EAAE,+CAAiB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC;QAC1C,QAAQ;KACT,CAAC;AACJ,CAAC;AACD,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,GAAG,GAAG,IAAA,8BAAiB,EAAC,MAAM,CAAC,CAAC;QACtC,MAAM,MAAM,GAAG,YAAY,CAAC,sCAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACnD,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;QACjB,MAAM,MAAM,GAAG,IAAA,iDAA0B,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACvD,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,GAAG,GAAG,IAAA,8BAAiB,EAAC,QAAQ,CAAC,CAAC;QACxC,MAAM,MAAM,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,8BAAiB,EAAC,WAAW,CAAC,CAAC;QAC3C,MAAM,GAAG,GAAG,sCAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACjC,MAAM,MAAM,GAAG,IAAA,iDAA0B,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACvD,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js" index e9c3dc20f945bb770700344b2f6301027b746e35..ab920856a1c162cd7b5c656817688bb8975717e4 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js" @@ -1,3 +1,181 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0d085d5565c21456871be2278025fb6c7c84300454ab164613f6f3d7929f9a4 -size 13905 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const assert = require("assert"); +const chai_1 = require("chai"); +const yamlParser07_1 = require("./../src/languageservice/parser/yamlParser07"); +describe('YAML parser', () => { + describe('YAML parser', function () { + it('parse emtpy text', () => { + const parsedDocument = (0, yamlParser07_1.parse)(''); + assert(parsedDocument.documents.length === 1, 'A document has been created for an empty text'); + }); + it('parse only comment', () => { + const parsedDocument = (0, yamlParser07_1.parse)('# a comment'); + assert(parsedDocument.documents.length === 1, 'A document has been created when there is a comment'); + }); + it('parse single document with --- at the start of the file', () => { + const parsedDocument = (0, yamlParser07_1.parse)('---\n# a comment\ntest: test'); + assert(parsedDocument.documents.length === 1, `A single document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + }); + it('parse multi document with --- at the start of the file', () => { + const parsedDocument = (0, yamlParser07_1.parse)('---\n# a comment\ntest: test\n...\n---\n# second document\ntest2: test2'); + assert(parsedDocument.documents.length === 2, `two documents should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + assert(parsedDocument.documents[1].lineComments.length === 1); + assert(parsedDocument.documents[1].lineComments[0] === '# second document'); + }); + it('parse single document with directives and line comments', () => { + const parsedDocument = (0, yamlParser07_1.parse)('%TAG !yaml! tag:yaml.org,2002:\n---\n# a comment\ntest'); + assert(parsedDocument.documents.length === 1, `A single document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + }); + it('parse 2 documents with directives and line comments', () => { + const parsedDocument = (0, yamlParser07_1.parse)('%TAG !yaml! tag:yaml.org,2002:\n# a comment\ntest\n...\n---\ntest2'); + assert(parsedDocument.documents.length === 2, `2 documents should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[1].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[1].root.children.length}`); + assert(parsedDocument.documents[1].root.value === 'test2'); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + }); + it('parse single document', () => { + const parsedDocument = (0, yamlParser07_1.parse)('test'); + assert(parsedDocument.documents.length === 1, `A single document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + }); + it('parse single document with directives', () => { + const parsedDocument = (0, yamlParser07_1.parse)('%TAG !yaml! tag:yaml.org,2002:\n---\ntest'); + assert(parsedDocument.documents.length === 1, `A single document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + }); + it('parse 2 documents', () => { + const parsedDocument = (0, yamlParser07_1.parse)('test\n---\ntest2'); + assert(parsedDocument.documents.length === 2, `2 documents should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[0].root.value === 'test'); + assert(parsedDocument.documents[1].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[1].root.children.length}`); + assert(parsedDocument.documents[1].root.value === 'test2'); + }); + it('parse 3 documents', () => { + const parsedDocument = (0, yamlParser07_1.parse)('test\n---\ntest2\n---\ntest3'); + assert(parsedDocument.documents.length === 3, `3 documents should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[0].root.value === 'test'); + assert(parsedDocument.documents[1].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[1].root.children.length}`); + assert(parsedDocument.documents[1].root.value === 'test2'); + assert(parsedDocument.documents[2].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[2].root.children.length}`); + assert(parsedDocument.documents[2].root.value === 'test3'); + }); + it('parse single document with comment', () => { + const parsedDocument = (0, yamlParser07_1.parse)('# a comment\ntest'); + assert(parsedDocument.documents.length === 1, `A single document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + }); + it('parse 2 documents with comment', () => { + const parsedDocument = (0, yamlParser07_1.parse)('---\n# a comment\ntest: test\n---\n# a second comment\ntest2'); + assert(parsedDocument.documents.length === 2, `2 documents should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 1, `There should one children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + assert(parsedDocument.documents[1].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[1].lineComments.length === 1); + assert(parsedDocument.documents[1].lineComments[0] === '# a second comment'); + }); + it('parse 2 documents with comment and a directive', () => { + const parsedDocument = (0, yamlParser07_1.parse)('%TAG !yaml! tag:yaml.org,2002:\n---\n# a comment\ntest\n---\n# a second comment\ntest2'); + assert(parsedDocument.documents.length === 2, `2 documents should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + assert(parsedDocument.documents[1].root.children.length === 0, `There should no children available but there are ${parsedDocument.documents[0].root.children.length}`); + assert(parsedDocument.documents[1].lineComments.length === 1); + assert(parsedDocument.documents[1].lineComments[0] === '# a second comment'); + }); + it('parse document with comment first', () => { + const parsedDocument = (0, yamlParser07_1.parse)('# a comment\n---\ntest:test'); + assert(parsedDocument.documents.length === 1, `1 document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + }); + it('parse document with comment first and directive', () => { + const parsedDocument = (0, yamlParser07_1.parse)('# a comment\n%TAG !yaml! tag:yaml.org,2002:\ntest: test'); + assert(parsedDocument.documents.length === 1, `1 document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + }); + it('parse document with comment first, directive, and seperator', () => { + const parsedDocument = (0, yamlParser07_1.parse)('# a comment\n%TAG !yaml! tag:yaml.org,2002:\n---test: test'); + assert(parsedDocument.documents.length === 1, `1 document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].lineComments.length === 1); + assert(parsedDocument.documents[0].lineComments[0] === '# a comment'); + }); + it('parse document with "str" tag from recommended schema', () => { + const parsedDocument = (0, yamlParser07_1.parse)('"yes as a string with tag": !!str yes'); + assert(parsedDocument.documents.length === 1, `1 document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].errors.length === 0); + }); + it('parse document with "int" tag from recommended schema', () => { + const parsedDocument = (0, yamlParser07_1.parse)('POSTGRES_PORT: !!int 54'); + assert(parsedDocument.documents.length === 1, `1 document should be available but there are ${parsedDocument.documents.length}`); + assert(parsedDocument.documents[0].errors.length === 0, JSON.stringify(parsedDocument.documents[0].errors)); + }); + }); + describe('YAML parser bugs', () => { + it('should work with "Billion Laughs" attack', () => { + const yaml = `apiVersion: v1 +data: + a: &a ["web","web","web","web","web","web","web","web","web"] + b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a] + c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b] + d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c] + e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d] + f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e] + g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f] + h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g] + i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h] +kind: ConfigMap +metadata: + name: yaml-bomb + namespace: defaul`; + const parsedDocument = (0, yamlParser07_1.parse)(yaml); + assert.strictEqual(parsedDocument.documents.length, 1, `1 document should be available but there are ${parsedDocument.documents.length}`); + }); + it('should work with circular aliases', () => { + const yaml = '&a [ 1, *a ]\n'; + const parsedDocument = (0, yamlParser07_1.parse)(yaml); + parsedDocument.documents[0].root; + (0, chai_1.expect)(parsedDocument.documents).to.have.length(1); + }); + it('should not add "undefined" as array item', () => { + const yaml = `foo: + - *`; + const parsedDocument = (0, yamlParser07_1.parse)(yaml); + parsedDocument.documents[0].root; + (0, chai_1.expect)(parsedDocument.documents).to.have.length(1); + (0, chai_1.expect)(parsedDocument.documents[0].root.properties[0].valueNode + .items[0]).is.not.undefined; + }); + }); + describe('YAML version', () => { + it('should use yaml 1.2 by default', () => { + const parsedDocument = (0, yamlParser07_1.parse)('SOME_BOOLEAN : !!bool yes'); + assert(parsedDocument.documents[0].warnings.length === 1); + }); + it('should respect yaml 1.1', () => { + const parsedDocument = (0, yamlParser07_1.parse)('SOME_BOOLEAN : !!bool yes', { customTags: [], yamlVersion: '1.1' }); + assert(parsedDocument.documents[0].warnings.length === 0); + }); + }); +}); +//# sourceMappingURL=yamlParser.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js.map" index 208a0a82c8958014248aaa81d8ea43a005934506..3b868bb908ef3ed46031cf669f64f6efe1bdef7d 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlParser.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d3d5a8599aaf62573f4928ac4f01751a88113b125e23cdaaaee125faf8413601 -size 11343 +{"version":3,"file":"yamlParser.test.js","sourceRoot":"","sources":["../../../test/yamlParser.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,iCAAiC;AACjC,+BAA8B;AAE9B,+EAAqE;AAErE,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,QAAQ,CAAC,aAAa,EAAE;QACtB,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;YAC1B,MAAM,cAAc,GAAG,IAAA,oBAAK,EAAC,EAAE,CAAC,CAAC;YACjC,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,+CAA+C,CAAC,CAAC;QACjG,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;YAC5B,MAAM,cAAc,GAAG,IAAA,oBAAK,EAAC,aAAa,CAAC,CAAC;YAC5C,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,qDAAqD,CAAC,CAAC;QACvG,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;YACjE,MAAM,cAAc,GAAG,IAAA,oBAAK,EAAC,8BAA8B,CAAC,CAAC;YAC7D,MAAM,CACJ,cAAc,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EACrC,uDAAuD,cAAc,CAAC,SAAS,CAAC,MAAM,EAAE,CACzF,CAAC;Y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EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;YAClG,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js" index af47f993d88e3d4ad2b31fec648a151fc6e2d588..0bc058211129963a9586e2b58fc213b831cd5e39 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js" @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:349841019a6712a79a10e359f0926b4e240b87568ad53604af23bd5ed1559a42 -size 2528 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const SchemaService = require("../src/languageservice/services/yamlSchemaService"); +const url = require("url"); +const sinon = require("sinon"); +const chai = require("chai"); +const sinonChai = require("sinon-chai"); +const expect = chai.expect; +chai.use(sinonChai); +const workspaceContext = { + resolveRelativePath: (relativePath, resource) => { + return url.resolve(resource, relativePath); + }, +}; +describe('YAML Schema', () => { + const sandbox = sinon.createSandbox(); + let requestServiceStub; + beforeEach(() => { + requestServiceStub = sandbox.stub(); + }); + afterEach(() => { + sandbox.restore(); + }); + it('Loading yaml scheme', async () => { + requestServiceStub.resolves(` + properties: + fooBar: + items: + type: string + type: array + type: object + `); + const service = new SchemaService.YAMLSchemaService(requestServiceStub, workspaceContext); + const result = await service.loadSchema('fooScheme.yaml'); + expect(requestServiceStub.calledOnceWith('fooScheme.yaml')); + expect(result.schema.properties['fooBar']).eql({ + items: { type: 'string' }, + type: 'array', + }); + }); + it('Error while loading yaml', async () => { + requestServiceStub.rejects(); + const service = new SchemaService.YAMLSchemaService(requestServiceStub, workspaceContext); + const result = await service.loadSchema('fooScheme.yaml'); + expect(result.errors).length(1); + expect(result.errors[0]).includes('Unable to load schema from'); + }); + it('Error while parsing yaml scheme', async () => { + requestServiceStub.resolves(`%464*&^^&*%@$&^##$`); + const service = new SchemaService.YAMLSchemaService(requestServiceStub, workspaceContext); + const result = await service.loadSchema('fooScheme.yaml'); + expect(requestServiceStub.calledOnceWith('fooScheme.yaml')); + expect(result.errors).length(1); + expect(result.errors[0]).includes('Unable to parse content from'); + }); +}); +//# sourceMappingURL=yamlSchema.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js.map" index c5c703f575e0f3f600af0224b82968c7114207a0..0da4a2435e987bb03feb3a22f021fc2ae37b2c1e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchema.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c1f8b98b4254098c9d42c7248b071bcb5657f7ecfba3970f25dd0abb6f102906 -size 2036 +{"version":3,"file":"yamlSchema.test.js","sourceRoot":"","sources":["../../../test/yamlSchema.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,mFAAmF;AACnF,2BAA2B;AAC3B,+BAA+B;AAC/B,6BAA6B;AAC7B,wCAAwC;AAExC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAEpB,MAAM,gBAAgB,GAAG;IACvB,mBAAmB,EAAE,CAAC,YAAoB,EAAE,QAAgB,EAAE,EAAE;QAC9D,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC;AAEF,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IACtC,IAAI,kBAAmC,CAAC;IACxC,UAAU,CAAC,GAAG,EAAE;QACd,kBAAkB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,OAAO,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;QACnC,kBAAkB,CAAC,QAAQ,CAAC;;;;;;;KAO3B,CAAC,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,aAAa,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;QAC1F,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;QAC1D,MAAM,CAAC,kBAAkB,CAAC,cAAc,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AAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js" index 57318a23caf3e603009cb3bd0e88184c7a734b4b..7405ecb05dc0951e4db970286db35b7b90ae00f7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js" @@ -1,3 +1,117 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:84817b868894337560b6d59ba500b774efbb5f90543500364ad2f4a3b32243d9 -size 7075 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +const sinon = require("sinon"); +const chai = require("chai"); +const sinonChai = require("sinon-chai"); +const path = require("path"); +const SchemaService = require("../src/languageservice/services/yamlSchemaService"); +const yamlParser07_1 = require("../src/languageservice/parser/yamlParser07"); +const expect = chai.expect; +chai.use(sinonChai); +describe('YAML Schema Service', () => { + const sandbox = sinon.createSandbox(); + afterEach(() => { + sandbox.restore(); + }); + describe('Schema for resource', () => { + let requestServiceMock; + beforeEach(() => { + requestServiceMock = sandbox.fake.resolves(undefined); + }); + it('should handle inline schema http url', () => { + const documentContent = `# yaml-language-server: $schema=http://json-schema.org/draft-07/schema# anothermodeline=value\n`; + const content = `${documentContent}\n---\n- `; + const yamlDock = (0, yamlParser07_1.parse)(content); + const service = new SchemaService.YAMLSchemaService(requestServiceMock); + service.getSchemaForResource('', yamlDock.documents[0]); + expect(requestServiceMock).calledOnceWith('http://json-schema.org/draft-07/schema#'); + }); + it('should handle inline schema https url', () => { + const documentContent = `# yaml-language-server: $schema=https://json-schema.org/draft-07/schema# anothermodeline=value\n`; + const content = `${documentContent}\n---\n- `; + const yamlDock = (0, yamlParser07_1.parse)(content); + const service = new SchemaService.YAMLSchemaService(requestServiceMock); + service.getSchemaForResource('', yamlDock.documents[0]); + expect(requestServiceMock).calledOnceWith('https://json-schema.org/draft-07/schema#'); + }); + it('should handle url with fragments', async () => { + const content = `# yaml-language-server: $schema=https://json-schema.org/draft-07/schema#/definitions/schemaArray\nfoo: bar`; + const yamlDock = (0, yamlParser07_1.parse)(content); + requestServiceMock = sandbox.fake.resolves(`{"definitions": {"schemaArray": { + "type": "array", + "minItems": 1, + "items": { "$ref": "#" } + }}, "properties": {}}`); + const service = new SchemaService.YAMLSchemaService(requestServiceMock); + const schema = await service.getSchemaForResource('', yamlDock.documents[0]); + expect(requestServiceMock).calledTwice; + expect(requestServiceMock).calledWithExactly('https://json-schema.org/draft-07/schema'); + expect(requestServiceMock).calledWithExactly('https://json-schema.org/draft-07/schema#/definitions/schemaArray'); + expect(schema.schema.type).eqls('array'); + }); + it('should handle url with fragments when root object is schema', async () => { + const content = `# yaml-language-server: $schema=https://json-schema.org/draft-07/schema#/definitions/schemaArray`; + const yamlDock = (0, yamlParser07_1.parse)(content); + requestServiceMock = sandbox.fake.resolves(`{"definitions": {"schemaArray": { + "type": "array", + "minItems": 1, + "items": { "$ref": "#" } + }, + "bar": { + "type": "string" + } + }, "properties": {"foo": {"type": "boolean"}}, "required": ["foo"]}`); + const service = new SchemaService.YAMLSchemaService(requestServiceMock); + const schema = await service.getSchemaForResource('', yamlDock.documents[0]); + expect(requestServiceMock).calledTwice; + expect(requestServiceMock).calledWithExactly('https://json-schema.org/draft-07/schema'); + expect(requestServiceMock).calledWithExactly('https://json-schema.org/draft-07/schema#/definitions/schemaArray'); + expect(schema.schema.type).eqls('array'); + expect(schema.schema.required).is.undefined; + expect(schema.schema.definitions.bar.type).eqls('string'); + }); + it('should handle file path with fragments', async () => { + const content = `# yaml-language-server: $schema=schema.json#/definitions/schemaArray\nfoo: bar`; + const yamlDock = (0, yamlParser07_1.parse)(content); + requestServiceMock = sandbox.fake.resolves(`{"definitions": {"schemaArray": { + "type": "array", + "minItems": 1, + "items": { "$ref": "#" } + }}, "properties": {}}`); + const service = new SchemaService.YAMLSchemaService(requestServiceMock); + const schema = await service.getSchemaForResource('', yamlDock.documents[0]); + expect(requestServiceMock).calledTwice; + if (process.platform === 'win32') { + const driveLetter = path.parse(__dirname).root.split(':')[0].toLowerCase(); + expect(requestServiceMock).calledWithExactly(`file:///${driveLetter}%3A/schema.json`); + expect(requestServiceMock).calledWithExactly(`file:///${driveLetter}%3A/schema.json#/definitions/schemaArray`); + } + else { + expect(requestServiceMock).calledWithExactly('file:///schema.json'); + expect(requestServiceMock).calledWithExactly('file:///schema.json#/definitions/schemaArray'); + } + expect(schema.schema.type).eqls('array'); + }); + it('should handle modeline schema comment in the middle of file', () => { + const documentContent = `foo:\n bar\n# yaml-language-server: $schema=https://json-schema.org/draft-07/schema#\naa:bbb\n`; + const content = `${documentContent}`; + const yamlDock = (0, yamlParser07_1.parse)(content); + const service = new SchemaService.YAMLSchemaService(requestServiceMock); + service.getSchemaForResource('', yamlDock.documents[0]); + expect(requestServiceMock).calledOnceWith('https://json-schema.org/draft-07/schema#'); + }); + it('should handle modeline schema comment in multiline comments', () => { + const documentContent = `foo:\n bar\n#first comment\n# yaml-language-server: $schema=https://json-schema.org/draft-07/schema#\naa:bbb\n`; + const content = `${documentContent}`; + const yamlDock = (0, yamlParser07_1.parse)(content); + const service = new SchemaService.YAMLSchemaService(requestServiceMock); + service.getSchemaForResource('', yamlDock.documents[0]); + expect(requestServiceMock).calledOnceWith('https://json-schema.org/draft-07/schema#'); + }); + }); +}); +//# sourceMappingURL=yamlSchemaService.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js.map" index e06a6da37c5f5ba46030291ee96f7062f6cf4e7a..a7f16dc2a486631bb750959255cbaa6426819966 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSchemaService.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7606fb9c6b496b3c583c0e301f0284ae260a01390ab7067942aa58327ec2a4e4 -size 4600 +{"version":3,"file":"yamlSchemaService.test.js","sourceRoot":"","sources":["../../../test/yamlSchemaService.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,+BAA+B;AAC/B,6BAA6B;AAC7B,wCAAwC;AACxC,6BAA6B;AAC7B,mFAAmF;AACnF,6EAAmE;AAEnE,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAC3B,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAEpB,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,OAAO,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,q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ff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js" index c527e8cc2844990bdc1aa5002e6b4ef5e5dc32c0..56786703df965af56bfd267719fc6dfa41507f13 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js" @@ -1,3 +1,180 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07498df5a1c90cdb1a4327b2276d4d95b7fed7712898bec83cec362c7e54624c -size 7027 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const chai_1 = require("chai"); +const testHelper_1 = require("./utils/testHelper"); +const yamlSelectionRanges_1 = require("../src/languageservice/services/yamlSelectionRanges"); +function isRangesEqual(range1, range2) { + return (range1.start.line === range2.start.line && + range1.start.character === range2.start.character && + range1.end.line === range2.end.line && + range1.end.character === range2.end.character); +} +function expectSelections(selectionRange, ranges) { + for (const range of ranges) { + (0, chai_1.expect)(selectionRange.range).eql(range); + // Deduplicate ranges + while (selectionRange.parent && isRangesEqual(selectionRange.range, selectionRange.parent.range)) { + selectionRange = selectionRange.parent; + } + selectionRange = selectionRange.parent; + } +} +describe('YAML Selection Ranges Tests', () => { + it('selection ranges for mapping', () => { + const yaml = 'key: value'; + const positions = [ + { + line: 0, + character: 1, + }, + ]; + const document = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 0, character: 0 }, end: { line: 0, character: 3 } }, + { start: { line: 0, character: 0 }, end: { line: 0, character: 10 } }, + ]); + }); + it('selection ranges for sequence', () => { + const yaml = ` +key: + - 1 + - word + `; + let positions = [ + { + line: 3, + character: 8, + }, + ]; + const document = (0, testHelper_1.setupTextDocument)(yaml); + let ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 3, character: 4 }, end: { line: 3, character: 8 } }, + { start: { line: 2, character: 2 }, end: { line: 3, character: 8 } }, + { start: { line: 1, character: 0 }, end: { line: 3, character: 8 } }, + ]); + positions = [ + { + line: 2, + character: 0, + }, + ]; + ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 2, character: 0 }, end: { line: 3, character: 8 } }, + { start: { line: 1, character: 0 }, end: { line: 3, character: 8 } }, + ]); + }); + it('selection ranges jump for "" \'\'', () => { + const yaml = ` +- "word" +- 'word' + `; + let positions = [ + { + line: 1, + character: 4, + }, + ]; + const document = (0, testHelper_1.setupTextDocument)(yaml); + let ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 1, character: 3 }, end: { line: 1, character: 7 } }, + { start: { line: 1, character: 2 }, end: { line: 1, character: 8 } }, + ]); + positions = [ + { + line: 2, + character: 4, + }, + ]; + ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 2, character: 3 }, end: { line: 2, character: 7 } }, + { start: { line: 2, character: 2 }, end: { line: 2, character: 8 } }, + ]); + }); + it('selection ranges jump for [] {}', () => { + const yaml = '{ key: [1, true] }'; + const positions = [ + { + line: 0, + character: 12, + }, + ]; + const document = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 0, character: 11 }, end: { line: 0, character: 15 } }, + { start: { line: 0, character: 8 }, end: { line: 0, character: 15 } }, + { start: { line: 0, character: 7 }, end: { line: 0, character: 16 } }, + { start: { line: 0, character: 2 }, end: { line: 0, character: 16 } }, + { start: { line: 0, character: 1 }, end: { line: 0, character: 17 } }, + { start: { line: 0, character: 0 }, end: { line: 0, character: 18 } }, + ]); + }); + it('selection ranges for multiple positions', () => { + const yaml = ` +mapping: + key: value +sequence: + - 1 + - null + `; + const positions = [ + { + line: 2, + character: 10, + }, + { + line: 5, + character: 8, + }, + ]; + const document = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 2, character: 7 }, end: { line: 2, character: 12 } }, + { start: { line: 2, character: 2 }, end: { line: 2, character: 12 } }, + { start: { line: 1, character: 0 }, end: { line: 2, character: 12 } }, + ]); + expectSelections(ranges[1], [ + { start: { line: 5, character: 4 }, end: { line: 5, character: 8 } }, + { start: { line: 4, character: 2 }, end: { line: 5, character: 8 } }, + { start: { line: 3, character: 0 }, end: { line: 5, character: 8 } }, + ]); + }); + it('selection ranges for multiple documents', () => { + const yaml = ` +document1: + key: value +--- +document2: + - 1 + - null + `; + const positions = [ + { + line: 5, + character: 5, + }, + ]; + const document = (0, testHelper_1.setupTextDocument)(yaml); + const ranges = (0, yamlSelectionRanges_1.getSelectionRanges)(document, positions); + (0, chai_1.expect)(ranges.length).equal(positions.length); + expectSelections(ranges[0], [ + { start: { line: 5, character: 4 }, end: { line: 5, character: 5 } }, + { start: { line: 5, character: 2 }, end: { line: 6, character: 8 } }, + { start: { line: 4, character: 0 }, end: { line: 6, character: 8 } }, + ]); + }); +}); +//# sourceMappingURL=yamlSelectionRanges.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js.map" index 0af636f61454655b937a954fe415b1a510ab69d3..2b962fac24571f7e8364405cc64045bf66c50222 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlSelectionRanges.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5a1c1e889fa048a4b8968712d15ee5ac41e269b4c28c963314dcd85749826a5 -size 7542 +{"version":3,"file":"yamlSelectionRanges.test.js","sourceRoot":"","sources":["../../../test/yamlSelectionRanges.test.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAE9B,mDAAuD;AACvD,6FAAyF;AAEzF,SAAS,aAAa,CAAC,MAAa,EAAE,MAAa;IACjD,OAAO,CACL,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI;QACvC,MAAM,CAAC,KAAK,CAAC,SAAS,KAAK,MAAM,CAAC,KAAK,CAAC,SAAS;QACjD,MAAM,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,GAAG,CAAC,IAAI;QACnC,MAAM,CAAC,GAAG,CAAC,SAAS,KAAK,MAAM,CAAC,GAAG,CAAC,SAA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EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,IAAI,GAAG;;;;;;;OAOV,CAAC;QACJ,MAAM,SAAS,GAAe;YAC5B;gBACE,IAAI,EAAE,CAAC;gBACP,SAAS,EAAE,CAAC;aACb;SACF,CAAC;QACF,MAAM,QAAQ,GAAG,IAAA,8BAAiB,EAAC,IAAI,CAAC,CAAC;QACzC,MAAM,MAAM,GAAG,IAAA,wCAAkB,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QACvD,IAAA,aAAM,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YAC1B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;YACpE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;YACpE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;SACrE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.d.ts" index a9755173b4bb6da2a9126864f68f2b7288ece072..cb0ff5c3b541f646105198ee23ac0fc3d805023e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.d.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.d.ts" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881 -size 11 +export {}; diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js" index a7364802155c49cf9ed3c19a3e55c6af55e99626..76c98e32a4b175351a8454967eb6cd14162d1022 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js" @@ -1,3 +1,201 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6f91e683f0097055682dba30f205f96003fdf27ef3e2778b24c52ab2f4c323c0 -size 11467 +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat. 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 yamlSettings_1 = require("../src/yamlSettings"); +const serviceSetup_1 = require("./utils/serviceSetup"); +const testHelper_1 = require("./utils/testHelper"); +const chai_1 = require("chai"); +const verifyError_1 = require("./utils/verifyError"); +describe('YAML Validation Tests', () => { + let languageSettingsSetup; + let validationHandler; + let yamlSettings; + before(() => { + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate(); + const { validationHandler: valHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + }); + function parseSetup(content, customSchemaID) { + const testTextDocument = (0, testHelper_1.setupSchemaIDTextDocument)(content, customSchemaID); + yamlSettings.documents = new yamlSettings_1.TextDocumentTestManager(); + yamlSettings.documents.set(testTextDocument); + return validationHandler.validateTextDocument(testTextDocument); + } + describe('TAB Character diagnostics', () => { + it('Should report if TAB character present', async () => { + const yaml = 'foo:\n\t- bar'; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).is.not.empty; + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result[0]).deep.equal((0, verifyError_1.createExpectedError)('Tabs are not allowed as indentation', 1, 0, 1, 6)); + }); + it('Should report one error for TAB character present in a row', async () => { + const yaml = 'foo:\n\t\t- bar'; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).is.not.empty; + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result[0]).deep.equal((0, verifyError_1.createExpectedError)('Tabs are not allowed as indentation', 1, 0, 1, 7)); + }); + it('Should report one error for TAB`s characters present in the middle of indentation', async () => { + const yaml = 'foo:\n \t\t\t - bar'; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).is.not.empty; + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result[0]).deep.equal((0, verifyError_1.createExpectedError)('Tabs are not allowed as indentation', 1, 1, 1, 10)); + }); + }); + describe('Unused anchors diagnostics', () => { + it('should report unused anchor', async () => { + const yaml = 'foo: &bar bar\n'; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).is.not.empty; + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result[0]).deep.equal((0, verifyError_1.createUnusedAnchorDiagnostic)('Unused anchor "&bar"', 0, 5, 0, 9)); + }); + it('should not report used anchor', async () => { + const yaml = 'foo: &bar bar\nfff: *bar'; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).is.empty; + }); + it('should report unused anchors in array ', async () => { + const yaml = `foo: &bar doe +aaa: some +dd: *ba +some: + &a ss: ss +&aa ff: + - s + - &g o + - &e m + - e +ee: *g`; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).is.not.empty; + (0, chai_1.expect)(result.length).to.be.equal(4); + (0, chai_1.expect)(result).to.include.deep.members([ + (0, verifyError_1.createUnusedAnchorDiagnostic)('Unused anchor "&bar"', 0, 5, 0, 9), + (0, verifyError_1.createUnusedAnchorDiagnostic)('Unused anchor "&a"', 4, 2, 4, 4), + (0, verifyError_1.createUnusedAnchorDiagnostic)('Unused anchor "&aa"', 5, 0, 5, 3), + (0, verifyError_1.createUnusedAnchorDiagnostic)('Unused anchor "&e"', 8, 4, 8, 6), + ]); + }); + }); + describe(`YAML styles test`, () => { + it('should not report flow style', async () => { + const yaml = `host: phl-42 +datacenter: + location: canada + cab: 15 +animals: + - dog + - cat + - mouse`; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).to.be.empty; + }); + it('should report flow style', async () => { + const yaml = `host: phl-42 +datacenter: {location: canada , cab: 15} +animals: [dog , cat , mouse] `; + yamlSettings.style = { + flowMapping: 'forbid', + flowSequence: 'forbid', + }; + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate().withFlowMapping('forbid').withFlowSequence('forbid'); + const { validationHandler: valHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).not.to.be.empty; + (0, chai_1.expect)(result.length).to.be.equal(2); + (0, chai_1.expect)(result).to.include.deep.members([ + (0, verifyError_1.createExpectedError)('Flow style mapping is forbidden', 1, 12, 1, 42, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'flowMap'), + (0, verifyError_1.createExpectedError)('Flow style sequence is forbidden', 2, 9, 2, 28, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'flowSeq'), + ]); + }); + it('should report only sequence when flow mapping is allow', async () => { + const yaml = `host: phl-42 +datacenter: {location: canada , cab: 15} +animals: [dog , cat , mouse] `; + yamlSettings.style = { + flowMapping: 'forbid', + flowSequence: 'forbid', + }; + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate().withFlowMapping('allow').withFlowSequence('forbid'); + const { validationHandler: valHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).not.to.be.empty; + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result).to.include.deep.members([ + (0, verifyError_1.createExpectedError)('Flow style sequence is forbidden', 2, 9, 2, 28, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'flowSeq'), + ]); + }); + it('should report flow error for empty map & sequence', async () => { + const yaml = 'object: {} \nobject2: []'; + yamlSettings.style = { + flowMapping: 'forbid', + flowSequence: 'forbid', + }; + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate().withFlowMapping('forbid').withFlowSequence('forbid'); + const { validationHandler: valHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).not.to.be.empty; + (0, chai_1.expect)(result.length).to.be.equal(2); + (0, chai_1.expect)(result).to.include.deep.members([ + (0, verifyError_1.createExpectedError)('Flow style mapping is forbidden', 0, 8, 0, 11, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'flowMap'), + (0, verifyError_1.createExpectedError)('Flow style sequence is forbidden', 1, 9, 1, 10, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'flowSeq'), + ]); + }); + }); + describe('Map keys order Tests', () => { + it('should report key order error', async () => { + const yaml = '- key 2: v\n key 1: val\n key 5: valu\n key 3: ff'; + yamlSettings.keyOrdering = true; + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate().withKeyOrdering(); + const { validationHandler: valHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).not.to.be.empty; + (0, chai_1.expect)(result.length).to.be.equal(2); + (0, chai_1.expect)(result).to.include.deep.members([ + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key 2" in mapping', 0, 2, 0, 9, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + (0, verifyError_1.createExpectedError)('Wrong ordering of key "key 5" in mapping', 2, 0, 2, 9, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + ]); + }); + it('should report key order error for flow style maps', async () => { + const yaml = '- {b: 1, a: 2}'; + yamlSettings.keyOrdering = true; + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate().withKeyOrdering(); + const { validationHandler: valHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).not.to.be.empty; + (0, chai_1.expect)(result.length).to.be.equal(1); + (0, chai_1.expect)(result).to.include.deep.members([ + (0, verifyError_1.createExpectedError)('Wrong ordering of key "b" in mapping', 0, 3, 0, 6, vscode_languageserver_types_1.DiagnosticSeverity.Error, 'YAML', 'mapKeyOrder'), + ]); + }); + it('should NOT report any errors', async () => { + const yaml = '- key 1: val\n key 5: valu\n- {a: 1, c: 2}'; + yamlSettings.keyOrdering = true; + languageSettingsSetup = new serviceSetup_1.ServiceSetup().withValidate().withKeyOrdering(); + const { validationHandler: valHandler, yamlSettings: settings } = (0, testHelper_1.setupLanguageService)(languageSettingsSetup.languageSettings); + validationHandler = valHandler; + yamlSettings = settings; + const result = await parseSetup(yaml); + (0, chai_1.expect)(result).to.be.empty; + }); + }); +}); +//# sourceMappingURL=yamlValidation.test.js.map \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js.map" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js.map" index 8e657c253aec12137582e81ddaae0655f84370db..d646cfea621e86b753e16e157307763d256ab408 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js.map" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/out/server/test/yamlValidation.test.js.map" @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d219a8a5115ff52c273cdcb6be02df92dc287301fd46c403b728faf6edba3184 -size 9099 +{"version":3,"file":"yamlValidation.test.js","sourceRoot":"","sources":["../../../test/yamlValidation.test.ts"],"names":[],"mappings":";;AAAA;;;gGAGgG;AAChG,6EAA6E;AAE7E,sDAA6E;AAC7E,uDAAoD;AACpD,mDAAqF;AACrF,+BAA8B;AAC9B,qDAAwF;AAExF,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,qBAAmC,CAAC;IACxC,IAAI,iBAAoC,CAAC;IACzC,IAAI,YAA2B,CAAC;IAChC,MAAM,CAAC,GAAG,EAAE;QACV,qBAAqB,GAAG,IAAI,2BAAY,EAAE,CAAC,YAAY,EAAE,CAAC;QAC1D,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,IAAA,iCAAoB,EACpF,qBAAqB,CAAC,gBAAgB,CACvC,CAAC;QACF,iBAAiB,GAAG,UAAU,CAAC;QAC/B,YAAY,GAAG,QAAQ,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,OAAe,EAAE,cAAuB;QAC1D,MAAM,gBAAgB,GAAG,IAAA,sCAAyB,EAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAC5E,YAAY,CAAC,SAAS,GAAG,IAAI,sCAAuB,EAAE,CAAC;QACtD,YAAY,CAAC,SAAqC,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC1E,OAAO,iBAAiB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IAClE,C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eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/package.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/package.json" index 5f04de8321650b2bc6d827d6c6c6878a119570d3..c270da41f4df52eb15445d42f84a98bd799e60ac 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/package.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/package.json" @@ -1,3 +1,108 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ce12ffb34c92bd559f9c3d75dc1f6bb602ea9d10fe3fe0273f811a41e293fbe -size 3360 +{ + "name": "yaml-language-server", + "description": "YAML language server", + "version": "1.14.0", + "author": "Gorkem Ercan (Red Hat)", + "license": "MIT", + "contributors": [ + { + "name": "Joshua Pinkney", + "email": "joshpinkney@gmail.com" + }, + { + "name": "Yevhen Vydolob", + "email": "yvydolob@redhat.com" + }, + { + "name": "Google LLC" + } + ], + "bin": { + "yaml-language-server": "./bin/yaml-language-server" + }, + "main": "./out/server/src/index.js", + "keywords": [ + "yaml", + "LSP" + ], + "repository": { + "type": "git", + "url": "https://github.com/redhat-developer/yaml-language-server.git" + }, + "optionalDependencies": { + "prettier": "2.8.7" + }, + "dependencies": { + "ajv": "^8.11.0", + "lodash": "4.17.21", + "request-light": "^0.5.7", + "vscode-json-languageservice": "4.1.8", + "vscode-languageserver": "^7.0.0", + "vscode-languageserver-textdocument": "^1.0.1", + "vscode-languageserver-types": "^3.16.0", + "vscode-nls": "^5.0.0", + "vscode-uri": "^3.0.2", + "yaml": "2.2.2" + }, + "devDependencies": { + "@microsoft/eslint-formatter-sarif": "3.0.0", + "@types/chai": "^4.2.12", + "@types/mocha": "8.2.2", + "@types/node": "16.x", + "@types/prettier": "2.7.2", + "@types/sinon": "^9.0.5", + "@types/sinon-chai": "^3.2.5", + "@typescript-eslint/eslint-plugin": "^5.38.0", + "@typescript-eslint/parser": "^5.38.0", + "chai": "^4.2.0", + "coveralls": "3.1.1", + "eslint": "^8.24.0", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-import": "^2.26.0", + "eslint-plugin-prettier": "^4.2.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "mocha": "9.2.2", + "mocha-lcov-reporter": "^1.3.0", + "nyc": "^15.1.0", + "rimraf": "^3.0.2", + "sinon": "^9.0.3", + "sinon-chai": "^3.5.0", + "source-map-support": "^0.5.19", + "ts-node": "^10.0.0", + "typescript": "^4.8.3" + }, + "scripts": { + "clean": "rimraf out/server && rimraf lib", + "compile": "tsc -p .", + "watch": "tsc --watch -p .", + "test": "mocha --require ts-node/register --timeout 5000 --ui bdd ./test/*.test.ts", + "coverage": "nyc mocha --require ts-node/register --timeout 5000 --require source-map-support/register --recursive --ui bdd ./test/*.test.ts", + "coveralls": "nyc --reporter=lcov --reporter=text mocha --timeout 5000 --require ts-node/register --require source-map-support/register --recursive --ui bdd ./test/*.test.ts", + "lint": "eslint --max-warnings 0 -c .eslintrc.js --ext .ts src test", + "lint-ci": "eslint --max-warnings 0 -c .eslintrc.js -f @microsoft/eslint-formatter-sarif -o eslint-result.sarif --ext .ts src test", + "prettier-fix": "yarn prettier --write .", + "build": "yarn clean && yarn lint && yarn compile && yarn build:libs", + "build:libs": "yarn compile:umd && yarn compile:esm", + "compile:umd": "tsc -p ./tsconfig.umd.json", + "compile:esm": "tsc -p ./tsconfig.esm.json", + "check-dependencies": "node ./scripts/check-dependencies.js", + "pull-remote": "git pull https://github.com/redhat-developer/yaml-language-server.git main" + }, + "nyc": { + "extension": [ + ".ts", + ".tsx" + ], + "exclude": [ + "**/*.d.ts", + "test/", + "out", + "lib", + "coverage/", + ".eslintrc.js", + "scripts" + ], + "all": true + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/scripts/check-dependencies.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/scripts/check-dependencies.js" index 087a2a5056b21c53e5c09a7c1acc46cda67937c9..f3e90756d3aba4af6e3ec2817d0f6b2d57bb129f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/scripts/check-dependencies.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/scripts/check-dependencies.js" @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b5f1f4ed64b803062090b1131188967fb10c3179f9c8720b58f433ed7f4a29d1 -size 862 +/* -------------------------------------------------------------------------------------------- + * Copyright (c) Red Hat, Inc. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * ------------------------------------------------------------------------------------------ */ + +//check package.json do not have dependency with 'next' version + +/* eslint-disable @typescript-eslint/no-var-requires */ + +const exit = require('process').exit; +const dependencies = require('../package.json').dependencies; + +for (const dep in dependencies) { + if (Object.prototype.hasOwnProperty.call(dependencies, dep)) { + const version = dependencies[dep]; + if (version === 'next') { + console.error(`Dependency ${dep} has "${version}" version, please change it to fixed version`); + exit(1); + } + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.esm.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.esm.json" index 7e0631adf799b97cbceb50738ea88ae425421d02..a2c13969e73a224c946aa73fdbfcd787196bf4c0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.esm.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.esm.json" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5cda211341d3ed414f5cce51e8d656bd02d25d5289bf52fd109021d062e6c267 -size 245 +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "downlevelIteration": true, + "lib": ["WebWorker"], + "module": "esnext", + "outDir": "./lib/esm", + }, + "exclude": [ + "node_modules", + "out", + "lib", + "test" + ] +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.umd.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.umd.json" index e6db5063e89f2de2f1d4346f31cc18144c30b03f..7da9c61ffa0e62ebf5d531effcffffacfe591cfb 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.umd.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/tsconfig.umd.json" @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4de26e3dd694f2b0207ccabd6f2684d69f8ce90ee349db7f8db1ae3fc5fe56b0 -size 210 +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "lib": ["webworker"], + "module": "umd", + "outDir": "./lib/umd", + }, + "exclude": [ + "node_modules", + "out", + "lib", + "test" + ] +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/Activator.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/Activator.class" index 5f34c9e6df82ce6d22507cdeb6334b1b94eb311f..3fc417856982b4baae68c175035078b882217d0d 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/Activator.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/Activator.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/IsNodeProjectPropertyTester.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/IsNodeProjectPropertyTester.class" index d065d4e88d6ea64f7a2bc862d5a642085bb4cc0a..72b8816b5506f01f4dfb5b28a1d876f3f490e845 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/IsNodeProjectPropertyTester.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/IsNodeProjectPropertyTester.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociation.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociation.class" index 27ad5f9d418ef03096d18eb423ca0dbf853ebd84..e8078f9644aee600fddaa4d166f931d87f1e60d9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociation.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociation.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$1.class" index 295054d92f473e32d742503d3b5d8d2274c7df4a..33e7ad6c73e1fdad42f3d1c327e3248dbd13cc30 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$2.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$2.class" index 1cc2ae05a3bc2be268b2af9852f2a8ebf883dd64..02a84d13e2ff87297d24c63d227e4db45383f4d4 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$2.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$2.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$3.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$3.class" index d2de4d8fe6ce99213a43fe78a4a3040455256e9d..d05a06f7819f85578f1f1fedf3870ed20eae76d7 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$3.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog$3.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog.class" index 57c91ea0f5eba09e4db41c35387faa5aaca87e38..1b75b56d490e4dcad6227a4bca861b8029e542ba 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationDialog.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationRegistry.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationRegistry.class" index 840aedcb504d736de468f6b37b91bf205faaef90..7329923e5cc24db19991c92ca41c798a9ef96e06 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationRegistry.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationRegistry.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.class" index 97ded86362d4e610d0b6d4545991359f65b70c90..cab924cbebd7ce8b648f5f27e758183eef3e78c7 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.properties" index cf72585c94a9e2b18c53aa2791e6f590bf8134d3..d9dac25d54863603c806d8e7e0f2e2583afd6f9a 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsMessages.properties" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4169d3ffa784d5adf1adc8d7dbf67a3685d8c48fc0dba54885b2600bee180e92 -size 1841 +################################################################ +# Copyright (c) 2020 EclipseSource and others. +# +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +################################################################ +SchemaAssociations_PreferencePage_title=Associate schemas to 'Content Types' (with either base type JSON or YAML) in the current workspace. +SchemaAssociations_PreferencePage_note=JSON schema associations registered via the extension point 'org.eclipse.wildwebdeveloper.json.schema'\nare not listed here, but are still considered by the language server. +Add=Add +Edit=Edit +Remove=Remove +SchemaAssociationDialog_Add_title=Add schema association +SchemaAssociationDialog_Add_subtitle=Add association +SchemaAssociationDialog_Edit_title=Edit schema association +SchemaAssociationDialog_Edit_subtitle=Edit schema location +ContentType=Content Type +ContentTypeId=Content Type ID +ContentTypeId_Tooltip=Please enter a valid content type ID for which the JSON schema should be applied. +SchemaLocation=Schema Location +SchemaLocation_Tooltip=Please enter a valid URL to a schema (e.g. http://json.schemastore.org/package) or a valid file path to a local JSON schema file by using the file browser (Browse...). +Browse=Browse... +SchemaAssociationDialog_Error_ContentType_required=The field 'Content Type' is required. +SchemaAssociationDialog_Error_ContentType_already_exists=A schema association for this content type already exists! +SchemaAssociationDialog_Error_SchemaLocation_required=The field 'Schema Location' is required. +SchemaAssociationDialog_Error_SchemaLocation_invalid=Invalid schema location: Please provide a valid URL or a valid file path! diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferenceInitializer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferenceInitializer.class" index 2c34a2e91d440f60faca2a4fa4be7f540a4b19f7..0b429de606b02592276b571f357a92a9a37e1c82 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferenceInitializer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferenceInitializer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage$1.class" index 7e04cb26414da12d3d0b12bae7dae851812ebc12..42270448ebfc40ac7d223f53df87276f3eb5c807 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage.class" index bdb7be0054a2f7e197e289ba4d770c1b1f15808b..835342a5f1b97c65da91009788a7fb6439eba547 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/SchemaAssociationsPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularClientImpl.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularClientImpl.class" index 817cf405ab165320350eaca45d1ad14b75c0b2e0..e7e9303d8c26ffa8026063d814cd31ed6e82ac16 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularClientImpl.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularClientImpl.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServer.class" index b4766359fd56d1b5c9e2623c8d5c03a0d72a9df9..47b2b9ccdfd22fb4975bfabfce7797d839ea2c8b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServerExtention.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServerExtention.class" index 63a8e4816fa12f3703d364955ceef1a99bcb662f..c5cdec300a4a5a4a662329ac424f1c36f22a3c8f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServerExtention.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/angular/AngularLanguageServerExtention.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageClient.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageClient.class" index ba67f1720058704a33443029d7666c44d67511df..4756933ecdeae5f8f642018825c39f1089ce4cc9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageClient.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageClient.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageServer.class" index f5bdb06e2aa1be925d31d9d9cb6ee4e828cde29c..04d72bb6a0d76eaf9eed0a5ebe7c6f632376356f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/CSSLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/Messages.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/Messages.class" index 0287a863a83de472756b64ba6e01a1b066cef596..7f5178243b7b3a2b5e7843e340b1cc41ac4c0a04 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/Messages.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/Messages.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/messages.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/messages.properties" index d75f962be770eab86ef93ed2d62ee2e4818956bc..41fc25aa525ea21d20dd491a7be6829ae6be0393 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/messages.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/messages.properties" @@ -1,3 +1,144 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf8447a7064e927586f45f0140332fb47d7f9f5de7061c85943d69f134a9c03a -size 12288 +#/******************************************************************************* +# * Copyright (c) 2022 Red Hat Inc. and others. +# * This program and the accompanying materials are made +# * available under the terms of the Eclipse Public License 2.0 +# * which is available at https://www.eclipse.org/legal/epl-2.0/ +# * +# * SPDX-License-Identifier: EPL-2.0 +# * +# * Contributors: +# * Angelo ZERR (Red Hat Inc.) - initial implementation +# *******************************************************************************/ + +# ****************************** Valid Properties FieldEditor *************************************/ +ValidPropertiesFieldEditor_inputDialog_title=Valid property +ValidPropertiesFieldEditor_inputDialog_description=Fill a property that is not validated against the `unknownProperties` rule. + +# ****************************** CSS *************************************/ + +# Completion page +CSSCompletionPreferencePage_completion_triggerPropertyValueCompletion=By default, VS Code triggers property value completion after selecting a CSS property.\nUse this setting to disable this behavior. +CSSCompletionPreferencePage_completion_completePropertyWithSemicolon=Insert semicolon at end of line when completing CSS properties. + +# Format page +CSSFormatPreferencePage_format_newlineBetweenSelectors=Separate selectors with a new line. +CSSFormatPreferencePage_format_newlineBetweenRules=Separate rulesets by a blank line. +CSSFormatPreferencePage_format_spaceAroundSelectorSeparator=Ensure a space character around selector separators '>', '+', '~' (e.g. `a > b`). +CSSFormatPreferencePage_format_braceStyle=Put braces on: +CSSFormatPreferencePage_format_braceStyle_collapse=the same line as rules (`collapse`) +CSSFormatPreferencePage_format_braceStyle_expand=own line (`expand`) +CSSFormatPreferencePage_format_preserveNewLines=Whether existing line breaks before elements should be preserved. +CSSFormatPreferencePage_format_maxPreserveNewLines=Maximum number of line breaks to be preserved in one chunk, when `#css.format.preserveNewLines#` is enabled. + +# Hover page +CSSHoverPreferencePage_hover_documentation=Show tag and attribute documentation in CSS hovers. +CSSHoverPreferencePage_hover_references=Show references to MDN in CSS hovers. + +# Validation page +CSSValidationPreferencePage_validate=Enables or disables all validations. +CSSValidationPreferencePage_lint_compatibleVendorPrefixes=When using a vendor-specific prefix make sure to also include all other vendor-specific properties. +CSSValidationPreferencePage_lint_vendorPrefix=When using a vendor-specific prefix, also include the standard property. +CSSValidationPreferencePage_lint_duplicateProperties=Do not use duplicate style definitions. +CSSValidationPreferencePage_lint_emptyRules=Do not use empty rulesets. +CSSValidationPreferencePage_lint_importStatement=Import statements do not load in parallel. +CSSValidationPreferencePage_lint_boxModel=Do not use `width` or `height` when using `padding` or `border`. +CSSValidationPreferencePage_lint_universalSelector=The universal selector (`*`) is known to be slow. +CSSValidationPreferencePage_lint_zeroUnits=No unit for zero needed. +CSSValidationPreferencePage_lint_fontFaceProperties=`@font-face` rule must define `src` and `font-family` properties. +CSSValidationPreferencePage_lint_hexColorLength=Hex colors must consist of three or six hex numbers. +CSSValidationPreferencePage_lint_argumentsInColorFunction=Invalid number of parameters. +CSSValidationPreferencePage_lint_unknownProperties=Unknown property. +CSSValidationPreferencePage_lint_validProperties=A list of properties that are not validated against the `unknownProperties` rule. +CSSValidationPreferencePage_lint_ieHack=IE hacks are only necessary when supporting IE7 and older. +CSSValidationPreferencePage_lint_unknownVendorSpecificProperties=Unknown vendor specific property. +CSSValidationPreferencePage_lint_propertyIgnoredDueToDisplay=Property is ignored due to the display.\nE.g. with `display: inline`, the `width`, `height`, `margin-top`, `margin-bottom`,\nand `float` properties have no effect. +CSSValidationPreferencePage_lint_important=Avoid using `!important`. It is an indication that the specificity of the entire CSS\nhas gotten out of control and needs to be refactored. +CSSValidationPreferencePage_lint_float=Avoid using `float`. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes. +CSSValidationPreferencePage_lint_idSelector=Selectors should not contain IDs because these rules are too tightly coupled with the HTML. +CSSValidationPreferencePage_lint_unknownAtRules=Unknown at-rule. + +# ****************************** LESS *************************************/ + +# Completion page +LESSCompletionPreferencePage_completion_triggerPropertyValueCompletion=By default, VS Code triggers property value completion after selecting a LESS property.\nUse this setting to disable this behavior. +LESSCompletionPreferencePage_completion_completePropertyWithSemicolon=Insert semicolon at end of line when completing LESS properties. + +# Format page +LESSFormatPreferencePage_format_newlineBetweenSelectors=Separate selectors with a new line. +LESSFormatPreferencePage_format_newlineBetweenRules=Separate rulesets by a blank line. +LESSFormatPreferencePage_format_spaceAroundSelectorSeparator=Ensure a space character around selector separators '>', '+', '~' (e.g. `a > b`). +LESSFormatPreferencePage_format_braceStyle=Put braces on: +LESSFormatPreferencePage_format_braceStyle_collapse=the same line as rules (`collapse`) +LESSFormatPreferencePage_format_braceStyle_expand=own line (`expand`) +LESSFormatPreferencePage_format_preserveNewLines=Whether existing line breaks before elements should be preserved. +LESSFormatPreferencePage_format_maxPreserveNewLines=Maximum number of line breaks to be preserved in one chunk, when `#css.format.preserveNewLines#` is enabled. + +# Hover page +LESSHoverPreferencePage_hover_documentation=Show tag and attribute documentation in LESS hovers. +LESSHoverPreferencePage_hover_references=Show references to MDN in LESS hovers. + +# Validation page +LESSValidationPreferencePage_validate=Enables or disables all validations. +LESSValidationPreferencePage_lint_compatibleVendorPrefixes=When using a vendor-specific prefix make sure to also include all other vendor-specific properties. +LESSValidationPreferencePage_lint_vendorPrefix=When using a vendor-specific prefix, also include the standard property. +LESSValidationPreferencePage_lint_duplicateProperties=Do not use duplicate style definitions. +LESSValidationPreferencePage_lint_emptyRules=Do not use empty rulesets. +LESSValidationPreferencePage_lint_importStatement=Import statements do not load in parallel. +LESSValidationPreferencePage_lint_boxModel=Do not use `width` or `height` when using `padding` or `border`. +LESSValidationPreferencePage_lint_universalSelector=The universal selector (`*`) is known to be slow. +LESSValidationPreferencePage_lint_zeroUnits=No unit for zero needed. +LESSValidationPreferencePage_lint_fontFaceProperties=`@font-face` rule must define `src` and `font-family` properties. +LESSValidationPreferencePage_lint_hexColorLength=Hex colors must consist of three or six hex numbers. +LESSValidationPreferencePage_lint_argumentsInColorFunction=Invalid number of parameters. +LESSValidationPreferencePage_lint_unknownProperties=Unknown property. +LESSValidationPreferencePage_lint_validProperties=A list of properties that are not validated against the `unknownProperties` rule. +LESSValidationPreferencePage_lint_ieHack=IE hacks are only necessary when supporting IE7 and older. +LESSValidationPreferencePage_lint_unknownVendorSpecificProperties=Unknown vendor specific property. +LESSValidationPreferencePage_lint_propertyIgnoredDueToDisplay=Property is ignored due to the display.\nE.g. with `display: inline`, the `width`, `height`, `margin-top`, `margin-bottom`,\nand `float` properties have no effect. +LESSValidationPreferencePage_lint_important=Avoid using `!important`. It is an indication that the specificity of the entire LESS\nhas gotten out of control and needs to be refactored. +LESSValidationPreferencePage_lint_float=Avoid using `float`. Floats lead to fragile LESS that is easy to break if one aspect of the layout changes. +LESSValidationPreferencePage_lint_idSelector=Selectors should not contain IDs because these rules are too tightly coupled with the HTML. +LESSValidationPreferencePage_lint_unknownAtRules=Unknown at-rule. + +# ****************************** SCSS *************************************/ + +# Completion page +SCSSCompletionPreferencePage_completion_triggerPropertyValueCompletion=By default, VS Code triggers property value completion after selecting a SCSS property.\nUse this setting to disable this behavior. +SCSSCompletionPreferencePage_completion_completePropertyWithSemicolon=Insert semicolon at end of line when completing SCSS properties. + +# Format page +SCSSFormatPreferencePage_format_newlineBetweenSelectors=Separate selectors with a new line. +SCSSFormatPreferencePage_format_newlineBetweenRules=Separate rulesets by a blank line. +SCSSFormatPreferencePage_format_spaceAroundSelectorSeparator=Ensure a space character around selector separators '>', '+', '~' (e.g. `a > b`). +SCSSFormatPreferencePage_format_braceStyle=Put braces on: +SCSSFormatPreferencePage_format_braceStyle_collapse=the same line as rules (`collapse`) +SCSSFormatPreferencePage_format_braceStyle_expand=own line (`expand`) +SCSSFormatPreferencePage_format_preserveNewLines=Whether existing line breaks before elements should be preserved. +SCSSFormatPreferencePage_format_maxPreserveNewLines=Maximum number of line breaks to be preserved in one chunk, when `#css.format.preserveNewLines#` is enabled. + +# Hover page +SCSSHoverPreferencePage_hover_documentation=Show tag and attribute documentation in SCSS hovers. +SCSSHoverPreferencePage_hover_references=Show references to MDN in SCSS hovers. + +# Validation page +SCSSValidationPreferencePage_validate=Enables or disables all validations. +SCSSValidationPreferencePage_lint_compatibleVendorPrefixes=When using a vendor-specific prefix make sure to also include all other vendor-specific properties. +SCSSValidationPreferencePage_lint_vendorPrefix=When using a vendor-specific prefix, also include the standard property. +SCSSValidationPreferencePage_lint_duplicateProperties=Do not use duplicate style definitions. +SCSSValidationPreferencePage_lint_emptyRules=Do not use empty rulesets. +SCSSValidationPreferencePage_lint_importStatement=Import statements do not load in parallel. +SCSSValidationPreferencePage_lint_boxModel=Do not use `width` or `height` when using `padding` or `border`. +SCSSValidationPreferencePage_lint_universalSelector=The universal selector (`*`) is known to be slow. +SCSSValidationPreferencePage_lint_zeroUnits=No unit for zero needed. +SCSSValidationPreferencePage_lint_fontFaceProperties=`@font-face` rule must define `src` and `font-family` properties. +SCSSValidationPreferencePage_lint_hexColorLength=Hex colors must consist of three or six hex numbers. +SCSSValidationPreferencePage_lint_argumentsInColorFunction=Invalid number of parameters. +SCSSValidationPreferencePage_lint_unknownProperties=Unknown property. +SCSSValidationPreferencePage_lint_validProperties=A list of properties that are not validated against the `unknownProperties` rule. +SCSSValidationPreferencePage_lint_ieHack=IE hacks are only necessary when supporting IE7 and older. +SCSSValidationPreferencePage_lint_unknownVendorSpecificProperties=Unknown vendor specific property. +SCSSValidationPreferencePage_lint_propertyIgnoredDueToDisplay=Property is ignored due to the display.\nE.g. with `display: inline`, the `width`, `height`, `margin-top`, `margin-bottom`,\nand `float` properties have no effect. +SCSSValidationPreferencePage_lint_important=Avoid using `!important`. It is an indication that the specificity of the entire SCSS\nhas gotten out of control and needs to be refactored. +SCSSValidationPreferencePage_lint_float=Avoid using `float`. Floats lead to fragile SCSS that is easy to break if one aspect of the layout changes. +SCSSValidationPreferencePage_lint_idSelector=Selectors should not contain IDs because these rules are too tightly coupled with the HTML. +SCSSValidationPreferencePage_lint_unknownAtRules=Unknown at-rule. diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSCompletionPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSCompletionPreferencePage.class" index 1f6d4685247a6a08789200c5845fd2173d3006e5..65a043a565e8c5569700520e2163fe7c6b566a53 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSCompletionPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSCompletionPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSFormatPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSFormatPreferencePage.class" index 19cc44851140b49726dee5bbb464ef256d5a2140..0b185b5258e1846fe8daf4504921a3f8a6c075ea 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSFormatPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSFormatPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSHoverPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSHoverPreferencePage.class" index a11c54d8cb95386bcd15dcae4649d93501c78138..2eb5163a344c8d7ecf8269522dc376bc3513db1e 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSHoverPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSHoverPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceInitializer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceInitializer.class" index df4f99dfbb734c6db2977ecfb94a447efd7a3dc4..a8157d8887845568abd5e9160cd0a3d768c0cc93 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceInitializer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceInitializer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferencePage.class" index dba2be3f5b5a9cfbf5d84e4145ddc2796386d47d..4d9fa6c896e0fcd395ac3d9bd235127c510931fe 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceServerConstants.class" index 3bc9131963ffdc80b7aa5f40c1bb813253e119c1..33345bf7bf9823444507056f164abc7c5471c0ee 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSValidationPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSValidationPreferencePage.class" index 95bf352cdb32c2eed4a87b1a6c4528953be72e5a..888467f32c53b0dae377d8779d601d2fd2990283 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSValidationPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/CSSValidationPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/ValidPropertiesFieldEditor.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/ValidPropertiesFieldEditor.class" index 6754e38e1dc21baaeb071b00dfe9fef21ab8d44f..612922180ca84e6f7fe895651bb671273f8cbce2 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/ValidPropertiesFieldEditor.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/ValidPropertiesFieldEditor.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSCompletionPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSCompletionPreferencePage.class" index ea6024bf43347a7a38d4886f52175c78f5797bc7..bc1a9fa293f2c7a8f3cc2aeaa510061dedbe19f5 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSCompletionPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSCompletionPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSFormatPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSFormatPreferencePage.class" index 3e3313cf07cbc541705b124a49cae1efbde69e59..be9871e63630e4c7682f6f3db8700ab0e52d8688 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSFormatPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSFormatPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSHoverPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSHoverPreferencePage.class" index f8e7306a1473529cbb31f7e5a23b75540e9a8863..6bfea449cef04634579b618f46920f0ccdcdf7ab 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSHoverPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSHoverPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferencePage.class" index 2fb0777d0494ae560821a5c570c7df6c777e09b6..a2ffe3466c9ebe84e99fc5cfb03978e1753ffbc7 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferenceServerConstants.class" index d6e3370ebe8e18a65f874c5ac86e61ce107d8518..3f1808c7cd2cd57cfab5fa03a8bed25a9d7f0ebf 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSValidationPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSValidationPreferencePage.class" index 86cf4dfc7bfc0861b04faabf89525d49e6530780..7612f82fb690ecbc29994463d55a792419dec05e 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSValidationPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/less/LESSValidationPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSCompletionPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSCompletionPreferencePage.class" index a2cbb45acf877d401538174b06512a5fc5cd39cd..0e020280028a4343d98c44c637f75b2b9349c594 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSCompletionPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSCompletionPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSFormatPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSFormatPreferencePage.class" index a2386f6f31262ba7b6623cc186ae361d6705523e..6c3bff6decd712684b9ce562a59f897b994fe837 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSFormatPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSFormatPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSHoverPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSHoverPreferencePage.class" index 3490fe64dd2e8fe5a4a917145a0ebc2f26414110..c5c7cbc02bc2b2470d18d8dd9358a8a91aca4770 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSHoverPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSHoverPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferencePage.class" index 1c5c1e5d9dc1c8e19f492f1dc1259a802331701a..50717e5e16ca191696b111d8e1a376ea38243ffe 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferenceServerConstants.class" index 8df1d61dd08d44244fee96a502b373f4fc8a4c7b..71d1f6693c9320bdffa765d02d029abd20896ba9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSValidationPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSValidationPreferencePage.class" index 0043a9d593c8ad0c82810029ccb73709f1c1ebf1..13e60b98cb0ab01dcbd6c951b21bc268a48a0907 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSValidationPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/css/ui/preferences/scss/SCSSValidationPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractDebugAdapterLaunchShortcut.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractDebugAdapterLaunchShortcut.class" index 14ca91a140a7928a35bccf61b1366299c940fdfa..b2881208c16663f45e92e25252cf737966e3b22d 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractDebugAdapterLaunchShortcut.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractDebugAdapterLaunchShortcut.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugAdapterLaunchShortcut.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugAdapterLaunchShortcut.class" index 7325556fda3d5b28e4d65db62a0faa24f656c1fd..48fa247ceba8e6832a77a891c7a0c52afc1c8e42 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugAdapterLaunchShortcut.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugAdapterLaunchShortcut.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugDelegate.class" index d2094834a036bd5164e2c1cba3fc7a3280a94ea4..32d99625df7503b09841f1899da741a7c15aa93f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractHTMLDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractRunHTMLDebugTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractRunHTMLDebugTab.class" index 803dc47576d36a2ce06ff66828664032d1aeb596..1292ceda9686d9609850b8c6b9bba69e46b71206 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractRunHTMLDebugTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/AbstractRunHTMLDebugTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory$1.class" index 294112149f30e243a42d46d4b479e23fa714d5f1..c5e8ed29fb549d419c22b4abd273e4b7dad1bee0 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory.class" index 9f85ecf83d0e10d59216f7c834ed21ddfd678672..be7e6b7d08c260e5a99fdcae7781f8ea2227b196 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/HTMLLaunchableAdapterFactory.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/IsLaunchableHTMLTester.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/IsLaunchableHTMLTester.class" index 99e6c7ca8a20d14941f0022c2cadb8591e87ceec..cd76b100e93fa11fb0de6bf90a938cefa8022643 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/IsLaunchableHTMLTester.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/IsLaunchableHTMLTester.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/LaunchConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/LaunchConstants.class" index 352c04ff9efa5809591deedc3b2baf3c5f0b4c43..bb83bb26e0c1374707ca104cde7845bc6f8e2ba4 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/LaunchConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/LaunchConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/MessageUtils.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/MessageUtils.class" index ff6cd2dccb5730b66e98f631d41190975f2a4489..371d4bd2eced10acd2c6a55f13d542ea978eea2b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/MessageUtils.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/MessageUtils.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/Messages.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/Messages.class" index 929605bef243dc1137a33541f3490bbfa7e205c9..10c6de90ed43d9e93f9fb2ecfea44b462aa30702 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/Messages.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/Messages.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/SelectionUtils.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/SelectionUtils.class" index 479cbadba871e374b08ad350b43028425734e6ea..403e0c70bd0bf847f3eb019e21ba3ece820a1af0 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/SelectionUtils.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/SelectionUtils.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugDelegate.class" index 67c27c8fb2f215c8a17540caf1e4fe2cbae1d1ea..5af5ce7403abef622720afffa7c65590fc9d7a62 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugTabGroup.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugTabGroup.class" index 6ba2c1802a038a2a1a459540455c30ce14cb2d69..03c9d9836eb212cf3e19bafd730d8c1145d691fc 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugTabGroup.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachDebugTabGroup.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachTab.class" index d91a023c0d34b89c33b2ebc78048219934da06a1..09ffb546b53c214820cffb5037a8c28bbfee6642 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeAttachTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab$BrowserLabelProvider.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab$BrowserLabelProvider.class" index 92183dd49547a59ffa35d18a3e0adf29f94d53ad..8fc683abb8a8b17deeb9e00b0996b2abca4bec6e 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab$BrowserLabelProvider.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab$BrowserLabelProvider.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab.class" index 3d0e9d83a03eff9654601dc535c261af5c1dc818..0bd39a331733497be767f546670d6318b6c1350d 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDAPDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDAPDebugDelegate.class" index 4cb836c525aef2f4cd13be75b594528b628c747d..26fab7f5d32d7e7d9a4484e9d0f76e904813d758 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDAPDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDAPDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugLaunchShortcut.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugLaunchShortcut.class" index 3056ac496d5fdf6fd79eb9430c89a23ea25f1776..3ccc7222da9228af1dab5225cc27e6c035ce74e7 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugLaunchShortcut.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugLaunchShortcut.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup$1.class" index c53441d795457c84970710f616c3601361efee7d..9c5a3a9432c62301f708710cc0097b535467b128 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup.class" index 1fda4ade9da8ed1c6901dfc581bb380c020f2527..0424fa6ff59f08cf03dab63e87d74ad137e758f0 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/chrome/ChromeRunDebugTabGroup.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugDelegate.class" index ba255f8fad189cdf45c5aa3fc649675dc633bc4a..f53c564c78103d00c10a36cef46afd86adf3a2b8 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugTabGroup.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugTabGroup.class" index bcb77ce4e22be6ad685c28357e088e59c17f983c..17c392ba25f28ace6596a089597041ceb90c43f9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugTabGroup.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachDebugTabGroup.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachTab.class" index e772c33fb2b2c45b5394c94a3866ba091bc35150..b8f8f89f62a8de68a1b5b8a44f8f9cdbb0ffdf8d 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxAttachTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDABDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDABDebugDelegate.class" index 1e8fca45e047d8893707350d91b16ba8d9b1d986..1d56482b09a3eaa57b66dbc2e2318b81bf98038c 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDABDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDABDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugLaunchShortcut.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugLaunchShortcut.class" index ad9e0589bc1bd7f668bff9f4262830039c1e91ea..f8981330cf850af4b22e2a86e215ed86a5418f9d 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugLaunchShortcut.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugLaunchShortcut.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugTabGroup.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugTabGroup.class" index 0c8f4d4cef7b5767405d1bfcfacf356f9cae82bd..07d8f65ec151a5bb389bd04eba2a9cd04baa7963 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugTabGroup.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/FirefoxRunDebugTabGroup.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/RunFirefoxDebugTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/RunFirefoxDebugTab.class" index 88cd1958962dfad999366a148e8295d816cf3577..ab8b44fb95a8162e073df8003a22aa2c9a70c876 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/RunFirefoxDebugTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/firefox/RunFirefoxDebugTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/messages.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/messages.properties" index 8c6277d1c8112151f38cc0c2e0b75f4946268a9f..6650d01c6c8d244e59f54c05538c1d1dcc36cd05 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/messages.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/messages.properties" @@ -1,3 +1,63 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:36f598ad8958c6b05c636f3ea135389e89e552f7787c3557c1a7a0e847f98403 -size 4014 +################################################################ +# Copyright (c) 2019, 2023 Red Hat Inc. and others. +# +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Mickael Istria (Red Hat Inc.) - initial implementation +################################################################ +AbstractRunHTMLDebugTab_browse=\ud83d\udcc2 Browse... +AbstractRunHTMLDebugTab_fileRadioToolTip=The local .html file to debug. +AbstractRunHTMLDebugTab_webRoot_folder=WebRoot Folder +AbstractRunHTMLDebugTab_browse_workspace=\ud83d\udcc2 Browse workspace... +AbstractRunHTMLDebugTab_select_webroot=Select the root folder of your web application +AbstractRunHTMLDebugTab_cannot_debug_without_webroot=Without specifying the webRoot folder, no breakpoints will be triggered. +AbstractRunHTMLDebugTab_cannot_access_webroot_folder=Cannot open webRoot folder. +AbstractRunHTMLDebugTab_webroot_folder_is_not_a_directory=WebRoot folder must be a directory. +AttachTab_address=Address: +AttachTab_port=Port: +AttachTab_title=\ud83d\udd17 Attach +FirefoxDebugTab_File=File +RunFirefoxDebugTab_ReloadOnChange=Reload on change +RunFirefoxDebugTab_URL_Note=The URL where the web application is being hosted on (eg. http://localhost:3000)\nUse for debuging client-side code of a web application. +RunProgramTab_argument=Arguments +RunProgramTab_error_nonReadableFile=Not allowed to read file. +RunProgramTab_error_notJSFile=File is not a JS file. +RunProgramTab_error_unknownFile=Given path doesn't reference a file. +RunProgramTab_error_malformedUR=Malformed URL: ''{0}''. +RunProgramTab_program=Program +RunProgramTab_title=\u25B6\uFE0F Program +RunProgramTab_workingDirectory=Working directory +firefoxAttachNote=\uD83D\uDCDD NOTE: Start Firefox with the --start-debugger-server flag,\n\ +then configure it in about:config so that "devtools.chrome.enabled" is set to true\n\ +and if you're debugging a non-local instance, have "devtools.debugger.remote-enabled" also set to true. +NodeAttach_rootMapDescription=\ud83d\udd17 Map roots (when debugging on a different filesystem) +NodeAttach_localRoot=\ud83d\udcbb Local root path: +NodeAttach_remoteRoot=\u2601\uFE0F Remote root path: +NodeAttach_invalidLocalRootDirectory=Invalid local root directory +ChromeAttachTab_runWith=Run with: +ChromeAttachTab_browserTab=Browser +ChromeAttachTab_browserPreferences=Check Web Browser preferences to add or remove browsers from those proposals. + +NodeDebug_TSConfirError_Title=TSConfig Error +NodeDebug_TSConfirError_NoTsConfig=Compiler Options are not properly configured in "tsconfig.json" file\n or the file doesn't exist +NodeDebug_TSConfirError_SourceMapIsNotEnabled="SourceMap" property is not set to "true" +NodeDebug_TSConfigError_OutDirIsNotSet="OutDir" is not specified or improperly configured +NodeDebug_TSConfigError_OutDirNotSupportedModule=Only "amd" and "system" modules are supported alongside "outFile" +NodeDebug_TSConfirError_OpenTSConfigInEditor=Edit "tsconfig.json" +NodeDebug_TSConfirError_CreateAndOpenTSConfigInEditor=Create "tsconfig.json" +NodeDebug_TSConfirError_StartDebuggingAsIs=Start Debugging as is +NodeDebug_TSConfirError_Cancel=Cancel + +RuntimeExecutable_NotDefinedError_Title=Couldn''t find {0} browser location +RuntimeExecutable_NotDefinedError_Message=No Browser executable defined for {0}. Please ensure that:\n{1}{2} +RuntimeExecutable_NotDefinedError_Message_1=\n- {0} browser is selected in launch configuration Browser tab. +RuntimeExecutable_NotDefinedError_Message_2=\n- Location of {0} browser is properly specified in Web Browser preference page or add it in case it's not defined yet. +RuntimeExecutable_NotDefinedError_OpenWebBrowserPreferencePage=Open Web Browser Preferences +RuntimeExecutable_NotDefinedError_OpenLaunchConfigurationBrowserTab=Edit Launch Configuration +RuntimeExecutable_Chrome=Chrome +RuntimeExecutable_Firefox=Firefox diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/AttachTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/AttachTab.class" index 77f91c5014e7b43ff6c6e2fdb67652f70da40b24..a0066d2026cab5a838fa4dde65644d14dda669cd 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/AttachTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/AttachTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate$1.class" index 21268d202b42250eaacf678934dc35d741c16514..013efe000acb2cd106d6481a3da94fff3d6219da 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate.class" index b52a13071948b7eed1a497297af23ba49299f867..04109a433b6bd88164ada7c810a24b2384c7895a 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTab.class" index de9a4e200fbabfde78c8f87ca89c2987c92181f7..e999a67606e8f0720e65de7814b8cb23ae6ea75d 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTabGroup.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTabGroup.class" index 81caadc0655d1fe4acf1bc5b95c4c87205b274c8..6cc2b42e66cb9c0ffb022b8a951d1d4043db281b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTabGroup.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeAttachDebugTabGroup.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDAPDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDAPDebugDelegate.class" index 130a115e7152e354c31045b988df6e628ab44a0e..d2af07f0741dd50e6f800eded0e38bd64f354929 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDAPDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDAPDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugLaunchShortcut.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugLaunchShortcut.class" index 5a6c620fdf345444d8bf2fc90a94435c43c968d0..e86d2fa8b9829b519d64b96c1586f72f9eaa7598 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugLaunchShortcut.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugLaunchShortcut.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugTabGroup.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugTabGroup.class" index 49d1ffeb7e73c8eed9e3cb2243c43ca748ed7523..e75d2f8de39ccb8af7183003353b6146fa14fec0 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugTabGroup.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/NodeRunDebugTabGroup.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/RunProgramTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/RunProgramTab.class" index 9461bfea0f34041f18b81ce869bf8720a6717c41..c8ab4c4aef9f17e78a3f8230a4af90f88a4581b2 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/RunProgramTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/RunProgramTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$1.class" index f6fda48c7f10f772803305cd61065a1fdd0211dd..64158fd85c6e5a8ea1a78ec3076cb4ad1027c368 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$2.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$2.class" index b78c6f3f4025af1704f57dd0a3dd58fc9ce71292..2d8184da3015c9bfec16b579d7f7fc0676d32e50 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$2.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$2.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$3.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$3.class" index 06f280d16cc28cc4044b1c34b1ed96ad59bdfe09..fb39aa4cd120788e298946027c4ab8995218caa7 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$3.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate$3.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate.class" index 3e5462c7577fbcc89cb30ff8c451c94bef98595a..201eb239e3c840287338460849e8163b675d5912 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/node/VSCodeJSDebugDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/IsPackageJSONTester.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/IsPackageJSONTester.class" index 204072062964d7a25d2b697f63a7016fb9d7dd9e..f90b24b18f380153f9c4a779b78a89214ea7f2cb 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/IsPackageJSONTester.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/IsPackageJSONTester.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/Messages.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/Messages.class" index 46c957f1e8729deae103d68030a9a64a1a40dfc6..d2e847271c56af8ea7757c4b744d74c45346545b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/Messages.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/Messages.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchDelegate.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchDelegate.class" index 6be0bc6df7c4bceba782b9c2c7a6c558ac04e269..f4fe47c9a9c7e067e1846b7414d24ab2591c4621 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchDelegate.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchDelegate.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchShortcut.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchShortcut.class" index e6a688dcdd873928982e20c95eb66d8f578254b9..669a915f155ba8e10203f44515ebf99b980e9475 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchShortcut.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchShortcut.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTab.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTab.class" index 150d8b996ae5abc1237f355398d6199a7aed125b..ca072a6a8e194910284f161eecf5f87fb01e18d9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTab.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTab.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTabGroup.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTabGroup.class" index acc544cfeee5064b1e1d746bf4addbdeeb5af5dc..c3178330aec9f95f11321c05b0731207136133dd 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTabGroup.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/NpmLaunchTabGroup.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory$1.class" index 6798a3644703299ce69e64a1fdcaa27b0eed71be..3f04a322a5bea14c68ffe3d56aa84b6af2050391 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory.class" index b2d633b46aec9171857c1ecddc2af04ab300b492..8a68dc5d4ab797a92e958e931b47bc41c6341586 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/PackageJSONAdapterFactory.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/messages.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/messages.properties" index 8582927ab67d7782a75d7f4c3b6e2b7dba9f73b4..5018eaa59772400820bcd4cb745cef9048f0f010 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/messages.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/debug/npm/messages.properties" @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d3b7a00b82ddc54b7db8fa7b3410ec33ea6d54cebdd1d243f5dbb983682623e3 -size 766 +################################################################ +# Copyright (c) 2020 Red Hat Inc. and others. +# +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Mickael Istria (Red Hat Inc.) - initial implementation +################################################################ +NPMLaunchTab_argumentLabel=NPM command: +NPMLaunchTab_notPackageJSONFile=Not a package.json file +NPMLaunchTab_programPathLabel=package.json file: +NPMLaunchTab_selectPackageJSON=Select a package.json to use +NpmLaunchDelegate_npmError=NPM error: +NpmLaunchDelegate_npmInstallFor=NPM install for: diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintClientImpl.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintClientImpl.class" index 84e045dd5a45608dfeeb62cc43a4f40287af4253..641968035a39a1e965e8e64dabab4baff68830aa 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintClientImpl.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintClientImpl.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServer.class" index 62d8ba7f71a1dad37701b15910418fe4dc63f005..e2a8725d66eed90e114f1600fc8aa720ea01904b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServerExtension.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServerExtension.class" index 9dbca0a369bf7ac1ed267ac9fe0c14123954ec06..ef00e10e0a7c27a47bc776eee50fe98e1ad5a1f8 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServerExtension.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/eslint/ESLintLanguageServerExtension.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageClient.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageClient.class" index b3412e1e0567b12826df079d9a1b2553076dd163..70b0523ab52d6a782b226ce55f2d99361a30530e 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageClient.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageClient.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServer.class" index a253c982a891c04c85e89c169773357bb6c2f550..67dbd41ef8b90f44e28437035ba3b290f9708f93 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServerAPI.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServerAPI.class" index 24ddffcbaae666026e7e3f46ef61ed8f0ae22e2b..f62668ab4f1f5c88e95980875e6609c90312ead4 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServerAPI.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/HTMLLanguageServerAPI.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams$AutoInsertKind.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams$AutoInsertKind.class" index b087a922ab14a396a890eee8289c3d266de7e032..30f43a02a7bae94a4d03a20d8930602802451e4b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams$AutoInsertKind.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams$AutoInsertKind.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams.class" index 2221be3ab9c4a8e1833014a4d135fac384c53398..1cde316100db01cb45bb6de09ffce7198c8e14f9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/AutoInsertParams.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler$Listener.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler$Listener.class" index 07e668d9d1a8f3e5b3b15a44d9b2ebcd2fa4c7ba..4725399e1d22937f39c0e8e5308afdf13bbd7012 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler$Listener.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler$Listener.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler.class" index 668213e96d7f65689258a552829fb77bf409dd0c..2b386d89305a83a2a8ce8183fa997e51ea6716bb 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/autoinsert/HTMLAutoInsertReconciler.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/Messages.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/Messages.class" index 49f7dc5134245093a10974de58dbd9ff0fc0a87e..e0047354aca740a279814c5c63b7caab740e7fa4 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/Messages.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/Messages.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/messages.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/messages.properties" index 8b2b31a6f596a4fdcd8e7aad1d99a70c848aa9c5..19c886b3a270c0b95bd34241c3497854345a1d1e 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/messages.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/messages.properties" @@ -1,3 +1,51 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d07602bc13d9d8e4293397faf78300d90e3377e32a54363ecbf9b8d64567f532 -size 3993 +#/******************************************************************************* +# * Copyright (c) 2022 Red Hat Inc. and others. +# * This program and the accompanying materials are made +# * available under the terms of the Eclipse Public License 2.0 +# * which is available at https://www.eclipse.org/legal/epl-2.0/ +# * +# * SPDX-License-Identifier: EPL-2.0 +# * +# * Contributors: +# * Angelo ZERR (Red Hat Inc.) - initial implementation +# *******************************************************************************/ + +# Preference main page +HTMLPreferencePage_autoClosingTags=Enable autoclosing of HTML tags +HTMLPreferencePage_autoCreateQuotes=Enable/disable auto creation of quotes for HTML attribute assignment + +# Completion page +HTMLCompletionPreferencePage_completion_attributeDefaultValue=Controls the default value for attributes when completion is accepted. +HTMLCompletionPreferencePage_completion_attributeDefaultValue_doublequotes=Attribute value is set to "" +HTMLCompletionPreferencePage_completion_attributeDefaultValue_singlequotes=Attribute value is set to '' +HTMLCompletionPreferencePage_completion_attributeDefaultValue_empty=Attribute value is not set +HTMLCompletionPreferencePage_suggest_html5=Controls whether the built-in HTML language support suggests HTML5 tags, properties and values. + +# Format page +HTMLFormatPreferencePage_format_wrapLineLength=Maximum amount of characters per line (0 = disable). +HTMLFormatPreferencePage_format_unformatted=List of tags, comma separated, that shouldn't be reformatted.\n `null` defaults to all tags listed at\n https://www.w3.org/TR/html5/dom.html#phrasing-content. +HTMLFormatPreferencePage_format_contentUnformatted=List of tags, comma separated, where the content shouldn't be reformatted.\n `null` defaults to the `pre` tag. +HTMLFormatPreferencePage_format_indentInnerHtml=Indent `` and `` sections. +HTMLFormatPreferencePage_format_preserveNewLines=Controls whether existing line breaks before elements should be preserved.\n Only works before elements, not inside tags or for text. +HTMLFormatPreferencePage_format_maxPreserveNewLines=Maximum number of line breaks to be preserved in one chunk. Use `null` for unlimited. +HTMLFormatPreferencePage_format_indentHandlebars=Format and indent `{{#foo}}` and `{{/foo}}`. +HTMLFormatPreferencePage_format_extraLiners=List of tags, comma separated, that should have an extra newline before them.\n `null` defaults to `"head, body, /html"`. +HTMLFormatPreferencePage_format_wrapAttributes=Wrap attributes. +HTMLFormatPreferencePage_format_wrapAttributes_auto=Wrap attributes only when line length is exceeded. +HTMLFormatPreferencePage_format_wrapAttributes_force=Wrap each attribute except first. +HTMLFormatPreferencePage_format_wrapAttributes_forcealign=Wrap each attribute except first and keep aligned. +HTMLFormatPreferencePage_format_wrapAttributes_forcemultiline=Wrap each attribute. +HTMLFormatPreferencePage_format_wrapAttributes_alignedmultiple=Wrap when line length is exceeded, align attributes vertically. +HTMLFormatPreferencePage_format_wrapAttributes_preserve=Preserve wrapping of attributes. +HTMLFormatPreferencePage_format_wrapAttributes_preservealigned=Preserve wrapping of attributes but align. +HTMLFormatPreferencePage_format_wrapAttributesIndentSize=Indent wrapped attributes to after N characters. Use `null` to use the default indent size. Ignored if `#html.format.wrapAttributes#` is set to 'aligned'. +HTMLFormatPreferencePage_format_templating=Honor django, erb, handlebars and php templating language tags. +HTMLFormatPreferencePage_format_unformattedContentDelimiter=Keep text content together between this string. + +# Hover page +HTMLHoverPreferencePage_hover_documentation=Show tag and attribute documentation in hover. +HTMLHoverPreferencePage_hover_references=Show references to MDN in hover. + +# Validation page +HTMLValidationPreferencePage_validate_scripts=Validates embedded scripts +HTMLValidationPreferencePage_validate_styles=Validates embedded styles \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLCompletionPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLCompletionPreferencePage.class" index 0e32ae06a3eb320fe1453411559bece947ba0dad..10507bfb079b65f0e11a1c0bf9a6c66900dd17b1 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLCompletionPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLCompletionPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLFormatPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLFormatPreferencePage.class" index 9f87a8f8a5ea7504e7991f472a0d92fd0bb81044..c4f8c4fdcbf9bbfb0745a650706bb472ad463a64 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLFormatPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLFormatPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLHoverPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLHoverPreferencePage.class" index a731890c0f945be934967ad2bae9923b9b35363c..d73ad8e6e0f9f4588532b512b3dc64a3c0d06b85 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLHoverPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLHoverPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceClientConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceClientConstants.class" index 157ce46f964bbd555293f4169e689f92c0dfb897..82bb737e4bf721897b60e966572fcf16f1045b95 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceClientConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceClientConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceInitializer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceInitializer.class" index 7a8f12852503e996aea4ec1a7a58ea9143ba77d9..fce94456432f046ce5da273bc4fd4376b848a35f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceInitializer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceInitializer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferencePage.class" index 56261a9953c9209e4da842caf661efa6e9be6fe2..fb94ab4993f556ced55dc50f3aa1a1c13fa32ef2 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceServerConstants.class" index 9fbd5df09cfc29be94828766a49058392923f9a0..cff711a6e9c27e4cd05b523852c4416bedf9c64f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLValidationPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLValidationPreferencePage.class" index 2120088ff767f3762e05c5613d3a471ce045fcae..b7c0c66c0ffb9ef37c9f200f68bbee0989d7a34d 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLValidationPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/html/ui/preferences/HTMLValidationPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$1.class" index bf65ef76dda1cf337486b6d87809e53d498fe995..068e296484423fbc137ad93d412bd548e7ebc71e 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$2.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$2.class" index c5540c5d453f2c87230304c75a793a4e69037144..82bd15e3716ca34bf47d46ca731b02bfa2d44d39 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$2.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer$2.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer.class" index 02cd29ef11265552517afe2b8e9246ddd5fd3585..81710de9525b0f4601025b1b924b442ecdc1730c 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServerInterface.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServerInterface.class" index 76b340cabfcaab189f146bb29450c446c18380aa..0e5734b8d530656fc490a4624dc46a179306ec90 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServerInterface.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/json/JSonLanguageServerInterface.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageClientImpl.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageClientImpl.class" index 07bed71504827e569293082aee84e331880970a5..c90858227ad237e69d895f6c78350bfef68a5b80 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageClientImpl.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageClientImpl.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageServer.class" index d21a4451a34825e4a5134cd82de7f174ee0fc0a4..54fc678c63028323205d4a3c5dc06322d19b3534 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/TypeScriptPlugin.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/TypeScriptPlugin.class" index 42155376b0addcd2aec66593fe6fb0919c317f47..12424ce904124e83cecc7bbe12a826c7085fec82 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/TypeScriptPlugin.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/TypeScriptPlugin.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/Messages.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/Messages.class" index 21e2460e1d8e759ff254e602b6294a69ee076cd3..51636a38e0be6fdc3dd5e79681d86235e23018b5 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/Messages.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/Messages.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/messages.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/messages.properties" index b1172a720dae08c642b074f41054b905a4f7d3f0..80468413d3b542167d3ae5b33b0e6f3faaa40d91 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/messages.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/messages.properties" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc6cd7f6db80dab9b5b8ddd0f345d64ac1dd42f1ff3b9a493449c124f99dfcf4 -size 2349 +#/******************************************************************************* +# * Copyright (c) 2022-2023 Red Hat Inc. and others. +# * This program and the accompanying materials are made +# * available under the terms of the Eclipse Public License 2.0 +# * which is available at https://www.eclipse.org/legal/epl-2.0/ +# * +# * SPDX-License-Identifier: EPL-2.0 +# * +# * Contributors: +# * Angelo ZERR (Red Hat Inc.) - initial implementation +# * Pierre-Yves Bigourdan - Allow using TypeScript version specified by project +# * Pierre-Yves Bigourdan - Allow configuring directory of ESLint package +# *******************************************************************************/ + +JSTSPreferencePage_typeScriptVersion=Typescript version used for JavaScript and TypeScript language features: +JSTSPreferencePage_typeScriptVersion_eclipse=Eclipse version +JSTSPreferencePage_typeScriptVersion_project=Project version + +JSTSPreferencePage_eslintNodePath=Absolute or project-relative path containing the eslint folder (node_modules used if blank): + +# TypeScript Inlay Hints preference page +TypeScriptInlayHintPreferencePage_showInlayHintsFor_label=Show inlay hints for: +TypeScriptInlayHintPreferencePage_includeInlayEnumMemberValueHints=member values in enum declarations. +TypeScriptInlayHintPreferencePage_includeInlayFunctionLikeReturnTypeHints=implicit return types on function signatures. +TypeScriptInlayHintPreferencePage_includeInlayFunctionParameterTypeHints=function parameter type. +TypeScriptInlayHintPreferencePage_includeInlayPropertyDeclarationTypeHints=property declaration type. +TypeScriptInlayHintPreferencePage_includeInlayParameterNameHints=parameter names: +TypeScriptInlayHintPreferencePage_includeInlayParameterNameHints_none=Disable parameter name hints. +TypeScriptInlayHintPreferencePage_includeInlayParameterNameHints_literals=Only for literal arguments. +TypeScriptInlayHintPreferencePage_includeInlayParameterNameHints_all=For literal and non-literal arguments. +TypeScriptInlayHintPreferencePage_includeInlayParameterNameHintsWhenArgumentMatchesName=also on arguments whose text is identical to the parameter name. +TypeScriptInlayHintPreferencePage_includeInlayVariableTypeHints=variable type. +TypeScriptInlayHintPreferencePage_includeInlayVariableTypeHintsWhenTypeMatchesName=also variables whose name is identical to the type name. \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceInitializer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceInitializer.class" index d00d12293e24f4197b43f3fabc031fa66f8b7766..fb0afc406d65a926fd13b1e8b49e59985fe95c4c 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceInitializer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceInitializer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferencePage.class" index 390da5203bc7ceea3dbce7c88feac056cfb47ad1..6375fa7068edc7ae5b05058adca073b40550dd4b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceServerConstants.class" index 27993ab39b17024d49fbbadf602c3ecea62e32e2..25bfccab9431441f43f47b351fe9cf33921cbb47 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/JSTSPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptInlayHintPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptInlayHintPreferencePage.class" index 4fc9ada391edfeac44c7a5be996ca7ad0f990cc3..5b35dbf4d1a73d834f2db2f6ed2369fae2908745 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptInlayHintPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptInlayHintPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceInitializer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceInitializer.class" index 34d1366e51e5fc3d9fcb74ed07cd9fbe2d8b6459..940885f801833e84b5bb47b3bfaef3ad5ec2c3c6 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceInitializer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceInitializer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferencePage.class" index a3758c178ff2810e30fab14f0014e2cfbb75bb9c..1d1ea64ca3cc66d3aaa336f29f9dc17ecce0d25e 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceServerConstants.class" index fb3ae92150e252752a060946aac226d7a9b85d9b..b0f96093a23ce242c5b29621f6c2bc2be0b91607 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/javascript/JavaScriptPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptInlayHintPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptInlayHintPreferencePage.class" index 0a1daa803fbb1fb11abf4a4bff4efcad9d66c90c..e51b9c61011457eb0d15fd986d8ca72267e0b3cf 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptInlayHintPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptInlayHintPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceInitializer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceInitializer.class" index 5773a8846410342b48d54b94c965016086bec510..c41ba1b202e3380fabc24ab9ac615ea82e8b1c58 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceInitializer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceInitializer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferencePage.class" index dc80949331c3859288760d22bd875c7e683dd324..dff0c0d1a047c49bce3be314fd6f30f66de23e59 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceServerConstants.class" index b5ad7f20fef795973bebebfd8ff432718cdc2264..9a50afc56a5d9c6eb566769ae73c5048c05ed455 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/jsts/ui/preferences/typescript/TypeScriptPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/IndentedBooleanFieldEditor.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/IndentedBooleanFieldEditor.class" index 622a46afb8257162082b7c2f5ccdb1e5c7398414..adad90512b80e81dd3f4f79cb15aa6c7b43bb8c2 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/IndentedBooleanFieldEditor.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/IndentedBooleanFieldEditor.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PreferenceStoreKey.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PreferenceStoreKey.class" index f0c1ba45884bc9a66053dd4349be65f882748c7d..cca07a34ac7ccbf276fd6f803a1855e1dab1ab6f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PreferenceStoreKey.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PreferenceStoreKey.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PropertyChangeListenerWrapper.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PropertyChangeListenerWrapper.class" index c4c4b29a1b6048954d8633e6c2f8e71ad7a3e87f..d8df9948b8b963ec02ca45e921ad79f0138f1e34 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PropertyChangeListenerWrapper.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference$PropertyChangeListenerWrapper.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference.class" index 63c898b62634bf17990abf7cc269f4bfbedf85f1..b1c95c07a5dd63ff494900e39c876df67b0187fe 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/Settings.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/Settings.class" index 1373e7f9a8cc84461cbdeb407f538e1f51633a3f..f135a0e64c57393cee08c324315735fcb36990fe 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/Settings.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/ui/preferences/Settings.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueClientImpl.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueClientImpl.class" index 0cb3d5e20b2d04600c3c3e5eeb2a476d68651485..942a15c6b8872cd65b200c816b178a9a736834ac 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueClientImpl.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueClientImpl.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServer.class" index b26ce4e6571a136e0413110b0685cca64d9d6674..4e67fc87f88237b4db2f798c0c6c924bc6cb6a3b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerAPI.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerAPI.class" index 91a0c93602a28376d22989d28a77985002defb83..c624ffb67d6b526615e3072596d71293db47b5f6 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerAPI.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerAPI.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerExtention.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerExtention.class" index 7265843a6c64cc06cd67efb3c5613ba05ae2e224..8a5e8957c290d0336b7300bcc96f789cb6794c02 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerExtention.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/VueLanguageServerExtention.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertLastChange.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertLastChange.class" index 93652cac03f059512a10eff3c4d375d14e4618be..e1be58831f63ce964754729896ee1ff93699eca5 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertLastChange.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertLastChange.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertOptions.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertOptions.class" index 78f20447553132e1b99d3b647b2eb16e2ca23c09..a470e01425cfc355318d2f818326f3e534dbe233 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertOptions.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertOptions.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertParams.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertParams.class" index d93e9136ea40abc918dcee94d173dd2f1889f608..8d82378df003a53b58b04c405695c13524a047bc 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertParams.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertParams.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertResponse.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertResponse.class" index c4d2698d5e8ed0861ba61c0940ff4bc93fa73738..6c6177ce9a6c0ff1c8e554a63cf396481edd0a71 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertResponse.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/AutoInsertResponse.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler$Listener.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler$Listener.class" index c4fb119a5f1bfe9e9e76053fba6c425c29f3d2a3..612db51a43f78132fbc42ddc7058de707a280c55 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler$Listener.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler$Listener.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler.class" index f07512a05b9128e246a2eed560c7f20f5537c9da..7d3549352b331ed46b322b005eee03c95aa8f690 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/vue/autoinsert/VueAutoInsertReconciler.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/AddShemaGlobPatternDialog.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/AddShemaGlobPatternDialog.class" index b7d71c2e0ee87e60fedfcf44fa18834e73080b41..4413920808de97620ed8dcd99c9f47d40da9f8c3 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/AddShemaGlobPatternDialog.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/AddShemaGlobPatternDialog.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YAMLLanguageServer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YAMLLanguageServer.class" index bd57130c5aede51211910dbc7ae05defbf8ec784..5b34ee53ad6e5fab01c8478217d787e771c8287c 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YAMLLanguageServer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YAMLLanguageServer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YamlLanguageClientImpl.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YamlLanguageClientImpl.class" index ec6439dd5fd0dbaa5c64ef8b2f8b7777bb8a0f89..0a461e873340bdaaaffe9c288221f0292faa4234 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YamlLanguageClientImpl.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/YamlLanguageClientImpl.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/Messages.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/Messages.class" index c998d6aa1c1d0d401eba9e985a302ac5b4f0ea96..13b1cd2317f243e624d0695b8747ba619119d6c7 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/Messages.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/Messages.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/messages.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/messages.properties" index aa5af1ba50eb02e76e712aa6a93826e25edac71e..96ef763d4c0777b04cf81bc9af3fb2c5a0e09b44 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/messages.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/messages.properties" @@ -1,3 +1,45 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad8fdb5ca316c937296cbb6d4c37ec3480267141e3cdcbc262363d18cebd4e63 -size 2932 +#/******************************************************************************* +# * Copyright (c) 2022 Red Hat Inc. and others. +# * This program and the accompanying materials are made +# * available under the terms of the Eclipse Public License 2.0 +# * which is available at https://www.eclipse.org/legal/epl-2.0/ +# * +# * SPDX-License-Identifier: EPL-2.0 +# * +# * Contributors: +# * Angelo ZERR (Red Hat Inc.) - initial implementation +# *******************************************************************************/ + +# Preference main page +YAMLPreferencePage_SchemaAssociationsLink=See 'Schema association' for Schema associations preferences +YAMLPreferencePage_schemaStore_enable=Automatically pull available YAML schemas from JSON Schema Store +YAMLPreferencePage_schemaStore_url=URL of schema store catalog to use +YAMLPreferencePage_maxItemsComputed=The maximum number of outline symbols and folding\nregions computed (limited for performance reasons). + +# Completion page +YAMLCompletionPreferencePage_completion=Enable/disable completion feature +YAMLCompletionPreferencePage_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 +YAMLCompletionPreferencePage_disableDefaultProperties=Disable adding not required properties with default values into completion text. + +# Format page +YAMLFormatPreferencePage_format_enable=Enable/disable default YAML formatter +YAMLFormatPreferencePage_format_singleQuote=Use single quotes instead of double quotes +YAMLFormatPreferencePage_format_bracketSpacing=Print spaces between brackets in objects +YAMLFormatPreferencePage_format_proseWrap=Wrap prose +YAMLFormatPreferencePage_format_proseWrap_preserve=Always: wrap prose if it exceeds the print width +YAMLFormatPreferencePage_format_proseWrap_never=Never: never wrap the prose +YAMLFormatPreferencePage_format_proseWrap_always=Preserve: wrap prose as-is +YAMLFormatPreferencePage_format_printWidth=Specify the line length that the printer will wrap on + +# Hover page +YAMLHoverPreferencePage_hover=Enable/disable hover feature + +# Validation page +YAMLValidationPreferencePage_validate=Enable/disable validation feature +YAMLValidationPreferencePage_yamlVersion=Default YAML spec version +YAMLValidationPreferencePage_customTags=Custom tags for the parser to use +CustomTagsFieldEditor_inputDialog_title=Custom tags +CustomTagsFieldEditor_inputDialog_description=Fill a custom tag for the parser to use +YAMLValidationPreferencePage_disableAdditionalProperties=Globally set additional properties to false for all objects. So if its true, no extra properties are allowed inside yaml. +YAMLValidationPreferencePage_style_flowMapping=Forbid flow style mappings +YAMLValidationPreferencePage_style_flowSequence=Forbid flow style sequences \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/CustomTagsFieldEditor.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/CustomTagsFieldEditor.class" index da1525e213024416436e531de499e1e0471d9a51..6f625a5407598b1e377c0b37e9c07a4ccf32b2b6 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/CustomTagsFieldEditor.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/CustomTagsFieldEditor.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLCompletionPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLCompletionPreferencePage.class" index 6afc0864c6665c2b7de88d441327278747e2730f..e2a88623faffbc0bca9dbb178af1b367cda9d313 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLCompletionPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLCompletionPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLFormatPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLFormatPreferencePage.class" index bdb5ebe0551f33617fe5fa44fe0ccb9f424a9d55..962a415aa0f2c36144d5d83cb0d266a998a53ced 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLFormatPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLFormatPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLHoverPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLHoverPreferencePage.class" index 3eb4d999ac6c14f829e3cbbe10d46cc7e8b60429..4783c63ad02e873d9e56534875e51403c835ea7b 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLHoverPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLHoverPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceInitializer.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceInitializer.class" index acbd1c2f52573aa7db85206cf25a346de99478ee..0c895d9a4a440bc47f90498dec55028ad8a49793 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceInitializer.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceInitializer.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage$1.class" index 248007036657705762cd3deeae60b998742e49ca..025978f071eb91a11c1c1f01a15a29704344fda9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage.class" index cff8840fcaa30370824cfce826aca201dcece08a..d2c8596f0fba0beed2a6061e7e018f7b6ac4570e 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants$1.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants$1.class" index e1430cda5b21d74fc5449c72377f850ce87b2d22..5b0f14301f6f19430de4832e1a609d78860ff6d1 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants$1.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants$1.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants.class" index a5c314b2d9adfd08e40c4ae60d7ba08ce976443c..92ce7914cb499bc7f38bcc3a2a57547cc31a4b6c 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLPreferenceServerConstants.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLValidationPreferencePage.class" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLValidationPreferencePage.class" index 6ff29d4eb8d029f414eba654f2b6c6053d845d96..bdf45d30682f3e0c5d1a4efd6974697d4ac21dcc 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLValidationPreferencePage.class" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/org/eclipse/wildwebdeveloper/yaml/ui/preferences/YAMLValidationPreferencePage.class" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/package-lock.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/package-lock.json" index 6fc365a61ad97b724753feb03c5cf904ae7915e0..936a47926c9e4d2caa71e2eef41bc0c5dba213a3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/package-lock.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/package-lock.json" @@ -1,3 +1,2325 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b3a71420610d9ea1f9b0bbfbefc10f6bd3b1d630f21dd89b78da79c3884b8fb -size 98951 +{ + "name": "org.eclipse.wildwebdeveloper", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "@angular/language-server": "17.3.2", + "@vue/language-server": "2.0.19", + "@vue/typescript-plugin": "2.0.19", + "eslint-server": "file:target/eslint-server-2.4.1.tgz", + "firefox-debugadapter": "2.9.9", + "fsevents": "2.3.3", + "typescript": "5.4.5", + "typescript-language-server": "4.3.3", + "typescript-lit-html-plugin": "0.9.0", + "typescript-plugin-css-modules": "5.1.0", + "vscode-css-languageserver": "file:target/vscode-css-languageserver-1.0.0.tgz", + "vscode-css-languageservice": "6.2.14", + "vscode-html-languageserver": "file:target/vscode-html-languageserver-1.0.0.tgz", + "vscode-html-languageservice": "5.2.0", + "vscode-json-languageserver": "file:target/vscode-json-languageserver-1.3.4.tgz", + "vscode-json-languageservice": "5.3.11", + "vscode-languageserver-types": "3.17.5", + "yaml-language-server": "1.14.0" + } + }, + "node_modules/@adobe/css-tools": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.3.tgz", + "integrity": "sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ==" + }, + "node_modules/@angular/language-server": { + "version": "17.3.2", + "resolved": "https://registry.npmjs.org/@angular/language-server/-/language-server-17.3.2.tgz", + "integrity": "sha512-5KLiiGZ2+8HX+RYQsGXcHPSrJHulIYtBYBiOhBzapUlCH50fOy3Ekx00dR34b7iwQ5z6ioolw6SpzLzW7LuQqg==", + "dependencies": { + "@angular/language-service": "17.3.6", + "vscode-html-languageservice": "^4.2.5", + "vscode-jsonrpc": "6.0.0", + "vscode-languageserver": "7.0.0", + "vscode-languageserver-textdocument": "^1.0.7", + "vscode-uri": "3.0.7" + }, + "bin": { + "ngserver": "bin/ngserver" + }, + "engines": { + "node": "^18.13.0 || >=20.0.0" + } + }, + "node_modules/@angular/language-server/node_modules/vscode-html-languageservice": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/vscode-html-languageservice/-/vscode-html-languageservice-4.2.5.tgz", + "integrity": "sha512-dbr10KHabB9EaK8lI0XZW7SqOsTfrNyT3Nuj0GoPi4LjGKUmMiLtsqzfedIzRTzqY+w0FiLdh0/kQrnQ0tLxrw==", + "dependencies": { + "vscode-languageserver-textdocument": "^1.0.4", + "vscode-languageserver-types": "^3.16.0", + "vscode-nls": "^5.0.0", + "vscode-uri": "^3.0.3" + } + }, + "node_modules/@angular/language-service": { + "version": "17.3.6", + "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-17.3.6.tgz", + "integrity": "sha512-mWWLGcW4SikbaTvo5+LiYS859nlQddutukZYhGymdvqsXUseitXVydJygqoLNIIbRGW6R1Q0WBdjUaJvyQQb9Q==", + "engines": { + "node": "^18.13.0 || >=20.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.6.tgz", + "integrity": "sha512-eNZXdfU35nJC2h24RznROuOpO94h6x8sg9ju0tT9biNtLZ2vuP8SduLqqV+/8+cebSLV9SJEAN5Z3zQbJG/M+Q==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@emmetio/abbreviation": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@emmetio/abbreviation/-/abbreviation-2.3.3.tgz", + "integrity": "sha512-mgv58UrU3rh4YgbE/TzgLQwJ3pFsHHhCLqY20aJq+9comytTXUDNGG/SMtSeMJdkpxgXSXunBGLD8Boka3JyVA==", + "dependencies": { + "@emmetio/scanner": "^1.0.4" + } + }, + "node_modules/@emmetio/css-abbreviation": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@emmetio/css-abbreviation/-/css-abbreviation-2.1.8.tgz", + "integrity": "sha512-s9yjhJ6saOO/uk1V74eifykk2CBYi01STTK3WlXWGOepyKa23ymJ053+DNQjpFcy1ingpaO7AxCcwLvHFY9tuw==", + "dependencies": { + "@emmetio/scanner": "^1.0.4" + } + }, + "node_modules/@emmetio/css-parser": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@emmetio/css-parser/-/css-parser-0.4.0.tgz", + "integrity": "sha512-z7wkxRSZgrQHXVzObGkXG+Vmj3uRlpM11oCZ9pbaz0nFejvCDmAiNDpY75+wgXOcffKpj4rzGtwGaZxfJKsJxw==", + "dependencies": { + "@emmetio/stream-reader": "^2.2.0", + "@emmetio/stream-reader-utils": "^0.1.0" + } + }, + "node_modules/@emmetio/extract-abbreviation": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@emmetio/extract-abbreviation/-/extract-abbreviation-0.1.6.tgz", + "integrity": "sha512-Ce3xE2JvTSEbASFbRbA1gAIcMcZWdS2yUYRaQbeM0nbOzaZrUYfa3ePtcriYRZOZmr+CkKA+zbjhvTpIOAYVcw==" + }, + "node_modules/@emmetio/html-matcher": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@emmetio/html-matcher/-/html-matcher-1.3.0.tgz", + "integrity": "sha512-NTbsvppE5eVyBMuyGfVu2CRrLvo7J4YHb6t9sBFLyY03WYhXET37qA4zOYUjBWFCRHO7pS1B9khERtY0f5JXPQ==", + "dependencies": { + "@emmetio/scanner": "^1.0.0" + } + }, + "node_modules/@emmetio/scanner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@emmetio/scanner/-/scanner-1.0.4.tgz", + "integrity": "sha512-IqRuJtQff7YHHBk4G8YZ45uB9BaAGcwQeVzgj/zj8/UdOhtQpEIupUhSk8dys6spFIWVZVeK20CzGEnqR5SbqA==" + }, + "node_modules/@emmetio/stream-reader": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@emmetio/stream-reader/-/stream-reader-2.2.0.tgz", + "integrity": "sha512-fXVXEyFA5Yv3M3n8sUGT7+fvecGrZP4k6FnWWMSZVQf69kAq0LLpaBQLGcPR30m3zMmKYhECP4k/ZkzvhEW5kw==" + }, + "node_modules/@emmetio/stream-reader-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@emmetio/stream-reader-utils/-/stream-reader-utils-0.1.0.tgz", + "integrity": "sha512-ZsZ2I9Vzso3Ho/pjZFsmmZ++FWeEd/txqybHTm4OgaZzdS8V9V/YYWQwg5TC38Z7uLWUV1vavpLLbjJtKubR1A==" + }, + "node_modules/@johnsoncodehk/pug-beautify": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@johnsoncodehk/pug-beautify/-/pug-beautify-0.2.2.tgz", + "integrity": "sha512-qqNS/YD0Nck5wtQLCPHAfGVgWbbGafxSPjNh0ekYPFSNNqnDH2kamnduzYly8IiADmeVx/MfAE1njMEjVeHTMA==" + }, + "node_modules/@types/postcss-modules-local-by-default": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.2.tgz", + "integrity": "sha512-CtYCcD+L+trB3reJPny+bKWKMzPfxEyQpKIwit7kErnOexf5/faaGpkFy4I5AwbV4hp1sk7/aTg0tt0B67VkLQ==", + "dependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/@types/postcss-modules-scope": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/postcss-modules-scope/-/postcss-modules-scope-3.0.4.tgz", + "integrity": "sha512-//ygSisVq9kVI0sqx3UPLzWIMCmtSVrzdljtuaAEJtGoGnpjBikZ2sXO5MpH9SnWX9HRfXxHifDAXcQjupWnIQ==", + "dependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/@volar/language-core": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.2.5.tgz", + "integrity": "sha512-2htyAuxRrAgETmFeUhT4XLELk3LiEcqoW/B8YUXMF6BrGWLMwIR09MFaZYvrA2UhbdAeSyeQ726HaWSWkexUcQ==", + "dependencies": { + "@volar/source-map": "2.2.5" + } + }, + "node_modules/@volar/language-server": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@volar/language-server/-/language-server-2.2.5.tgz", + "integrity": "sha512-PV/jkUkI+m72HTXwnY7hsGqLY3VNi96ZRoWFRzVC9QG/853bixxjveXPJIiydMJ9I739lO3kcj3hnGrF5Sm+HA==", + "dependencies": { + "@volar/language-core": "2.2.5", + "@volar/language-service": "2.2.5", + "@volar/snapshot-document": "2.2.5", + "@volar/typescript": "2.2.5", + "@vscode/l10n": "^0.0.16", + "path-browserify": "^1.0.1", + "request-light": "^0.7.0", + "vscode-languageserver": "^9.0.1", + "vscode-languageserver-protocol": "^3.17.5", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@volar/language-server/node_modules/vscode-languageserver": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", + "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", + "dependencies": { + "vscode-languageserver-protocol": "3.17.5" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/@volar/language-server/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/@volar/language-service": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@volar/language-service/-/language-service-2.2.5.tgz", + "integrity": "sha512-a97e/0uCe+uSu23F4zvgvldqJtZe6jugQeEHWjTfhgOEO8+Be0t5CZNNVItQqmPyAsD8eElg0S/cP6uxvCmCSQ==", + "dependencies": { + "@volar/language-core": "2.2.5", + "vscode-languageserver-protocol": "^3.17.5", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@volar/language-service/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/@volar/snapshot-document": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@volar/snapshot-document/-/snapshot-document-2.2.5.tgz", + "integrity": "sha512-MTOvWVKxM7ugKO3Amffkv2pND03fe2JtfygYaputqjVFML7YxtTXj8SPnI2pODLeSwOKzDYL6Q8r5j6Y5AgUzQ==", + "dependencies": { + "vscode-languageserver-protocol": "^3.17.5", + "vscode-languageserver-textdocument": "^1.0.11" + } + }, + "node_modules/@volar/source-map": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.2.5.tgz", + "integrity": "sha512-wrOEIiZNf4E+PWB0AxyM4tfhkfldPsb3bxg8N6FHrxJH2ohar7aGu48e98bp3pR9HUA7P/pR9VrLmkTrgCCnWQ==", + "dependencies": { + "muggle-string": "^0.4.0" + } + }, + "node_modules/@volar/typescript": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.2.5.tgz", + "integrity": "sha512-eSV/n75+ppfEVugMC/salZsI44nXDPAyL6+iTYCNLtiLHGJsnMv9GwiDMujrvAUj/aLQyqRJgYtXRoxop2clCw==", + "dependencies": { + "@volar/language-core": "2.2.5", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@vscode/emmet-helper": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/@vscode/emmet-helper/-/emmet-helper-2.9.3.tgz", + "integrity": "sha512-rB39LHWWPQYYlYfpv9qCoZOVioPCftKXXqrsyqN1mTWZM6dTnONT63Db+03vgrBbHzJN45IrgS/AGxw9iiqfEw==", + "dependencies": { + "emmet": "^2.4.3", + "jsonc-parser": "^2.3.0", + "vscode-languageserver-textdocument": "^1.0.1", + "vscode-languageserver-types": "^3.15.1", + "vscode-uri": "^2.1.2" + } + }, + "node_modules/@vscode/emmet-helper/node_modules/vscode-uri": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-2.1.2.tgz", + "integrity": "sha512-8TEXQxlldWAuIODdukIb+TR5s+9Ds40eSJrw+1iDDA9IFORPjMELarNQE3myz5XIkWWpdprmJjm1/SxMlWOC8A==" + }, + "node_modules/@vscode/l10n": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.16.tgz", + "integrity": "sha512-JT5CvrIYYCrmB+dCana8sUqJEcGB1ZDXNLMQ2+42bW995WmNoenijWMUdZfwmuQUTQcEVVIa2OecZzTYWUW9Cg==" + }, + "node_modules/@vue/compiler-core": { + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.27.tgz", + "integrity": "sha512-E+RyqY24KnyDXsCuQrI+mlcdW3ALND6U7Gqa/+bVwbcpcR3BRRIckFoz7Qyd4TTlnugtwuI7YgjbvsLmxb+yvg==", + "dependencies": { + "@babel/parser": "^7.24.4", + "@vue/shared": "3.4.27", + "entities": "^4.5.0", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.0" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.27.tgz", + "integrity": "sha512-kUTvochG/oVgE1w5ViSr3KUBh9X7CWirebA3bezTbB5ZKBQZwR2Mwj9uoSKRMFcz4gSMzzLXBPD6KpCLb9nvWw==", + "dependencies": { + "@vue/compiler-core": "3.4.27", + "@vue/shared": "3.4.27" + } + }, + "node_modules/@vue/language-core": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.0.19.tgz", + "integrity": "sha512-A9EGOnvb51jOvnCYoRLnMP+CcoPlbZVxI9gZXE/y2GksRWM6j/PrLEIC++pnosWTN08tFpJgxhSS//E9v/Sg+Q==", + "dependencies": { + "@volar/language-core": "~2.2.4", + "@vue/compiler-dom": "^3.4.0", + "@vue/shared": "^3.4.0", + "computeds": "^0.0.1", + "minimatch": "^9.0.3", + "path-browserify": "^1.0.1", + "vue-template-compiler": "^2.7.14" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/language-server": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/@vue/language-server/-/language-server-2.0.19.tgz", + "integrity": "sha512-yTn/iAEZt5pvkkC45nU+7B6kLmMq5bV9Idth03mVs4vTdUgzsJoIGau96XBHI/ZufvEMPKxSMxXPuNlsmMeyEw==", + "dependencies": { + "@volar/language-core": "~2.2.4", + "@volar/language-server": "~2.2.4", + "@vue/language-core": "2.0.19", + "@vue/language-service": "2.0.19", + "@vue/typescript-plugin": "2.0.19", + "vscode-languageserver-protocol": "^3.17.5", + "vscode-uri": "^3.0.8" + }, + "bin": { + "vue-language-server": "bin/vue-language-server.js" + } + }, + "node_modules/@vue/language-server/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/@vue/language-service": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/@vue/language-service/-/language-service-2.0.19.tgz", + "integrity": "sha512-/dYmd8B7OutCSpz01mUbmTm6emYyDilPYDhhCsY+EEEww1noHgGW/kJ8421ngsKlbXbDga/P3YVVGsLhN+p+2w==", + "dependencies": { + "@volar/language-core": "~2.2.4", + "@volar/language-service": "~2.2.4", + "@volar/typescript": "~2.2.4", + "@vue/compiler-dom": "^3.4.0", + "@vue/language-core": "2.0.19", + "@vue/shared": "^3.4.0", + "@vue/typescript-plugin": "2.0.19", + "computeds": "^0.0.1", + "path-browserify": "^1.0.1", + "volar-service-css": "0.0.45", + "volar-service-emmet": "0.0.45", + "volar-service-html": "0.0.45", + "volar-service-json": "0.0.45", + "volar-service-pug": "0.0.45", + "volar-service-pug-beautify": "0.0.45", + "volar-service-typescript": "0.0.45", + "volar-service-typescript-twoslash-queries": "0.0.45", + "vscode-html-languageservice": "npm:@johnsoncodehk/vscode-html-languageservice@5.2.0-34a5462", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue/language-service/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/@vue/language-service/node_modules/vscode-html-languageservice": { + "name": "@johnsoncodehk/vscode-html-languageservice", + "version": "5.2.0-34a5462", + "resolved": "https://registry.npmjs.org/@johnsoncodehk/vscode-html-languageservice/-/vscode-html-languageservice-5.2.0-34a5462.tgz", + "integrity": "sha512-etqLfpSJ5zaw76KUNF603be6d6QsiQPmaHr9FKEp4zhLZJzWCCMH6Icak7MtLUFLZLMpL761mZNImi/joBo1ZA==", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-languageserver-types": "^3.17.5", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue/language-service/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/@vue/shared": { + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.27.tgz", + "integrity": "sha512-DL3NmY2OFlqmYYrzp39yi3LDkKxa5vZVwxWdQ3rG0ekuWscHraeIbnI8t+aZK7qhYqEqWKTUdijadunb9pnrgA==" + }, + "node_modules/@vue/typescript-plugin": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/@vue/typescript-plugin/-/typescript-plugin-2.0.19.tgz", + "integrity": "sha512-Bigm8r8A+z9oY+QcVDAp9Kvan9w9pXfousmzwwnHH5T90w66Vy0/BvNe3D14d7vBCvWgQgFxpuKP67lIA5xySg==", + "dependencies": { + "@volar/typescript": "~2.2.4", + "@vue/language-core": "2.0.19", + "@vue/shared": "^3.4.0" + } + }, + "node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.14.0.tgz", + "integrity": "sha512-oYs1UUtO97ZO2lJ4bwnWeQW8/zvOIQLGKcvPTsWmvc2SYgBb+upuNS5NxoLaMU4h8Ju3Nbj6Cq8mD2LQoqVKFA==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.4.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/character-parser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/character-parser/-/character-parser-2.2.0.tgz", + "integrity": "sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw==", + "dependencies": { + "is-regex": "^1.0.3" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/computeds": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/computeds/-/computeds-0.0.1.tgz", + "integrity": "sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/copy-anything": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz", + "integrity": "sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==", + "dependencies": { + "is-what": "^3.14.1" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==" + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/dotenv": { + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/emmet": { + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/emmet/-/emmet-2.4.7.tgz", + "integrity": "sha512-O5O5QNqtdlnQM2bmKHtJgyChcrFMgQuulI+WdiOw2NArzprUqqxUW6bgYtKvzKgrsYpuLWalOkdhNP+1jluhCA==", + "dependencies": { + "@emmetio/abbreviation": "^2.3.3", + "@emmetio/css-abbreviation": "^2.1.8" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/errno": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", + "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", + "optional": true, + "dependencies": { + "prr": "~1.0.1" + }, + "bin": { + "errno": "cli.js" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/eslint-server": { + "version": "2.4.1", + "resolved": "file:target/eslint-server-2.4.1.tgz", + "integrity": "sha512-R+r9rG0Y26BG3/4C6tyPH0B06/SUm74cNMb8bRuAJ8jW5LbbDLoGdbqqh5QfY6NWjSnS7gpe5gAljUDBAiUemw==", + "license": "MIT", + "dependencies": { + "vscode-languageserver": "9.0.1", + "vscode-languageserver-textdocument": "1.0.11", + "vscode-uri": "^3.0.8" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint-server/node_modules/vscode-languageserver": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", + "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", + "dependencies": { + "vscode-languageserver-protocol": "3.17.5" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/eslint-server/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/firefox-debugadapter": { + "version": "2.9.9", + "resolved": "https://registry.npmjs.org/firefox-debugadapter/-/firefox-debugadapter-2.9.9.tgz", + "integrity": "sha512-kb/Gw3U9h6ogMXvlYBT4X3fPCs4GFf+eckVS7zsE/4jR+9zLSacIOQW01p8/XU6EbopoS2L/1oB6M2D0QtoTxA==" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "optional": true + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "bin": { + "he": "bin/he" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/image-size": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", + "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==", + "optional": true, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/immutable": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.6.tgz", + "integrity": "sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==" + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-expression": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-expression/-/is-expression-4.0.0.tgz", + "integrity": "sha512-zMIXX63sxzG3XrkHkrAPvm/OVZVSCPNkwMHU8oTX7/U3AL78I0QXCEICXUM13BIa8TYGZ68PiTKfQz3yaTNr4A==", + "dependencies": { + "acorn": "^7.1.1", + "object-assign": "^4.1.1" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-what": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz", + "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-parser": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.3.1.tgz", + "integrity": "sha512-H8jvkz1O50L3dMZCsLqiuB2tA7muqbSg1AtGEkN0leAqGjsUzDJir3Zwr02BhqdcITPg3ei3mZ+HjMocAknhhg==" + }, + "node_modules/less": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/less/-/less-4.2.0.tgz", + "integrity": "sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA==", + "dependencies": { + "copy-anything": "^2.0.1", + "parse-node-version": "^1.0.1", + "tslib": "^2.3.0" + }, + "bin": { + "lessc": "bin/lessc" + }, + "engines": { + "node": ">=6" + }, + "optionalDependencies": { + "errno": "^0.1.1", + "graceful-fs": "^4.1.2", + "image-size": "~0.5.0", + "make-dir": "^2.1.0", + "mime": "^1.4.1", + "needle": "^3.1.0", + "source-map": "~0.6.0" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "optional": true, + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "optional": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==" + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/needle": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz", + "integrity": "sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.3", + "sax": "^1.2.4" + }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/postcss": { + "version": "8.4.38", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", + "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-load-config": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", + "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^1.10.2" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz", + "integrity": "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.5.tgz", + "integrity": "sha512-6MieY7sIfTK0hYfafw1OMEG+2bg8Q1ocHCpoWLqOKj3JXlKu4G7btkmM/B7lFubYkYWmRSPLZi5chid63ZaZYw==", + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.0.tgz", + "integrity": "sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ==", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.0.tgz", + "integrity": "sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "node_modules/prettier": { + "version": "2.8.7", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", + "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "optional": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "optional": true + }, + "node_modules/pug-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pug-error/-/pug-error-2.1.0.tgz", + "integrity": "sha512-lv7sU9e5Jk8IeUheHata6/UThZ7RK2jnaaNztxfPYUY+VxZyk/ePVaNZ/vwmH8WqGvDz3LrNYt/+gA55NDg6Pg==" + }, + "node_modules/pug-lexer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pug-lexer/-/pug-lexer-5.0.1.tgz", + "integrity": "sha512-0I6C62+keXlZPZkOJeVam9aBLVP2EnbeDw3An+k0/QlqdwH6rv8284nko14Na7c0TtqtogfWXcRoFE4O4Ff20w==", + "dependencies": { + "character-parser": "^2.2.0", + "is-expression": "^4.0.0", + "pug-error": "^2.0.0" + } + }, + "node_modules/pug-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/pug-parser/-/pug-parser-6.0.0.tgz", + "integrity": "sha512-ukiYM/9cH6Cml+AOl5kETtM9NR3WulyVP2y4HOU45DyMim1IeP/OOiyEWRr6qk5I5klpsBnbuHpwKmTx6WURnw==", + "dependencies": { + "pug-error": "^2.0.0", + "token-stream": "1.0.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/request-light": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/request-light/-/request-light-0.7.0.tgz", + "integrity": "sha512-lMbBMrDoxgsyO+yB3sDcrDuX85yYt7sS8BfQd11jtbW/z5ZWgLZRcEGLsLoYw7I0WSUGQBs8CC8ScIxkTX1+6Q==" + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/reserved-words": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/reserved-words/-/reserved-words-0.1.2.tgz", + "integrity": "sha512-0S5SrIUJ9LfpbVl4Yzij6VipUdafHrOTzvmfazSw/jeZrZtQK303OPZW+obtkaw7jQlTQppy0UvZWm9872PbRw==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "optional": true + }, + "node_modules/sass": { + "version": "1.77.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.2.tgz", + "integrity": "sha512-eb4GZt1C3avsX3heBNlrc7I09nyT00IUuo4eFhAbeXWU2fvA7oXI53SxODVAA+zgZCk9aunAZgO+losjR3fAwA==", + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sax": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==", + "optional": true + }, + "node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "optional": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/stylus": { + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.62.0.tgz", + "integrity": "sha512-v3YCf31atbwJQIMtPNX8hcQ+okD4NQaTuKGUWfII8eaqn+3otrbttGL1zSMZAAtiPsBztQnujVBugg/cXFUpyg==", + "dependencies": { + "@adobe/css-tools": "~4.3.1", + "debug": "^4.3.2", + "glob": "^7.1.6", + "sax": "~1.3.0", + "source-map": "^0.7.3" + }, + "bin": { + "stylus": "bin/stylus" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://opencollective.com/stylus" + } + }, + "node_modules/stylus/node_modules/sax": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", + "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==" + }, + "node_modules/stylus/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/token-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/token-stream/-/token-stream-1.0.0.tgz", + "integrity": "sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==" + }, + "node_modules/tsconfig-paths": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", + "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", + "dependencies": { + "json5": "^2.2.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, + "node_modules/typescript": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-auto-import-cache": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/typescript-auto-import-cache/-/typescript-auto-import-cache-0.3.2.tgz", + "integrity": "sha512-+laqe5SFL1vN62FPOOJSUDTZxtgsoOXjneYOXIpx5rQ4UMiN89NAtJLpqLqyebv9fgQ/IMeeTX+mQyRnwvJzvg==", + "dependencies": { + "semver": "^7.3.8" + } + }, + "node_modules/typescript-auto-import-cache/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/typescript-language-server": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/typescript-language-server/-/typescript-language-server-4.3.3.tgz", + "integrity": "sha512-3QLj57Ru9S6zv10sa4z1pA3TIR1Rdkd04Ke0EszbO4fx5PLdlYhlC/PMxwlyxls9wrZs7wPCME1Ru0s1Gabz4Q==", + "bin": { + "typescript-language-server": "lib/cli.mjs" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/typescript-lit-html-plugin": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/typescript-lit-html-plugin/-/typescript-lit-html-plugin-0.9.0.tgz", + "integrity": "sha512-Ux2I1sPpt2akNbRZiBAND9oA8XNE2BuVmDwsb7rZshJ9T8/Na2rICE5Tnuj9dPHdFUATdOGjVEagn1/v8T4gCQ==", + "dependencies": { + "typescript-styled-plugin": "^0.13.0", + "typescript-template-language-service-decorator": "^2.2.0", + "vscode-html-languageservice": "^2.1.10", + "vscode-languageserver-types": "^3.13.0" + } + }, + "node_modules/typescript-lit-html-plugin/node_modules/vscode-html-languageservice": { + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/vscode-html-languageservice/-/vscode-html-languageservice-2.1.12.tgz", + "integrity": "sha512-mIb5VMXM5jI97HzCk2eadI1K//rCEZXte0wBqA7PGXsyJH4KTyJUaYk9MR+mbfpUl2vMi3HZw9GUOLGYLc6l5w==", + "dependencies": { + "vscode-languageserver-types": "^3.13.0", + "vscode-nls": "^4.0.0", + "vscode-uri": "^1.0.6" + } + }, + "node_modules/typescript-lit-html-plugin/node_modules/vscode-nls": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-4.1.2.tgz", + "integrity": "sha512-7bOHxPsfyuCqmP+hZXscLhiHwe7CSuFE4hyhbs22xPIhQ4jv99FcR4eBzfYYVLP356HNFpdvz63FFb/xw6T4Iw==" + }, + "node_modules/typescript-lit-html-plugin/node_modules/vscode-uri": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-1.0.8.tgz", + "integrity": "sha512-obtSWTlbJ+a+TFRYGaUumtVwb+InIUVI0Lu0VBUAPmj2cU5JutEXg3xUE0c2J5Tcy7h2DEKVJBFi+Y9ZSFzzPQ==" + }, + "node_modules/typescript-plugin-css-modules": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/typescript-plugin-css-modules/-/typescript-plugin-css-modules-5.1.0.tgz", + "integrity": "sha512-6h+sLBa4l+XYSTn/31vZHd/1c3SvAbLpobY6FxDiUOHJQG1eD9Gh3eCs12+Eqc+TCOAdxcO+zAPvUq0jBfdciw==", + "dependencies": { + "@types/postcss-modules-local-by-default": "^4.0.2", + "@types/postcss-modules-scope": "^3.0.4", + "dotenv": "^16.4.2", + "icss-utils": "^5.1.0", + "less": "^4.2.0", + "lodash.camelcase": "^4.3.0", + "postcss": "^8.4.35", + "postcss-load-config": "^3.1.4", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.4", + "postcss-modules-scope": "^3.1.1", + "reserved-words": "^0.1.2", + "sass": "^1.70.0", + "source-map-js": "^1.0.2", + "stylus": "^0.62.0", + "tsconfig-paths": "^4.2.0" + }, + "peerDependencies": { + "typescript": ">=4.0.0" + } + }, + "node_modules/typescript-styled-plugin": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/typescript-styled-plugin/-/typescript-styled-plugin-0.13.0.tgz", + "integrity": "sha512-GGMzv/JAd4S8mvWgHZslvW2G1HHrdurrp93oSR4h85SM8e5at7+KCqHsZICiTaL+iN25YGkJqoaZe4XklA76rg==", + "deprecated": "Deprecated in favor of https://github.com/styled-components/typescript-styled-plugin", + "dependencies": { + "typescript-template-language-service-decorator": "^2.0.0", + "vscode-css-languageservice": "^3.0.12", + "vscode-emmet-helper": "1.2.11", + "vscode-languageserver-types": "^3.13.0" + } + }, + "node_modules/typescript-styled-plugin/node_modules/vscode-css-languageservice": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-3.0.13.tgz", + "integrity": "sha512-RWkO/c/A7iXhHEy3OuEqkCqavDjpD4NF2Ca8vjai+ZtEYNeHrm1ybTnBYLP4Ft1uXvvaaVtYA9HrDjD6+CUONg==", + "dependencies": { + "vscode-languageserver-types": "^3.13.0", + "vscode-nls": "^4.0.0" + } + }, + "node_modules/typescript-styled-plugin/node_modules/vscode-nls": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-4.1.2.tgz", + "integrity": "sha512-7bOHxPsfyuCqmP+hZXscLhiHwe7CSuFE4hyhbs22xPIhQ4jv99FcR4eBzfYYVLP356HNFpdvz63FFb/xw6T4Iw==" + }, + "node_modules/typescript-template-language-service-decorator": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/typescript-template-language-service-decorator/-/typescript-template-language-service-decorator-2.3.2.tgz", + "integrity": "sha512-hN0zNkr5luPCeXTlXKxsfBPlkAzx86ZRM1vPdL7DbEqqWoeXSxplACy98NpKpLmXsdq7iePUzAXloCAoPKBV6A==" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/volar-service-css": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-css/-/volar-service-css-0.0.45.tgz", + "integrity": "sha512-f+AlUI1+kESbcZSVaNJVAnK0c/9Da5StoxzPqA5/8VqUHJWNdubWNnwG5xpFVTfgh6pgTcey3UBhBfHytFaIOg==", + "dependencies": { + "vscode-css-languageservice": "^6.2.10", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "@volar/language-service": "~2.2.3" + }, + "peerDependenciesMeta": { + "@volar/language-service": { + "optional": true + } + } + }, + "node_modules/volar-service-css/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/volar-service-emmet": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-emmet/-/volar-service-emmet-0.0.45.tgz", + "integrity": "sha512-9nLXSDkR1vA/3fQkFEsSXAu3XovQxOpTkVG2jilQgfek/K1ZLkaA/WMhN/TtmPmQg4NxE9Ni6mA5udBQ5gVXIA==", + "dependencies": { + "@emmetio/css-parser": "^0.4.0", + "@emmetio/html-matcher": "^1.3.0", + "@vscode/emmet-helper": "^2.9.2" + }, + "peerDependencies": { + "@volar/language-service": "~2.2.3" + }, + "peerDependenciesMeta": { + "@volar/language-service": { + "optional": true + } + } + }, + "node_modules/volar-service-html": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-html/-/volar-service-html-0.0.45.tgz", + "integrity": "sha512-tLTJqfy1v5C4nmeAsfekFIKPl4r4qDMyL0L9MWywr/EApZzPCsbeUGxCqdzxSMC2q7PMCfX2i167txDo+J0LVA==", + "dependencies": { + "vscode-html-languageservice": "npm:@johnsoncodehk/vscode-html-languageservice@5.2.0-34a5462", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "@volar/language-service": "~2.2.3" + }, + "peerDependenciesMeta": { + "@volar/language-service": { + "optional": true + } + } + }, + "node_modules/volar-service-html/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/volar-service-html/node_modules/vscode-html-languageservice": { + "name": "@johnsoncodehk/vscode-html-languageservice", + "version": "5.2.0-34a5462", + "resolved": "https://registry.npmjs.org/@johnsoncodehk/vscode-html-languageservice/-/vscode-html-languageservice-5.2.0-34a5462.tgz", + "integrity": "sha512-etqLfpSJ5zaw76KUNF603be6d6QsiQPmaHr9FKEp4zhLZJzWCCMH6Icak7MtLUFLZLMpL761mZNImi/joBo1ZA==", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-languageserver-types": "^3.17.5", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/volar-service-html/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/volar-service-json": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-json/-/volar-service-json-0.0.45.tgz", + "integrity": "sha512-jlIFVZObq4KM527z6Vfa90L/DRBo2PzLWg1TX8YWgymqVDRrjPGSjIoGo//JHyQJqSpAdCK+G85nPXfqv7jz3A==", + "dependencies": { + "vscode-json-languageservice": "^5.3.7", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "@volar/language-service": "~2.2.3" + }, + "peerDependenciesMeta": { + "@volar/language-service": { + "optional": true + } + } + }, + "node_modules/volar-service-json/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/volar-service-pug": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-pug/-/volar-service-pug-0.0.45.tgz", + "integrity": "sha512-Xr45hVTMzt6NI2xgA69+Evzmes6pePqR2X4wl6io76M70M3W+QDbvHH3u8+5QrvVvbQGY0HledQcT29bCWRADQ==", + "dependencies": { + "@volar/language-service": "~2.2.3", + "pug-lexer": "^5.0.1", + "pug-parser": "^6.0.0", + "volar-service-html": "0.0.45", + "vscode-html-languageservice": "npm:@johnsoncodehk/vscode-html-languageservice@5.2.0-34a5462", + "vscode-languageserver-textdocument": "^1.0.11" + } + }, + "node_modules/volar-service-pug-beautify": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-pug-beautify/-/volar-service-pug-beautify-0.0.45.tgz", + "integrity": "sha512-6vBkfbHwxDbmFhYIMNOwvbw12DnGCgGYtFdEo7G9APx22l/9I57AVGWQqaIKzfVuzsyUg6pa2CorYwVvJJbOfw==", + "dependencies": { + "@johnsoncodehk/pug-beautify": "^0.2.2" + }, + "peerDependencies": { + "@volar/language-service": "~2.2.3" + }, + "peerDependenciesMeta": { + "@volar/language-service": { + "optional": true + } + } + }, + "node_modules/volar-service-pug/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/volar-service-pug/node_modules/vscode-html-languageservice": { + "name": "@johnsoncodehk/vscode-html-languageservice", + "version": "5.2.0-34a5462", + "resolved": "https://registry.npmjs.org/@johnsoncodehk/vscode-html-languageservice/-/vscode-html-languageservice-5.2.0-34a5462.tgz", + "integrity": "sha512-etqLfpSJ5zaw76KUNF603be6d6QsiQPmaHr9FKEp4zhLZJzWCCMH6Icak7MtLUFLZLMpL761mZNImi/joBo1ZA==", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-languageserver-types": "^3.17.5", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/volar-service-pug/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/volar-service-typescript": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-typescript/-/volar-service-typescript-0.0.45.tgz", + "integrity": "sha512-i/mMIIAMastJ2kgPo3qvX0Rrl7NyxhIYZ0ug/B4ambZcLPI1vzBgS2fmvyWX3jhBYHh8NmbAotFj+0Y9JtN47A==", + "dependencies": { + "path-browserify": "^1.0.1", + "semver": "^7.5.4", + "typescript-auto-import-cache": "^0.3.1", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-nls": "^5.2.0" + }, + "peerDependencies": { + "@volar/language-service": "~2.2.3" + }, + "peerDependenciesMeta": { + "@volar/language-service": { + "optional": true + } + } + }, + "node_modules/volar-service-typescript-twoslash-queries": { + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/volar-service-typescript-twoslash-queries/-/volar-service-typescript-twoslash-queries-0.0.45.tgz", + "integrity": "sha512-KrPUUvKggZgV9mrDpstCzmf20irgv0ooMv+FGDzIIQUkya+d2+nSS8Mx2h9FvsYgLccUVw5jU3Rhwhd3pv/7qg==", + "peerDependencies": { + "@volar/language-service": "~2.2.3" + }, + "peerDependenciesMeta": { + "@volar/language-service": { + "optional": true + } + } + }, + "node_modules/volar-service-typescript/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/vscode-css-languageserver": { + "version": "1.0.0", + "resolved": "file:target/vscode-css-languageserver-1.0.0.tgz", + "integrity": "sha512-FsCoco7YVIRvXhgT8UtN6EokVXGNtACwHjDvrnTanPPfqPPZQhxvhOONSdfTfKLCrmOnLnCuZcWMKGyW5+vVSA==", + "license": "MIT", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "vscode-css-languageservice": "^6.2.14", + "vscode-languageserver": "^10.0.0-next.3", + "vscode-uri": "^3.0.8" + }, + "engines": { + "node": "*" + } + }, + "node_modules/vscode-css-languageserver/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/vscode-css-languageserver/node_modules/vscode-jsonrpc": { + "version": "9.0.0-next.3", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-9.0.0-next.3.tgz", + "integrity": "sha512-Y4msarirF0JA0cH0OnAlqI+jZyPV6E0yTTviQRPH3IrxDv/K01EkM4gmsWS0Fx8wPqvW1GM+Gc/GWZvfoXFurQ==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/vscode-css-languageserver/node_modules/vscode-languageserver": { + "version": "10.0.0-next.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-10.0.0-next.5.tgz", + "integrity": "sha512-zGkMrlceUriM1jfYGe3mhE+KO12EXswvQi9rgPFIsKPlUv181iKPhZTQzDFtn1MvpMzU94VzuB0yst20TIIjzA==", + "dependencies": { + "vscode-languageserver-protocol": "3.17.6-next.5" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/vscode-css-languageserver/node_modules/vscode-languageserver-protocol": { + "version": "3.17.6-next.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.6-next.5.tgz", + "integrity": "sha512-akUqjTI6FKOXBDu/rmFOaxez3BghZjexfqc7dEmVWlb1gCacnK/YVyqFjs7E0Abhyfj0TVPe4pInPY84rWEwjQ==", + "dependencies": { + "vscode-jsonrpc": "9.0.0-next.3", + "vscode-languageserver-types": "3.17.6-next.4" + } + }, + "node_modules/vscode-css-languageserver/node_modules/vscode-languageserver-types": { + "version": "3.17.6-next.4", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.6-next.4.tgz", + "integrity": "sha512-SeJTpH/S14EbxOAVaOUoGVqPToqpRTld5QO5Ghig3AlbFJTFF9Wu7srHMfa85L0SX1RYAuuCSFKJVVCxDIk1/Q==" + }, + "node_modules/vscode-css-languageserver/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/vscode-css-languageservice": { + "version": "6.2.14", + "resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-6.2.14.tgz", + "integrity": "sha512-5UPQ9Y1sUTnuMyaMBpO7LrBkqjhEJb5eAwdUlDp+Uez8lry+Tspnk3+3p2qWS4LlNsr4p3v9WkZxUf1ltgFpgw==", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-languageserver-types": "3.17.5", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/vscode-css-languageservice/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/vscode-css-languageservice/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/vscode-emmet-helper": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/vscode-emmet-helper/-/vscode-emmet-helper-1.2.11.tgz", + "integrity": "sha512-ms6/Z9TfNbjXS8r/KgbGxrNrFlu4RcIfVJxTZ2yFi0K4gn+Ka9X1+8cXvb5+5IOBGUrOsPjR0BuefdDkG+CKbQ==", + "deprecated": "This package has been renamed to @vscode/emmet-helper, please update to the new name", + "dependencies": { + "@emmetio/extract-abbreviation": "0.1.6", + "jsonc-parser": "^1.0.0", + "vscode-languageserver-types": "^3.6.0-next.1" + } + }, + "node_modules/vscode-emmet-helper/node_modules/jsonc-parser": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-1.0.3.tgz", + "integrity": "sha512-hk/69oAeaIzchq/v3lS50PXuzn5O2ynldopMC+SWBql7J2WtdptfB9dy8Y7+Og5rPkTCpn83zTiO8FMcqlXJ/g==" + }, + "node_modules/vscode-html-languageserver": { + "version": "1.0.0", + "resolved": "file:target/vscode-html-languageserver-1.0.0.tgz", + "integrity": "sha512-3wldEZ6WFH6o0S0hRmF4xW9f5pLnm0zHy52xLGQFgCf0KIUlWrPvdctCNxqWJOyMszWTe2tlSQmVh/oH1UfUpw==", + "license": "MIT", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "vscode-css-languageservice": "^6.2.13", + "vscode-html-languageservice": "^5.2.0", + "vscode-languageserver": "^10.0.0-next.2", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + }, + "engines": { + "node": "*" + } + }, + "node_modules/vscode-html-languageserver/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/vscode-html-languageserver/node_modules/vscode-jsonrpc": { + "version": "9.0.0-next.3", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-9.0.0-next.3.tgz", + "integrity": "sha512-Y4msarirF0JA0cH0OnAlqI+jZyPV6E0yTTviQRPH3IrxDv/K01EkM4gmsWS0Fx8wPqvW1GM+Gc/GWZvfoXFurQ==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/vscode-html-languageserver/node_modules/vscode-languageserver": { + "version": "10.0.0-next.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-10.0.0-next.5.tgz", + "integrity": "sha512-zGkMrlceUriM1jfYGe3mhE+KO12EXswvQi9rgPFIsKPlUv181iKPhZTQzDFtn1MvpMzU94VzuB0yst20TIIjzA==", + "dependencies": { + "vscode-languageserver-protocol": "3.17.6-next.5" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/vscode-html-languageserver/node_modules/vscode-languageserver-protocol": { + "version": "3.17.6-next.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.6-next.5.tgz", + "integrity": "sha512-akUqjTI6FKOXBDu/rmFOaxez3BghZjexfqc7dEmVWlb1gCacnK/YVyqFjs7E0Abhyfj0TVPe4pInPY84rWEwjQ==", + "dependencies": { + "vscode-jsonrpc": "9.0.0-next.3", + "vscode-languageserver-types": "3.17.6-next.4" + } + }, + "node_modules/vscode-html-languageserver/node_modules/vscode-languageserver-types": { + "version": "3.17.6-next.4", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.6-next.4.tgz", + "integrity": "sha512-SeJTpH/S14EbxOAVaOUoGVqPToqpRTld5QO5Ghig3AlbFJTFF9Wu7srHMfa85L0SX1RYAuuCSFKJVVCxDIk1/Q==" + }, + "node_modules/vscode-html-languageserver/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/vscode-html-languageservice": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/vscode-html-languageservice/-/vscode-html-languageservice-5.2.0.tgz", + "integrity": "sha512-cdNMhyw57/SQzgUUGSIMQ66jikqEN6nBNyhx5YuOyj9310+eY9zw8Q0cXpiKzDX8aHYFewQEXRnigl06j/TVwQ==", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-languageserver-types": "^3.17.5", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/vscode-html-languageservice/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/vscode-html-languageservice/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/vscode-json-languageserver": { + "version": "1.3.4", + "resolved": "file:target/vscode-json-languageserver-1.3.4.tgz", + "integrity": "sha512-Q2Ej3AYmxwmBCF4tgBZbT/ZrzlWeKGcMnIqPf/NEPm3IQtGwVUml7aVdP+08Cmc2NFcacx01e+jxQWvg4NRF9A==", + "license": "MIT", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "jsonc-parser": "^3.2.1", + "request-light": "^0.7.0", + "vscode-json-languageservice": "^5.3.11", + "vscode-languageserver": "^10.0.0-next.3", + "vscode-uri": "^3.0.8" + }, + "bin": { + "vscode-json-languageserver": "bin/vscode-json-languageserver" + }, + "engines": { + "node": "*" + } + }, + "node_modules/vscode-json-languageserver/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/vscode-json-languageserver/node_modules/jsonc-parser": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", + "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==" + }, + "node_modules/vscode-json-languageserver/node_modules/vscode-jsonrpc": { + "version": "9.0.0-next.3", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-9.0.0-next.3.tgz", + "integrity": "sha512-Y4msarirF0JA0cH0OnAlqI+jZyPV6E0yTTviQRPH3IrxDv/K01EkM4gmsWS0Fx8wPqvW1GM+Gc/GWZvfoXFurQ==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/vscode-json-languageserver/node_modules/vscode-languageserver": { + "version": "10.0.0-next.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-10.0.0-next.5.tgz", + "integrity": "sha512-zGkMrlceUriM1jfYGe3mhE+KO12EXswvQi9rgPFIsKPlUv181iKPhZTQzDFtn1MvpMzU94VzuB0yst20TIIjzA==", + "dependencies": { + "vscode-languageserver-protocol": "3.17.6-next.5" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/vscode-json-languageserver/node_modules/vscode-languageserver-protocol": { + "version": "3.17.6-next.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.6-next.5.tgz", + "integrity": "sha512-akUqjTI6FKOXBDu/rmFOaxez3BghZjexfqc7dEmVWlb1gCacnK/YVyqFjs7E0Abhyfj0TVPe4pInPY84rWEwjQ==", + "dependencies": { + "vscode-jsonrpc": "9.0.0-next.3", + "vscode-languageserver-types": "3.17.6-next.4" + } + }, + "node_modules/vscode-json-languageserver/node_modules/vscode-languageserver-types": { + "version": "3.17.6-next.4", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.6-next.4.tgz", + "integrity": "sha512-SeJTpH/S14EbxOAVaOUoGVqPToqpRTld5QO5Ghig3AlbFJTFF9Wu7srHMfa85L0SX1RYAuuCSFKJVVCxDIk1/Q==" + }, + "node_modules/vscode-json-languageserver/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/vscode-json-languageservice": { + "version": "5.3.11", + "resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-5.3.11.tgz", + "integrity": "sha512-WYS72Ymria3dn8ZbjtBbt5K71m05wY1Q6hpXV5JxUT0q75Ts0ljLmnZJAVpx8DjPgYbFD+Z8KHpWh2laKLUCtQ==", + "dependencies": { + "@vscode/l10n": "^0.0.18", + "jsonc-parser": "^3.2.1", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-languageserver-types": "^3.17.5", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/vscode-json-languageservice/node_modules/@vscode/l10n": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==" + }, + "node_modules/vscode-json-languageservice/node_modules/jsonc-parser": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", + "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==" + }, + "node_modules/vscode-json-languageservice/node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" + }, + "node_modules/vscode-jsonrpc": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz", + "integrity": "sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==", + "engines": { + "node": ">=8.0.0 || >=10.0.0" + } + }, + "node_modules/vscode-languageserver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-7.0.0.tgz", + "integrity": "sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw==", + "dependencies": { + "vscode-languageserver-protocol": "3.16.0" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/vscode-languageserver-protocol": { + "version": "3.17.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", + "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", + "dependencies": { + "vscode-jsonrpc": "8.2.0", + "vscode-languageserver-types": "3.17.5" + } + }, + "node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", + "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/vscode-languageserver-textdocument": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.11.tgz", + "integrity": "sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==" + }, + "node_modules/vscode-languageserver-types": { + "version": "3.17.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", + "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==" + }, + "node_modules/vscode-languageserver/node_modules/vscode-languageserver-protocol": { + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz", + "integrity": "sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==", + "dependencies": { + "vscode-jsonrpc": "6.0.0", + "vscode-languageserver-types": "3.16.0" + } + }, + "node_modules/vscode-languageserver/node_modules/vscode-languageserver-types": { + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz", + "integrity": "sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==" + }, + "node_modules/vscode-nls": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-5.2.0.tgz", + "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==" + }, + "node_modules/vscode-uri": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.7.tgz", + "integrity": "sha512-eOpPHogvorZRobNqJGhapa0JdwaxpjVvyBp0QIUMRMSf8ZAlqOdEquKuRmw9Qwu0qXtJIWqFtMkmvJjUZmMjVA==" + }, + "node_modules/vue-template-compiler": { + "version": "2.7.16", + "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.16.tgz", + "integrity": "sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==", + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yaml-language-server": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/yaml-language-server/-/yaml-language-server-1.14.0.tgz", + "integrity": "sha512-HnNiHM5AOTXuM8ZpubzqgTy+7V5kFiMXVedOT2yjhvnxCw6pbMXcD/ymHaaT5v2ue0H8GGH4NFkvCEzcIcTJDg==", + "dependencies": { + "ajv": "^8.11.0", + "lodash": "4.17.21", + "request-light": "^0.5.7", + "vscode-json-languageservice": "4.1.8", + "vscode-languageserver": "^7.0.0", + "vscode-languageserver-textdocument": "^1.0.1", + "vscode-languageserver-types": "^3.16.0", + "vscode-nls": "^5.0.0", + "vscode-uri": "^3.0.2", + "yaml": "2.2.2" + }, + "bin": { + "yaml-language-server": "bin/yaml-language-server" + }, + "optionalDependencies": { + "prettier": "2.8.7" + } + }, + "node_modules/yaml-language-server/node_modules/jsonc-parser": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", + "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==" + }, + "node_modules/yaml-language-server/node_modules/request-light": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/request-light/-/request-light-0.5.8.tgz", + "integrity": "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg==" + }, + "node_modules/yaml-language-server/node_modules/vscode-json-languageservice": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-4.1.8.tgz", + "integrity": "sha512-0vSpg6Xd9hfV+eZAaYN63xVVMOTmJ4GgHxXnkLCh+9RsQBkWKIghzLhW2B9ebfG+LQQg8uLtsQ2aUKjTgE+QOg==", + "dependencies": { + "jsonc-parser": "^3.0.0", + "vscode-languageserver-textdocument": "^1.0.1", + "vscode-languageserver-types": "^3.16.0", + "vscode-nls": "^5.0.0", + "vscode-uri": "^3.0.2" + }, + "engines": { + "npm": ">=7.0.0" + } + }, + "node_modules/yaml-language-server/node_modules/yaml": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz", + "integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==", + "engines": { + "node": ">= 14" + } + } + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.properties" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.properties" index 869a949643b5fe7cb88a0ddeef75517f0b439f43..14de05e8a787545cdc54d8d90af26c1159e5d64b 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.properties" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.properties" @@ -1,3 +1,65 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e87dbd8ea9c2a5eeb56e652ca0db6049950ed1b6e81465bc93c89a2aea13c50 -size 2311 +#/******************************************************************************* +# * Copyright (c) 2022 Red Hat Inc. and others. +# * This program and the accompanying materials are made +# * available under the terms of the Eclipse Public License 2.0 +# * which is available at https://www.eclipse.org/legal/epl-2.0/ +# * +# * SPDX-License-Identifier: EPL-2.0 +# * +# * Contributors: +# * Angelo ZERR (Red Hat Inc.) - initial implementation +# *******************************************************************************/ +pluginName=Wild Web Developer: web development in Eclipse IDE +providerName=Eclipse Wild Web Developer project + +# CSS, LESS, SCSS +CSSPreferencePage.name=CSS (Wild Web Developer) +CSSCompletionPreferencePage.name=Completion +CSSFormatPreferencePage.name=Format +CSSHoverPreferencePage.name=Hover +CSSValidationPreferencePage.name=Validation + +LESSPreferencePage.name=LESS +LESSCompletionPreferencePage.name=Completion +LESSFormatPreferencePage.name=Format +LESSHoverPreferencePage.name=Hover +LESSValidationPreferencePage.name=Validation + +SCSSPreferencePage.name=SCSS +SCSSCompletionPreferencePage.name=Completion +SCSSFormatPreferencePage.name=Format +SCSSHoverPreferencePage.name=Hover +SCSSValidationPreferencePage.name=Validation + +# HTML +HTMLPreferencePage.name=HTML (Wild Web Developer) +HTMLCompletionPreferencePage.name=Completion +HTMLFormatPreferencePage.name=Format +HTMLHoverPreferencePage.name=Hover +HTMLValidationPreferencePage.name=Validation + +# JST/TS +JSTSPreferencePage.name=JS/TS (Wild Web Developer) +TypeScriptPreferencePage.name=TypeScript +TypeScriptInlayHintPreferencePage.name=Inlay Hint +JavaScriptPreferencePage.name=JavaScript +JavaScriptInlayHintPreferencePage.name=Inlay Hint + +# YAML +YAMLPreferencePage.name=YAML (Wild Web Developer) +YAMLCompletionPreferencePage.name=Completion +YAMLFormatPreferencePage.name=Format +YAMLHoverPreferencePage.name=Hover +YAMLValidationPreferencePage.name=Validation + +# preference keywords +preferenceKeywords.yaml=yaml +preferenceKeywords.js=js +preferenceKeywords.ts=ts +preferenceKeywords.javascript=javascript +preferenceKeywords.typescript=typescript +preferenceKeywords.css=css +preferenceKeywords.less=less +preferenceKeywords.scss=scss +preferenceKeywords.sass=sass +preferenceKeywords.html=html \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.xml" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.xml" index 43067b5ce70173951fd47a3f8041f46f57e30a0e..e3a1a7813ff81d35d91b7c788a67a74ba2ad361f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.xml" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/plugin.xml" @@ -1,3 +1,1233 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07b34d9da8736d61563b71bf4c698058c0b1b7b2e63687bcffa7e631a0e91f34 -size 53510 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/schema/json.schema.exsd" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/schema/json.schema.exsd" index aff61e1d37e4f4c1f797f12b4bf16b88edd3b70a..7af0d5df7a5998ba283e78a11f23508cac4d8da0 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/schema/json.schema.exsd" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/schema/json.schema.exsd" @@ -1,3 +1,120 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e245774b8169f5c4c03d24b6a04db61dc35d9666e279badf2e534e2dee556951 -size 3821 + + + + + + + + + Register JSON schema + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Schema entry + + + + + + + <ul> +<li>tsconfig.json - directory doesn't matter</li> +<li>/tsconfig.json - only in root directory</li> +<li>tsconfig.*.json - wildcard name</li> +</ul> + + + + + + + URL to schema, for example: http://json.schemastore.org/tsconfig + +Special schemes (platform:, ) are supported but must be used with caution as JSON or YAML language server may not support it. We recommand to use Eclipse-BundleShape:dir as it will translate to file: scheme + + + + + + + + + + + + 0.5.8 + + + + + + + + + <p>Root project file</p> +<pre> +&lt;schema pattern=&quot;/.eslintrc&quot; url=&quot;http://json.schemastore.org/eslintrc&quot; /&gt; +</pre> + +<p>Wildcard name</p> +<pre> +&lt;schema pattern=&quot;tsconfig.*.json&quot; url=&quot;http://json.schemastore.org/tsconfig&quot; /&gt; +</pre> + + + + + + + + + + + Copyright (c) 2020 Dawid PakuĊ‚a and others.<br> +This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at <a href="https://www.eclipse.org/legal/epl-2.0/">https://www.eclipse.org/legal/epl-2.0/</a> + +SPDX-License-Identifier: EPL-2.0 + + + + diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/css/sample.css" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/css/sample.css" index 15957e27fe9c2d456c25a58642027ce19136d3a2..dbb76422d40a3db8f4d654cbe848ef97c7f3c9c7 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/css/sample.css" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/css/sample.css" @@ -1,3 +1,319 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e92d0540fb961d6b54d0773c458282c3e82eea0d627d2fa0d67c26d7540f443 -size 4831 +.emphasis { + font-style: italic; +} + +.strong { + font-weight: bold; +} + +.header { + color: rgba(0, 0, 128, 1); +} + +.comment { + color: rgba(96, 139, 78, 1); +} + +.constant.language { + color: rgba(86, 156, 214, 1); +} + +.constant.numeric { + color: rgba(181, 206, 168, 1); +} + +.constant.regexp { + color: rgba(100, 102, 149, 1); +} + +.constant.rgb-value { + color: rgba(212, 212, 212, 1); +} + +.entity.name.tag { + color: rgba(86, 156, 214, 1); +} + +.entity.name.tag.css { + color: rgba(215, 186, 125, 1); +} + +.entity.name.selector { + color: rgba(215, 186, 125, 1); +} + +.entity.other.attribute-name { + color: rgba(156, 220, 254, 1); +} + +.entity.other.attribute-name.css { + color: rgba(215, 186, 125, 1); +} + +.invalid { + color: rgba(244, 71, 71, 1); +} + +.markup.underline { + text-decoration: underline; +} + +.markup.bold { + font-weight: bold; + color: rgba(86, 156, 214, 1); +} + +.markup.heading { + font-weight: bold; + color: rgba(86, 156, 214, 1); +} + +.markup.italic { + font-style: italic; +} + +.markup.inserted { + color: rgba(181, 206, 168, 1); +} + +.markup.deleted { + color: rgba(206, 145, 120, 1); +} + +.markup.changed { + color: rgba(86, 156, 214, 1); +} + +.markup.punctuation.quote.beginning { + color: rgba(96, 139, 78, 1); +} + +.markup.punctuation.list.beginning { + color: rgba(103, 150, 230, 1); +} + +.markup.inline.raw { + color: rgba(206, 145, 120, 1); +} + +.meta.selector { + color: rgba(215, 186, 125, 1); +} + +.punctuation.definition.tag { + color: rgba(128, 128, 128, 1); +} + +.meta.preprocessor { + color: rgba(86, 156, 214, 1); +} + +.meta.preprocessor.string { + color: rgba(206, 145, 120, 1); +} + +.meta.preprocessor.numeric { + color: rgba(181, 206, 168, 1); +} + +.meta.structure.dictionary.key.python { + color: rgba(156, 220, 254, 1); +} + +.meta.header.diff { + color: rgba(86, 156, 214, 1); +} + +.storage { + color: rgba(86, 156, 214, 1); +} + +.storage.type { + color: rgba(86, 156, 214, 1); +} + +.storage.modifier { + color: rgba(86, 156, 214, 1); +} + +.string { + color: rgba(206, 145, 120, 1); +} + +.string.tag { + color: rgba(206, 145, 120, 1); +} + +.string.value { + color: rgba(206, 145, 120, 1); +} + +.string.regexp { + color: rgba(209, 105, 105, 1); +} + +.support.type.property-name { + color: rgba(156, 220, 254, 1); +} + +.keyword { + color: rgba(86, 156, 214, 1); +} + +.keyword.control.less { + color: rgba(215, 186, 125, 1); +} + +.keyword.operator { + color: rgba(212, 212, 212, 1); +} + +.keyword.operator.new { + color: rgba(86, 156, 214, 1); +} + +.keyword.operator.expression { + color: rgba(86, 156, 214, 1); +} + +.keyword.other.unit { + color: rgba(181, 206, 168, 1); +} + +.metatag.php { + color: rgba(86, 156, 214, 1); +} + +.support.function.git-rebase { + color: rgba(156, 220, 254, 1); +} + +.constant.sha.git-rebase { + color: rgba(181, 206, 168, 1); +} + +.storage.modifier.import.java { + color: rgba(212, 212, 212, 1); +} + +.storage.modifier.package.java { + color: rgba(212, 212, 212, 1); +} + +.variable.language { + color: rgba(86, 156, 214, 1); +} + +.entity.name.function { + color: rgba(220, 220, 170, 1); +} + +.support.function { + color: rgba(220, 220, 170, 1); +} + +.meta.return-type { + color: rgba(78, 201, 176, 1); +} + +.support.class { + color: rgba(78, 201, 176, 1); +} + +.support.type { + color: rgba(78, 201, 176, 1); +} + +.entity.name.type { + color: rgba(78, 201, 176, 1); +} + +.storage.type.cs { + color: rgba(78, 201, 176, 1); +} + +.storage.type.java { + color: rgba(78, 201, 176, 1); +} + +.meta.return.type { + color: rgba(78, 201, 176, 1); +} + +.meta.type.cast.expr { + color: rgba(78, 201, 176, 1); +} + +.meta.type.new.expr { + color: rgba(78, 201, 176, 1); +} + +.support.constant.math { + color: rgba(78, 201, 176, 1); +} + +.support.constant.dom { + color: rgba(78, 201, 176, 1); +} + +.support.constant.json { + color: rgba(78, 201, 176, 1); +} + +.keyword.control { + color: rgba(197, 134, 192, 1); +} + +.variable.parameter { + color: rgba(156, 220, 254, 1); +} + +.variable { + color: rgba(156, 220, 254, 1); +} + +.variable.name { + color: rgba(156, 220, 254, 1); +} + +.support.variable { + color: rgba(156, 220, 254, 1); +} + +.object-literal.member.key { + color: rgba(156, 220, 254, 1); +} + +.support.property-value { + color: rgba(206, 145, 120, 1); +} + +.constant.rgb-value { + color: rgba(206, 145, 120, 1); +} + +.support.property-value.scss { + color: rgba(206, 145, 120, 1); +} + +.constant.rgb-value.scss { + color: rgba(206, 145, 120, 1); +} + +.entity.name.function.tag { + color: rgba(86, 156, 214, 1); +} + +.editor { + background-color: rgba(30, 30, 30, 1); + color: rgb(212, 212, 212); +} + +.editor.lineHighlight { + background-color: rgba(40, 40, 40, 1); +} + +.editor.selection { + +} +/**.editor.selection { background-color: rgba(73, 72, 62, 0.5); }**/ \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/html/sample.html" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/html/sample.html" index 03166f7eae86c83149b4a130b36d7d9d34a6df36..0783283745eb8fdc5ce9a1157ebc3f6fbb8cdcfd 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/html/sample.html" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/html/sample.html" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b71598a54c80527c8e517609011b29de30f75572251eb6320cad1b3656f966b -size 637 + + + Sample "Hello, World" Application + + + + + + + + +
+ + +

Sample "Hello, World" Application

+
+ +

This is the home page for the HelloWorld Web application.

+

To prove that they work, you can execute either of the following links: +

+ + + \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/javascript/sample.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/javascript/sample.js" index dd9ebdf1644c6f5ff8f48aa7ca5344906d1d3ae6..69af20ad5c6ab42d9e273709e063940502556ad3 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/javascript/sample.js" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/javascript/sample.js" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0f11e53897207b2e591c47820c64e35e7f29021aac12f69374235735cccee7b -size 729 +/** + * This is about Example.js. + * {@link com.yourCompany.aPackage.aFile} + * @author author + * @deprecated use BetterExample.js + */ +var index = 0; +var arr = []; + +function foo() { + /* This comment may span multiple lines. */ + var var1 = new Object(); + var obj = { carMake: 'Amet', carModel: 'Porro', carYear: 2012 }; + var s = "abc123"; + clear(var1); + var template = `This is a template literal value, + it may span multiple lines.`; +} + +function pop() { + return arr[index--]; +} + +function push(elem) { + // This comment may span only this line + arr[index++] = elem; +} + +function isEmpty() { + // TASK: refactor + return index == 0; +} + diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/json/sample.json" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/json/sample.json" index c4ebbb26588f670ae3eed477d4da690d26ccc2f3..443275584f1233bd7396a22420fefe7c562e7c42 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/json/sample.json" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/json/sample.json" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b4b2ceb682454e4dfbe7270226fa418dcdccefdd9366c4d9bb6cdb1a0dd242ef -size 593 +{ + "name": "wildwebdeveloper-node-languageservers", + "version": "0.1.0", + "description": "", + "scripts": {}, + "keywords": [], + "author": "Eclipse Wild Web Developer", + "license": "EPL", + "dependencies": { + "vscode-html-languageserver": "../target/vscode/VSCode-linux-x64/resources/app/extensions/html/server", + "vscode-json-languageserver": "../target/vscode/VSCode-linux-x64/resources/app/extensions/json/server", + "vscode-css-languageserver": "../target/vscode/VSCode-linux-x64/resources/app/extensions/css/server", + "javascript-typescript-langserver": "^2.0.0-pre.30" + } +} diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/typescript/sample.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/typescript/sample.ts" index 7297d807896ec7608693f6c294ee2ab9ca0952e4..db1582c39010a910f9b418c08cac0074d0974762 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/typescript/sample.ts" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/typescript/sample.ts" @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa13fff639dca7cd30fc4852218434237dc2c8ea0d9bfda247f77b6acfafdd8d -size 242 +import { StringValidator } from "./Validation"; + +const numberRegexp = /^[0-9]+$/; + +export class ZipCodeValidator implements StringValidator { + isAcceptable(s: string) { + return s.length === 5 && numberRegexp.test(s); + } +} \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/yaml/sample.yaml" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/yaml/sample.yaml" index 090997d7de13c6f167e3b26b3861594d07f64dd0..35d2cd542769dc4eedcaf1c39a6746be2849950f 100644 --- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/yaml/sample.yaml" +++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/snippets/yaml/sample.yaml" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e3d8c4bce091a4fcac9e38e17c1f5b6474f27bad21855f57c7f7c43bfe80cc7 -size 256 +# Employee records +- martin: + name: Martin D'vloper + job: Developer + skills: + - python + - perl + - pascal +- tabitha: + name: Tabitha Bitumen + job: Developer + skills: + - lisp + - fortran + - erlang \ No newline at end of file diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.core_1.1.0.v202308010229.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.core_1.1.0.v202308010229.jar" index db623b540cf2702dbae625e6717c274dd343ce25..84eeaa84c62c4e197b9705e9763c24e7c709d4a8 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.core_1.1.0.v202308010229.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.core_1.1.0.v202308010229.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.doc.user_1.5.400.v201903222115.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.doc.user_1.5.400.v201903222115.jar" index b199020559e3c541e71089a63d89407d6e72167d..397d6ac54d813b526aae368599a99fe8a9a96f75 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.doc.user_1.5.400.v201903222115.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.doc.user_1.5.400.v201903222115.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.infopop_1.0.200.v201903050508.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.infopop_1.0.200.v201903050508.jar" index 69554672343bd72c6151e3e7b965efad71243d63..57bd69b6e02ad86877c7ebb28e21329063cd7a6f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.infopop_1.0.200.v201903050508.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env.infopop_1.0.200.v201903050508.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env_1.1.0.v202308010354.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env_1.1.0.v202308010354.jar" index 36ae9825f2b25817eb469f1e819c8cabad0bfb70..c17872986c85e393954d8bfc9d668c88c61291de 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env_1.1.0.v202308010354.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.command.env_1.1.0.v202308010354.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.core_1.4.100.v202103232321.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.core_1.4.100.v202103232321.jar" index 6fd383e14b1301c2f09108c0e80856d17e7d73ee..dbdc779f9093317f8f5578ce8ee387ab783bd17c 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.core_1.4.100.v202103232321.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.core_1.4.100.v202103232321.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.environment_1.1.0.v202308161955.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.environment_1.1.0.v202308161955.jar" index e9f43bca030f58c7456713f89a0c2c3920d71fb0..1d84f00506d0592ced4af501e1b1fb79af968173 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.environment_1.1.0.v202308161955.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.environment_1.1.0.v202308161955.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.infopop_1.0.301.v202307170218.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.infopop_1.0.301.v202307170218.jar" index 28ae3582b3d75d750ad7294528f59db9b9dad570..963713ef4c1c51e48499a29013f7de979f7a823c 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.infopop_1.0.301.v202307170218.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.infopop_1.0.301.v202307170218.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.uriresolver_1.4.0.v202308161955.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.uriresolver_1.4.0.v202308161955.jar" index f8313610a387c45028fd9171067a2f48c53b2d51..076b0dd89713b94caeb174612315ae7669bfd7c4 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.uriresolver_1.4.0.v202308161955.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.common.uriresolver_1.4.0.v202308161955.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtd.ui.infopop_1.0.400.v201903222120.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtd.ui.infopop_1.0.400.v201903222120.jar" index 1857d9bf5c54426679a6c04bffa8b38404643264..dccdb98217619dd59e7616b5d0ce0d1caf7e86f5 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtd.ui.infopop_1.0.400.v201903222120.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtd.ui.infopop_1.0.400.v201903222120.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtdeditor.doc.user_1.1.0.v201903222120.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtdeditor.doc.user_1.1.0.v201903222120.jar" index 9bfb85b551af24b7dd48e8af24ac97e492b1d5ce..51a16c782142b6057e0674ff5992d1d542f545fa 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtdeditor.doc.user_1.1.0.v201903222120.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.dtdeditor.doc.user_1.1.0.v201903222120.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.cache_1.1.0.v202011161431.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.cache_1.1.0.v202011161431.jar" index 98618bdb2dda185e213c9a58570225ecce4aa9c4..89298515e5cc08f9d60ecd245abc8f1ea65cf601 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.cache_1.1.0.v202011161431.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.cache_1.1.0.v202011161431.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.monitor.core_1.1.0.v202304050316.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.monitor.core_1.1.0.v202304050316.jar" index f3895b1afdf2716ecf618354428fa200ee2abe84..cc191a6c62093c53be9084e4dbd2ab0c47ee0c1f 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.monitor.core_1.1.0.v202304050316.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.internet.monitor.core_1.1.0.v202304050316.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.manipulation_1.1.0.v202307190318.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.manipulation_1.1.0.v202307190318.jar" index 6b901919d00b642b7d4c49060cbd5150a2237c4f..02511112d07abb2f243d96c874e664859d84a1b9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.manipulation_1.1.0.v202307190318.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.manipulation_1.1.0.v202307190318.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.web.support.jsp_1.1.200.v202210260359.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.web.support.jsp_1.1.200.v202210260359.jar" index 65a11a702078b6542f826e23e7cd7028a8dffb8e..0e967628b4c7c806c2d7a9773cb2c765d0b1074a 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.web.support.jsp_1.1.200.v202210260359.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.jsdt.web.support.jsp_1.1.200.v202210260359.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.core_1.0.400.v202007170127.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.core_1.0.400.v202007170127.jar" index 110531c724129eb3d74be6fa793ed4a7dc4c1165..01b21cab5cf79a734b35c21126b8192491d90144 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.core_1.0.400.v202007170127.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.core_1.0.400.v202007170127.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.ui_1.0.500.v202007170127.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.ui_1.0.500.v202007170127.jar" index f44cba2a3fe5642a7573b6a83bf1d8da3db1fccb..3b40855a7a14b2bb86e64c0f1dba2fc166eb29d8 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.ui_1.0.500.v202007170127.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.http.ui_1.0.500.v202007170127.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview.adapter_1.2.100.v202401292308.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview.adapter_1.2.100.v202401292308.jar" index ae511a1ab13ce4bb944754936cf60e89b3ea237c..9e31e606c0234f7d6d18ff1ab300208f2f12ee37 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview.adapter_1.2.100.v202401292308.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview.adapter_1.2.100.v202401292308.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview_1.3.0.v202311130434.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview_1.3.0.v202311130434.jar" index 7565fe840590a2c6eb694ffad17b21c8e03de7c9..9d2a252c78859f86f332130e8cbd93cc7f745dc4 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview_1.3.0.v202311130434.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.server.preview_1.3.0.v202311130434.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.sse.ui.infopop_1.0.300.v201903222120.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.sse.ui.infopop_1.0.300.v201903222120.jar" index 0b3095ce035465bc75cb713008280ddc9eee1daa..ca6898d06394efca0634db6eff7cd7dfcc9f2ba2 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.sse.ui.infopop_1.0.300.v201903222120.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.sse.ui.infopop_1.0.300.v201903222120.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.validation.infopop_1.0.300.v202007131715.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.validation.infopop_1.0.300.v202007131715.jar" index 52853197902103c5f2a588a5f8a7d2818805d9aa..b1d56b5fd1074997067465be55cf19d539fe9dec 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.validation.infopop_1.0.300.v202007131715.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.validation.infopop_1.0.300.v202007131715.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web.ui_1.2.500.v202308160453.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web.ui_1.2.500.v202308160453.jar" index 32753269ede0de197fa4e82fa85835cf615bb2a6..6c9ab4e560153c605bd4529f16bbfee404562bf2 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web.ui_1.2.500.v202308160453.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web.ui_1.2.500.v202308160453.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web_1.3.200.v202305221615.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web_1.3.200.v202305221615.jar" index 68b7f273200b9fc816690bd33d48fec6c341608a..0ad0eb7de4c25e1084e81e7b58c1fd4aeb215145 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web_1.3.200.v202305221615.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.web_1.3.200.v202305221615.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.infopop_1.0.400.v201903050508.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.infopop_1.0.400.v201903050508.jar" index b9252d4d9b0c96da1b883950d8f9eda955287f92..d3ad9aba42ced59a01d9a8fe77c192ad822dbce1 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.infopop_1.0.400.v201903050508.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.infopop_1.0.400.v201903050508.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.parser_1.1.0.v202308012257.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.parser_1.1.0.v202308012257.jar" index fc3658e88aa8a2744cd33bf8050b3b091d36018e..7b64281a77b941aa83611e54f520eb028edbbcc2 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.parser_1.1.0.v202308012257.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.parser_1.1.0.v202308012257.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy.ui_1.2.0.v202311232240.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy.ui_1.2.0.v202311232240.jar" index 5c5bf3a35dfc385b0cd55453b09d75c1113120ef..059459e30cb4854d01e334830850edbeb5d0cba9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy.ui_1.2.0.v202311232240.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy.ui_1.2.0.v202311232240.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy_1.1.0.v202308010229.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy_1.1.0.v202308010229.jar" index 69ed501ff2faf570cd454da029109a08abfca61b..b15eefb773db167a24df951a003dd4eecf632193 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy_1.1.0.v202308010229.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.service.policy_1.1.0.v202308010229.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.ui_1.2.1.v202308010145.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.ui_1.2.1.v202308010145.jar" index ad6cc58162d19c920c60943cba074562cc438a3f..e48e41b9b547d80fa7880504b337dbd352032cdc 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.ui_1.2.1.v202308010145.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.ws.ui_1.2.1.v202308010145.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsdl.ui.doc.user_1.0.850.v201903222115.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsdl.ui.doc.user_1.0.850.v201903222115.jar" index 0f4bd4c4b304e2a5de5858b378d25703a9c5a624..bdcf359c6132d33bb1826705b1ee2d0e21bd57c8 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsdl.ui.doc.user_1.0.850.v201903222115.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsdl.ui.doc.user_1.0.850.v201903222115.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui.doc.user_1.0.750.v201903222115.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui.doc.user_1.0.750.v201903222115.jar" index ac89cd1e75e3a072ae057c719c08eccbe5c93955..c8b5d291606d12a598e2578a0157aef7b480fdfd 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui.doc.user_1.0.750.v201903222115.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui.doc.user_1.0.750.v201903222115.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui_1.1.201.v202304050339.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui_1.1.201.v202304050339.jar" index 4ea7cd2d63e857038266ff89dd8084e9b6501e37..3d659a37623eae76bb0c9f10eb295c33929ca3fd 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui_1.1.201.v202304050339.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.wsi.ui_1.1.201.v202304050339.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.ui.infopop_1.0.400.v201903222120.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.ui.infopop_1.0.400.v201903222120.jar" index b24114447b6d6be1d83d36e5eff2381345d1b403..f19c39fa12e0de70c98986f6d565a376a98c0ca9 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.ui.infopop_1.0.400.v201903222120.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.ui.infopop_1.0.400.v201903222120.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.core_1.4.0.v202307260701.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.core_1.4.0.v202307260701.jar" index 533c80c3e50d2d4b21a48abcc4edfec9df57fd7a..a3a1923ac1bd544fed8d887e6385fb91a795e5d0 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.core_1.4.0.v202307260701.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.core_1.4.0.v202307260701.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.ui_1.2.100.v202404080234.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.ui_1.2.100.v202404080234.jar" index 2634c205c67d2c6e793c847a9a7117343d789b67..85f6f7295adcffc570eb8708960b98200f39a253 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.ui_1.2.100.v202404080234.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath.ui_1.2.100.v202404080234.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.processor.doc.user_2.1.100.v202307260822.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.processor.doc.user_2.1.100.v202307260822.jar" index 14bf750020bc22f9132a17376cda9a577863071d..c02dd89c8333fab221b31e8f459023b0eb934ced 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.processor.doc.user_2.1.100.v202307260822.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.processor.doc.user_2.1.100.v202307260822.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.wtptypes_2.1.0.v202307260701.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.wtptypes_2.1.0.v202307260701.jar" index 5a038e8c7a6e2e4818b57b0c6f82dd9d9265de8a..89623656d29e3fc96827422fe77a4fe6ab11ffba 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.wtptypes_2.1.0.v202307260701.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2.wtptypes_2.1.0.v202307260701.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2_1.1.0.v201901071922.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2_1.1.0.v201901071922.jar" index e41dec79886f5419f30805f43700dc6d123cf0bd..0c2ebecad741f417bbe7849202521890be43f924 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2_1.1.0.v201901071922.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xml.xpath2_1.1.0.v201901071922.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsd.core_1.2.101.v202307260543.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsd.core_1.2.101.v202307260543.jar" index b7411084e20b8cb2480bd2a12369f5a94c1e1214..3ac2797f683ddf6d7c8c53070ba564965d4bc765 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsd.core_1.2.101.v202307260543.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsd.core_1.2.101.v202307260543.jar" differ diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsl.exslt.core_1.1.0.v201901071922.jar" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsl.exslt.core_1.1.0.v201901071922.jar" index df396e492b80f200a9dabb245b6234a773d7508e..276554b5e82673b2f7b44d807d96fd78d7c862f1 100644 Binary files "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsl.exslt.core_1.1.0.v201901071922.jar" and "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wst.xsl.exslt.core_1.1.0.v201901071922.jar" differ