Beifengdo commited on
Commit
8b0bf81
·
verified ·
1 Parent(s): 85317db

Upload original JAVA语言程序设计 course files (part 24)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE +21 -3
  2. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md +425 -3
  3. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.d.ts +12 -3
  4. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js +76 -3
  5. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js.map +1 -3
  6. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.d.ts +7 -3
  7. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js +50 -3
  8. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js.map +1 -3
  9. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.d.ts +6 -3
  10. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js +17 -3
  11. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js.map +1 -3
  12. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.d.ts +8 -3
  13. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js +87 -3
  14. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js.map +1 -3
  15. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.d.ts +12 -3
  16. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js +38 -3
  17. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js.map +1 -3
  18. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.d.ts +17 -3
  19. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js +267 -3
  20. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js.map +1 -3
  21. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.d.ts +11 -3
  22. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js +61 -3
  23. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js.map +1 -3
  24. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.d.ts +3 -3
  25. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js +48 -3
  26. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js.map +1 -3
  27. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.d.ts +68 -3
  28. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js +1473 -3
  29. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js.map +1 -3
  30. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.d.ts +9 -3
  31. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js +52 -3
  32. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js.map +1 -3
  33. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.d.ts +4 -3
  34. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js +76 -3
  35. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js.map +1 -3
  36. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.d.ts +8 -3
  37. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js +58 -3
  38. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js.map +1 -3
  39. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.d.ts +15 -3
  40. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js +231 -3
  41. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js.map +1 -3
  42. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.d.ts +8 -3
  43. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js +42 -3
  44. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js.map +1 -3
  45. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.d.ts +4 -3
  46. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js +57 -3
  47. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js.map +1 -3
  48. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.d.ts +102 -3
  49. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js +585 -3
  50. Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js.map +1 -3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/LICENSE CHANGED
@@ -1,3 +1,21 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2a6ebc3c5b441f0aef19c5190d17f5bfc1ab4f729db49fabb2db7d10bd9a6146
3
- size 1081
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Red Hat Inc. and others.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/README.md CHANGED
@@ -1,3 +1,425 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ddeb0ccda8988d416fc83e6c3afb0b978dd0253247bc3a132f900b59877d9588
3
- size 14219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ![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)
2
+
3
+ # YAML Language Server
4
+
5
+ Supports JSON Schema 7 and below.
6
+ 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.
7
+
8
+ ## Features
9
+
10
+ 1. YAML validation:
11
+ - Detects whether the entire file is valid yaml
12
+ 2. Validation:
13
+ - Detects errors such as:
14
+ - Node is not found
15
+ - Node has an invalid key node type
16
+ - Node has an invalid type
17
+ - Node is not a valid child node
18
+ - Detects warnings such as:
19
+ - Node is an additional property of parent
20
+ 3. Auto completion:
21
+ - Auto completes on all commands
22
+ - Scalar nodes autocomplete to schema's defaults if they exist
23
+ 4. Hover support:
24
+ - Hovering over a node shows description _if available_
25
+ 5. Document outlining:
26
+ - Shows a complete document outline of all nodes in the document
27
+
28
+ ## Language Server Settings
29
+
30
+ The following settings are supported:
31
+
32
+ - `yaml.yamlVersion`: Set default YAML spec version (1.2 or 1.1)
33
+ - `yaml.format.enable`: Enable/disable default YAML formatter (requires restart)
34
+ - `yaml.format.singleQuote`: Use single quotes instead of double quotes
35
+ - `yaml.format.bracketSpacing`: Print spaces between brackets in objects
36
+ - `yaml.format.proseWrap`: Always: wrap prose if it exceeds the print width, Never: never wrap the prose, Preserve: wrap prose as-is
37
+ - `yaml.format.printWidth`: Specify the line length that the printer will wrap on
38
+ - `yaml.validate`: Enable/disable validation feature
39
+ - `yaml.hover`: Enable/disable hover
40
+ - `yaml.completion`: Enable/disable autocompletion
41
+ - `yaml.schemas`: Helps you associate schemas with files in a glob pattern
42
+ - `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/)
43
+ - `yaml.schemaStore.url`: URL of a schema store catalog to use when downloading schemas.
44
+ - `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).
45
+ - `yaml.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons).
46
+ - `[yaml].editor.tabSize`: the number of spaces to use when autocompleting. Takes priority over editor.tabSize.
47
+ - `editor.tabSize`: the number of spaces to use when autocompleting. Default is 2.
48
+ - `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.
49
+ - `http.proxyStrictSSL`: If true the proxy server certificate should be verified against the list of supplied CAs. Default is false.
50
+ - `[yaml].editor.formatOnType`: Enable/disable on type indent and auto formatting array
51
+ - `yaml.disableDefaultProperties`: Disable adding not required properties with default values into completion text
52
+ - `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.
53
+ - `yaml.style.flowMapping` : Forbids flow style mappings if set to `forbid`
54
+ - `yaml.style.flowSequence` : Forbids flow style sequences if set to `forbid`
55
+ - `yaml.keyOrdering` : Enforces alphabetical ordering of keys in mappings when set to `true`. Default is `false`
56
+
57
+ ##### Adding custom tags
58
+
59
+ 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:
60
+
61
+ ```YAML
62
+ "yaml.customTags": [
63
+ "!Scalar-example scalar",
64
+ "!Seq-example sequence",
65
+ "!Mapping-example mapping"
66
+ ]
67
+ ```
68
+
69
+ 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.
70
+
71
+ We can then use the newly defined custom tags inside our YAML file:
72
+
73
+ ```YAML
74
+ some_key: !Scalar-example some_value
75
+ some_sequence: !Seq-example
76
+ - some_seq_key_1: some_seq_value_1
77
+ - some_seq_key_2: some_seq_value_2
78
+ some_mapping: !Mapping-example
79
+ some_mapping_key_1: some_mapping_value_1
80
+ some_mapping_key_2: some_mapping_value_2
81
+ ```
82
+
83
+ ##### Associating a schema to a glob pattern via yaml.schemas:
84
+
85
+ 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.
86
+
87
+ For example:
88
+ If you have project structure
89
+
90
+ myProject
91
+
92
+    > myYamlFile.yaml
93
+
94
+ you can do
95
+
96
+ ```
97
+ yaml.schemas: {
98
+ "https://json.schemastore.org/composer": "/myYamlFile.yaml"
99
+ }
100
+ ```
101
+
102
+ and that will associate the composer schema with myYamlFile.yaml.
103
+
104
+ ## More examples of schema association:
105
+
106
+ ### Using yaml.schemas settings
107
+
108
+ #### Single root schema association:
109
+
110
+ When associating a schema it should follow the format below
111
+
112
+ ```json
113
+ yaml.schemas: {
114
+ "url": "globPattern",
115
+ "Kubernetes": "globPattern"
116
+ }
117
+ ```
118
+
119
+ e.g.
120
+
121
+ ```json
122
+ yaml.schemas: {
123
+ "https://json.schemastore.org/composer": "/*"
124
+ }
125
+ ```
126
+
127
+ e.g.
128
+
129
+ ```json
130
+ yaml.schemas: {
131
+ "kubernetes": "/myYamlFile.yaml"
132
+ }
133
+ ```
134
+
135
+ e.g.
136
+
137
+ ```json
138
+ yaml.schemas: {
139
+ "https://json.schemastore.org/composer": "/*",
140
+ "kubernetes": "/myYamlFile.yaml"
141
+ }
142
+ ```
143
+
144
+ On Windows with full path:
145
+
146
+ ```json
147
+ yaml.schemas: {
148
+ "C:\\Users\\user\\Documents\\custom_schema.json": "someFilePattern.yaml",
149
+ }
150
+ ```
151
+
152
+ On Mac/Linux with full path:
153
+
154
+ ```json
155
+ yaml.schemas: {
156
+ "/home/user/custom_schema.json": "someFilePattern.yaml",
157
+ }
158
+ ```
159
+
160
+ Since `0.11.0` YAML Schemas can be used for validation:
161
+
162
+ ```json
163
+ "/home/user/custom_schema.yaml": "someFilePattern.yaml"
164
+ ```
165
+
166
+ A schema can be associated with multiple globs using a json array, e.g.
167
+
168
+ ```json
169
+ yaml.schemas: {
170
+ "kubernetes": ["filePattern1.yaml", "filePattern2.yaml"]
171
+ }
172
+ ```
173
+
174
+ e.g.
175
+
176
+ ```json
177
+ "yaml.schemas": {
178
+ "http://json.schemastore.org/composer": ["/*"],
179
+ "file:///home/johnd/some-schema.json": ["some.yaml"],
180
+ "../relative/path/schema.json": ["/config*.yaml"],
181
+ "/Users/johnd/some-schema.json": ["some.yaml"],
182
+ }
183
+ ```
184
+
185
+ e.g.
186
+
187
+ ```json
188
+ "yaml.schemas": {
189
+ "kubernetes": ["/myYamlFile.yaml"]
190
+ }
191
+ ```
192
+
193
+ e.g.
194
+
195
+ ```json
196
+ "yaml.schemas": {
197
+ "http://json.schemastore.org/composer": ["/*"],
198
+ "kubernetes": ["/myYamlFile.yaml"]
199
+ }
200
+ ```
201
+
202
+ #### Multi root schema association:
203
+
204
+ You can also use relative paths when working with multi root workspaces.
205
+
206
+ Suppose you have a multi root workspace that is laid out like:
207
+
208
+ ```
209
+ My_first_project:
210
+ test.yaml
211
+ my_schema.json
212
+ My_second_project:
213
+ test2.yaml
214
+ my_schema2.json
215
+ ```
216
+
217
+ You must then associate schemas relative to the root of the multi root workspace project.
218
+
219
+ ```
220
+ yaml.schemas: {
221
+ "My_first_project/my_schema.json": "test.yaml",
222
+ "My_second_project/my_schema2.json": "test2.yaml"
223
+ }
224
+ ```
225
+
226
+ `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.
227
+
228
+ ### Nested Schema References
229
+
230
+ 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.:
231
+
232
+ ```
233
+ yaml.schemas: {
234
+ "https://json.schemastore.org/circleciconfig#/definitions/jobs/additionalProperties": "/src/jobs/*.yaml",
235
+ }
236
+ ```
237
+
238
+ > **Note**
239
+ > This will require reading your existing schema and understanding the schemastore structure a bit. (TODO: link to a documentation or blog post here?)
240
+
241
+ ### Using inlined schema
242
+
243
+ It is possible to specify a yaml schema using a modeline.
244
+
245
+ ```yaml
246
+ # yaml-language-server: $schema=<urlToTheSchema>
247
+ ```
248
+
249
+ Also it is possible to use relative path in a modeline:
250
+
251
+ ```yaml
252
+ # yaml-language-server: $schema=../relative/path/to/schema
253
+ ```
254
+
255
+ or absolute path:
256
+
257
+ ```yaml
258
+ # yaml-language-server: $schema=/absolute/path/to/schema
259
+ ```
260
+
261
+ ### Schema priority
262
+
263
+ The following is the priority of schema association in highest to lowest priority:
264
+ 1. Modeline
265
+ 2. CustomSchemaProvider API
266
+ 3. yaml.settings
267
+ 4. Schema association notification
268
+ 5. Schema Store
269
+
270
+ ## Containerized Language Server
271
+
272
+ An image is provided for users who would like to use the YAML language server without having to install dependencies locally.
273
+
274
+ The image is located at `quay.io/redhat-developer/yaml-language-server`
275
+
276
+ To run the image you can use:
277
+
278
+ ```
279
+ docker run -it quay.io/redhat-developer/yaml-language-server:latest
280
+ ```
281
+
282
+ ## Language Server Protocol version
283
+
284
+ `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)
285
+
286
+ ## Language Server Protocol extensions
287
+
288
+ ### SchemaSelectionRequests
289
+
290
+ #### SupportSchemaSelection Notification
291
+
292
+ The support schema selection notification is sent from a client to the server to inform server that client supports JSON Schema selection.
293
+
294
+ _Notification:_
295
+
296
+ - method: `'yaml/supportSchemaSelection'`
297
+ - params: `void`
298
+
299
+ #### SchemaStoreInitialized Notification
300
+
301
+ 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.
302
+
303
+ _Notification:_
304
+
305
+ - method: `'yaml/schema/store/initialized'`
306
+ - params: `void`
307
+
308
+ #### GetAllSchemas Request
309
+
310
+ The get all schemas request sent from a client to server to get all known schemas.
311
+
312
+ _Request:_
313
+
314
+ - method: `'yaml/get/all/jsonSchemas'`;
315
+ - params: the document uri, server will mark used schema for document
316
+
317
+ _Response:_
318
+
319
+ - result: `JSONSchemaDescriptionExt[]`
320
+
321
+ ```typescript
322
+ interface JSONSchemaDescriptionExt {
323
+ /**
324
+ * Schema URI
325
+ */
326
+ uri: string;
327
+ /**
328
+ * Schema name, from schema store
329
+ */
330
+ name?: string;
331
+ /**
332
+ * Schema description, from schema store
333
+ */
334
+ description?: string;
335
+ /**
336
+ * Is schema used for current document
337
+ */
338
+ usedForCurrentFile: boolean;
339
+ /**
340
+ * Is schema from schema store
341
+ */
342
+ fromStore: boolean;
343
+ }
344
+ ```
345
+
346
+ #### GetSchemas Request
347
+
348
+ 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.
349
+
350
+ _Request:_
351
+
352
+ - method: `'yaml/get/jsonSchema'`;
353
+ - params: the document uri to get used schemas
354
+
355
+ _Response:_
356
+
357
+ - result: `JSONSchemaDescription[]`
358
+
359
+ ```typescript
360
+ interface JSONSchemaDescriptionExt {
361
+ /**
362
+ * Schema URI
363
+ */
364
+ uri: string;
365
+ /**
366
+ * Schema name, from schema store
367
+ */
368
+ name?: string;
369
+ /**
370
+ * Schema description, from schema store
371
+ */
372
+ description?: string;
373
+ }
374
+ ```
375
+
376
+ ## Clients
377
+
378
+ This repository only contains the server implementation. Here are some known clients consuming this server:
379
+
380
+ - [Eclipse Che](https://www.eclipse.org/che/)
381
+ - [vscode-yaml](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) for VSCode
382
+ - [ide-yaml](https://atom.io/packages/ide-yaml) for Atom editor
383
+ - [coc-yaml](https://github.com/neoclide/coc-yaml) for [coc.nvim](https://github.com/neoclide/coc.nvim)
384
+ - [Eclipse Wild Web Developer](https://marketplace.eclipse.org/content/eclipse-wild-web-developer-web-development-eclipse-ide) for Eclipse IDE
385
+ - [lsp-mode](https://github.com/emacs-lsp/lsp-mode) for Emacs
386
+ - [vim-lsp](https://github.com/prabirshrestha/vim-lsp) for Vim
387
+ - [LSP-yaml](https://packagecontrol.io/packages/LSP-yaml) for Sublime Text
388
+ - [monaco-yaml](https://monaco-yaml.js.org) for Monaco editor
389
+ - [Vim-EasyComplete](https://github.com/jayli/vim-easycomplete) for Vim/NeoVim
390
+ - [nova-yaml](https://github.com/robb-j/nova-yaml/) for Nova
391
+
392
+ ## Developer Support
393
+
394
+ ### Getting started
395
+
396
+ 1. Install prerequisites:
397
+ - latest [Visual Studio Code](https://code.visualstudio.com/)
398
+ - [Node.js](https://nodejs.org/) v12.0.0 or higher
399
+ 2. Fork and clone this repository
400
+ 3. Install the dependencies
401
+ ```bash
402
+ cd yaml-language-server
403
+ $ yarn install
404
+ ```
405
+ 4. Build the language server
406
+ ```bash
407
+ $ yarn run build
408
+ ```
409
+ 5. The new built server is now located in ./out/server/src/server.js.
410
+ ```bash
411
+ node (Yaml Language Server Location)/out/server/src/server.js [--stdio]
412
+ ```
413
+
414
+ ### Connecting to the language server via stdio
415
+
416
+ 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.
417
+
418
+ ### ESM and UMD Modules
419
+
420
+ 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.
421
+
422
+ ### CI
423
+
424
+ 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.
425
+ You may use the `next` version to adopt the latest changes into your project.
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.d.ts CHANGED
@@ -1,3 +1,12 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c7aabf9da911da4a66d45285a4b889b4ea1a120d53d3916aab12349d5eab7bfc
3
- size 690
 
 
 
 
 
 
 
 
 
 
1
+ import { URI } from 'vscode-uri';
2
+ import { Connection, WorkspaceFolder } from 'vscode-languageserver';
3
+ import { WorkspaceContextService } from '../yamlLanguageService';
4
+ export interface FileSystem {
5
+ readFile(fsPath: string, encoding?: string): Promise<string>;
6
+ }
7
+ /**
8
+ * Handles schema content requests given the schema URI
9
+ * @param uri can be a local file, vscode request, http(s) request or a custom request
10
+ */
11
+ export declare const schemaRequestHandler: (connection: Connection, uri: string, workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, useVSCodeContentRequest: boolean, fs: FileSystem) => Promise<string>;
12
+ export declare const workspaceContext: WorkspaceContextService;
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js CHANGED
@@ -1,3 +1,76 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c5a6aab1fa3cfe2e03ee695edb6d596e04be9a94b78602ab68e45e80092962e2
3
- size 3874
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "vscode-uri", "request-light", "url", "../../requestTypes", "../utils/paths"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.workspaceContext = exports.schemaRequestHandler = void 0;
13
+ const vscode_uri_1 = require("vscode-uri");
14
+ const request_light_1 = require("request-light");
15
+ const URL = require("url");
16
+ const requestTypes_1 = require("../../requestTypes");
17
+ const paths_1 = require("../utils/paths");
18
+ /**
19
+ * Handles schema content requests given the schema URI
20
+ * @param uri can be a local file, vscode request, http(s) request or a custom request
21
+ */
22
+ const schemaRequestHandler = (connection, uri, workspaceFolders, workspaceRoot, useVSCodeContentRequest, fs) => {
23
+ if (!uri) {
24
+ return Promise.reject('No schema specified');
25
+ }
26
+ // If the requested schema URI is a relative file path
27
+ // Convert it into a proper absolute path URI
28
+ if ((0, paths_1.isRelativePath)(uri)) {
29
+ uri = (0, paths_1.relativeToAbsolutePath)(workspaceFolders, workspaceRoot, uri);
30
+ }
31
+ let scheme = vscode_uri_1.URI.parse(uri).scheme.toLowerCase();
32
+ // test if uri is windows path, ie starts with 'c:\'
33
+ if (/^[a-z]:[\\/]/i.test(uri)) {
34
+ const winUri = vscode_uri_1.URI.file(uri);
35
+ scheme = winUri.scheme.toLowerCase();
36
+ uri = winUri.toString();
37
+ }
38
+ // If the requested schema is a local file, read and return the file contents
39
+ if (scheme === 'file') {
40
+ const fsPath = vscode_uri_1.URI.parse(uri).fsPath;
41
+ return fs.readFile(fsPath, 'UTF-8').catch(() => {
42
+ // If there was an error reading the file, return empty error message
43
+ // Otherwise return the file contents as a string
44
+ return '';
45
+ });
46
+ }
47
+ // HTTP(S) requests are sent and the response result is either the schema content or an error
48
+ if (scheme === 'http' || scheme === 'https') {
49
+ // If we are running inside of VSCode we need to make a content request. This content request
50
+ // will make it so that schemas behind VPN's will resolve correctly
51
+ if (useVSCodeContentRequest) {
52
+ return connection.sendRequest(requestTypes_1.VSCodeContentRequest.type, uri).then((responseText) => {
53
+ return responseText;
54
+ }, (error) => {
55
+ return Promise.reject(error.message);
56
+ });
57
+ }
58
+ // Send the HTTP(S) schema content request and return the result
59
+ const headers = { 'Accept-Encoding': 'gzip, deflate' };
60
+ return (0, request_light_1.xhr)({ url: uri, followRedirects: 5, headers }).then((response) => {
61
+ return response.responseText;
62
+ }, (error) => {
63
+ return Promise.reject(error.responseText || (0, request_light_1.getErrorStatusDescription)(error.status) || error.toString());
64
+ });
65
+ }
66
+ // Neither local file nor vscode, nor HTTP(S) schema request, so send it off as a custom request
67
+ return connection.sendRequest(requestTypes_1.CustomSchemaContentRequest.type, uri);
68
+ };
69
+ exports.schemaRequestHandler = schemaRequestHandler;
70
+ exports.workspaceContext = {
71
+ resolveRelativePath: (relativePath, resource) => {
72
+ return URL.resolve(resource, relativePath);
73
+ },
74
+ };
75
+ });
76
+ //# sourceMappingURL=schemaRequestHandler.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/schemaRequestHandler.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bc3f0b944fa51323af077aa3215c3c58b35efc9bee62a8abeff04970dff5cb36
3
- size 2169
 
1
+ {"version":3,"file":"schemaRequestHandler.js","sourceRoot":"","sources":["../../../../src/languageservice/services/schemaRequestHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,2CAAiC;IAEjC,iDAA4E;IAC5E,2BAA2B;IAC3B,qDAAsF;IACtF,0CAAwE;IAOxE;;;OAGG;IACI,MAAM,oBAAoB,GAAG,CAClC,UAAsB,EACtB,GAAW,EACX,gBAAmC,EACnC,aAAkB,EAClB,uBAAgC,EAChC,EAAc,EACG,EAAE;QACnB,IAAI,CAAC,GAAG,EAAE;YACR,OAAO,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;SAC9C;QAED,sDAAsD;QACtD,6CAA6C;QAC7C,IAAI,IAAA,sBAAc,EAAC,GAAG,CAAC,EAAE;YACvB,GAAG,GAAG,IAAA,8BAAsB,EAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;SACpE;QAED,IAAI,MAAM,GAAG,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QAEjD,oDAAoD;QACpD,IAAI,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,MAAM,GAAG,gBAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC7B,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YACrC,GAAG,GAAG,MAAM,CAAC,QAAQ,EAAE,CAA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,OAAO,UAAU,CAAC,WAAW,CAAC,yCAA0B,CAAC,IAAI,EAAE,GAAG,CAAoB,CAAC;IACzF,CAAC,CAAC;IAnEW,QAAA,oBAAoB,wBAmE/B;IAEW,QAAA,gBAAgB,GAA4B;QACvD,mBAAmB,EAAE,CAAC,YAAoB,EAAE,QAAgB,EAAE,EAAE;YAC9D,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC7C,CAAC;KACF,CAAC"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.d.ts CHANGED
@@ -1,3 +1,7 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ce1d87ebcd7fbad99e3e8ffa718cf3d00c325e9868f97fd4fa283f06429d6d58
3
- size 396
 
 
 
 
 
1
+ import { TextDocument } from 'vscode-languageserver-textdocument';
2
+ import { Diagnostic } from 'vscode-languageserver-types';
3
+ import { SingleYAMLDocument } from '../../parser/yaml-documents';
4
+ import { AdditionalValidator } from './types';
5
+ export declare class MapKeyOrderValidator implements AdditionalValidator {
6
+ validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];
7
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js CHANGED
@@ -1,3 +1,50 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cff82aae5d109e46cfb4206164ea64ad15ce313431e8ca5218e3d802dd941e1d
3
- size 2540
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports", "vscode-languageserver-types", "yaml"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MapKeyOrderValidator = void 0;
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const yaml_1 = require("yaml");
19
+ class MapKeyOrderValidator {
20
+ validate(document, yamlDoc) {
21
+ const result = [];
22
+ (0, yaml_1.visit)(yamlDoc.internalDocument, (key, node) => {
23
+ if ((0, yaml_1.isMap)(node)) {
24
+ for (let i = 1; i < node.items.length; i++) {
25
+ if (compare(node.items[i - 1], node.items[i]) > 0) {
26
+ const range = createRange(document, node.items[i - 1]);
27
+ 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'));
28
+ }
29
+ }
30
+ }
31
+ });
32
+ return result;
33
+ }
34
+ }
35
+ exports.MapKeyOrderValidator = MapKeyOrderValidator;
36
+ function createRange(document, node) {
37
+ const start = node?.srcToken.start[0]?.offset ?? node?.srcToken?.key.offset ?? node?.srcToken?.sep[0]?.offset;
38
+ const end = node?.srcToken?.value.offset ||
39
+ node?.srcToken?.sep[0]?.offset ||
40
+ node?.srcToken?.key.offset ||
41
+ node?.srcToken.start[node.srcToken.start.length - 1]?.offset;
42
+ return vscode_languageserver_types_1.Range.create(document.positionAt(start), document.positionAt(end));
43
+ }
44
+ function compare(thiz, that) {
45
+ const thatKey = String(that.key);
46
+ const thisKey = String(thiz.key);
47
+ return thisKey.localeCompare(thatKey);
48
+ }
49
+ });
50
+ //# sourceMappingURL=map-key-order.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/map-key-order.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8adab1de77125ef8a7b1ea79b97c83296149b26d3c7cc33c2458bdd0827d122c
3
- size 1753
 
1
+ {"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"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.d.ts CHANGED
@@ -1,3 +1,6 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:adfb4c2329933ce089fa240ffd835dbd4d931092fa8d2916803dbc7e8e85908f
3
- size 313
 
 
 
 
1
+ import { TextDocument } from 'vscode-languageserver-textdocument';
2
+ import { Diagnostic } from 'vscode-languageserver-types';
3
+ import { SingleYAMLDocument } from '../../parser/yaml-documents';
4
+ export interface AdditionalValidator {
5
+ validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];
6
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js CHANGED
@@ -1,3 +1,17 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:495882da59d85165cae57c46f373e1f6ad655a3e6f45dd65af47d685e3a47399
3
- size 803
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ });
17
+ //# sourceMappingURL=types.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/types.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d2d4892fc7aef86876a5d67103a9147b6adb562832028479efd6c3db7e66b360
3
- size 163
 
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/validation/types.ts"],"names":[],"mappings":"AAAA;;;gGAGgG"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9f103199fc4a5109450ad9f5736c3b570808df078d71a898c180589beca4681f
3
- size 425
 
 
 
 
 
 
1
+ import { TextDocument } from 'vscode-languageserver-textdocument';
2
+ import { Diagnostic } from 'vscode-languageserver-types';
3
+ import { SingleYAMLDocument } from '../../parser/yaml-documents';
4
+ import { AdditionalValidator } from './types';
5
+ export declare class UnusedAnchorsValidator implements AdditionalValidator {
6
+ validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];
7
+ private getAnchorNode;
8
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js CHANGED
@@ -1,3 +1,87 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eab14bcdf94c54d3171d28563e3744464d5b79d31dbe7ddbc72228e7c5b9b5ca
3
- size 3993
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports", "vscode-languageserver-types", "yaml", "../../../languageservice/utils/astUtils"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UnusedAnchorsValidator = void 0;
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const yaml_1 = require("yaml");
19
+ const astUtils_1 = require("../../../languageservice/utils/astUtils");
20
+ class UnusedAnchorsValidator {
21
+ validate(document, yamlDoc) {
22
+ const result = [];
23
+ const anchors = new Set();
24
+ const usedAnchors = new Set();
25
+ const anchorParent = new Map();
26
+ (0, yaml_1.visit)(yamlDoc.internalDocument, (key, node, path) => {
27
+ if (!(0, yaml_1.isNode)(node)) {
28
+ return;
29
+ }
30
+ if (((0, yaml_1.isCollection)(node) || (0, yaml_1.isScalar)(node)) && node.anchor) {
31
+ anchors.add(node);
32
+ anchorParent.set(node, path[path.length - 1]);
33
+ }
34
+ if ((0, yaml_1.isAlias)(node)) {
35
+ usedAnchors.add(node.resolve(yamlDoc.internalDocument));
36
+ }
37
+ });
38
+ for (const anchor of anchors) {
39
+ if (!usedAnchors.has(anchor)) {
40
+ const aToken = this.getAnchorNode(anchorParent.get(anchor), anchor);
41
+ if (aToken) {
42
+ const range = vscode_languageserver_types_1.Range.create(document.positionAt(aToken.offset), document.positionAt(aToken.offset + aToken.source.length));
43
+ const warningDiagnostic = vscode_languageserver_types_1.Diagnostic.create(range, `Unused anchor "${aToken.source}"`, vscode_languageserver_types_1.DiagnosticSeverity.Hint, 0);
44
+ warningDiagnostic.tags = [vscode_languageserver_types_1.DiagnosticTag.Unnecessary];
45
+ result.push(warningDiagnostic);
46
+ }
47
+ }
48
+ }
49
+ return result;
50
+ }
51
+ getAnchorNode(parentNode, node) {
52
+ if (parentNode && parentNode.srcToken) {
53
+ const token = parentNode.srcToken;
54
+ if ((0, astUtils_1.isCollectionItem)(token)) {
55
+ return getAnchorFromCollectionItem(token);
56
+ }
57
+ else if (yaml_1.CST.isCollection(token)) {
58
+ for (const t of token.items) {
59
+ if (node.srcToken !== t.value)
60
+ continue;
61
+ const anchor = getAnchorFromCollectionItem(t);
62
+ if (anchor) {
63
+ return anchor;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ return undefined;
69
+ }
70
+ }
71
+ exports.UnusedAnchorsValidator = UnusedAnchorsValidator;
72
+ function getAnchorFromCollectionItem(token) {
73
+ for (const t of token.start) {
74
+ if (t.type === 'anchor') {
75
+ return t;
76
+ }
77
+ }
78
+ if (token.sep && Array.isArray(token.sep)) {
79
+ for (const t of token.sep) {
80
+ if (t.type === 'anchor') {
81
+ return t;
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ //# sourceMappingURL=unused-anchors.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/unused-anchors.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2e5891181b26908f3426bd1162be2163676d55304fdc20997a7d501ce4eebaf4
3
- size 2496
 
1
+ {"version":3,"file":"unused-anchors.js","sourceRoot":"","sources":["../../../../../src/languageservice/services/validation/unused-anchors.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EAAmG;IACnG,+BAAiH;IAIjH,sEAA2E;IAE3E,MAAa,sBAAsB;QACjC,QAAQ,CAAC,QAAsB,EAAE,OAA2B;YAC1D,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,MAAM,OAAO,GAAG,IAAI,GAAG,EAA8B,CAAC;YACtD,MAAM,WAAW,GAAG,IAAI,GAAG,EAAQ,CAAC;YACpC,MAAM,YAAY,GAAG,IAAI,GAAG,EAA2C,CAAC;YAExE,IAAA,YAAK,EAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE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CAAC,CAAC;qBAChC;iBACF;aACF;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;QACO,aAAa,CAAC,UAAoB,EAAE,IAAU;YACpD,IAAI,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE;gBACrC,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC;gBAClC,IAAI,IAAA,2BAAgB,EAAC,KAAK,CAAC,EAAE;oBAC3B,OAAO,2BAA2B,CAAC,KAAK,CAAC,CAAC;iBAC3C;qBAAM,IAAI,UAAG,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;oBAClC,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE;wBAC3B,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,KAAK;4BAAE,SAAS;wBACxC,MAAM,MAAM,GAAG,2BAA2B,CAAC,CAAC,CAAC,CAAC;wBAC9C,IAAI,MAAM,EAAE;4BACV,OAAO,MAAM,CAAC;yBACf;qBACF;iBACF;aACF;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;KACF;IAtDD,wDAsDC;IACD,SAAS,2BAA2B,CAAC,KAAyB;QAC5D,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE;YAC3B,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACvB,OAAO,CAAC,CAAC;aACV;SACF;QACD,IAAI,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACzC,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE;gBACzB,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;oBACvB,OAAO,CAAC,CAAC;iBACV;aACF;SACF;IACH,CAAC"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.d.ts CHANGED
@@ -1,3 +1,12 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1c26eb06263c94d9f14dd962eb587b65a20b7d932100dc7e9be61d5689e4f3e3
3
- size 580
 
 
 
 
 
 
 
 
 
 
1
+ import { TextDocument } from 'vscode-languageserver-textdocument';
2
+ import { Diagnostic } from 'vscode-languageserver-types';
3
+ import { SingleYAMLDocument } from '../../parser/yaml-documents';
4
+ import { LanguageSettings } from '../../yamlLanguageService';
5
+ import { AdditionalValidator } from './types';
6
+ export declare class YAMLStyleValidator implements AdditionalValidator {
7
+ private forbidSequence;
8
+ private forbidMapping;
9
+ constructor(settings: LanguageSettings);
10
+ validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];
11
+ private getRangeOf;
12
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js CHANGED
@@ -1,3 +1,38 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b1893e9ad4d7f23f971b1219a938e4f2a26fd1eab6a6774575d6e05cbc7a0f45
3
- size 2045
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "vscode-languageserver-types", "yaml"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.YAMLStyleValidator = void 0;
13
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
14
+ const yaml_1 = require("yaml");
15
+ class YAMLStyleValidator {
16
+ constructor(settings) {
17
+ this.forbidMapping = settings.flowMapping === 'forbid';
18
+ this.forbidSequence = settings.flowSequence === 'forbid';
19
+ }
20
+ validate(document, yamlDoc) {
21
+ const result = [];
22
+ (0, yaml_1.visit)(yamlDoc.internalDocument, (key, node) => {
23
+ if (this.forbidMapping && (0, yaml_1.isMap)(node) && node.srcToken?.type === 'flow-collection') {
24
+ 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'));
25
+ }
26
+ if (this.forbidSequence && (0, yaml_1.isSeq)(node) && node.srcToken?.type === 'flow-collection') {
27
+ 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'));
28
+ }
29
+ });
30
+ return result;
31
+ }
32
+ getRangeOf(document, node) {
33
+ return vscode_languageserver_types_1.Range.create(document.positionAt(node.start.offset), document.positionAt(node.end.pop().offset));
34
+ }
35
+ }
36
+ exports.YAMLStyleValidator = YAMLStyleValidator;
37
+ });
38
+ //# sourceMappingURL=yaml-style.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/validation/yaml-style.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1e2b523df73aa3294704f6749a7e490a4c1800215a7abb5d81e0e2be9bce4042
3
- size 1303
 
1
+ {"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,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eveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.d.ts CHANGED
@@ -1,3 +1,17 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:61a372286547924eddb7e0bf98b0c98b2e28b5d81e86b5b1f7b2cccfb3c5c666
3
- size 803
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { TextDocument } from 'vscode-languageserver-textdocument';
2
+ import { CodeAction } from 'vscode-languageserver-types';
3
+ import { ClientCapabilities, CodeActionParams } from 'vscode-languageserver-protocol';
4
+ import { LanguageSettings } from '../yamlLanguageService';
5
+ export declare class YamlCodeActions {
6
+ private readonly clientCapabilities;
7
+ private indentation;
8
+ constructor(clientCapabilities: ClientCapabilities);
9
+ configure(settings: LanguageSettings): void;
10
+ getCodeAction(document: TextDocument, params: CodeActionParams): CodeAction[] | undefined;
11
+ private getJumpToSchemaActions;
12
+ private getTabToSpaceConverting;
13
+ private getUnusedAnchorsDelete;
14
+ private getConvertToBooleanActions;
15
+ private getConvertToBlockStyleActions;
16
+ private getKeyOrderActions;
17
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js CHANGED
@@ -1,3 +1,267 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fa58144978285cc29063278522953cebb09be8be697bbe965e7d9cc66fbb26b5
3
- size 16011
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat, Inc. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ 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);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.YamlCodeActions = void 0;
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const commands_1 = require("../../commands");
19
+ const path = require("path");
20
+ const textBuffer_1 = require("../utils/textBuffer");
21
+ const jsonParser07_1 = require("../parser/jsonParser07");
22
+ const strings_1 = require("../utils/strings");
23
+ const arrUtils_1 = require("../utils/arrUtils");
24
+ const yaml_1 = require("yaml");
25
+ const yaml_documents_1 = require("../parser/yaml-documents");
26
+ const flow_style_rewriter_1 = require("../utils/flow-style-rewriter");
27
+ const _ = require("lodash");
28
+ class YamlCodeActions {
29
+ constructor(clientCapabilities) {
30
+ this.clientCapabilities = clientCapabilities;
31
+ this.indentation = ' ';
32
+ }
33
+ configure(settings) {
34
+ this.indentation = settings.indentation;
35
+ }
36
+ getCodeAction(document, params) {
37
+ if (!params.context.diagnostics) {
38
+ return;
39
+ }
40
+ const result = [];
41
+ result.push(...this.getConvertToBooleanActions(params.context.diagnostics, document));
42
+ result.push(...this.getJumpToSchemaActions(params.context.diagnostics));
43
+ result.push(...this.getTabToSpaceConverting(params.context.diagnostics, document));
44
+ result.push(...this.getUnusedAnchorsDelete(params.context.diagnostics, document));
45
+ result.push(...this.getConvertToBlockStyleActions(params.context.diagnostics, document));
46
+ result.push(...this.getKeyOrderActions(params.context.diagnostics, document));
47
+ return result;
48
+ }
49
+ getJumpToSchemaActions(diagnostics) {
50
+ const isOpenTextDocumentEnabled = this.clientCapabilities?.window?.showDocument?.support ?? false;
51
+ if (!isOpenTextDocumentEnabled) {
52
+ return [];
53
+ }
54
+ const schemaUriToDiagnostic = new Map();
55
+ for (const diagnostic of diagnostics) {
56
+ const schemaUri = diagnostic.data?.schemaUri || [];
57
+ for (const schemaUriStr of schemaUri) {
58
+ if (schemaUriStr) {
59
+ if (!schemaUriToDiagnostic.has(schemaUriStr)) {
60
+ schemaUriToDiagnostic.set(schemaUriStr, []);
61
+ }
62
+ schemaUriToDiagnostic.get(schemaUriStr).push(diagnostic);
63
+ }
64
+ }
65
+ }
66
+ const result = [];
67
+ for (const schemaUri of schemaUriToDiagnostic.keys()) {
68
+ 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));
69
+ action.diagnostics = schemaUriToDiagnostic.get(schemaUri);
70
+ result.push(action);
71
+ }
72
+ return result;
73
+ }
74
+ getTabToSpaceConverting(diagnostics, document) {
75
+ const result = [];
76
+ const textBuff = new textBuffer_1.TextBuffer(document);
77
+ const processedLine = [];
78
+ for (const diag of diagnostics) {
79
+ if (diag.message === 'Using tabs can lead to unpredictable results') {
80
+ if (processedLine.includes(diag.range.start.line)) {
81
+ continue;
82
+ }
83
+ const lineContent = textBuff.getLineContent(diag.range.start.line);
84
+ let replacedTabs = 0;
85
+ let newText = '';
86
+ for (let i = diag.range.start.character; i <= diag.range.end.character; i++) {
87
+ const char = lineContent.charAt(i);
88
+ if (char !== '\t') {
89
+ break;
90
+ }
91
+ replacedTabs++;
92
+ newText += this.indentation;
93
+ }
94
+ processedLine.push(diag.range.start.line);
95
+ let resultRange = diag.range;
96
+ if (replacedTabs !== diag.range.end.character - diag.range.start.character) {
97
+ 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));
98
+ }
99
+ 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));
100
+ }
101
+ }
102
+ if (result.length !== 0) {
103
+ const replaceEdits = [];
104
+ for (let i = 0; i <= textBuff.getLineCount(); i++) {
105
+ const lineContent = textBuff.getLineContent(i);
106
+ let replacedTabs = 0;
107
+ let newText = '';
108
+ for (let j = 0; j < lineContent.length; j++) {
109
+ const char = lineContent.charAt(j);
110
+ if (char !== ' ' && char !== '\t') {
111
+ if (replacedTabs !== 0) {
112
+ replaceEdits.push(vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(i, j - replacedTabs, i, j), newText));
113
+ replacedTabs = 0;
114
+ newText = '';
115
+ }
116
+ break;
117
+ }
118
+ if (char === ' ' && replacedTabs !== 0) {
119
+ replaceEdits.push(vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(i, j - replacedTabs, i, j), newText));
120
+ replacedTabs = 0;
121
+ newText = '';
122
+ continue;
123
+ }
124
+ if (char === '\t') {
125
+ newText += this.indentation;
126
+ replacedTabs++;
127
+ }
128
+ }
129
+ // line contains only tabs
130
+ if (replacedTabs !== 0) {
131
+ replaceEdits.push(vscode_languageserver_types_1.TextEdit.replace(vscode_languageserver_types_1.Range.create(i, 0, i, textBuff.getLineLength(i)), newText));
132
+ }
133
+ }
134
+ if (replaceEdits.length > 0) {
135
+ result.push(vscode_languageserver_types_1.CodeAction.create('Convert all Tabs to Spaces', createWorkspaceEdit(document.uri, replaceEdits), vscode_languageserver_types_1.CodeActionKind.QuickFix));
136
+ }
137
+ }
138
+ return result;
139
+ }
140
+ getUnusedAnchorsDelete(diagnostics, document) {
141
+ const result = [];
142
+ const buffer = new textBuffer_1.TextBuffer(document);
143
+ for (const diag of diagnostics) {
144
+ if (diag.message.startsWith('Unused anchor') && diag.source === jsonParser07_1.YAML_SOURCE) {
145
+ const range = vscode_languageserver_types_1.Range.create(diag.range.start, diag.range.end);
146
+ const actual = buffer.getText(range);
147
+ const lineContent = buffer.getLineContent(range.end.line);
148
+ const lastWhitespaceChar = (0, strings_1.getFirstNonWhitespaceCharacterAfterOffset)(lineContent, range.end.character);
149
+ range.end.character = lastWhitespaceChar;
150
+ 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);
151
+ action.diagnostics = [diag];
152
+ result.push(action);
153
+ }
154
+ }
155
+ return result;
156
+ }
157
+ getConvertToBooleanActions(diagnostics, document) {
158
+ const results = [];
159
+ for (const diagnostic of diagnostics) {
160
+ if (diagnostic.message === 'Incorrect type. Expected "boolean".') {
161
+ const value = document.getText(diagnostic.range).toLocaleLowerCase();
162
+ if (value === '"true"' || value === '"false"' || value === "'true'" || value === "'false'") {
163
+ const newValue = value.includes('true') ? 'true' : 'false';
164
+ 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));
165
+ }
166
+ }
167
+ }
168
+ return results;
169
+ }
170
+ getConvertToBlockStyleActions(diagnostics, document) {
171
+ const results = [];
172
+ for (const diagnostic of diagnostics) {
173
+ if (diagnostic.code === 'flowMap' || diagnostic.code === 'flowSeq') {
174
+ const node = getNodeforDiagnostic(document, diagnostic);
175
+ if ((0, yaml_1.isMap)(node.internalNode) || (0, yaml_1.isSeq)(node.internalNode)) {
176
+ const blockTypeDescription = (0, yaml_1.isMap)(node.internalNode) ? 'map' : 'sequence';
177
+ const rewriter = new flow_style_rewriter_1.FlowStyleRewriter(this.indentation);
178
+ 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));
179
+ }
180
+ }
181
+ }
182
+ return results;
183
+ }
184
+ getKeyOrderActions(diagnostics, document) {
185
+ const results = [];
186
+ for (const diagnostic of diagnostics) {
187
+ if (diagnostic?.code === 'mapKeyOrder') {
188
+ let node = getNodeforDiagnostic(document, diagnostic);
189
+ while (node && node.type !== 'object') {
190
+ node = node.parent;
191
+ }
192
+ if (node && (0, yaml_1.isMap)(node.internalNode)) {
193
+ const sorted = _.cloneDeep(node.internalNode);
194
+ if ((sorted.srcToken.type === 'block-map' || sorted.srcToken.type === 'flow-collection') &&
195
+ (node.internalNode.srcToken.type === 'block-map' || node.internalNode.srcToken.type === 'flow-collection')) {
196
+ sorted.srcToken.items.sort((a, b) => {
197
+ if (a.key && b.key && yaml_1.CST.isScalar(a.key) && yaml_1.CST.isScalar(b.key)) {
198
+ return a.key.source.localeCompare(b.key.source);
199
+ }
200
+ if (!a.key && b.key) {
201
+ return -1;
202
+ }
203
+ if (a.key && !b.key) {
204
+ return 1;
205
+ }
206
+ if (!a.key && !b.key) {
207
+ return 0;
208
+ }
209
+ });
210
+ for (let i = 0; i < sorted.srcToken.items.length; i++) {
211
+ const item = sorted.srcToken.items[i];
212
+ const uItem = node.internalNode.srcToken.items[i];
213
+ item.start = uItem.start;
214
+ if (item.value?.type === 'alias' ||
215
+ item.value?.type === 'scalar' ||
216
+ item.value?.type === 'single-quoted-scalar' ||
217
+ item.value?.type === 'double-quoted-scalar') {
218
+ const newLineIndex = item.value?.end?.findIndex((p) => p.type === 'newline') ?? -1;
219
+ let newLineToken = null;
220
+ if (uItem.value?.type === 'block-scalar') {
221
+ newLineToken = uItem.value?.props?.find((p) => p.type === 'newline');
222
+ }
223
+ else if (yaml_1.CST.isScalar(uItem.value)) {
224
+ newLineToken = uItem.value?.end?.find((p) => p.type === 'newline');
225
+ }
226
+ if (newLineToken && newLineIndex < 0) {
227
+ item.value.end = item.value.end ?? [];
228
+ item.value.end.push(newLineToken);
229
+ }
230
+ if (!newLineToken && newLineIndex > -1) {
231
+ item.value.end.splice(newLineIndex, 1);
232
+ }
233
+ }
234
+ else if (item.value?.type === 'block-scalar') {
235
+ const nwline = item.value.props.find((p) => p.type === 'newline');
236
+ if (!nwline) {
237
+ item.value.props.push({ type: 'newline', indent: 0, offset: item.value.offset, source: '\n' });
238
+ }
239
+ }
240
+ }
241
+ }
242
+ const replaceRange = vscode_languageserver_types_1.Range.create(document.positionAt(node.offset), document.positionAt(node.offset + node.length));
243
+ 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));
244
+ }
245
+ }
246
+ }
247
+ return results;
248
+ }
249
+ }
250
+ exports.YamlCodeActions = YamlCodeActions;
251
+ function getNodeforDiagnostic(document, diagnostic) {
252
+ const yamlDocuments = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);
253
+ const startOffset = document.offsetAt(diagnostic.range.start);
254
+ const yamlDoc = (0, arrUtils_1.matchOffsetToDocument)(startOffset, yamlDocuments);
255
+ const node = yamlDoc.getNodeFromOffset(startOffset);
256
+ return node;
257
+ }
258
+ function createWorkspaceEdit(uri, edits) {
259
+ const changes = {};
260
+ changes[uri] = edits;
261
+ const edit = {
262
+ changes,
263
+ };
264
+ return edit;
265
+ }
266
+ });
267
+ //# sourceMappingURL=yamlCodeActions.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeActions.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:73eea91d075c03c2ec585c42670e1c475a2d1c0046efea2e301dbf37710c79b9
3
- size 11419
 
1
+ {"version":3,"file":"yamlCodeActions.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlCodeActions.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EASqC;IAErC,6CAA8C;IAC9C,6BAA6B;IAC7B,oDAAiD;IAEjD,yDAAqD;IACrD,8CAA6E;IAC7E,gDAA0D;IAC1D,+BAAkD;IAClD,6DAA8D;IAC9D,sEAAiE;IAEjE,4BAA4B;IAM5B,MAAa,eAAe;QAG1B,YAA6B,kBAAsC;YAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;YAF3D,gBAAW,GAAG,IAAI,CAAC;QAE2C,CAAC;QAEvE,SAAS,CAAC,QAA0B;YAClC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QAC1C,CAAC;QAED,aAAa,CAAC,QAAsB,EAAE,MAAwB;YAC5D,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE;gBAC/B,OAAO;aACR;YAED,MAAM,MAAM,GAAG,EAAE,CAAC;YAElB,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;YACtF,MAAM,CAA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W,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"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.d.ts CHANGED
@@ -1,3 +1,11 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c431b36e8d0e3d0aebcd059f96bd89f14c784ce1d783b86cc057d5b3702c5d17
3
- size 525
 
 
 
 
 
 
 
 
 
1
+ import { TextDocument } from 'vscode-languageserver-textdocument';
2
+ import { CodeLens } from 'vscode-languageserver-types';
3
+ import { YAMLSchemaService } from './yamlSchemaService';
4
+ import { Telemetry } from '../telemetry';
5
+ export declare class YamlCodeLens {
6
+ private schemaService;
7
+ private readonly telemetry?;
8
+ constructor(schemaService: YAMLSchemaService, telemetry?: Telemetry);
9
+ getCodeLens(document: TextDocument): Promise<CodeLens[]>;
10
+ resolveCodeLens(param: CodeLens): Thenable<CodeLens> | CodeLens;
11
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js CHANGED
@@ -1,3 +1,61 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:478e7a23daf2d2b1468e22dfaafa67dae364a8fb7d95aea55f1022d89c6b9416
3
- size 3081
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat, Inc. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports", "vscode-languageserver-types", "../../commands", "../parser/yaml-documents", "../utils/schemaUrls", "../utils/objects", "../utils/schemaUtils"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.YamlCodeLens = void 0;
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const commands_1 = require("../../commands");
19
+ const yaml_documents_1 = require("../parser/yaml-documents");
20
+ const schemaUrls_1 = require("../utils/schemaUrls");
21
+ const objects_1 = require("../utils/objects");
22
+ const schemaUtils_1 = require("../utils/schemaUtils");
23
+ class YamlCodeLens {
24
+ constructor(schemaService, telemetry) {
25
+ this.schemaService = schemaService;
26
+ this.telemetry = telemetry;
27
+ }
28
+ async getCodeLens(document) {
29
+ const result = [];
30
+ try {
31
+ const yamlDocument = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);
32
+ let schemaUrls = new Map();
33
+ for (const currentYAMLDoc of yamlDocument.documents) {
34
+ const schema = await this.schemaService.getSchemaForResource(document.uri, currentYAMLDoc);
35
+ if (schema?.schema) {
36
+ // merge schemas from all docs to avoid duplicates
37
+ schemaUrls = new Map([...(0, schemaUrls_1.getSchemaUrls)(schema?.schema), ...schemaUrls]);
38
+ }
39
+ }
40
+ for (const urlToSchema of schemaUrls) {
41
+ const lens = vscode_languageserver_types_1.CodeLens.create(vscode_languageserver_types_1.Range.create(0, 0, 0, 0));
42
+ lens.command = {
43
+ title: (0, schemaUtils_1.getSchemaTitle)(urlToSchema[1], urlToSchema[0]),
44
+ command: commands_1.YamlCommands.JUMP_TO_SCHEMA,
45
+ arguments: [urlToSchema[0]],
46
+ };
47
+ result.push(lens);
48
+ }
49
+ }
50
+ catch (err) {
51
+ this.telemetry?.sendError('yaml.codeLens.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });
52
+ }
53
+ return result;
54
+ }
55
+ resolveCodeLens(param) {
56
+ return param;
57
+ }
58
+ }
59
+ exports.YamlCodeLens = YamlCodeLens;
60
+ });
61
+ //# sourceMappingURL=yamlCodeLens.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCodeLens.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6df5ec5e6c7f72e40632c441981311dcf0c6f7645aac438e049365cb5560e7b7
3
- size 1481
 
1
+ {"version":3,"file":"yamlCodeLens.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlCodeLens.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;;;;IAGhG,6EAA8D;IAC9D,6CAA8C;IAC9C,6DAA8D;IAI9D,oDAAoD;IACpD,8CAA8D;IAC9D,sDAAsD;IAEtD,MAAa,YAAY;QACvB,YAAoB,aAAgC,EAAmB,SAAqB;YAAxE,kBAAa,GAAb,aAAa,CAAmB;YAAmB,cAAS,GAAT,SAAS,CAAY;QAAG,CAAC;QAEhG,KAAK,CAAC,WAAW,CAAC,QAAsB;YACtC,MAAM,MAAM,GAAG,EAAE,CAAC;YAClB,IAAI;gBACF,MAAM,YAAY,GAAG,mCAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;gBAClE,IAAI,UAAU,GAAG,IAAI,GAAG,EAAsB,CA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ageservice/services/yamlCommands.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:79d354ef41d18e7c3eeac8f1a8c214f2f3f70659e926f7f79c9e23220c47794e
3
- size 230
 
1
+ import { Connection } from 'vscode-languageserver';
2
+ import { CommandExecutor } from '../../languageserver/commandExecutor';
3
+ export declare function registerCommands(commandExecutor: CommandExecutor, connection: Connection): void;
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js CHANGED
@@ -1,3 +1,48 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2480b9f928af761ad98f0b16c75cbc2028723d5492ca09f7e5bb1c5a22e9a979
3
- size 2303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat, Inc. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports", "../../commands", "vscode-uri"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.registerCommands = void 0;
17
+ const commands_1 = require("../../commands");
18
+ const vscode_uri_1 = require("vscode-uri");
19
+ function registerCommands(commandExecutor, connection) {
20
+ commandExecutor.registerCommand(commands_1.YamlCommands.JUMP_TO_SCHEMA, async (uri) => {
21
+ if (!uri) {
22
+ return;
23
+ }
24
+ // if uri points to local file of its a windows path
25
+ if (!uri.startsWith('file') && !/^[a-z]:[\\/]/i.test(uri)) {
26
+ const origUri = vscode_uri_1.URI.parse(uri);
27
+ const customUri = vscode_uri_1.URI.from({
28
+ scheme: 'json-schema',
29
+ authority: origUri.authority,
30
+ path: origUri.path.endsWith('.json') ? origUri.path : origUri.path + '.json',
31
+ fragment: uri,
32
+ });
33
+ uri = customUri.toString();
34
+ }
35
+ // test if uri is windows path, ie starts with 'c:\' and convert to URI
36
+ if (/^[a-z]:[\\/]/i.test(uri)) {
37
+ const winUri = vscode_uri_1.URI.file(uri);
38
+ uri = winUri.toString();
39
+ }
40
+ const result = await connection.window.showDocument({ uri: uri, external: false, takeFocus: true });
41
+ if (!result) {
42
+ connection.window.showErrorMessage(`Cannot open ${uri}`);
43
+ }
44
+ });
45
+ }
46
+ exports.registerCommands = registerCommands;
47
+ });
48
+ //# sourceMappingURL=yamlCommands.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9adc9c33e6a3242deac3eafa40d628cc0ebd910e6dec432f67c4d925eaa1cd3d
3
- size 1258
 
1
+ {"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"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.d.ts CHANGED
@@ -1,3 +1,68 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a31bd81b96cf9c2b55c3181753233a7e2f8c5f2a2efa109cf2020af865f41c9c
3
- size 2839
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { TextDocument } from 'vscode-languageserver-textdocument';
2
+ import { ClientCapabilities } from 'vscode-languageserver';
3
+ import { CompletionItem as CompletionItemBase, CompletionList, Position } from 'vscode-languageserver-types';
4
+ import { Telemetry } from '../telemetry';
5
+ import { YamlDocuments } from '../parser/yaml-documents';
6
+ import { LanguageSettings } from '../yamlLanguageService';
7
+ import { YAMLSchemaService } from './yamlSchemaService';
8
+ import { JSONSchema } from '../jsonSchema';
9
+ interface ParentCompletionItemOptions {
10
+ schema: JSONSchema;
11
+ indent?: string;
12
+ insertTexts?: string[];
13
+ }
14
+ interface CompletionItem extends CompletionItemBase {
15
+ parent?: ParentCompletionItemOptions;
16
+ }
17
+ export declare class YamlCompletion {
18
+ private schemaService;
19
+ private clientCapabilities;
20
+ private yamlDocument;
21
+ private readonly telemetry?;
22
+ private customTags;
23
+ private completionEnabled;
24
+ private configuredIndentation;
25
+ private yamlVersion;
26
+ private indentation;
27
+ private arrayPrefixIndentation;
28
+ private supportsMarkdown;
29
+ private disableDefaultProperties;
30
+ private parentSkeletonSelectedFirst;
31
+ constructor(schemaService: YAMLSchemaService, clientCapabilities: ClientCapabilities, yamlDocument: YamlDocuments, telemetry?: Telemetry);
32
+ configure(languageSettings: LanguageSettings): void;
33
+ doComplete(document: TextDocument, position: Position, isKubernetes?: boolean, doComplete?: boolean): Promise<CompletionList>;
34
+ updateCompletionText(completionItem: CompletionItem, text: string): void;
35
+ mergeSimpleInsertTexts(label: string, existingText: string, addingText: string, oneOfSchema: boolean): string | undefined;
36
+ getValuesFromInsertText(insertText: string): string[];
37
+ private finalizeParentCompletion;
38
+ private createTempObjNode;
39
+ private addPropertyCompletions;
40
+ private getValueCompletions;
41
+ private addArrayItemValueCompletion;
42
+ private getInsertTextForProperty;
43
+ private getInsertTextForObject;
44
+ private getInsertTextForArray;
45
+ private getInsertTextForGuessedValue;
46
+ private getInsertTextForPlainText;
47
+ private getInsertTextForValue;
48
+ private getInsertTemplateForValue;
49
+ private addSchemaValueCompletions;
50
+ private collectTypes;
51
+ private addDefaultValueCompletions;
52
+ private addEnumValueCompletions;
53
+ private getLabelForValue;
54
+ private collectDefaultSnippets;
55
+ private getInsertTextForSnippetValue;
56
+ private addBooleanValueCompletion;
57
+ private addNullValueCompletion;
58
+ private getLabelForSnippetValue;
59
+ private getCustomTagValueCompletions;
60
+ private addCustomTagValueCompletion;
61
+ private getDocumentationWithMarkdownText;
62
+ private getSuggestionKind;
63
+ private getCurrentWord;
64
+ private fromMarkup;
65
+ private doesSupportMarkdown;
66
+ private findItemAtOffset;
67
+ }
68
+ export {};
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js CHANGED
@@ -1,3 +1,1473 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:016ecdf66c51416e9b9f27cb15fc1e4dc6a674d86c47ce00f3dcdfb05aa8e00a
3
- size 82190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat, Inc. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ 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);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.YamlCompletion = void 0;
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const yaml_1 = require("yaml");
19
+ const arrUtils_1 = require("../utils/arrUtils");
20
+ const indentationGuesser_1 = require("../utils/indentationGuesser");
21
+ const textBuffer_1 = require("../utils/textBuffer");
22
+ const json_1 = require("../utils/json");
23
+ const objects_1 = require("../utils/objects");
24
+ const nls = require("vscode-nls");
25
+ const isKubernetes_1 = require("../parser/isKubernetes");
26
+ const jsonParser07_1 = require("../parser/jsonParser07");
27
+ const astUtils_1 = require("../utils/astUtils");
28
+ const modelineUtil_1 = require("./modelineUtil");
29
+ const schemaUtils_1 = require("../utils/schemaUtils");
30
+ const localize = nls.loadMessageBundle();
31
+ const doubleQuotesEscapeRegExp = /[\\]+"/g;
32
+ const parentCompletionKind = vscode_languageserver_types_1.CompletionItemKind.Class;
33
+ const existingProposeItem = '__';
34
+ class YamlCompletion {
35
+ constructor(schemaService, clientCapabilities = {}, yamlDocument, telemetry) {
36
+ this.schemaService = schemaService;
37
+ this.clientCapabilities = clientCapabilities;
38
+ this.yamlDocument = yamlDocument;
39
+ this.telemetry = telemetry;
40
+ this.completionEnabled = true;
41
+ this.arrayPrefixIndentation = '';
42
+ }
43
+ configure(languageSettings) {
44
+ if (languageSettings) {
45
+ this.completionEnabled = languageSettings.completion;
46
+ }
47
+ this.customTags = languageSettings.customTags;
48
+ this.yamlVersion = languageSettings.yamlVersion;
49
+ this.configuredIndentation = languageSettings.indentation;
50
+ this.disableDefaultProperties = languageSettings.disableDefaultProperties;
51
+ this.parentSkeletonSelectedFirst = languageSettings.parentSkeletonSelectedFirst;
52
+ }
53
+ async doComplete(document, position, isKubernetes = false, doComplete = true) {
54
+ const result = vscode_languageserver_types_1.CompletionList.create([], false);
55
+ if (!this.completionEnabled) {
56
+ return result;
57
+ }
58
+ const doc = this.yamlDocument.getYamlDocument(document, { customTags: this.customTags, yamlVersion: this.yamlVersion }, true);
59
+ const textBuffer = new textBuffer_1.TextBuffer(document);
60
+ if (!this.configuredIndentation) {
61
+ const indent = (0, indentationGuesser_1.guessIndentation)(textBuffer, 2, true);
62
+ this.indentation = indent.insertSpaces ? ' '.repeat(indent.tabSize) : '\t';
63
+ }
64
+ else {
65
+ this.indentation = this.configuredIndentation;
66
+ }
67
+ (0, isKubernetes_1.setKubernetesParserOption)(doc.documents, isKubernetes);
68
+ // set parser options
69
+ for (const jsonDoc of doc.documents) {
70
+ jsonDoc.uri = document.uri;
71
+ }
72
+ const offset = document.offsetAt(position);
73
+ const text = document.getText();
74
+ if (text.charAt(offset - 1) === ':') {
75
+ return Promise.resolve(result);
76
+ }
77
+ let currentDoc = (0, arrUtils_1.matchOffsetToDocument)(offset, doc);
78
+ if (currentDoc === null) {
79
+ return Promise.resolve(result);
80
+ }
81
+ // as we modify AST for completion, we need to use copy of original document
82
+ currentDoc = currentDoc.clone();
83
+ let [node, foundByClosest] = currentDoc.getNodeFromPosition(offset, textBuffer, this.indentation.length);
84
+ const currentWord = this.getCurrentWord(document, offset);
85
+ let lineContent = textBuffer.getLineContent(position.line);
86
+ const lineAfterPosition = lineContent.substring(position.character);
87
+ const areOnlySpacesAfterPosition = /^[ ]+\n?$/.test(lineAfterPosition);
88
+ this.arrayPrefixIndentation = '';
89
+ let overwriteRange = null;
90
+ if (areOnlySpacesAfterPosition) {
91
+ overwriteRange = vscode_languageserver_types_1.Range.create(position, vscode_languageserver_types_1.Position.create(position.line, lineContent.length));
92
+ const isOnlyWhitespace = lineContent.trim().length === 0;
93
+ const isOnlyDash = lineContent.match(/^\s*(-)\s*$/);
94
+ if (node && (0, yaml_1.isScalar)(node) && !isOnlyWhitespace && !isOnlyDash) {
95
+ const lineToPosition = lineContent.substring(0, position.character);
96
+ const matches =
97
+ // get indentation of unfinished property (between indent and cursor)
98
+ lineToPosition.match(/^[\s-]*([^:]+)?$/) ||
99
+ // OR get unfinished value (between colon and cursor)
100
+ lineToPosition.match(/:[ \t]((?!:[ \t]).*)$/);
101
+ if (matches?.[1]) {
102
+ 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));
103
+ }
104
+ }
105
+ }
106
+ else if (node && (0, yaml_1.isScalar)(node) && node.value === 'null') {
107
+ const nodeStartPos = document.positionAt(node.range[0]);
108
+ nodeStartPos.character += 1;
109
+ const nodeEndPos = document.positionAt(node.range[2]);
110
+ nodeEndPos.character += 1;
111
+ overwriteRange = vscode_languageserver_types_1.Range.create(nodeStartPos, nodeEndPos);
112
+ }
113
+ else if (node && (0, yaml_1.isScalar)(node) && node.value) {
114
+ const start = document.positionAt(node.range[0]);
115
+ overwriteRange = vscode_languageserver_types_1.Range.create(start, document.positionAt(node.range[1]));
116
+ }
117
+ else if (node && (0, yaml_1.isScalar)(node) && node.value === null && currentWord === '-') {
118
+ overwriteRange = vscode_languageserver_types_1.Range.create(position, position);
119
+ this.arrayPrefixIndentation = ' ';
120
+ }
121
+ else {
122
+ let overwriteStart = offset - currentWord.length;
123
+ if (overwriteStart > 0 && text[overwriteStart - 1] === '"') {
124
+ overwriteStart--;
125
+ }
126
+ overwriteRange = vscode_languageserver_types_1.Range.create(document.positionAt(overwriteStart), position);
127
+ }
128
+ const proposed = {};
129
+ const collector = {
130
+ add: (completionItem, oneOfSchema) => {
131
+ const addSuggestionForParent = function (completionItem) {
132
+ const existsInYaml = proposed[completionItem.label]?.label === existingProposeItem;
133
+ //don't put to parent suggestion if already in yaml
134
+ if (existsInYaml) {
135
+ return;
136
+ }
137
+ const schema = completionItem.parent.schema;
138
+ const schemaType = (0, schemaUtils_1.getSchemaTypeName)(schema);
139
+ const schemaDescription = schema.markdownDescription || schema.description;
140
+ let parentCompletion = result.items.find((item) => item.parent?.schema === schema && item.kind === parentCompletionKind);
141
+ if (parentCompletion && parentCompletion.parent.insertTexts.includes(completionItem.insertText)) {
142
+ // already exists in the parent
143
+ return;
144
+ }
145
+ else if (!parentCompletion) {
146
+ // create a new parent
147
+ parentCompletion = {
148
+ ...completionItem,
149
+ label: schemaType,
150
+ documentation: schemaDescription,
151
+ sortText: '_' + schemaType,
152
+ kind: parentCompletionKind,
153
+ };
154
+ parentCompletion.label = parentCompletion.label || completionItem.label;
155
+ parentCompletion.parent.insertTexts = [completionItem.insertText];
156
+ result.items.push(parentCompletion);
157
+ }
158
+ else {
159
+ // add to the existing parent
160
+ parentCompletion.parent.insertTexts.push(completionItem.insertText);
161
+ }
162
+ };
163
+ const isForParentCompletion = !!completionItem.parent;
164
+ let label = completionItem.label;
165
+ if (!label) {
166
+ // we receive not valid CompletionItem as `label` is mandatory field, so just ignore it
167
+ console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(completionItem)}`);
168
+ return;
169
+ }
170
+ if (!(0, objects_1.isString)(label)) {
171
+ label = String(label);
172
+ }
173
+ label = label.replace(/[\n]/g, '↵');
174
+ if (label.length > 60) {
175
+ const shortendedLabel = label.substr(0, 57).trim() + '...';
176
+ if (!proposed[shortendedLabel]) {
177
+ label = shortendedLabel;
178
+ }
179
+ }
180
+ // trim $1 from end of completion
181
+ if (completionItem.insertText.endsWith('$1') && !isForParentCompletion) {
182
+ completionItem.insertText = completionItem.insertText.substr(0, completionItem.insertText.length - 2);
183
+ }
184
+ if (overwriteRange && overwriteRange.start.line === overwriteRange.end.line) {
185
+ completionItem.textEdit = vscode_languageserver_types_1.TextEdit.replace(overwriteRange, completionItem.insertText);
186
+ }
187
+ completionItem.label = label;
188
+ if (isForParentCompletion) {
189
+ addSuggestionForParent(completionItem);
190
+ return;
191
+ }
192
+ if (this.arrayPrefixIndentation) {
193
+ this.updateCompletionText(completionItem, this.arrayPrefixIndentation + completionItem.insertText);
194
+ }
195
+ const existing = proposed[label];
196
+ const isInsertTextDifferent = existing?.label !== existingProposeItem && existing?.insertText !== completionItem.insertText;
197
+ if (!existing) {
198
+ proposed[label] = completionItem;
199
+ result.items.push(completionItem);
200
+ }
201
+ else if (isInsertTextDifferent) {
202
+ // try to merge simple insert values
203
+ const mergedText = this.mergeSimpleInsertTexts(label, existing.insertText, completionItem.insertText, oneOfSchema);
204
+ if (mergedText) {
205
+ this.updateCompletionText(existing, mergedText);
206
+ }
207
+ else {
208
+ // add to result when it wasn't able to merge (even if the item is already there but with a different value)
209
+ proposed[label] = completionItem;
210
+ result.items.push(completionItem);
211
+ }
212
+ }
213
+ if (existing && !existing.documentation && completionItem.documentation) {
214
+ existing.documentation = completionItem.documentation;
215
+ }
216
+ },
217
+ error: (message) => {
218
+ this.telemetry?.sendError('yaml.completion.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(message) });
219
+ },
220
+ log: (message) => {
221
+ console.log(message);
222
+ },
223
+ getNumberOfProposals: () => {
224
+ return result.items.length;
225
+ },
226
+ result,
227
+ proposed,
228
+ };
229
+ if (this.customTags.length > 0) {
230
+ this.getCustomTagValueCompletions(collector);
231
+ }
232
+ if (lineContent.endsWith('\n')) {
233
+ lineContent = lineContent.substr(0, lineContent.length - 1);
234
+ }
235
+ try {
236
+ const schema = await this.schemaService.getSchemaForResource(document.uri, currentDoc);
237
+ if (!schema || schema.errors.length) {
238
+ if (position.line === 0 && position.character === 0 && !(0, modelineUtil_1.isModeline)(lineContent)) {
239
+ const inlineSchemaCompletion = {
240
+ kind: vscode_languageserver_types_1.CompletionItemKind.Text,
241
+ label: 'Inline schema',
242
+ insertText: '# yaml-language-server: $schema=',
243
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.PlainText,
244
+ };
245
+ result.items.push(inlineSchemaCompletion);
246
+ }
247
+ }
248
+ if ((0, modelineUtil_1.isModeline)(lineContent) || (0, astUtils_1.isInComment)(doc.tokens, offset)) {
249
+ const schemaIndex = lineContent.indexOf('$schema=');
250
+ if (schemaIndex !== -1 && schemaIndex + '$schema='.length <= position.character) {
251
+ this.schemaService.getAllSchemas().forEach((schema) => {
252
+ const schemaIdCompletion = {
253
+ kind: vscode_languageserver_types_1.CompletionItemKind.Constant,
254
+ label: schema.name ?? schema.uri,
255
+ detail: schema.description,
256
+ insertText: schema.uri,
257
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.PlainText,
258
+ insertTextMode: vscode_languageserver_types_1.InsertTextMode.asIs,
259
+ };
260
+ result.items.push(schemaIdCompletion);
261
+ });
262
+ }
263
+ return result;
264
+ }
265
+ if (!schema || schema.errors.length) {
266
+ return result;
267
+ }
268
+ let currentProperty = null;
269
+ if (!node) {
270
+ if (!currentDoc.internalDocument.contents || (0, yaml_1.isScalar)(currentDoc.internalDocument.contents)) {
271
+ const map = currentDoc.internalDocument.createNode({});
272
+ map.range = [offset, offset + 1, offset + 1];
273
+ currentDoc.internalDocument.contents = map;
274
+ currentDoc.updateFromInternalDocument();
275
+ node = map;
276
+ }
277
+ else {
278
+ node = currentDoc.findClosestNode(offset, textBuffer);
279
+ foundByClosest = true;
280
+ }
281
+ }
282
+ const originalNode = node;
283
+ if (node) {
284
+ if (lineContent.length === 0) {
285
+ node = currentDoc.internalDocument.contents;
286
+ }
287
+ else {
288
+ const parent = currentDoc.getParent(node);
289
+ if (parent) {
290
+ if ((0, yaml_1.isScalar)(node)) {
291
+ if (node.value) {
292
+ if ((0, yaml_1.isPair)(parent)) {
293
+ if (parent.value === node) {
294
+ if (lineContent.trim().length > 0 && lineContent.indexOf(':') < 0) {
295
+ const map = this.createTempObjNode(currentWord, node, currentDoc);
296
+ const parentParent = currentDoc.getParent(parent);
297
+ if ((0, yaml_1.isSeq)(currentDoc.internalDocument.contents)) {
298
+ const index = (0, astUtils_1.indexOf)(currentDoc.internalDocument.contents, parent);
299
+ if (typeof index === 'number') {
300
+ currentDoc.internalDocument.set(index, map);
301
+ currentDoc.updateFromInternalDocument();
302
+ }
303
+ }
304
+ else if (parentParent && ((0, yaml_1.isMap)(parentParent) || (0, yaml_1.isSeq)(parentParent))) {
305
+ parentParent.set(parent.key, map);
306
+ currentDoc.updateFromInternalDocument();
307
+ }
308
+ else {
309
+ currentDoc.internalDocument.set(parent.key, map);
310
+ currentDoc.updateFromInternalDocument();
311
+ }
312
+ currentProperty = map.items[0];
313
+ node = map;
314
+ }
315
+ else if (lineContent.trim().length === 0) {
316
+ const parentParent = currentDoc.getParent(parent);
317
+ if (parentParent) {
318
+ node = parentParent;
319
+ }
320
+ }
321
+ }
322
+ else if (parent.key === node) {
323
+ const parentParent = currentDoc.getParent(parent);
324
+ currentProperty = parent;
325
+ if (parentParent) {
326
+ node = parentParent;
327
+ }
328
+ }
329
+ }
330
+ else if ((0, yaml_1.isSeq)(parent)) {
331
+ if (lineContent.trim().length > 0) {
332
+ const map = this.createTempObjNode(currentWord, node, currentDoc);
333
+ parent.delete(node);
334
+ parent.add(map);
335
+ currentDoc.updateFromInternalDocument();
336
+ node = map;
337
+ }
338
+ else {
339
+ node = parent;
340
+ }
341
+ }
342
+ }
343
+ else if (node.value === null) {
344
+ if ((0, yaml_1.isPair)(parent)) {
345
+ if (parent.key === node) {
346
+ node = parent;
347
+ }
348
+ else {
349
+ if ((0, yaml_1.isNode)(parent.key) && parent.key.range) {
350
+ const parentParent = currentDoc.getParent(parent);
351
+ if (foundByClosest && parentParent && (0, yaml_1.isMap)(parentParent) && (0, astUtils_1.isMapContainsEmptyPair)(parentParent)) {
352
+ node = parentParent;
353
+ }
354
+ else {
355
+ const parentPosition = document.positionAt(parent.key.range[0]);
356
+ //if cursor has bigger indentation that parent key, then we need to complete new empty object
357
+ if (position.character > parentPosition.character && position.line !== parentPosition.line) {
358
+ const map = this.createTempObjNode(currentWord, node, currentDoc);
359
+ if (parentParent && ((0, yaml_1.isMap)(parentParent) || (0, yaml_1.isSeq)(parentParent))) {
360
+ parentParent.set(parent.key, map);
361
+ currentDoc.updateFromInternalDocument();
362
+ }
363
+ else {
364
+ currentDoc.internalDocument.set(parent.key, map);
365
+ currentDoc.updateFromInternalDocument();
366
+ }
367
+ currentProperty = map.items[0];
368
+ node = map;
369
+ }
370
+ else if (parentPosition.character === position.character) {
371
+ if (parentParent) {
372
+ node = parentParent;
373
+ }
374
+ }
375
+ }
376
+ }
377
+ }
378
+ }
379
+ else if ((0, yaml_1.isSeq)(parent)) {
380
+ if (lineContent.charAt(position.character - 1) !== '-') {
381
+ const map = this.createTempObjNode(currentWord, node, currentDoc);
382
+ parent.delete(node);
383
+ parent.add(map);
384
+ currentDoc.updateFromInternalDocument();
385
+ node = map;
386
+ }
387
+ else if (lineContent.charAt(position.character - 1) === '-') {
388
+ const map = this.createTempObjNode('', node, currentDoc);
389
+ parent.delete(node);
390
+ parent.add(map);
391
+ currentDoc.updateFromInternalDocument();
392
+ node = map;
393
+ }
394
+ else {
395
+ node = parent;
396
+ }
397
+ }
398
+ }
399
+ }
400
+ else if ((0, yaml_1.isMap)(node)) {
401
+ if (!foundByClosest && lineContent.trim().length === 0 && (0, yaml_1.isSeq)(parent)) {
402
+ const nextLine = textBuffer.getLineContent(position.line + 1);
403
+ if (textBuffer.getLineCount() === position.line + 1 || nextLine.trim().length === 0) {
404
+ node = parent;
405
+ }
406
+ }
407
+ }
408
+ }
409
+ else if ((0, yaml_1.isScalar)(node)) {
410
+ const map = this.createTempObjNode(currentWord, node, currentDoc);
411
+ currentDoc.internalDocument.contents = map;
412
+ currentDoc.updateFromInternalDocument();
413
+ currentProperty = map.items[0];
414
+ node = map;
415
+ }
416
+ else if ((0, yaml_1.isMap)(node)) {
417
+ for (const pair of node.items) {
418
+ if ((0, yaml_1.isNode)(pair.value) && pair.value.range && pair.value.range[0] === offset + 1) {
419
+ node = pair.value;
420
+ }
421
+ }
422
+ }
423
+ else if ((0, yaml_1.isSeq)(node)) {
424
+ if (lineContent.charAt(position.character - 1) !== '-') {
425
+ const map = this.createTempObjNode(currentWord, node, currentDoc);
426
+ map.items = [];
427
+ currentDoc.updateFromInternalDocument();
428
+ for (const pair of node.items) {
429
+ if ((0, yaml_1.isMap)(pair)) {
430
+ pair.items.forEach((value) => {
431
+ map.items.push(value);
432
+ });
433
+ }
434
+ }
435
+ node = map;
436
+ }
437
+ }
438
+ }
439
+ }
440
+ // completion for object keys
441
+ if (node && (0, yaml_1.isMap)(node)) {
442
+ // don't suggest properties that are already present
443
+ const properties = node.items;
444
+ for (const p of properties) {
445
+ if (!currentProperty || currentProperty !== p) {
446
+ if ((0, yaml_1.isScalar)(p.key)) {
447
+ proposed[p.key.value + ''] = vscode_languageserver_types_1.CompletionItem.create(existingProposeItem);
448
+ }
449
+ }
450
+ }
451
+ this.addPropertyCompletions(schema, currentDoc, node, originalNode, '', collector, textBuffer, overwriteRange, doComplete);
452
+ if (!schema && currentWord.length > 0 && text.charAt(offset - currentWord.length - 1) !== '"') {
453
+ collector.add({
454
+ kind: vscode_languageserver_types_1.CompletionItemKind.Property,
455
+ label: currentWord,
456
+ insertText: this.getInsertTextForProperty(currentWord, null, ''),
457
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
458
+ });
459
+ }
460
+ }
461
+ // proposals for values
462
+ const types = {};
463
+ this.getValueCompletions(schema, currentDoc, node, offset, document, collector, types, doComplete);
464
+ }
465
+ catch (err) {
466
+ this.telemetry?.sendError('yaml.completion.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });
467
+ }
468
+ this.finalizeParentCompletion(result);
469
+ const uniqueItems = result.items.filter((arr, index, self) => index ===
470
+ self.findIndex((item) => item.label === arr.label && item.insertText === arr.insertText && item.kind === arr.kind));
471
+ if (uniqueItems?.length > 0) {
472
+ result.items = uniqueItems;
473
+ }
474
+ return result;
475
+ }
476
+ updateCompletionText(completionItem, text) {
477
+ completionItem.insertText = text;
478
+ if (completionItem.textEdit) {
479
+ completionItem.textEdit.newText = text;
480
+ }
481
+ }
482
+ mergeSimpleInsertTexts(label, existingText, addingText, oneOfSchema) {
483
+ const containsNewLineAfterColon = (value) => {
484
+ return value.includes('\n');
485
+ };
486
+ const startWithNewLine = (value) => {
487
+ return value.startsWith('\n');
488
+ };
489
+ const isNullObject = (value) => {
490
+ const index = value.indexOf('\n');
491
+ return index > 0 && value.substring(index, value.length).trim().length === 0;
492
+ };
493
+ if (containsNewLineAfterColon(existingText) || containsNewLineAfterColon(addingText)) {
494
+ //if the exisiting object null one then replace with the non-null object
495
+ if (oneOfSchema && isNullObject(existingText) && !isNullObject(addingText) && !startWithNewLine(addingText)) {
496
+ return addingText;
497
+ }
498
+ return undefined;
499
+ }
500
+ const existingValues = this.getValuesFromInsertText(existingText);
501
+ const addingValues = this.getValuesFromInsertText(addingText);
502
+ const newValues = Array.prototype.concat(existingValues, addingValues);
503
+ if (!newValues.length) {
504
+ return undefined;
505
+ }
506
+ else if (newValues.length === 1) {
507
+ return `${label}: \${1:${newValues[0]}}`;
508
+ }
509
+ else {
510
+ return `${label}: \${1|${newValues.join(',')}|}`;
511
+ }
512
+ }
513
+ getValuesFromInsertText(insertText) {
514
+ const value = insertText.substring(insertText.indexOf(':') + 1).trim();
515
+ if (!value) {
516
+ return [];
517
+ }
518
+ const valueMath = value.match(/^\${1[|:]([^|]*)+\|?}$/); // ${1|one,two,three|} or ${1:one}
519
+ if (valueMath) {
520
+ return valueMath[1].split(',');
521
+ }
522
+ return [value];
523
+ }
524
+ finalizeParentCompletion(result) {
525
+ const reindexText = (insertTexts) => {
526
+ //modify added props to have unique $x
527
+ let max$index = 0;
528
+ return insertTexts.map((text) => {
529
+ const match = text.match(/\$([0-9]+)|\${[0-9]+:/g);
530
+ if (!match) {
531
+ return text;
532
+ }
533
+ const max$indexLocal = match
534
+ .map((m) => +m.replace(/\${([0-9]+)[:|]/g, '$1').replace('$', '')) // get numbers form $1 or ${1:...}
535
+ .reduce((p, n) => (n > p ? n : p), 0); // find the max one
536
+ const reindexedStr = text
537
+ .replace(/\$([0-9]+)/g, (s, args) => '$' + (+args + max$index)) // increment each by max$index
538
+ .replace(/\${([0-9]+)[:|]/g, (s, args) => '${' + (+args + max$index) + ':'); // increment each by max$index
539
+ max$index += max$indexLocal;
540
+ return reindexedStr;
541
+ });
542
+ };
543
+ result.items.forEach((completionItem) => {
544
+ if (isParentCompletionItem(completionItem)) {
545
+ const indent = completionItem.parent.indent || '';
546
+ const reindexedTexts = reindexText(completionItem.parent.insertTexts);
547
+ // add indent to each object property and join completion item texts
548
+ let insertText = reindexedTexts.join(`\n${indent}`);
549
+ // trim $1 from end of completion
550
+ if (insertText.endsWith('$1')) {
551
+ insertText = insertText.substring(0, insertText.length - 2);
552
+ }
553
+ completionItem.insertText = this.arrayPrefixIndentation + insertText;
554
+ if (completionItem.textEdit) {
555
+ completionItem.textEdit.newText = completionItem.insertText;
556
+ }
557
+ // remove $x or use {$x:value} in documentation
558
+ const mdText = insertText.replace(/\${[0-9]+[:|](.*)}/g, (s, arg) => arg).replace(/\$([0-9]+)/g, '');
559
+ const originalDocumentation = completionItem.documentation ? [completionItem.documentation, '', '----', ''] : [];
560
+ completionItem.documentation = {
561
+ kind: vscode_languageserver_types_1.MarkupKind.Markdown,
562
+ value: [...originalDocumentation, '```yaml', indent + mdText, '```'].join('\n'),
563
+ };
564
+ delete completionItem.parent;
565
+ }
566
+ });
567
+ }
568
+ createTempObjNode(currentWord, node, currentDoc) {
569
+ const obj = {};
570
+ obj[currentWord] = null;
571
+ const map = currentDoc.internalDocument.createNode(obj);
572
+ map.range = node.range;
573
+ map.items[0].key.range = node.range;
574
+ map.items[0].value.range = node.range;
575
+ return map;
576
+ }
577
+ addPropertyCompletions(schema, doc, node, originalNode, separatorAfter, collector, textBuffer, overwriteRange, doComplete) {
578
+ const matchingSchemas = doc.getMatchingSchemas(schema.schema, -1, null, doComplete);
579
+ const existingKey = textBuffer.getText(overwriteRange);
580
+ const lineContent = textBuffer.getLineContent(overwriteRange.start.line);
581
+ const hasOnlyWhitespace = lineContent.trim().length === 0;
582
+ const hasColon = lineContent.indexOf(':') !== -1;
583
+ const isInArray = lineContent.trimLeft().indexOf('-') === 0;
584
+ const nodeParent = doc.getParent(node);
585
+ const matchOriginal = matchingSchemas.find((it) => it.node.internalNode === originalNode && it.schema.properties);
586
+ const oneOfSchema = matchingSchemas.filter((schema) => schema.schema.oneOf).map((oneOfSchema) => oneOfSchema.schema.oneOf)[0];
587
+ let didOneOfSchemaMatches = false;
588
+ if (oneOfSchema?.length < matchingSchemas.length) {
589
+ oneOfSchema?.forEach((property, index) => {
590
+ if (!matchingSchemas[index]?.schema.oneOf && matchingSchemas[index]?.schema.properties === property.properties) {
591
+ didOneOfSchemaMatches = true;
592
+ }
593
+ });
594
+ }
595
+ for (const schema of matchingSchemas) {
596
+ if (((schema.node.internalNode === node && !matchOriginal) ||
597
+ (schema.node.internalNode === originalNode && !hasColon) ||
598
+ (schema.node.parent?.internalNode === originalNode && !hasColon)) &&
599
+ !schema.inverted) {
600
+ this.collectDefaultSnippets(schema.schema, separatorAfter, collector, {
601
+ newLineFirst: false,
602
+ indentFirstObject: false,
603
+ shouldIndentWithTab: isInArray,
604
+ });
605
+ const schemaProperties = schema.schema.properties;
606
+ if (schemaProperties) {
607
+ const maxProperties = schema.schema.maxProperties;
608
+ if (maxProperties === undefined ||
609
+ node.items === undefined ||
610
+ node.items.length < maxProperties ||
611
+ (node.items.length === maxProperties && !hasOnlyWhitespace)) {
612
+ for (const key in schemaProperties) {
613
+ if (Object.prototype.hasOwnProperty.call(schemaProperties, key)) {
614
+ const propertySchema = schemaProperties[key];
615
+ if (typeof propertySchema === 'object' && !propertySchema.deprecationMessage && !propertySchema['doNotSuggest']) {
616
+ let identCompensation = '';
617
+ if (nodeParent && (0, yaml_1.isSeq)(nodeParent) && node.items.length <= 1 && !hasOnlyWhitespace) {
618
+ // because there is a slash '-' to prevent the properties generated to have the correct
619
+ // indent
620
+ const sourceText = textBuffer.getText();
621
+ const indexOfSlash = sourceText.lastIndexOf('-', node.range[0] - 1);
622
+ if (indexOfSlash >= 0) {
623
+ // add one space to compensate the '-'
624
+ const overwriteChars = overwriteRange.end.character - overwriteRange.start.character;
625
+ identCompensation = ' ' + sourceText.slice(indexOfSlash + 1, node.range[1] - overwriteChars);
626
+ }
627
+ }
628
+ identCompensation += this.arrayPrefixIndentation;
629
+ // if check that current node has last pair with "null" value and key witch match key from schema,
630
+ // and if schema has array definition it add completion item for array item creation
631
+ let pair;
632
+ if (propertySchema.type === 'array' &&
633
+ (pair = node.items.find((it) => (0, yaml_1.isScalar)(it.key) &&
634
+ it.key.range &&
635
+ it.key.value === key &&
636
+ (0, yaml_1.isScalar)(it.value) &&
637
+ !it.value.value &&
638
+ textBuffer.getPosition(it.key.range[2]).line === overwriteRange.end.line - 1)) &&
639
+ pair) {
640
+ if (Array.isArray(propertySchema.items)) {
641
+ this.addSchemaValueCompletions(propertySchema.items[0], separatorAfter, collector, {}, 'property');
642
+ }
643
+ else if (typeof propertySchema.items === 'object' && propertySchema.items.type === 'object') {
644
+ this.addArrayItemValueCompletion(propertySchema.items, separatorAfter, collector);
645
+ }
646
+ }
647
+ let insertText = key;
648
+ if (!key.startsWith(existingKey) || !hasColon) {
649
+ insertText = this.getInsertTextForProperty(key, propertySchema, separatorAfter, identCompensation + this.indentation);
650
+ }
651
+ const isNodeNull = ((0, yaml_1.isScalar)(originalNode) && originalNode.value === null) ||
652
+ ((0, yaml_1.isMap)(originalNode) && originalNode.items.length === 0);
653
+ const existsParentCompletion = schema.schema.required?.length > 0;
654
+ if (!this.parentSkeletonSelectedFirst || !isNodeNull || !existsParentCompletion) {
655
+ collector.add({
656
+ kind: vscode_languageserver_types_1.CompletionItemKind.Property,
657
+ label: key,
658
+ insertText,
659
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
660
+ documentation: this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '',
661
+ }, didOneOfSchemaMatches);
662
+ }
663
+ // if the prop is required add it also to parent suggestion
664
+ if (schema.schema.required?.includes(key)) {
665
+ collector.add({
666
+ label: key,
667
+ insertText: this.getInsertTextForProperty(key, propertySchema, separatorAfter, identCompensation + this.indentation),
668
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
669
+ documentation: this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '',
670
+ parent: {
671
+ schema: schema.schema,
672
+ indent: identCompensation,
673
+ },
674
+ });
675
+ }
676
+ }
677
+ }
678
+ }
679
+ }
680
+ }
681
+ // Error fix
682
+ // If this is a array of string/boolean/number
683
+ // test:
684
+ // - item1
685
+ // it will treated as a property key since `:` has been appended
686
+ if (nodeParent && (0, yaml_1.isSeq)(nodeParent) && (0, schemaUtils_1.isPrimitiveType)(schema.schema)) {
687
+ this.addSchemaValueCompletions(schema.schema, separatorAfter, collector, {}, 'property', Array.isArray(nodeParent.items));
688
+ }
689
+ if (schema.schema.propertyNames && schema.schema.additionalProperties && schema.schema.type === 'object') {
690
+ const propertyNameSchema = (0, jsonParser07_1.asSchema)(schema.schema.propertyNames);
691
+ const label = propertyNameSchema.title || 'property';
692
+ collector.add({
693
+ kind: vscode_languageserver_types_1.CompletionItemKind.Property,
694
+ label,
695
+ insertText: '$' + `{1:${label}}: `,
696
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
697
+ documentation: this.fromMarkup(propertyNameSchema.markdownDescription) || propertyNameSchema.description || '',
698
+ });
699
+ }
700
+ }
701
+ if (nodeParent && schema.node.internalNode === nodeParent && schema.schema.defaultSnippets) {
702
+ // For some reason the first item in the array needs to be treated differently, otherwise
703
+ // the indentation will not be correct
704
+ if (node.items.length === 1) {
705
+ this.collectDefaultSnippets(schema.schema, separatorAfter, collector, {
706
+ newLineFirst: false,
707
+ indentFirstObject: false,
708
+ shouldIndentWithTab: true,
709
+ }, 1);
710
+ }
711
+ else {
712
+ this.collectDefaultSnippets(schema.schema, separatorAfter, collector, {
713
+ newLineFirst: false,
714
+ indentFirstObject: true,
715
+ shouldIndentWithTab: false,
716
+ }, 1);
717
+ }
718
+ }
719
+ }
720
+ }
721
+ getValueCompletions(schema, doc, node, offset, document, collector, types, doComplete) {
722
+ let parentKey = null;
723
+ if (node && (0, yaml_1.isScalar)(node)) {
724
+ node = doc.getParent(node);
725
+ }
726
+ if (!node) {
727
+ this.addSchemaValueCompletions(schema.schema, '', collector, types, 'value');
728
+ return;
729
+ }
730
+ if ((0, yaml_1.isPair)(node)) {
731
+ const valueNode = node.value;
732
+ if (valueNode && valueNode.range && offset > valueNode.range[0] + valueNode.range[2]) {
733
+ return; // we are past the value node
734
+ }
735
+ parentKey = (0, yaml_1.isScalar)(node.key) ? node.key.value + '' : null;
736
+ node = doc.getParent(node);
737
+ }
738
+ if (node && (parentKey !== null || (0, yaml_1.isSeq)(node))) {
739
+ const separatorAfter = '';
740
+ const matchingSchemas = doc.getMatchingSchemas(schema.schema, -1, null, doComplete);
741
+ for (const s of matchingSchemas) {
742
+ if (s.node.internalNode === node && !s.inverted && s.schema) {
743
+ if (s.schema.items) {
744
+ this.collectDefaultSnippets(s.schema, separatorAfter, collector, {
745
+ newLineFirst: false,
746
+ indentFirstObject: false,
747
+ shouldIndentWithTab: false,
748
+ });
749
+ if ((0, yaml_1.isSeq)(node) && node.items) {
750
+ if (Array.isArray(s.schema.items)) {
751
+ const index = this.findItemAtOffset(node, document, offset);
752
+ if (index < s.schema.items.length) {
753
+ this.addSchemaValueCompletions(s.schema.items[index], separatorAfter, collector, types, 'value');
754
+ }
755
+ }
756
+ else if (typeof s.schema.items === 'object' &&
757
+ (s.schema.items.type === 'object' || (0, schemaUtils_1.isAnyOfAllOfOneOfType)(s.schema.items))) {
758
+ this.addSchemaValueCompletions(s.schema.items, separatorAfter, collector, types, 'value', true);
759
+ }
760
+ else {
761
+ this.addSchemaValueCompletions(s.schema.items, separatorAfter, collector, types, 'value');
762
+ }
763
+ }
764
+ }
765
+ if (s.schema.properties) {
766
+ const propertySchema = s.schema.properties[parentKey];
767
+ if (propertySchema) {
768
+ this.addSchemaValueCompletions(propertySchema, separatorAfter, collector, types, 'value');
769
+ }
770
+ }
771
+ else if (s.schema.additionalProperties) {
772
+ this.addSchemaValueCompletions(s.schema.additionalProperties, separatorAfter, collector, types, 'value');
773
+ }
774
+ }
775
+ }
776
+ if (types['boolean']) {
777
+ this.addBooleanValueCompletion(true, separatorAfter, collector);
778
+ this.addBooleanValueCompletion(false, separatorAfter, collector);
779
+ }
780
+ if (types['null']) {
781
+ this.addNullValueCompletion(separatorAfter, collector);
782
+ }
783
+ }
784
+ }
785
+ addArrayItemValueCompletion(schema, separatorAfter, collector, index) {
786
+ const schemaType = (0, schemaUtils_1.getSchemaTypeName)(schema);
787
+ const insertText = `- ${this.getInsertTextForObject(schema, separatorAfter).insertText.trimLeft()}`;
788
+ //append insertText to documentation
789
+ const schemaTypeTitle = schemaType ? ' type `' + schemaType + '`' : '';
790
+ const schemaDescription = schema.description ? ' (' + schema.description + ')' : '';
791
+ const documentation = this.getDocumentationWithMarkdownText(`Create an item of an array${schemaTypeTitle}${schemaDescription}`, insertText);
792
+ collector.add({
793
+ kind: this.getSuggestionKind(schema.type),
794
+ label: '- (array item) ' + (schemaType || index),
795
+ documentation: documentation,
796
+ insertText: insertText,
797
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
798
+ });
799
+ }
800
+ getInsertTextForProperty(key, propertySchema, separatorAfter, indent = this.indentation) {
801
+ const propertyText = this.getInsertTextForValue(key, '', 'string');
802
+ const resultText = propertyText + ':';
803
+ let value;
804
+ let nValueProposals = 0;
805
+ if (propertySchema) {
806
+ let type = Array.isArray(propertySchema.type) ? propertySchema.type[0] : propertySchema.type;
807
+ if (!type) {
808
+ if (propertySchema.properties) {
809
+ type = 'object';
810
+ }
811
+ else if (propertySchema.items) {
812
+ type = 'array';
813
+ }
814
+ else if (propertySchema.anyOf) {
815
+ type = 'anyOf';
816
+ }
817
+ }
818
+ if (Array.isArray(propertySchema.defaultSnippets)) {
819
+ if (propertySchema.defaultSnippets.length === 1) {
820
+ const body = propertySchema.defaultSnippets[0].body;
821
+ if ((0, objects_1.isDefined)(body)) {
822
+ value = this.getInsertTextForSnippetValue(body, '', {
823
+ newLineFirst: true,
824
+ indentFirstObject: false,
825
+ shouldIndentWithTab: false,
826
+ }, [], 1);
827
+ // add space before default snippet value
828
+ if (!value.startsWith(' ') && !value.startsWith('\n')) {
829
+ value = ' ' + value;
830
+ }
831
+ }
832
+ }
833
+ nValueProposals += propertySchema.defaultSnippets.length;
834
+ }
835
+ if (propertySchema.enum) {
836
+ if (!value && propertySchema.enum.length === 1) {
837
+ value = ' ' + this.getInsertTextForGuessedValue(propertySchema.enum[0], '', type);
838
+ }
839
+ nValueProposals += propertySchema.enum.length;
840
+ }
841
+ if (propertySchema.const) {
842
+ if (!value) {
843
+ value = this.getInsertTextForGuessedValue(propertySchema.const, '', type);
844
+ value = evaluateTab1Symbol(value); // prevent const being selected after snippet insert
845
+ value = ' ' + value;
846
+ }
847
+ nValueProposals++;
848
+ }
849
+ if ((0, objects_1.isDefined)(propertySchema.default)) {
850
+ if (!value) {
851
+ value = ' ' + this.getInsertTextForGuessedValue(propertySchema.default, '', type);
852
+ }
853
+ nValueProposals++;
854
+ }
855
+ if (Array.isArray(propertySchema.examples) && propertySchema.examples.length) {
856
+ if (!value) {
857
+ value = ' ' + this.getInsertTextForGuessedValue(propertySchema.examples[0], '', type);
858
+ }
859
+ nValueProposals += propertySchema.examples.length;
860
+ }
861
+ if (propertySchema.properties) {
862
+ return `${resultText}\n${this.getInsertTextForObject(propertySchema, separatorAfter, indent).insertText}`;
863
+ }
864
+ else if (propertySchema.items) {
865
+ return `${resultText}\n${indent}- ${this.getInsertTextForArray(propertySchema.items, separatorAfter, 1, indent).insertText}`;
866
+ }
867
+ if (nValueProposals === 0) {
868
+ switch (type) {
869
+ case 'boolean':
870
+ value = ' $1';
871
+ break;
872
+ case 'string':
873
+ value = ' $1';
874
+ break;
875
+ case 'object':
876
+ value = `\n${indent}`;
877
+ break;
878
+ case 'array':
879
+ value = `\n${indent}- `;
880
+ break;
881
+ case 'number':
882
+ case 'integer':
883
+ value = ' ${1:0}';
884
+ break;
885
+ case 'null':
886
+ value = ' ${1:null}';
887
+ break;
888
+ case 'anyOf':
889
+ value = ' $1';
890
+ break;
891
+ default:
892
+ return propertyText;
893
+ }
894
+ }
895
+ }
896
+ if (!value || nValueProposals > 1) {
897
+ value = ' $1';
898
+ }
899
+ return resultText + value + separatorAfter;
900
+ }
901
+ getInsertTextForObject(schema, separatorAfter, indent = this.indentation, insertIndex = 1) {
902
+ let insertText = '';
903
+ if (!schema.properties) {
904
+ insertText = `${indent}$${insertIndex++}\n`;
905
+ return { insertText, insertIndex };
906
+ }
907
+ Object.keys(schema.properties).forEach((key) => {
908
+ const propertySchema = schema.properties[key];
909
+ let type = Array.isArray(propertySchema.type) ? propertySchema.type[0] : propertySchema.type;
910
+ if (!type) {
911
+ if (propertySchema.anyOf) {
912
+ type = 'anyOf';
913
+ }
914
+ if (propertySchema.properties) {
915
+ type = 'object';
916
+ }
917
+ if (propertySchema.items) {
918
+ type = 'array';
919
+ }
920
+ }
921
+ if (schema.required && schema.required.indexOf(key) > -1) {
922
+ switch (type) {
923
+ case 'boolean':
924
+ case 'string':
925
+ case 'number':
926
+ case 'integer':
927
+ case 'anyOf': {
928
+ let value = propertySchema.default || propertySchema.const;
929
+ if (value) {
930
+ if (type === 'string') {
931
+ value = convertToStringValue(value);
932
+ }
933
+ insertText += `${indent}${key}: \${${insertIndex++}:${value}}\n`;
934
+ }
935
+ else {
936
+ insertText += `${indent}${key}: $${insertIndex++}\n`;
937
+ }
938
+ break;
939
+ }
940
+ case 'array':
941
+ {
942
+ const arrayInsertResult = this.getInsertTextForArray(propertySchema.items, separatorAfter, insertIndex++, indent);
943
+ const arrayInsertLines = arrayInsertResult.insertText.split('\n');
944
+ let arrayTemplate = arrayInsertResult.insertText;
945
+ if (arrayInsertLines.length > 1) {
946
+ for (let index = 1; index < arrayInsertLines.length; index++) {
947
+ const element = arrayInsertLines[index];
948
+ arrayInsertLines[index] = ` ${element}`;
949
+ }
950
+ arrayTemplate = arrayInsertLines.join('\n');
951
+ }
952
+ insertIndex = arrayInsertResult.insertIndex;
953
+ insertText += `${indent}${key}:\n${indent}${this.indentation}- ${arrayTemplate}\n`;
954
+ }
955
+ break;
956
+ case 'object':
957
+ {
958
+ const objectInsertResult = this.getInsertTextForObject(propertySchema, separatorAfter, `${indent}${this.indentation}`, insertIndex++);
959
+ insertIndex = objectInsertResult.insertIndex;
960
+ insertText += `${indent}${key}:\n${objectInsertResult.insertText}\n`;
961
+ }
962
+ break;
963
+ }
964
+ }
965
+ else if (!this.disableDefaultProperties && propertySchema.default !== undefined) {
966
+ switch (type) {
967
+ case 'boolean':
968
+ case 'number':
969
+ case 'integer':
970
+ insertText += `${indent}${
971
+ //added quote if key is null
972
+ key === 'null' ? this.getInsertTextForValue(key, '', 'string') : key}: \${${insertIndex++}:${propertySchema.default}}\n`;
973
+ break;
974
+ case 'string':
975
+ insertText += `${indent}${key}: \${${insertIndex++}:${convertToStringValue(propertySchema.default)}}\n`;
976
+ break;
977
+ case 'array':
978
+ case 'object':
979
+ // TODO: support default value for array object
980
+ break;
981
+ }
982
+ }
983
+ });
984
+ if (insertText.trim().length === 0) {
985
+ insertText = `${indent}$${insertIndex++}\n`;
986
+ }
987
+ insertText = insertText.trimRight() + separatorAfter;
988
+ return { insertText, insertIndex };
989
+ }
990
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
991
+ getInsertTextForArray(schema, separatorAfter, insertIndex = 1, indent = this.indentation) {
992
+ let insertText = '';
993
+ if (!schema) {
994
+ insertText = `$${insertIndex++}`;
995
+ return { insertText, insertIndex };
996
+ }
997
+ let type = Array.isArray(schema.type) ? schema.type[0] : schema.type;
998
+ if (!type) {
999
+ if (schema.properties) {
1000
+ type = 'object';
1001
+ }
1002
+ if (schema.items) {
1003
+ type = 'array';
1004
+ }
1005
+ }
1006
+ switch (schema.type) {
1007
+ case 'boolean':
1008
+ insertText = `\${${insertIndex++}:false}`;
1009
+ break;
1010
+ case 'number':
1011
+ case 'integer':
1012
+ insertText = `\${${insertIndex++}:0}`;
1013
+ break;
1014
+ case 'string':
1015
+ insertText = `\${${insertIndex++}:""}`;
1016
+ break;
1017
+ case 'object':
1018
+ {
1019
+ const objectInsertResult = this.getInsertTextForObject(schema, separatorAfter, `${indent} `, insertIndex++);
1020
+ insertText = objectInsertResult.insertText.trimLeft();
1021
+ insertIndex = objectInsertResult.insertIndex;
1022
+ }
1023
+ break;
1024
+ }
1025
+ return { insertText, insertIndex };
1026
+ }
1027
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1028
+ getInsertTextForGuessedValue(value, separatorAfter, type) {
1029
+ switch (typeof value) {
1030
+ case 'object':
1031
+ if (value === null) {
1032
+ return '${1:null}' + separatorAfter;
1033
+ }
1034
+ return this.getInsertTextForValue(value, separatorAfter, type);
1035
+ case 'string': {
1036
+ let snippetValue = JSON.stringify(value);
1037
+ snippetValue = snippetValue.substr(1, snippetValue.length - 2); // remove quotes
1038
+ snippetValue = this.getInsertTextForPlainText(snippetValue); // escape \ and }
1039
+ if (type === 'string') {
1040
+ snippetValue = convertToStringValue(snippetValue);
1041
+ }
1042
+ return '${1:' + snippetValue + '}' + separatorAfter;
1043
+ }
1044
+ case 'number':
1045
+ case 'boolean':
1046
+ return '${1:' + value + '}' + separatorAfter;
1047
+ }
1048
+ return this.getInsertTextForValue(value, separatorAfter, type);
1049
+ }
1050
+ getInsertTextForPlainText(text) {
1051
+ return text.replace(/[\\$}]/g, '\\$&'); // escape $, \ and }
1052
+ }
1053
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1054
+ getInsertTextForValue(value, separatorAfter, type) {
1055
+ if (value === null) {
1056
+ return 'null'; // replace type null with string 'null'
1057
+ }
1058
+ switch (typeof value) {
1059
+ case 'object': {
1060
+ const indent = this.indentation;
1061
+ return this.getInsertTemplateForValue(value, indent, { index: 1 }, separatorAfter);
1062
+ }
1063
+ case 'number':
1064
+ case 'boolean':
1065
+ return this.getInsertTextForPlainText(value + separatorAfter);
1066
+ }
1067
+ type = Array.isArray(type) ? type[0] : type;
1068
+ if (type === 'string') {
1069
+ value = convertToStringValue(value);
1070
+ }
1071
+ return this.getInsertTextForPlainText(value + separatorAfter);
1072
+ }
1073
+ getInsertTemplateForValue(value, indent, navOrder, separatorAfter) {
1074
+ if (Array.isArray(value)) {
1075
+ let insertText = '\n';
1076
+ for (const arrValue of value) {
1077
+ insertText += `${indent}- \${${navOrder.index++}:${arrValue}}\n`;
1078
+ }
1079
+ return insertText;
1080
+ }
1081
+ else if (typeof value === 'object') {
1082
+ let insertText = '\n';
1083
+ for (const key in value) {
1084
+ if (Object.prototype.hasOwnProperty.call(value, key)) {
1085
+ const element = value[key];
1086
+ insertText += `${indent}\${${navOrder.index++}:${key}}:`;
1087
+ let valueTemplate;
1088
+ if (typeof element === 'object') {
1089
+ valueTemplate = `${this.getInsertTemplateForValue(element, indent + this.indentation, navOrder, separatorAfter)}`;
1090
+ }
1091
+ else {
1092
+ valueTemplate = ` \${${navOrder.index++}:${this.getInsertTextForPlainText(element + separatorAfter)}}\n`;
1093
+ }
1094
+ insertText += `${valueTemplate}`;
1095
+ }
1096
+ }
1097
+ return insertText;
1098
+ }
1099
+ return this.getInsertTextForPlainText(value + separatorAfter);
1100
+ }
1101
+ addSchemaValueCompletions(schema, separatorAfter, collector, types, completionType, isArray) {
1102
+ if (typeof schema === 'object') {
1103
+ this.addEnumValueCompletions(schema, separatorAfter, collector, isArray);
1104
+ this.addDefaultValueCompletions(schema, separatorAfter, collector);
1105
+ this.collectTypes(schema, types);
1106
+ if (isArray && completionType === 'value' && !(0, schemaUtils_1.isAnyOfAllOfOneOfType)(schema)) {
1107
+ // add array only for final types (no anyOf, allOf, oneOf)
1108
+ this.addArrayItemValueCompletion(schema, separatorAfter, collector);
1109
+ }
1110
+ if (Array.isArray(schema.allOf)) {
1111
+ schema.allOf.forEach((s) => {
1112
+ return this.addSchemaValueCompletions(s, separatorAfter, collector, types, completionType, isArray);
1113
+ });
1114
+ }
1115
+ if (Array.isArray(schema.anyOf)) {
1116
+ schema.anyOf.forEach((s) => {
1117
+ return this.addSchemaValueCompletions(s, separatorAfter, collector, types, completionType, isArray);
1118
+ });
1119
+ }
1120
+ if (Array.isArray(schema.oneOf)) {
1121
+ schema.oneOf.forEach((s) => {
1122
+ return this.addSchemaValueCompletions(s, separatorAfter, collector, types, completionType, isArray);
1123
+ });
1124
+ }
1125
+ }
1126
+ }
1127
+ collectTypes(schema, types) {
1128
+ if (Array.isArray(schema.enum) || (0, objects_1.isDefined)(schema.const)) {
1129
+ return;
1130
+ }
1131
+ const type = schema.type;
1132
+ if (Array.isArray(type)) {
1133
+ type.forEach(function (t) {
1134
+ return (types[t] = true);
1135
+ });
1136
+ }
1137
+ else if (type) {
1138
+ types[type] = true;
1139
+ }
1140
+ }
1141
+ addDefaultValueCompletions(schema, separatorAfter, collector, arrayDepth = 0) {
1142
+ let hasProposals = false;
1143
+ if ((0, objects_1.isDefined)(schema.default)) {
1144
+ let type = schema.type;
1145
+ let value = schema.default;
1146
+ for (let i = arrayDepth; i > 0; i--) {
1147
+ value = [value];
1148
+ type = 'array';
1149
+ }
1150
+ let label;
1151
+ if (typeof value == 'object') {
1152
+ label = 'Default value';
1153
+ }
1154
+ else {
1155
+ label = value.toString().replace(doubleQuotesEscapeRegExp, '"');
1156
+ }
1157
+ collector.add({
1158
+ kind: this.getSuggestionKind(type),
1159
+ label,
1160
+ insertText: this.getInsertTextForValue(value, separatorAfter, type),
1161
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1162
+ detail: localize('json.suggest.default', 'Default value'),
1163
+ });
1164
+ hasProposals = true;
1165
+ }
1166
+ if (Array.isArray(schema.examples)) {
1167
+ schema.examples.forEach((example) => {
1168
+ let type = schema.type;
1169
+ let value = example;
1170
+ for (let i = arrayDepth; i > 0; i--) {
1171
+ value = [value];
1172
+ type = 'array';
1173
+ }
1174
+ collector.add({
1175
+ kind: this.getSuggestionKind(type),
1176
+ label: this.getLabelForValue(value),
1177
+ insertText: this.getInsertTextForValue(value, separatorAfter, type),
1178
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1179
+ });
1180
+ hasProposals = true;
1181
+ });
1182
+ }
1183
+ this.collectDefaultSnippets(schema, separatorAfter, collector, {
1184
+ newLineFirst: true,
1185
+ indentFirstObject: true,
1186
+ shouldIndentWithTab: true,
1187
+ });
1188
+ if (!hasProposals && typeof schema.items === 'object' && !Array.isArray(schema.items)) {
1189
+ this.addDefaultValueCompletions(schema.items, separatorAfter, collector, arrayDepth + 1);
1190
+ }
1191
+ }
1192
+ addEnumValueCompletions(schema, separatorAfter, collector, isArray) {
1193
+ if ((0, objects_1.isDefined)(schema.const) && !isArray) {
1194
+ collector.add({
1195
+ kind: this.getSuggestionKind(schema.type),
1196
+ label: this.getLabelForValue(schema.const),
1197
+ insertText: this.getInsertTextForValue(schema.const, separatorAfter, schema.type),
1198
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1199
+ documentation: this.fromMarkup(schema.markdownDescription) || schema.description,
1200
+ });
1201
+ }
1202
+ if (Array.isArray(schema.enum)) {
1203
+ for (let i = 0, length = schema.enum.length; i < length; i++) {
1204
+ const enm = schema.enum[i];
1205
+ let documentation = this.fromMarkup(schema.markdownDescription) || schema.description;
1206
+ if (schema.markdownEnumDescriptions && i < schema.markdownEnumDescriptions.length && this.doesSupportMarkdown()) {
1207
+ documentation = this.fromMarkup(schema.markdownEnumDescriptions[i]);
1208
+ }
1209
+ else if (schema.enumDescriptions && i < schema.enumDescriptions.length) {
1210
+ documentation = schema.enumDescriptions[i];
1211
+ }
1212
+ collector.add({
1213
+ kind: this.getSuggestionKind(schema.type),
1214
+ label: this.getLabelForValue(enm),
1215
+ insertText: this.getInsertTextForValue(enm, separatorAfter, schema.type),
1216
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1217
+ documentation: documentation,
1218
+ });
1219
+ }
1220
+ }
1221
+ }
1222
+ getLabelForValue(value) {
1223
+ if (value === null) {
1224
+ return 'null'; // return string with 'null' value if schema contains null as possible value
1225
+ }
1226
+ if (Array.isArray(value)) {
1227
+ return JSON.stringify(value);
1228
+ }
1229
+ return '' + value;
1230
+ }
1231
+ collectDefaultSnippets(schema, separatorAfter, collector, settings, arrayDepth = 0) {
1232
+ if (Array.isArray(schema.defaultSnippets)) {
1233
+ for (const s of schema.defaultSnippets) {
1234
+ let type = schema.type;
1235
+ let value = s.body;
1236
+ let label = s.label;
1237
+ let insertText;
1238
+ let filterText;
1239
+ if ((0, objects_1.isDefined)(value)) {
1240
+ const type = s.type || schema.type;
1241
+ if (arrayDepth === 0 && type === 'array') {
1242
+ // We know that a - isn't present yet so we need to add one
1243
+ const fixedObj = {};
1244
+ Object.keys(value).forEach((val, index) => {
1245
+ if (index === 0 && !val.startsWith('-')) {
1246
+ fixedObj[`- ${val}`] = value[val];
1247
+ }
1248
+ else {
1249
+ fixedObj[` ${val}`] = value[val];
1250
+ }
1251
+ });
1252
+ value = fixedObj;
1253
+ }
1254
+ const existingProps = Object.keys(collector.proposed).filter((proposedProp) => collector.proposed[proposedProp].label === existingProposeItem);
1255
+ insertText = this.getInsertTextForSnippetValue(value, separatorAfter, settings, existingProps);
1256
+ // if snippet result is empty and value has a real value, don't add it as a completion
1257
+ if (insertText === '' && value) {
1258
+ continue;
1259
+ }
1260
+ label = label || this.getLabelForSnippetValue(value);
1261
+ }
1262
+ else if (typeof s.bodyText === 'string') {
1263
+ let prefix = '', suffix = '', indent = '';
1264
+ for (let i = arrayDepth; i > 0; i--) {
1265
+ prefix = prefix + indent + '[\n';
1266
+ suffix = suffix + '\n' + indent + ']';
1267
+ indent += this.indentation;
1268
+ type = 'array';
1269
+ }
1270
+ insertText = prefix + indent + s.bodyText.split('\n').join('\n' + indent) + suffix + separatorAfter;
1271
+ label = label || insertText;
1272
+ filterText = insertText.replace(/[\n]/g, ''); // remove new lines
1273
+ }
1274
+ collector.add({
1275
+ kind: s.suggestionKind || this.getSuggestionKind(type),
1276
+ label,
1277
+ sortText: s.sortText || s.label,
1278
+ documentation: this.fromMarkup(s.markdownDescription) || s.description,
1279
+ insertText,
1280
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1281
+ filterText,
1282
+ });
1283
+ }
1284
+ }
1285
+ }
1286
+ getInsertTextForSnippetValue(value, separatorAfter, settings, existingProps, depth) {
1287
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1288
+ const replacer = (value) => {
1289
+ if (typeof value === 'string') {
1290
+ if (value[0] === '^') {
1291
+ return value.substr(1);
1292
+ }
1293
+ if (value === 'true' || value === 'false') {
1294
+ return `"${value}"`;
1295
+ }
1296
+ }
1297
+ return value;
1298
+ };
1299
+ return ((0, json_1.stringifyObject)(value, '', replacer, { ...settings, indentation: this.indentation, existingProps }, depth) + separatorAfter);
1300
+ }
1301
+ addBooleanValueCompletion(value, separatorAfter, collector) {
1302
+ collector.add({
1303
+ kind: this.getSuggestionKind('boolean'),
1304
+ label: value ? 'true' : 'false',
1305
+ insertText: this.getInsertTextForValue(value, separatorAfter, 'boolean'),
1306
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1307
+ documentation: '',
1308
+ });
1309
+ }
1310
+ addNullValueCompletion(separatorAfter, collector) {
1311
+ collector.add({
1312
+ kind: this.getSuggestionKind('null'),
1313
+ label: 'null',
1314
+ insertText: 'null' + separatorAfter,
1315
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1316
+ documentation: '',
1317
+ });
1318
+ }
1319
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1320
+ getLabelForSnippetValue(value) {
1321
+ const label = JSON.stringify(value);
1322
+ return label.replace(/\$\{\d+:([^}]+)\}|\$\d+/g, '$1');
1323
+ }
1324
+ getCustomTagValueCompletions(collector) {
1325
+ const validCustomTags = (0, arrUtils_1.filterInvalidCustomTags)(this.customTags);
1326
+ validCustomTags.forEach((validTag) => {
1327
+ // Valid custom tags are guarenteed to be strings
1328
+ const label = validTag.split(' ')[0];
1329
+ this.addCustomTagValueCompletion(collector, ' ', label);
1330
+ });
1331
+ }
1332
+ addCustomTagValueCompletion(collector, separatorAfter, label) {
1333
+ collector.add({
1334
+ kind: this.getSuggestionKind('string'),
1335
+ label: label,
1336
+ insertText: label + separatorAfter,
1337
+ insertTextFormat: vscode_languageserver_types_1.InsertTextFormat.Snippet,
1338
+ documentation: '',
1339
+ });
1340
+ }
1341
+ getDocumentationWithMarkdownText(documentation, insertText) {
1342
+ let res = documentation;
1343
+ if (this.doesSupportMarkdown()) {
1344
+ insertText = insertText
1345
+ .replace(/\${[0-9]+[:|](.*)}/g, (s, arg) => {
1346
+ return arg;
1347
+ })
1348
+ .replace(/\$([0-9]+)/g, '');
1349
+ res = this.fromMarkup(`${documentation}\n \`\`\`\n${insertText}\n\`\`\``);
1350
+ }
1351
+ return res;
1352
+ }
1353
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1354
+ getSuggestionKind(type) {
1355
+ if (Array.isArray(type)) {
1356
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1357
+ const array = type;
1358
+ type = array.length > 0 ? array[0] : null;
1359
+ }
1360
+ if (!type) {
1361
+ return vscode_languageserver_types_1.CompletionItemKind.Value;
1362
+ }
1363
+ switch (type) {
1364
+ case 'string':
1365
+ return vscode_languageserver_types_1.CompletionItemKind.Value;
1366
+ case 'object':
1367
+ return vscode_languageserver_types_1.CompletionItemKind.Module;
1368
+ case 'property':
1369
+ return vscode_languageserver_types_1.CompletionItemKind.Property;
1370
+ default:
1371
+ return vscode_languageserver_types_1.CompletionItemKind.Value;
1372
+ }
1373
+ }
1374
+ getCurrentWord(doc, offset) {
1375
+ let i = offset - 1;
1376
+ const text = doc.getText();
1377
+ while (i >= 0 && ' \t\n\r\v":{[,]}'.indexOf(text.charAt(i)) === -1) {
1378
+ i--;
1379
+ }
1380
+ return text.substring(i + 1, offset);
1381
+ }
1382
+ fromMarkup(markupString) {
1383
+ if (markupString && this.doesSupportMarkdown()) {
1384
+ return {
1385
+ kind: vscode_languageserver_types_1.MarkupKind.Markdown,
1386
+ value: markupString,
1387
+ };
1388
+ }
1389
+ return undefined;
1390
+ }
1391
+ doesSupportMarkdown() {
1392
+ if (this.supportsMarkdown === undefined) {
1393
+ const completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion;
1394
+ this.supportsMarkdown =
1395
+ completion &&
1396
+ completion.completionItem &&
1397
+ Array.isArray(completion.completionItem.documentationFormat) &&
1398
+ completion.completionItem.documentationFormat.indexOf(vscode_languageserver_types_1.MarkupKind.Markdown) !== -1;
1399
+ }
1400
+ return this.supportsMarkdown;
1401
+ }
1402
+ findItemAtOffset(seqNode, doc, offset) {
1403
+ for (let i = seqNode.items.length - 1; i >= 0; i--) {
1404
+ const node = seqNode.items[i];
1405
+ if ((0, yaml_1.isNode)(node)) {
1406
+ if (node.range) {
1407
+ if (offset > node.range[1]) {
1408
+ return i;
1409
+ }
1410
+ else if (offset >= node.range[0]) {
1411
+ return i;
1412
+ }
1413
+ }
1414
+ }
1415
+ }
1416
+ return 0;
1417
+ }
1418
+ }
1419
+ exports.YamlCompletion = YamlCompletion;
1420
+ const isNumberExp = /^\d+$/;
1421
+ function convertToStringValue(param) {
1422
+ let value;
1423
+ if (typeof param === 'string') {
1424
+ value = param;
1425
+ }
1426
+ else {
1427
+ value = '' + param;
1428
+ }
1429
+ if (value.length === 0) {
1430
+ return value;
1431
+ }
1432
+ if (value === 'true' || value === 'false' || value === 'null' || isNumberExp.test(value)) {
1433
+ return `"${value}"`;
1434
+ }
1435
+ if (value.indexOf('"') !== -1) {
1436
+ value = value.replace(doubleQuotesEscapeRegExp, '"');
1437
+ }
1438
+ let doQuote = !isNaN(parseInt(value)) || value.charAt(0) === '@';
1439
+ if (!doQuote) {
1440
+ // need to quote value if in `foo: bar`, `foo : bar` (mapping) or `foo:` (partial map) format
1441
+ // but `foo:bar` and `:bar` (colon without white-space after it) are just plain string
1442
+ let idx = value.indexOf(':', 0);
1443
+ for (; idx > 0 && idx < value.length; idx = value.indexOf(':', idx + 1)) {
1444
+ if (idx === value.length - 1) {
1445
+ // `foo:` (partial map) format
1446
+ doQuote = true;
1447
+ break;
1448
+ }
1449
+ // there are only two valid kinds of white-space in yaml: space or tab
1450
+ // ref: https://yaml.org/spec/1.2.1/#id2775170
1451
+ const nextChar = value.charAt(idx + 1);
1452
+ if (nextChar === '\t' || nextChar === ' ') {
1453
+ doQuote = true;
1454
+ break;
1455
+ }
1456
+ }
1457
+ }
1458
+ if (doQuote) {
1459
+ value = `"${value}"`;
1460
+ }
1461
+ return value;
1462
+ }
1463
+ /**
1464
+ * simplify `{$1:value}` to `value`
1465
+ */
1466
+ function evaluateTab1Symbol(value) {
1467
+ return value.replace(/\$\{1:(.*)\}/, '$1');
1468
+ }
1469
+ function isParentCompletionItem(item) {
1470
+ return 'parent' in item;
1471
+ }
1472
+ });
1473
+ //# sourceMappingURL=yamlCompletion.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCompletion.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4220c8e4cde986301792793d47f13fa9fbf3f20bde7c8c8a49a8ab2b68aef096
3
- size 54819
 
1
+ {"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,a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C,CAAC;IAED,SAAS,sBAAsB,CAAC,IAAwB;QACtD,OAAO,QAAQ,IAAI,IAAI,CAAC;IAC1B,CAAC"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.d.ts CHANGED
@@ -1,3 +1,9 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7a88dcf0cbb376a7d0f780c8ebab082796a8125bf18f12cf23db924bb1fd3e9d
3
- size 450
 
 
 
 
 
 
 
1
+ import { DefinitionParams } from 'vscode-languageserver-protocol';
2
+ import { TextDocument } from 'vscode-languageserver-textdocument';
3
+ import { DefinitionLink } from 'vscode-languageserver-types';
4
+ import { Telemetry } from '../telemetry';
5
+ export declare class YamlDefinition {
6
+ private readonly telemetry?;
7
+ constructor(telemetry?: Telemetry);
8
+ getDefinition(document: TextDocument, params: DefinitionParams): DefinitionLink[] | undefined;
9
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js CHANGED
@@ -1,3 +1,52 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:20a6d9233cf5bfe16b0ddd50c5dfa1e4f4149ece957b6f5dcc31151d0e92d4f9
3
- size 2923
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat, Inc. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports", "vscode-languageserver-types", "yaml", "../parser/yaml-documents", "../utils/arrUtils", "../utils/objects", "../utils/textBuffer"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.YamlDefinition = void 0;
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const yaml_1 = require("yaml");
19
+ const yaml_documents_1 = require("../parser/yaml-documents");
20
+ const arrUtils_1 = require("../utils/arrUtils");
21
+ const objects_1 = require("../utils/objects");
22
+ const textBuffer_1 = require("../utils/textBuffer");
23
+ class YamlDefinition {
24
+ constructor(telemetry) {
25
+ this.telemetry = telemetry;
26
+ }
27
+ getDefinition(document, params) {
28
+ try {
29
+ const yamlDocument = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);
30
+ const offset = document.offsetAt(params.position);
31
+ const currentDoc = (0, arrUtils_1.matchOffsetToDocument)(offset, yamlDocument);
32
+ if (currentDoc) {
33
+ const [node] = currentDoc.getNodeFromPosition(offset, new textBuffer_1.TextBuffer(document));
34
+ if (node && (0, yaml_1.isAlias)(node)) {
35
+ const defNode = node.resolve(currentDoc.internalDocument);
36
+ if (defNode && defNode.range) {
37
+ const targetRange = vscode_languageserver_types_1.Range.create(document.positionAt(defNode.range[0]), document.positionAt(defNode.range[2]));
38
+ const selectionRange = vscode_languageserver_types_1.Range.create(document.positionAt(defNode.range[0]), document.positionAt(defNode.range[1]));
39
+ return [vscode_languageserver_types_1.LocationLink.create(document.uri, targetRange, selectionRange)];
40
+ }
41
+ }
42
+ }
43
+ }
44
+ catch (err) {
45
+ this.telemetry?.sendError('yaml.definition.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });
46
+ }
47
+ return undefined;
48
+ }
49
+ }
50
+ exports.YamlDefinition = YamlDefinition;
51
+ });
52
+ //# sourceMappingURL=yamlDefinition.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlDefinition.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:01fa5c092892bd860d74dc3f9a58a2710ee2e61e9ef21350247fb88d2dc8044d
3
- size 1472
 
1
+ {"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"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c9b72ec822052b0a1e21e7f636faf35c30ea111a52fbb237cfcf355017949858
3
- size 305
 
 
1
+ import { FoldingRange } from 'vscode-languageserver-types';
2
+ import { FoldingRangesContext } from '../yamlTypes';
3
+ import { TextDocument } from 'vscode-languageserver-textdocument';
4
+ export declare function getFoldingRanges(document: TextDocument, context: FoldingRangesContext): FoldingRange[] | undefined;
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js CHANGED
@@ -1,3 +1,76 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:85b2d1e634b87c9abb80a99444b5a61244f4153aaa5b93d9ec8a810208e1ea23
3
- size 3737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "vscode-languageserver-types", "../parser/yaml-documents"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getFoldingRanges = void 0;
13
+ /*---------------------------------------------------------------------------------------------
14
+ * Copyright (c) Red Hat, Inc. All rights reserved.
15
+ * Licensed under the MIT License. See License.txt in the project root for license information.
16
+ *--------------------------------------------------------------------------------------------*/
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const yaml_documents_1 = require("../parser/yaml-documents");
19
+ function getFoldingRanges(document, context) {
20
+ if (!document) {
21
+ return;
22
+ }
23
+ const result = [];
24
+ const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);
25
+ for (const ymlDoc of doc.documents) {
26
+ if (doc.documents.length > 1) {
27
+ result.push(createNormalizedFolding(document, ymlDoc.root));
28
+ }
29
+ ymlDoc.visit((node) => {
30
+ if (node.type === 'object' && node.parent?.type === 'array') {
31
+ result.push(createNormalizedFolding(document, node));
32
+ }
33
+ if (node.type === 'property' && node.valueNode) {
34
+ switch (node.valueNode.type) {
35
+ case 'array':
36
+ case 'object':
37
+ result.push(createNormalizedFolding(document, node));
38
+ break;
39
+ case 'string': {
40
+ // check if it is a multi-line string
41
+ const nodePosn = document.positionAt(node.offset);
42
+ const valuePosn = document.positionAt(node.valueNode.offset + node.valueNode.length);
43
+ if (nodePosn.line !== valuePosn.line) {
44
+ result.push(createNormalizedFolding(document, node));
45
+ }
46
+ break;
47
+ }
48
+ default:
49
+ return true;
50
+ }
51
+ }
52
+ return true;
53
+ });
54
+ }
55
+ const rangeLimit = context && context.rangeLimit;
56
+ if (typeof rangeLimit !== 'number' || result.length <= rangeLimit) {
57
+ return result;
58
+ }
59
+ if (context && context.onRangeLimitExceeded) {
60
+ context.onRangeLimitExceeded(document.uri);
61
+ }
62
+ return result.slice(0, context.rangeLimit);
63
+ }
64
+ exports.getFoldingRanges = getFoldingRanges;
65
+ function createNormalizedFolding(document, node) {
66
+ const startPos = document.positionAt(node.offset);
67
+ let endPos = document.positionAt(node.offset + node.length);
68
+ const textFragment = document.getText(vscode_languageserver_types_1.Range.create(startPos, endPos));
69
+ const newLength = textFragment.length - textFragment.trimRight().length;
70
+ if (newLength > 0) {
71
+ endPos = document.positionAt(node.offset + node.length - newLength);
72
+ }
73
+ return vscode_languageserver_types_1.FoldingRange.create(startPos.line, endPos.line, startPos.character, endPos.character);
74
+ }
75
+ });
76
+ //# sourceMappingURL=yamlFolding.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFolding.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:910bad30067aab8b4171c807c0bc204a8085b5ace6aca711dd1eb1c39e24f7e5
3
- size 2364
 
1
+ {"version":3,"file":"yamlFolding.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlFolding.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA;;;oGAGgG;IAChG,6EAAkE;IAGlE,6DAA8D;IAG9D,SAAgB,gBAAgB,CAAC,QAAsB,EAAE,OAA6B;QACpF,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO;SACR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AC,CAAC;IAC/F,CAAC"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8231cfa9a1e4a38a0bbeaed003e818c239d85ae97ca1dd9196793085498de453
3
- size 448
 
 
 
 
 
 
1
+ import { TextEdit, FormattingOptions } from 'vscode-languageserver-types';
2
+ import { CustomFormatterOptions, LanguageSettings } from '../yamlLanguageService';
3
+ import { TextDocument } from 'vscode-languageserver-textdocument';
4
+ export declare class YAMLFormatter {
5
+ private formatterEnabled;
6
+ configure(shouldFormat: LanguageSettings): void;
7
+ format(document: TextDocument, options: FormattingOptions & CustomFormatterOptions): TextEdit[];
8
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js CHANGED
@@ -1,3 +1,58 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:96dc220b881ae34b4cdee5870581d748e66b46650c1e69d1b3267d6f7a7069fb
3
- size 2727
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "vscode-languageserver-types", "prettier", "prettier/parser-yaml"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ /*---------------------------------------------------------------------------------------------
11
+ * Copyright (c) Red Hat, Inc. All rights reserved.
12
+ * Copyright (c) Adam Voss. All rights reserved.
13
+ * Licensed under the MIT License. See License.txt in the project root for license information.
14
+ *--------------------------------------------------------------------------------------------*/
15
+ 'use strict';
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.YAMLFormatter = void 0;
18
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
19
+ const prettier = require("prettier");
20
+ const parser = require("prettier/parser-yaml");
21
+ class YAMLFormatter {
22
+ constructor() {
23
+ this.formatterEnabled = true;
24
+ }
25
+ configure(shouldFormat) {
26
+ if (shouldFormat) {
27
+ this.formatterEnabled = shouldFormat.format;
28
+ }
29
+ }
30
+ format(document, options) {
31
+ if (!this.formatterEnabled) {
32
+ return [];
33
+ }
34
+ try {
35
+ const text = document.getText();
36
+ const prettierOptions = {
37
+ parser: 'yaml',
38
+ plugins: [parser],
39
+ // --- FormattingOptions ---
40
+ tabWidth: options.tabWidth || options.tabSize,
41
+ // --- CustomFormatterOptions ---
42
+ singleQuote: options.singleQuote,
43
+ bracketSpacing: options.bracketSpacing,
44
+ // 'preserve' is the default for Options.proseWrap. See also server.ts
45
+ proseWrap: 'always' === options.proseWrap ? 'always' : 'never' === options.proseWrap ? 'never' : 'preserve',
46
+ printWidth: options.printWidth,
47
+ };
48
+ const formatted = prettier.format(text, prettierOptions);
49
+ 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)];
50
+ }
51
+ catch (error) {
52
+ return [];
53
+ }
54
+ }
55
+ }
56
+ exports.YAMLFormatter = YAMLFormatter;
57
+ });
58
+ //# sourceMappingURL=yamlFormatter.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlFormatter.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:069682d78987704d32ff40103e79af3aa61a123a6c103a82b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M,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"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.d.ts CHANGED
@@ -1,3 +1,15 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0d24da5f660c79bfa5992e1b231f1ec94bb9435659ee99bc4b519d363d826d17
3
- size 690
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Hover, Position } from 'vscode-languageserver-types';
2
+ import { LanguageSettings } from '../yamlLanguageService';
3
+ import { YAMLSchemaService } from './yamlSchemaService';
4
+ import { TextDocument } from 'vscode-languageserver-textdocument';
5
+ import { Telemetry } from '../telemetry';
6
+ export declare class YAMLHover {
7
+ private readonly telemetry?;
8
+ private shouldHover;
9
+ private indentation;
10
+ private schemaService;
11
+ constructor(schemaService: YAMLSchemaService, telemetry?: Telemetry);
12
+ configure(languageSettings: LanguageSettings): void;
13
+ doHover(document: TextDocument, position: Position, isKubernetes?: boolean): Promise<Hover | null>;
14
+ private getHover;
15
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js CHANGED
@@ -1,3 +1,231 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c0b166cb70be2caf912b5aa13c2946884b0e50a681638218e574498fd9cf157b
3
- size 11962
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "vscode-languageserver-types", "../utils/arrUtils", "../parser/isKubernetes", "../parser/yaml-documents", "../parser/jsonParser07", "vscode-uri", "path", "../utils/objects"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ /*---------------------------------------------------------------------------------------------
11
+ * Copyright (c) Red Hat, Inc. All rights reserved.
12
+ * Copyright (c) Microsoft Corporation. All rights reserved.
13
+ * Licensed under the MIT License. See License.txt in the project root for license information.
14
+ *--------------------------------------------------------------------------------------------*/
15
+ 'use strict';
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.YAMLHover = void 0;
18
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
19
+ const arrUtils_1 = require("../utils/arrUtils");
20
+ const isKubernetes_1 = require("../parser/isKubernetes");
21
+ const yaml_documents_1 = require("../parser/yaml-documents");
22
+ const jsonParser07_1 = require("../parser/jsonParser07");
23
+ const vscode_uri_1 = require("vscode-uri");
24
+ const path = require("path");
25
+ const objects_1 = require("../utils/objects");
26
+ class YAMLHover {
27
+ constructor(schemaService, telemetry) {
28
+ this.telemetry = telemetry;
29
+ this.shouldHover = true;
30
+ this.schemaService = schemaService;
31
+ }
32
+ configure(languageSettings) {
33
+ if (languageSettings) {
34
+ this.shouldHover = languageSettings.hover;
35
+ this.indentation = languageSettings.indentation;
36
+ }
37
+ }
38
+ doHover(document, position, isKubernetes = false) {
39
+ try {
40
+ if (!this.shouldHover || !document) {
41
+ return Promise.resolve(undefined);
42
+ }
43
+ const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);
44
+ const offset = document.offsetAt(position);
45
+ const currentDoc = (0, arrUtils_1.matchOffsetToDocument)(offset, doc);
46
+ if (currentDoc === null) {
47
+ return Promise.resolve(undefined);
48
+ }
49
+ (0, isKubernetes_1.setKubernetesParserOption)(doc.documents, isKubernetes);
50
+ const currentDocIndex = doc.documents.indexOf(currentDoc);
51
+ currentDoc.currentDocIndex = currentDocIndex;
52
+ return this.getHover(document, position, currentDoc);
53
+ }
54
+ catch (error) {
55
+ this.telemetry?.sendError('yaml.hover.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(error) });
56
+ }
57
+ }
58
+ // method copied from https://github.com/microsoft/vscode-json-languageservice/blob/2ea5ad3d2ffbbe40dea11cfe764a502becf113ce/src/services/jsonHover.ts#L23
59
+ getHover(document, position, doc) {
60
+ const offset = document.offsetAt(position);
61
+ let node = doc.getNodeFromOffset(offset);
62
+ if (!node ||
63
+ ((node.type === 'object' || node.type === 'array') && offset > node.offset + 1 && offset < node.offset + node.length - 1)) {
64
+ return Promise.resolve(null);
65
+ }
66
+ const hoverRangeNode = node;
67
+ // use the property description when hovering over an object key
68
+ if (node.type === 'string') {
69
+ const parent = node.parent;
70
+ if (parent && parent.type === 'property' && parent.keyNode === node) {
71
+ node = parent.valueNode;
72
+ if (!node) {
73
+ return Promise.resolve(null);
74
+ }
75
+ }
76
+ }
77
+ const hoverRange = vscode_languageserver_types_1.Range.create(document.positionAt(hoverRangeNode.offset), document.positionAt(hoverRangeNode.offset + hoverRangeNode.length));
78
+ const createHover = (contents) => {
79
+ if (this.indentation !== undefined) {
80
+ const indentationMatchRegex = new RegExp(` {${this.indentation.length}}`, 'g');
81
+ contents = contents.replace(indentationMatchRegex, '&emsp;');
82
+ }
83
+ const markupContent = {
84
+ kind: vscode_languageserver_types_1.MarkupKind.Markdown,
85
+ value: contents,
86
+ };
87
+ const result = {
88
+ contents: markupContent,
89
+ range: hoverRange,
90
+ };
91
+ return result;
92
+ };
93
+ const removePipe = (value) => {
94
+ return value.replace(/\|\|\s*$/, '');
95
+ };
96
+ return this.schemaService.getSchemaForResource(document.uri, doc).then((schema) => {
97
+ if (schema && node && !schema.errors.length) {
98
+ const matchingSchemas = doc.getMatchingSchemas(schema.schema, node.offset);
99
+ let title = undefined;
100
+ let markdownDescription = undefined;
101
+ let markdownEnumValueDescription = undefined;
102
+ let enumValue = undefined;
103
+ const markdownExamples = [];
104
+ matchingSchemas.every((s) => {
105
+ if ((s.node === node || (node.type === 'property' && node.valueNode === s.node)) && !s.inverted && s.schema) {
106
+ title = title || s.schema.title || s.schema.closestTitle;
107
+ markdownDescription = markdownDescription || s.schema.markdownDescription || toMarkdown(s.schema.description);
108
+ if (s.schema.enum) {
109
+ const idx = s.schema.enum.indexOf((0, jsonParser07_1.getNodeValue)(node));
110
+ if (s.schema.markdownEnumDescriptions) {
111
+ markdownEnumValueDescription = s.schema.markdownEnumDescriptions[idx];
112
+ }
113
+ else if (s.schema.enumDescriptions) {
114
+ markdownEnumValueDescription = toMarkdown(s.schema.enumDescriptions[idx]);
115
+ }
116
+ if (markdownEnumValueDescription) {
117
+ enumValue = s.schema.enum[idx];
118
+ if (typeof enumValue !== 'string') {
119
+ enumValue = JSON.stringify(enumValue);
120
+ }
121
+ }
122
+ }
123
+ if (s.schema.anyOf && isAllSchemasMatched(node, matchingSchemas, s.schema)) {
124
+ //if append title and description of all matched schemas on hover
125
+ title = '';
126
+ markdownDescription = '';
127
+ s.schema.anyOf.forEach((childSchema, index) => {
128
+ title += childSchema.title || s.schema.closestTitle || '';
129
+ markdownDescription += childSchema.markdownDescription || toMarkdown(childSchema.description) || '';
130
+ if (index !== s.schema.anyOf.length - 1) {
131
+ title += ' || ';
132
+ markdownDescription += ' || ';
133
+ }
134
+ });
135
+ title = removePipe(title);
136
+ markdownDescription = removePipe(markdownDescription);
137
+ }
138
+ if (s.schema.examples) {
139
+ s.schema.examples.forEach((example) => {
140
+ markdownExamples.push(JSON.stringify(example, null, 2));
141
+ });
142
+ }
143
+ }
144
+ return true;
145
+ });
146
+ let result = '';
147
+ if (title) {
148
+ result = '#### ' + toMarkdown(title);
149
+ }
150
+ if (markdownDescription) {
151
+ if (result.length > 0) {
152
+ result += '\n\n';
153
+ }
154
+ result += markdownDescription;
155
+ }
156
+ if (markdownEnumValueDescription) {
157
+ if (result.length > 0) {
158
+ result += '\n\n';
159
+ }
160
+ result += `\`${toMarkdownCodeBlock(enumValue)}\`: ${markdownEnumValueDescription}`;
161
+ }
162
+ if (markdownExamples.length !== 0) {
163
+ if (result.length > 0) {
164
+ result += '\n\n';
165
+ }
166
+ result += 'Examples:';
167
+ markdownExamples.forEach((example) => {
168
+ result += `\n\n\`\`\`${example}\`\`\``;
169
+ });
170
+ }
171
+ if (result.length > 0 && schema.schema.url) {
172
+ result += `\n\nSource: [${getSchemaName(schema.schema)}](${schema.schema.url})`;
173
+ }
174
+ return createHover(result);
175
+ }
176
+ return null;
177
+ });
178
+ }
179
+ }
180
+ exports.YAMLHover = YAMLHover;
181
+ function getSchemaName(schema) {
182
+ let result = 'JSON Schema';
183
+ const urlString = schema.url;
184
+ if (urlString) {
185
+ const url = vscode_uri_1.URI.parse(urlString);
186
+ result = path.basename(url.fsPath);
187
+ }
188
+ else if (schema.title) {
189
+ result = schema.title;
190
+ }
191
+ return result;
192
+ }
193
+ function toMarkdown(plain) {
194
+ if (plain) {
195
+ const res = plain.replace(/([^\n\r])(\r?\n)([^\n\r])/gm, '$1\n\n$3'); // single new lines to \n\n (Markdown paragraph)
196
+ return res.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&'); // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
197
+ }
198
+ return undefined;
199
+ }
200
+ // copied from https://github.com/microsoft/vscode-json-languageservice/blob/2ea5ad3d2ffbbe40dea11cfe764a502becf113ce/src/services/jsonHover.ts#L122
201
+ function toMarkdownCodeBlock(content) {
202
+ // see https://daringfireball.net/projects/markdown/syntax#precode
203
+ if (content.indexOf('`') !== -1) {
204
+ return '`` ' + content + ' ``';
205
+ }
206
+ return content;
207
+ }
208
+ /**
209
+ * check all the schemas which is inside anyOf presented or not in matching schema.
210
+ * @param node node
211
+ * @param matchingSchemas all matching schema
212
+ * @param schema scheam which is having anyOf
213
+ * @returns true if all the schemas which inside anyOf presents in matching schema
214
+ */
215
+ function isAllSchemasMatched(node, matchingSchemas, schema) {
216
+ let count = 0;
217
+ for (const matchSchema of matchingSchemas) {
218
+ if (node === matchSchema.node && matchSchema.schema !== schema) {
219
+ schema.anyOf.forEach((childSchema) => {
220
+ if (matchSchema.schema.title === childSchema.title &&
221
+ matchSchema.schema.description === childSchema.description &&
222
+ matchSchema.schema.properties === childSchema.properties) {
223
+ count++;
224
+ }
225
+ });
226
+ }
227
+ }
228
+ return count === schema.anyOf.length;
229
+ }
230
+ });
231
+ //# sourceMappingURL=yamlHover.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlHover.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4afed20e324d68fbf078a39b68b6d3a7e1f16f626d2a233824c16739fca22abe
3
- size 7537
 
1
+ {"version":3,"file":"yamlHover.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlHover.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;;oGAIgG;IAChG,YAAY,C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,CAAC;aACJ;SACF;QACD,OAAO,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IACvC,CAAC"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:696f2fd0d738f228c37018f34ca63c969c4a4fdb0fca4ddc6d13e200349d96be
3
- size 341
 
 
 
 
 
 
1
+ import { DocumentLink } from 'vscode-languageserver-types';
2
+ import { TextDocument } from 'vscode-languageserver-textdocument';
3
+ import { Telemetry } from '../telemetry';
4
+ export declare class YamlLinks {
5
+ private readonly telemetry?;
6
+ constructor(telemetry?: Telemetry);
7
+ findLinks(document: TextDocument): Promise<DocumentLink[]>;
8
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js CHANGED
@@ -1,3 +1,42 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:18c28cc2deafd9dbe2992d709f1bcab0dc4038d2e846294e4c6590008efbf9cc
3
- size 2152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "vscode-json-languageservice/lib/umd/services/jsonLinks", "../parser/yaml-documents", "../utils/objects"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.YamlLinks = void 0;
13
+ /*---------------------------------------------------------------------------------------------
14
+ * Copyright (c) Red Hat, Inc. All rights reserved.
15
+ * Licensed under the MIT License. See License.txt in the project root for license information.
16
+ *--------------------------------------------------------------------------------------------*/
17
+ const jsonLinks_1 = require("vscode-json-languageservice/lib/umd/services/jsonLinks");
18
+ const yaml_documents_1 = require("../parser/yaml-documents");
19
+ const objects_1 = require("../utils/objects");
20
+ class YamlLinks {
21
+ constructor(telemetry) {
22
+ this.telemetry = telemetry;
23
+ }
24
+ findLinks(document) {
25
+ try {
26
+ const doc = yaml_documents_1.yamlDocumentsCache.getYamlDocument(document);
27
+ // Find links across all YAML Documents then report them back once finished
28
+ const linkPromises = [];
29
+ for (const yamlDoc of doc.documents) {
30
+ linkPromises.push((0, jsonLinks_1.findLinks)(document, yamlDoc));
31
+ }
32
+ // Wait for all the promises to return and then flatten them into one DocumentLink array
33
+ return Promise.all(linkPromises).then((yamlLinkArray) => [].concat(...yamlLinkArray));
34
+ }
35
+ catch (err) {
36
+ this.telemetry?.sendError('yaml.documentLink.error', { error: (0, objects_1.convertErrorToTelemetryMsg)(err) });
37
+ }
38
+ }
39
+ }
40
+ exports.YamlLinks = YamlLinks;
41
+ });
42
+ //# sourceMappingURL=yamlLinks.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlLinks.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:dcb708cbcd40263b4cccf4d6b013b9219fb89fb8e676fbfb91283ca0b0d1865b
3
- size 847
 
1
+ {"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"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4aecaf44ce73e3277a8d6c31b33ad672dc77fba19ae231a6032a0c92bef6328b
3
- size 335
 
 
1
+ import { DocumentOnTypeFormattingParams } from 'vscode-languageserver';
2
+ import { TextEdit } from 'vscode-languageserver-types';
3
+ import { TextDocument } from 'vscode-languageserver-textdocument';
4
+ export declare function doDocumentOnTypeFormatting(document: TextDocument, params: DocumentOnTypeFormattingParams): TextEdit[] | undefined;
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js CHANGED
@@ -1,3 +1,57 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2adee56cba4809a87123648d7bc91b1adc64d8a8a05012bdb36ea7c46bc2c186
3
- size 3352
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Red Hat, Inc. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports", "vscode-languageserver-types", "../utils/textBuffer"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.doDocumentOnTypeFormatting = void 0;
17
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
18
+ const textBuffer_1 = require("../utils/textBuffer");
19
+ function doDocumentOnTypeFormatting(document, params) {
20
+ const { position } = params;
21
+ const tb = new textBuffer_1.TextBuffer(document);
22
+ if (params.ch === '\n') {
23
+ const previousLine = tb.getLineContent(position.line - 1);
24
+ if (previousLine.trimRight().endsWith(':')) {
25
+ const currentLine = tb.getLineContent(position.line);
26
+ const subLine = currentLine.substring(position.character, currentLine.length);
27
+ const isInArray = previousLine.indexOf(' - ') !== -1;
28
+ if (subLine.trimRight().length === 0) {
29
+ const indentationFix = position.character - (previousLine.length - previousLine.trimLeft().length);
30
+ if (indentationFix === params.options.tabSize && !isInArray) {
31
+ return; // skip if line already has proper formatting
32
+ }
33
+ const result = [];
34
+ if (currentLine.length > 0) {
35
+ 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))));
36
+ }
37
+ result.push(vscode_languageserver_types_1.TextEdit.insert(position, ' '.repeat(params.options.tabSize + (isInArray ? 2 - indentationFix : 0))));
38
+ return result;
39
+ }
40
+ if (isInArray) {
41
+ return [vscode_languageserver_types_1.TextEdit.insert(position, ' '.repeat(params.options.tabSize))];
42
+ }
43
+ }
44
+ if (previousLine.trimRight().endsWith('|')) {
45
+ return [vscode_languageserver_types_1.TextEdit.insert(position, ' '.repeat(params.options.tabSize))];
46
+ }
47
+ if (previousLine.includes(' - ') && !previousLine.includes(': ')) {
48
+ return [vscode_languageserver_types_1.TextEdit.insert(position, '- ')];
49
+ }
50
+ if (previousLine.includes(' - ') && previousLine.includes(': ')) {
51
+ return [vscode_languageserver_types_1.TextEdit.insert(position, ' ')];
52
+ }
53
+ }
54
+ }
55
+ exports.doDocumentOnTypeFormatting = doDocumentOnTypeFormatting;
56
+ });
57
+ //# sourceMappingURL=yamlOnTypeFormatting.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlOnTypeFormatting.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c2eee8573bb04264184c7213deb515916917e60ae1573a4ae40de4dd651c29bd
3
- size 2154
 
1
+ {"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,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O,CAAC,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBAElH,OAAO,MAAM,CAAC;iBACf;gBACD,IAAI,SAAS,EAAE;oBACb,OAAO,CAAC,sCAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACxE;aACF;YAED,IAAI,YAAY,CAAC,SAAS,EAAE,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"}
 
 
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.d.ts CHANGED
@@ -1,3 +1,102 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4d265f93b1cbc28de09dc5d2e23e7f657c41c94e31d6f7702a2ebf575abf6850
3
- size 4359
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { JSONSchema } from '../jsonSchema';
2
+ import { SchemaPriority, SchemaRequestService, WorkspaceContextService } from '../yamlLanguageService';
3
+ import { UnresolvedSchema, ResolvedSchema, JSONSchemaService, SchemaDependencies, ISchemaContributions, SchemaHandle } from 'vscode-json-languageservice/lib/umd/services/jsonSchemaService';
4
+ import { JSONDocument } from '../parser/jsonParser07';
5
+ import { JSONSchemaDescriptionExt } from '../../requestTypes';
6
+ import { SchemaVersions } from '../yamlTypes';
7
+ export declare type CustomSchemaProvider = (uri: string) => Promise<string | string[]>;
8
+ export declare enum MODIFICATION_ACTIONS {
9
+ 'delete' = 0,
10
+ 'add' = 1,
11
+ 'deleteAll' = 2
12
+ }
13
+ export interface SchemaAdditions {
14
+ schema: string;
15
+ action: MODIFICATION_ACTIONS.add;
16
+ path: string;
17
+ key: string;
18
+ content: any;
19
+ }
20
+ export interface SchemaDeletions {
21
+ schema: string;
22
+ action: MODIFICATION_ACTIONS.delete;
23
+ path: string;
24
+ key: string;
25
+ }
26
+ export interface SchemaDeletionsAll {
27
+ schemas: string[];
28
+ action: MODIFICATION_ACTIONS.deleteAll;
29
+ }
30
+ export declare class FilePatternAssociation {
31
+ private schemas;
32
+ private patternRegExp;
33
+ constructor(pattern: string);
34
+ addSchema(id: string): void;
35
+ matchesPattern(fileName: string): boolean;
36
+ getSchemas(): string[];
37
+ }
38
+ export declare class YAMLSchemaService extends JSONSchemaService {
39
+ [x: string]: any;
40
+ private customSchemaProvider;
41
+ private filePatternAssociations;
42
+ private contextService;
43
+ private requestService;
44
+ schemaPriorityMapping: Map<string, Set<SchemaPriority>>;
45
+ private schemaUriToNameAndDescription;
46
+ constructor(requestService: SchemaRequestService, contextService?: WorkspaceContextService, promiseConstructor?: PromiseConstructor);
47
+ registerCustomSchemaProvider(customSchemaProvider: CustomSchemaProvider): void;
48
+ getAllSchemas(): JSONSchemaDescriptionExt[];
49
+ resolveSchemaContent(schemaToResolve: UnresolvedSchema, schemaURL: string, dependencies: SchemaDependencies): Promise<ResolvedSchema>;
50
+ getSchemaForResource(resource: string, doc: JSONDocument): Promise<ResolvedSchema>;
51
+ addSchemaPriority(uri: string, priority: number): void;
52
+ /**
53
+ * Search through all the schemas and find the ones with the highest priority
54
+ */
55
+ private highestPrioritySchemas;
56
+ private resolveCustomSchema;
57
+ /**
58
+ * Save a schema with schema ID and schema content.
59
+ * Overrides previous schemas set for that schema ID.
60
+ */
61
+ saveSchema(schemaId: string, schemaContent: JSONSchema): Promise<void>;
62
+ /**
63
+ * Delete schemas on specific path
64
+ */
65
+ deleteSchemas(deletions: SchemaDeletionsAll): Promise<void>;
66
+ /**
67
+ * Delete a schema with schema ID.
68
+ */
69
+ deleteSchema(schemaId: string): Promise<void>;
70
+ /**
71
+ * Add content to a specified schema at a specified path
72
+ */
73
+ addContent(additions: SchemaAdditions): Promise<void>;
74
+ /**
75
+ * Delete content in a specified schema at a specified path
76
+ */
77
+ deleteContent(deletions: SchemaDeletions): Promise<void>;
78
+ /**
79
+ * Take a JSON Schema and the path that you would like to get to
80
+ * @returns the JSON Schema resolved at that specific path
81
+ */
82
+ private resolveJSONSchemaToSection;
83
+ /**
84
+ * Resolve the next Object if they have compatible types
85
+ * @param object a location in the JSON Schema
86
+ * @param token the next token that you want to search for
87
+ */
88
+ private resolveNext;
89
+ /**
90
+ * Everything below here is needed because we're importing from vscode-json-languageservice umd and we need
91
+ * to provide a wrapper around the javascript methods we are calling since they have no type
92
+ */
93
+ normalizeId(id: string): string;
94
+ getOrAddSchemaHandle(id: string, unresolvedSchemaContent?: JSONSchema): SchemaHandle;
95
+ loadSchema(schemaUri: string): Promise<UnresolvedSchema>;
96
+ registerExternalSchema(uri: string, filePatterns?: string[], unresolvedSchema?: JSONSchema, name?: string, description?: string, versions?: SchemaVersions): SchemaHandle;
97
+ clearExternalSchemas(): void;
98
+ setSchemaContributions(schemaContributions: ISchemaContributions): void;
99
+ getRegisteredSchemaIds(filter?: (scheme: any) => boolean): string[];
100
+ getResolvedSchema(schemaId: string): Promise<ResolvedSchema>;
101
+ onResourceChange(uri: string): boolean;
102
+ }
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js CHANGED
@@ -1,3 +1,585 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e954ecd4f199588d6fccfcd7991c02adc7e16d9fcde41d8726ef1d60969d46d3
3
- size 28575
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "../yamlLanguageService", "vscode-json-languageservice/lib/umd/services/jsonSchemaService", "vscode-uri", "vscode-nls", "../utils/strings", "yaml", "path", "./modelineUtil", "ajv", "../utils/schemaUtils"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ /*---------------------------------------------------------------------------------------------
11
+ * Copyright (c) Red Hat, Inc. All rights reserved.
12
+ * Copyright (c) Microsoft Corporation. All rights reserved.
13
+ * Licensed under the MIT License. See License.txt in the project root for license information.
14
+ *--------------------------------------------------------------------------------------------*/
15
+ 'use strict';
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.YAMLSchemaService = exports.FilePatternAssociation = exports.MODIFICATION_ACTIONS = void 0;
18
+ const yamlLanguageService_1 = require("../yamlLanguageService");
19
+ const jsonSchemaService_1 = require("vscode-json-languageservice/lib/umd/services/jsonSchemaService");
20
+ const vscode_uri_1 = require("vscode-uri");
21
+ const nls = require("vscode-nls");
22
+ const strings_1 = require("../utils/strings");
23
+ const yaml_1 = require("yaml");
24
+ const path = require("path");
25
+ const modelineUtil_1 = require("./modelineUtil");
26
+ const ajv_1 = require("ajv");
27
+ const schemaUtils_1 = require("../utils/schemaUtils");
28
+ const localize = nls.loadMessageBundle();
29
+ const ajv = new ajv_1.default();
30
+ // load JSON Schema 07 def to validate loaded schemas
31
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
32
+ const jsonSchema07 = require('ajv/dist/refs/json-schema-draft-07.json');
33
+ const schema07Validator = ajv.compile(jsonSchema07);
34
+ var MODIFICATION_ACTIONS;
35
+ (function (MODIFICATION_ACTIONS) {
36
+ MODIFICATION_ACTIONS[MODIFICATION_ACTIONS["delete"] = 0] = "delete";
37
+ MODIFICATION_ACTIONS[MODIFICATION_ACTIONS["add"] = 1] = "add";
38
+ MODIFICATION_ACTIONS[MODIFICATION_ACTIONS["deleteAll"] = 2] = "deleteAll";
39
+ })(MODIFICATION_ACTIONS = exports.MODIFICATION_ACTIONS || (exports.MODIFICATION_ACTIONS = {}));
40
+ class FilePatternAssociation {
41
+ constructor(pattern) {
42
+ try {
43
+ this.patternRegExp = new RegExp((0, strings_1.convertSimple2RegExpPattern)(pattern) + '$');
44
+ }
45
+ catch (e) {
46
+ // invalid pattern
47
+ this.patternRegExp = null;
48
+ }
49
+ this.schemas = [];
50
+ }
51
+ addSchema(id) {
52
+ this.schemas.push(id);
53
+ }
54
+ matchesPattern(fileName) {
55
+ return this.patternRegExp && this.patternRegExp.test(fileName);
56
+ }
57
+ getSchemas() {
58
+ return this.schemas;
59
+ }
60
+ }
61
+ exports.FilePatternAssociation = FilePatternAssociation;
62
+ class YAMLSchemaService extends jsonSchemaService_1.JSONSchemaService {
63
+ constructor(requestService, contextService, promiseConstructor) {
64
+ super(requestService, contextService, promiseConstructor);
65
+ this.schemaUriToNameAndDescription = new Map();
66
+ this.customSchemaProvider = undefined;
67
+ this.requestService = requestService;
68
+ this.schemaPriorityMapping = new Map();
69
+ }
70
+ registerCustomSchemaProvider(customSchemaProvider) {
71
+ this.customSchemaProvider = customSchemaProvider;
72
+ }
73
+ getAllSchemas() {
74
+ const result = [];
75
+ const schemaUris = new Set();
76
+ for (const filePattern of this.filePatternAssociations) {
77
+ const schemaUri = filePattern.uris[0];
78
+ if (schemaUris.has(schemaUri)) {
79
+ continue;
80
+ }
81
+ schemaUris.add(schemaUri);
82
+ const schemaHandle = {
83
+ uri: schemaUri,
84
+ fromStore: false,
85
+ usedForCurrentFile: false,
86
+ };
87
+ if (this.schemaUriToNameAndDescription.has(schemaUri)) {
88
+ const { name, description, versions } = this.schemaUriToNameAndDescription.get(schemaUri);
89
+ schemaHandle.name = name;
90
+ schemaHandle.description = description;
91
+ schemaHandle.fromStore = true;
92
+ schemaHandle.versions = versions;
93
+ }
94
+ result.push(schemaHandle);
95
+ }
96
+ return result;
97
+ }
98
+ async resolveSchemaContent(schemaToResolve, schemaURL, dependencies) {
99
+ const resolveErrors = schemaToResolve.errors.slice(0);
100
+ let schema = schemaToResolve.schema;
101
+ const contextService = this.contextService;
102
+ if (!schema07Validator(schema)) {
103
+ const errs = [];
104
+ for (const err of schema07Validator.errors) {
105
+ errs.push(`${err.instancePath} : ${err.message}`);
106
+ }
107
+ resolveErrors.push(`Schema '${(0, schemaUtils_1.getSchemaTitle)(schemaToResolve.schema, schemaURL)}' is not valid:\n${errs.join('\n')}`);
108
+ }
109
+ const findSection = (schema, path) => {
110
+ if (!path) {
111
+ return schema;
112
+ }
113
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
114
+ let current = schema;
115
+ if (path[0] === '/') {
116
+ path = path.substr(1);
117
+ }
118
+ path.split('/').some((part) => {
119
+ current = current[part];
120
+ return !current;
121
+ });
122
+ return current;
123
+ };
124
+ const merge = (target, sourceRoot, sourceURI, path) => {
125
+ const section = findSection(sourceRoot, path);
126
+ if (section) {
127
+ for (const key in section) {
128
+ if (Object.prototype.hasOwnProperty.call(section, key) && !Object.prototype.hasOwnProperty.call(target, key)) {
129
+ target[key] = section[key];
130
+ }
131
+ }
132
+ }
133
+ else {
134
+ resolveErrors.push(localize('json.schema.invalidref', "$ref '{0}' in '{1}' can not be resolved.", path, sourceURI));
135
+ }
136
+ };
137
+ const resolveExternalLink = (node, uri, linkPath, parentSchemaURL, parentSchemaDependencies
138
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
139
+ ) => {
140
+ if (contextService && !/^\w+:\/\/.*/.test(uri)) {
141
+ uri = contextService.resolveRelativePath(uri, parentSchemaURL);
142
+ }
143
+ uri = this.normalizeId(uri);
144
+ const referencedHandle = this.getOrAddSchemaHandle(uri);
145
+ return referencedHandle.getUnresolvedSchema().then((unresolvedSchema) => {
146
+ parentSchemaDependencies[uri] = true;
147
+ if (unresolvedSchema.errors.length) {
148
+ const loc = linkPath ? uri + '#' + linkPath : uri;
149
+ resolveErrors.push(localize('json.schema.problemloadingref', "Problems loading reference '{0}': {1}", loc, unresolvedSchema.errors[0]));
150
+ }
151
+ merge(node, unresolvedSchema.schema, uri, linkPath);
152
+ node.url = uri;
153
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
154
+ return resolveRefs(node, unresolvedSchema.schema, uri, referencedHandle.dependencies);
155
+ });
156
+ };
157
+ const resolveRefs = async (node, parentSchema, parentSchemaURL, parentSchemaDependencies
158
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
159
+ ) => {
160
+ if (!node || typeof node !== 'object') {
161
+ return null;
162
+ }
163
+ const toWalk = [node];
164
+ const seen = [];
165
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
+ const openPromises = [];
167
+ const collectEntries = (...entries) => {
168
+ for (const entry of entries) {
169
+ if (typeof entry === 'object') {
170
+ toWalk.push(entry);
171
+ }
172
+ }
173
+ };
174
+ const collectMapEntries = (...maps) => {
175
+ for (const map of maps) {
176
+ if (typeof map === 'object') {
177
+ for (const key in map) {
178
+ const entry = map[key];
179
+ if (typeof entry === 'object') {
180
+ toWalk.push(entry);
181
+ }
182
+ }
183
+ }
184
+ }
185
+ };
186
+ const collectArrayEntries = (...arrays) => {
187
+ for (const array of arrays) {
188
+ if (Array.isArray(array)) {
189
+ for (const entry of array) {
190
+ if (typeof entry === 'object') {
191
+ toWalk.push(entry);
192
+ }
193
+ }
194
+ }
195
+ }
196
+ };
197
+ const handleRef = (next) => {
198
+ const seenRefs = [];
199
+ while (next.$ref) {
200
+ const ref = next.$ref;
201
+ const segments = ref.split('#', 2);
202
+ //return back removed $ref. We lost info about referenced type without it.
203
+ next._$ref = next.$ref;
204
+ delete next.$ref;
205
+ if (segments[0].length > 0) {
206
+ openPromises.push(resolveExternalLink(next, segments[0], segments[1], parentSchemaURL, parentSchemaDependencies));
207
+ return;
208
+ }
209
+ else {
210
+ if (seenRefs.indexOf(ref) === -1) {
211
+ merge(next, parentSchema, parentSchemaURL, segments[1]); // can set next.$ref again, use seenRefs to avoid circle
212
+ seenRefs.push(ref);
213
+ }
214
+ }
215
+ }
216
+ collectEntries(next.items, next.additionalItems, next.additionalProperties, next.not, next.contains, next.propertyNames, next.if, next.then, next.else);
217
+ collectMapEntries(next.definitions, next.properties, next.patternProperties, next.dependencies);
218
+ collectArrayEntries(next.anyOf, next.allOf, next.oneOf, next.items, next.schemaSequence);
219
+ };
220
+ if (parentSchemaURL.indexOf('#') > 0) {
221
+ const segments = parentSchemaURL.split('#', 2);
222
+ if (segments[0].length > 0 && segments[1].length > 0) {
223
+ const newSchema = {};
224
+ await resolveExternalLink(newSchema, segments[0], segments[1], parentSchemaURL, parentSchemaDependencies);
225
+ for (const key in schema) {
226
+ if (key === 'required') {
227
+ continue;
228
+ }
229
+ if (Object.prototype.hasOwnProperty.call(schema, key) && !Object.prototype.hasOwnProperty.call(newSchema, key)) {
230
+ newSchema[key] = schema[key];
231
+ }
232
+ }
233
+ schema = newSchema;
234
+ }
235
+ }
236
+ while (toWalk.length) {
237
+ const next = toWalk.pop();
238
+ if (seen.indexOf(next) >= 0) {
239
+ continue;
240
+ }
241
+ seen.push(next);
242
+ handleRef(next);
243
+ }
244
+ return Promise.all(openPromises);
245
+ };
246
+ await resolveRefs(schema, schema, schemaURL, dependencies);
247
+ return new jsonSchemaService_1.ResolvedSchema(schema, resolveErrors);
248
+ }
249
+ getSchemaForResource(resource, doc) {
250
+ const resolveModelineSchema = () => {
251
+ let schemaFromModeline = (0, modelineUtil_1.getSchemaFromModeline)(doc);
252
+ if (schemaFromModeline !== undefined) {
253
+ if (!schemaFromModeline.startsWith('file:') && !schemaFromModeline.startsWith('http')) {
254
+ // If path contains a fragment and it is left intact, "#" will be
255
+ // considered part of the filename and converted to "%23" by
256
+ // path.resolve() -> take it out and add back after path.resolve
257
+ let appendix = '';
258
+ if (schemaFromModeline.indexOf('#') > 0) {
259
+ const segments = schemaFromModeline.split('#', 2);
260
+ schemaFromModeline = segments[0];
261
+ appendix = segments[1];
262
+ }
263
+ if (!path.isAbsolute(schemaFromModeline)) {
264
+ const resUri = vscode_uri_1.URI.parse(resource);
265
+ schemaFromModeline = vscode_uri_1.URI.file(path.resolve(path.parse(resUri.fsPath).dir, schemaFromModeline)).toString();
266
+ }
267
+ else {
268
+ schemaFromModeline = vscode_uri_1.URI.file(schemaFromModeline).toString();
269
+ }
270
+ if (appendix.length > 0) {
271
+ schemaFromModeline += '#' + appendix;
272
+ }
273
+ }
274
+ return schemaFromModeline;
275
+ }
276
+ };
277
+ const resolveSchemaForResource = (schemas) => {
278
+ const schemaHandle = super.createCombinedSchema(resource, schemas);
279
+ return schemaHandle.getResolvedSchema().then((schema) => {
280
+ if (schema.schema && typeof schema.schema === 'object') {
281
+ schema.schema.url = schemaHandle.url;
282
+ }
283
+ if (schema.schema &&
284
+ schema.schema.schemaSequence &&
285
+ schema.schema.schemaSequence[doc.currentDocIndex]) {
286
+ return new jsonSchemaService_1.ResolvedSchema(schema.schema.schemaSequence[doc.currentDocIndex]);
287
+ }
288
+ return schema;
289
+ });
290
+ };
291
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
292
+ const resolveSchema = () => {
293
+ const seen = Object.create(null);
294
+ const schemas = [];
295
+ for (const entry of this.filePatternAssociations) {
296
+ if (entry.matchesPattern(resource)) {
297
+ for (const schemaId of entry.getURIs()) {
298
+ if (!seen[schemaId]) {
299
+ schemas.push(schemaId);
300
+ seen[schemaId] = true;
301
+ }
302
+ }
303
+ }
304
+ }
305
+ if (schemas.length > 0) {
306
+ // Join all schemas with the highest priority.
307
+ const highestPrioSchemas = this.highestPrioritySchemas(schemas);
308
+ return resolveSchemaForResource(highestPrioSchemas);
309
+ }
310
+ return Promise.resolve(null);
311
+ };
312
+ const modelineSchema = resolveModelineSchema();
313
+ if (modelineSchema) {
314
+ return resolveSchemaForResource([modelineSchema]);
315
+ }
316
+ if (this.customSchemaProvider) {
317
+ return this.customSchemaProvider(resource)
318
+ .then((schemaUri) => {
319
+ if (Array.isArray(schemaUri)) {
320
+ if (schemaUri.length === 0) {
321
+ return resolveSchema();
322
+ }
323
+ return Promise.all(schemaUri.map((schemaUri) => {
324
+ return this.resolveCustomSchema(schemaUri, doc);
325
+ })).then((schemas) => {
326
+ return {
327
+ errors: [],
328
+ schema: {
329
+ allOf: schemas.map((schemaObj) => {
330
+ return schemaObj.schema;
331
+ }),
332
+ },
333
+ };
334
+ }, () => {
335
+ return resolveSchema();
336
+ });
337
+ }
338
+ if (!schemaUri) {
339
+ return resolveSchema();
340
+ }
341
+ return this.resolveCustomSchema(schemaUri, doc);
342
+ })
343
+ .then((schema) => {
344
+ return schema;
345
+ }, () => {
346
+ return resolveSchema();
347
+ });
348
+ }
349
+ else {
350
+ return resolveSchema();
351
+ }
352
+ }
353
+ // Set the priority of a schema in the schema service
354
+ addSchemaPriority(uri, priority) {
355
+ let currSchemaArray = this.schemaPriorityMapping.get(uri);
356
+ if (currSchemaArray) {
357
+ currSchemaArray = currSchemaArray.add(priority);
358
+ this.schemaPriorityMapping.set(uri, currSchemaArray);
359
+ }
360
+ else {
361
+ this.schemaPriorityMapping.set(uri, new Set().add(priority));
362
+ }
363
+ }
364
+ /**
365
+ * Search through all the schemas and find the ones with the highest priority
366
+ */
367
+ highestPrioritySchemas(schemas) {
368
+ let highestPrio = 0;
369
+ const priorityMapping = new Map();
370
+ schemas.forEach((schema) => {
371
+ // If the schema does not have a priority then give it a default one of [0]
372
+ const priority = this.schemaPriorityMapping.get(schema) || [0];
373
+ priority.forEach((prio) => {
374
+ if (prio > highestPrio) {
375
+ highestPrio = prio;
376
+ }
377
+ // Build up a mapping of priority to schemas so that we can easily get the highest priority schemas easier
378
+ let currPriorityArray = priorityMapping.get(prio);
379
+ if (currPriorityArray) {
380
+ currPriorityArray = currPriorityArray.concat(schema);
381
+ priorityMapping.set(prio, currPriorityArray);
382
+ }
383
+ else {
384
+ priorityMapping.set(prio, [schema]);
385
+ }
386
+ });
387
+ });
388
+ return priorityMapping.get(highestPrio) || [];
389
+ }
390
+ async resolveCustomSchema(schemaUri, doc) {
391
+ const unresolvedSchema = await this.loadSchema(schemaUri);
392
+ const schema = await this.resolveSchemaContent(unresolvedSchema, schemaUri, []);
393
+ if (schema.schema && typeof schema.schema === 'object') {
394
+ schema.schema.url = schemaUri;
395
+ }
396
+ if (schema.schema && schema.schema.schemaSequence && schema.schema.schemaSequence[doc.currentDocIndex]) {
397
+ return new jsonSchemaService_1.ResolvedSchema(schema.schema.schemaSequence[doc.currentDocIndex], schema.errors);
398
+ }
399
+ return schema;
400
+ }
401
+ /**
402
+ * Save a schema with schema ID and schema content.
403
+ * Overrides previous schemas set for that schema ID.
404
+ */
405
+ async saveSchema(schemaId, schemaContent) {
406
+ const id = this.normalizeId(schemaId);
407
+ this.getOrAddSchemaHandle(id, schemaContent);
408
+ this.schemaPriorityMapping.set(id, new Set().add(yamlLanguageService_1.SchemaPriority.Settings));
409
+ return Promise.resolve(undefined);
410
+ }
411
+ /**
412
+ * Delete schemas on specific path
413
+ */
414
+ async deleteSchemas(deletions) {
415
+ deletions.schemas.forEach((s) => {
416
+ this.deleteSchema(s);
417
+ });
418
+ return Promise.resolve(undefined);
419
+ }
420
+ /**
421
+ * Delete a schema with schema ID.
422
+ */
423
+ async deleteSchema(schemaId) {
424
+ const id = this.normalizeId(schemaId);
425
+ if (this.schemasById[id]) {
426
+ delete this.schemasById[id];
427
+ }
428
+ this.schemaPriorityMapping.delete(id);
429
+ return Promise.resolve(undefined);
430
+ }
431
+ /**
432
+ * Add content to a specified schema at a specified path
433
+ */
434
+ async addContent(additions) {
435
+ const schema = await this.getResolvedSchema(additions.schema);
436
+ if (schema) {
437
+ const resolvedSchemaLocation = this.resolveJSONSchemaToSection(schema.schema, additions.path);
438
+ if (typeof resolvedSchemaLocation === 'object') {
439
+ resolvedSchemaLocation[additions.key] = additions.content;
440
+ }
441
+ await this.saveSchema(additions.schema, schema.schema);
442
+ }
443
+ }
444
+ /**
445
+ * Delete content in a specified schema at a specified path
446
+ */
447
+ async deleteContent(deletions) {
448
+ const schema = await this.getResolvedSchema(deletions.schema);
449
+ if (schema) {
450
+ const resolvedSchemaLocation = this.resolveJSONSchemaToSection(schema.schema, deletions.path);
451
+ if (typeof resolvedSchemaLocation === 'object') {
452
+ delete resolvedSchemaLocation[deletions.key];
453
+ }
454
+ await this.saveSchema(deletions.schema, schema.schema);
455
+ }
456
+ }
457
+ /**
458
+ * Take a JSON Schema and the path that you would like to get to
459
+ * @returns the JSON Schema resolved at that specific path
460
+ */
461
+ resolveJSONSchemaToSection(schema, paths) {
462
+ const splitPathway = paths.split('/');
463
+ let resolvedSchemaLocation = schema;
464
+ for (const path of splitPathway) {
465
+ if (path === '') {
466
+ continue;
467
+ }
468
+ this.resolveNext(resolvedSchemaLocation, path);
469
+ resolvedSchemaLocation = resolvedSchemaLocation[path];
470
+ }
471
+ return resolvedSchemaLocation;
472
+ }
473
+ /**
474
+ * Resolve the next Object if they have compatible types
475
+ * @param object a location in the JSON Schema
476
+ * @param token the next token that you want to search for
477
+ */
478
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
479
+ resolveNext(object, token) {
480
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
481
+ if (Array.isArray(object) && isNaN(token)) {
482
+ throw new Error('Expected a number after the array object');
483
+ }
484
+ else if (typeof object === 'object' && typeof token !== 'string') {
485
+ throw new Error('Expected a string after the object');
486
+ }
487
+ }
488
+ /**
489
+ * Everything below here is needed because we're importing from vscode-json-languageservice umd and we need
490
+ * to provide a wrapper around the javascript methods we are calling since they have no type
491
+ */
492
+ normalizeId(id) {
493
+ // The parent's `super.normalizeId(id)` isn't visible, so duplicated the code here
494
+ try {
495
+ return vscode_uri_1.URI.parse(id).toString();
496
+ }
497
+ catch (e) {
498
+ return id;
499
+ }
500
+ }
501
+ /*
502
+ * Everything below here is needed because we're importing from vscode-json-languageservice umd and we need
503
+ * to provide a wrapper around the javascript methods we are calling since they have no type
504
+ */
505
+ getOrAddSchemaHandle(id, unresolvedSchemaContent) {
506
+ return super.getOrAddSchemaHandle(id, unresolvedSchemaContent);
507
+ }
508
+ loadSchema(schemaUri) {
509
+ const requestService = this.requestService;
510
+ return super.loadSchema(schemaUri).then((unresolvedJsonSchema) => {
511
+ // If json-language-server failed to parse the schema, attempt to parse it as YAML instead.
512
+ if (unresolvedJsonSchema.errors && unresolvedJsonSchema.schema === undefined) {
513
+ return requestService(schemaUri).then((content) => {
514
+ if (!content) {
515
+ const errorMessage = localize('json.schema.nocontent', "Unable to load schema from '{0}': No content. {1}", toDisplayString(schemaUri), unresolvedJsonSchema.errors);
516
+ return new jsonSchemaService_1.UnresolvedSchema({}, [errorMessage]);
517
+ }
518
+ try {
519
+ const schemaContent = (0, yaml_1.parse)(content);
520
+ return new jsonSchemaService_1.UnresolvedSchema(schemaContent, []);
521
+ }
522
+ catch (yamlError) {
523
+ const errorMessage = localize('json.schema.invalidFormat', "Unable to parse content from '{0}': {1}.", toDisplayString(schemaUri), yamlError);
524
+ return new jsonSchemaService_1.UnresolvedSchema({}, [errorMessage]);
525
+ }
526
+ },
527
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
528
+ (error) => {
529
+ let errorMessage = error.toString();
530
+ const errorSplit = error.toString().split('Error: ');
531
+ if (errorSplit.length > 1) {
532
+ // more concise error message, URL and context are attached by caller anyways
533
+ errorMessage = errorSplit[1];
534
+ }
535
+ return new jsonSchemaService_1.UnresolvedSchema({}, [errorMessage]);
536
+ });
537
+ }
538
+ unresolvedJsonSchema.uri = schemaUri;
539
+ if (this.schemaUriToNameAndDescription.has(schemaUri)) {
540
+ const { name, description, versions } = this.schemaUriToNameAndDescription.get(schemaUri);
541
+ unresolvedJsonSchema.schema.title = name ?? unresolvedJsonSchema.schema.title;
542
+ unresolvedJsonSchema.schema.description = description ?? unresolvedJsonSchema.schema.description;
543
+ unresolvedJsonSchema.schema.versions = versions ?? unresolvedJsonSchema.schema.versions;
544
+ }
545
+ return unresolvedJsonSchema;
546
+ });
547
+ }
548
+ registerExternalSchema(uri, filePatterns, unresolvedSchema, name, description, versions) {
549
+ if (name || description) {
550
+ this.schemaUriToNameAndDescription.set(uri, { name, description, versions });
551
+ }
552
+ return super.registerExternalSchema(uri, filePatterns, unresolvedSchema);
553
+ }
554
+ clearExternalSchemas() {
555
+ super.clearExternalSchemas();
556
+ }
557
+ setSchemaContributions(schemaContributions) {
558
+ super.setSchemaContributions(schemaContributions);
559
+ }
560
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
561
+ getRegisteredSchemaIds(filter) {
562
+ return super.getRegisteredSchemaIds(filter);
563
+ }
564
+ getResolvedSchema(schemaId) {
565
+ return super.getResolvedSchema(schemaId);
566
+ }
567
+ onResourceChange(uri) {
568
+ return super.onResourceChange(uri);
569
+ }
570
+ }
571
+ exports.YAMLSchemaService = YAMLSchemaService;
572
+ function toDisplayString(url) {
573
+ try {
574
+ const uri = vscode_uri_1.URI.parse(url);
575
+ if (uri.scheme === 'file') {
576
+ return uri.fsPath;
577
+ }
578
+ }
579
+ catch (e) {
580
+ // ignore
581
+ }
582
+ return url;
583
+ }
584
+ });
585
+ //# sourceMappingURL=yamlSchemaService.js.map
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlSchemaService.js.map CHANGED
@@ -1,3 +1 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:95067833540c0481cc22e8fdf519b78c0c55c8800389031e41d6cc108ab49d6c
3
- size 18694
 
1
+ {"version":3,"file":"yamlSchemaService.js","sourceRoot":"","sources":["../../../../src/languageservice/services/yamlSchemaService.ts"],"names":[],"mappings":";;;;;;;;;IAAA;;;;oGAIgG;IAChG,YAAY,CAAC;;;IAGb,gEAAuG;IACvG,sGAOwE;IAExE,2CAAiC;IAEjC,kCAAkC;IAClC,8CAA+D;IAG/D,+BAA6B;IAC7B,6BAA6B;IAC7B,iDAAuD;IAIvD,6BAAwC;IACxC,sDAAsD;IAEtD,MAAM,QAAQ,GAAG,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAEzC,MAAM,GAAG,GAAG,IAAI,aAAG,EAAE,CAAC;IAEtB,qDAAqD;IACrD,8DAA8D;IAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACxE,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAIpD,IAAY,oBAIX;IAJD,WAAY,oBAAoB;QAC9B,mEAAQ,CAAA;QACR,6DAAK,CAAA;QACL,yEAAW,CAAA;IACb,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;IAuBD,MAAa,sBAAsB;QAIjC,YAAY,OAAe;YACzB,IAAI;gBACF,IAAI,CAAC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