typespec-vscode 0.66.0 → 0.67.0-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,12 +8,47 @@ original copyright notices and the licenses under which Microsoft received such
8
8
  components are set forth below. Microsoft reserves all rights not expressly
9
9
  granted herein, whether by implication, estoppel or otherwise.
10
10
 
11
- 1. balanced-match version 1.0.2 (https://github.com/juliangruber/balanced-match)
12
- 2. brace-expansion version 2.0.1 (https://github.com/juliangruber/brace-expansion)
13
- 3. minimatch version 5.1.6 (https://github.com/isaacs/minimatch)
14
- 4. semver version 7.6.3 (https://github.com/npm/node-semver)
15
- 5. which version 5.0.0 (https://github.com/npm/node-which)
16
- 6. yaml version 2.7.0 (github:eemeli/yaml)
11
+ 1. ajv version 8.17.1 (ajv-validator/ajv)
12
+ 2. balanced-match version 1.0.2 (https://github.com/juliangruber/balanced-match)
13
+ 3. brace-expansion version 2.0.1 (https://github.com/juliangruber/brace-expansion)
14
+ 4. change-case version 5.4.4 (https://github.com/blakeembrey/change-case)
15
+ 5. fast-deep-equal version 3.1.3 (https://github.com/epoberezkin/fast-deep-equal)
16
+ 6. fast-uri version 3.0.3 (https://github.com/fastify/fast-uri)
17
+ 7. json-schema-traverse version 1.0.0 (https://github.com/epoberezkin/json-schema-traverse)
18
+ 8. minimatch version 5.1.6 (https://github.com/isaacs/minimatch)
19
+ 9. mustache version 4.2.0 (https://github.com/janl/mustache.js)
20
+ 10. semver version 7.7.1 (https://github.com/npm/node-semver)
21
+ 11. which version 5.0.0 (https://github.com/npm/node-which)
22
+ 12. yaml version 2.7.0 (github:eemeli/yaml)
23
+
24
+
25
+ %% ajv NOTICES AND INFORMATION BEGIN HERE
26
+ =====================================================
27
+ The MIT License (MIT)
28
+
29
+ Copyright (c) 2015-2021 Evgeny Poberezkin
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in all
39
+ copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
+ SOFTWARE.
48
+
49
+
50
+ =====================================================");
51
+ END OF ajv NOTICES AND INFORMATION
17
52
 
18
53
 
19
54
  %% balanced-match NOTICES AND INFORMATION BEGIN HERE
@@ -72,6 +107,126 @@ SOFTWARE.
72
107
  END OF brace-expansion NOTICES AND INFORMATION
73
108
 
74
109
 
110
+ %% change-case NOTICES AND INFORMATION BEGIN HERE
111
+ =====================================================
112
+ The MIT License (MIT)
113
+
114
+ Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
115
+
116
+ Permission is hereby granted, free of charge, to any person obtaining a copy
117
+ of this software and associated documentation files (the "Software"), to deal
118
+ in the Software without restriction, including without limitation the rights
119
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
120
+ copies of the Software, and to permit persons to whom the Software is
121
+ furnished to do so, subject to the following conditions:
122
+
123
+ The above copyright notice and this permission notice shall be included in
124
+ all copies or substantial portions of the Software.
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
127
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
128
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
129
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
130
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
131
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
132
+ THE SOFTWARE.
133
+
134
+ =====================================================");
135
+ END OF change-case NOTICES AND INFORMATION
136
+
137
+
138
+ %% fast-deep-equal NOTICES AND INFORMATION BEGIN HERE
139
+ =====================================================
140
+ MIT License
141
+
142
+ Copyright (c) 2017 Evgeny Poberezkin
143
+
144
+ Permission is hereby granted, free of charge, to any person obtaining a copy
145
+ of this software and associated documentation files (the "Software"), to deal
146
+ in the Software without restriction, including without limitation the rights
147
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
148
+ copies of the Software, and to permit persons to whom the Software is
149
+ furnished to do so, subject to the following conditions:
150
+
151
+ The above copyright notice and this permission notice shall be included in all
152
+ copies or substantial portions of the Software.
153
+
154
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
155
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
156
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
157
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
158
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
159
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
160
+ SOFTWARE.
161
+
162
+ =====================================================");
163
+ END OF fast-deep-equal NOTICES AND INFORMATION
164
+
165
+
166
+ %% fast-uri NOTICES AND INFORMATION BEGIN HERE
167
+ =====================================================
168
+ Copyright (c) 2021 The Fastify Team
169
+ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
170
+ All rights reserved.
171
+
172
+ Redistribution and use in source and binary forms, with or without
173
+ modification, are permitted provided that the following conditions are met:
174
+ * Redistributions of source code must retain the above copyright
175
+ notice, this list of conditions and the following disclaimer.
176
+ * Redistributions in binary form must reproduce the above copyright
177
+ notice, this list of conditions and the following disclaimer in the
178
+ documentation and/or other materials provided with the distribution.
179
+ * The names of any contributors may not be used to endorse or promote
180
+ products derived from this software without specific prior written
181
+ permission.
182
+
183
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
184
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
185
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
186
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
187
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
188
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
189
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
190
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
191
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
192
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
193
+
194
+ * * *
195
+
196
+ The complete list of contributors can be found at:
197
+ - https://github.com/garycourt/uri-js/graphs/contributors
198
+ =====================================================");
199
+ END OF fast-uri NOTICES AND INFORMATION
200
+
201
+
202
+ %% json-schema-traverse NOTICES AND INFORMATION BEGIN HERE
203
+ =====================================================
204
+ MIT License
205
+
206
+ Copyright (c) 2017 Evgeny Poberezkin
207
+
208
+ Permission is hereby granted, free of charge, to any person obtaining a copy
209
+ of this software and associated documentation files (the "Software"), to deal
210
+ in the Software without restriction, including without limitation the rights
211
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
212
+ copies of the Software, and to permit persons to whom the Software is
213
+ furnished to do so, subject to the following conditions:
214
+
215
+ The above copyright notice and this permission notice shall be included in all
216
+ copies or substantial portions of the Software.
217
+
218
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
224
+ SOFTWARE.
225
+
226
+ =====================================================");
227
+ END OF json-schema-traverse NOTICES AND INFORMATION
228
+
229
+
75
230
  %% minimatch NOTICES AND INFORMATION BEGIN HERE
76
231
  =====================================================
77
232
  The ISC License
@@ -94,6 +249,24 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
94
249
  END OF minimatch NOTICES AND INFORMATION
95
250
 
96
251
 
252
+ %% mustache NOTICES AND INFORMATION BEGIN HERE
253
+ =====================================================
254
+ The MIT License
255
+
256
+ Copyright (c) 2009 Chris Wanstrath (Ruby)
257
+ Copyright (c) 2010-2014 Jan Lehnardt (JavaScript)
258
+ Copyright (c) 2010-2015 The mustache.js community
259
+
260
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
261
+
262
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
263
+
264
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
265
+
266
+ =====================================================");
267
+ END OF mustache NOTICES AND INFORMATION
268
+
269
+
97
270
  %% semver NOTICES AND INFORMATION BEGIN HERE
98
271
  =====================================================
99
272
  The ISC License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typespec-vscode",
3
- "version": "0.66.0",
3
+ "version": "0.67.0-dev.10",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec language support for VS Code",
6
6
  "homepage": "https://typespec.io",
@@ -27,7 +27,7 @@
27
27
  "main": "./dist/src/extension.cjs",
28
28
  "browser": "./dist/src/web/extension.js",
29
29
  "engines": {
30
- "vscode": "^1.96.0"
30
+ "vscode": "^1.97.0"
31
31
  },
32
32
  "activationEvents": [
33
33
  "onLanguage:typespec",
@@ -36,6 +36,7 @@
36
36
  "workspaceContains:**/tspconfig.yaml"
37
37
  ],
38
38
  "icon": "./icons/logo.png",
39
+ "telemetryKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
39
40
  "contributes": {
40
41
  "viewsWelcome": [
41
42
  {
@@ -116,19 +117,29 @@
116
117
  "explorer/context": [
117
118
  {
118
119
  "command": "typespec.importFromOpenApi3",
119
- "group": "typespec@2"
120
+ "group": "typespec@3"
120
121
  },
121
122
  {
122
- "command": "typespec.generateCode",
123
+ "command": "typespec.emitCode",
123
124
  "when": "explorerResourceIsFolder || resourceLangId == typespec",
124
125
  "group": "typespec@1"
126
+ },
127
+ {
128
+ "command": "typespec.showOpenApi3",
129
+ "when": "resourceLangId == typespec",
130
+ "group": "typespec@2"
125
131
  }
126
132
  ],
127
133
  "editor/context": [
128
134
  {
129
- "command": "typespec.generateCode",
135
+ "command": "typespec.emitCode",
130
136
  "when": "resourceLangId == typespec",
131
137
  "group": "typespec@1"
138
+ },
139
+ {
140
+ "command": "typespec.showOpenApi3",
141
+ "when": "resourceLangId == typespec",
142
+ "group": "typespec@2"
132
143
  }
133
144
  ]
134
145
  },
@@ -162,8 +173,8 @@
162
173
  "category": "TypeSpec"
163
174
  },
164
175
  {
165
- "command": "typespec.generateCode",
166
- "title": "Generate from TypeSpec",
176
+ "command": "typespec.emitCode",
177
+ "title": "Emit from TypeSpec",
167
178
  "category": "TypeSpec"
168
179
  },
169
180
  {
@@ -180,6 +191,11 @@
180
191
  "command": "typespec.importFromOpenApi3",
181
192
  "title": "Import TypeSpec from OpenApi3",
182
193
  "category": "TypeSpec"
194
+ },
195
+ {
196
+ "command": "typespec.showOpenApi3",
197
+ "title": "Show OpenAPI3 Documentation",
198
+ "category": "TypeSpec"
183
199
  }
184
200
  ],
185
201
  "semanticTokenScopes": [
@@ -225,39 +241,48 @@
225
241
  },
226
242
  "devDependencies": {
227
243
  "@rollup/plugin-commonjs": "~28.0.2",
244
+ "@rollup/plugin-json": "~6.1.0",
228
245
  "@rollup/plugin-node-resolve": "~16.0.0",
229
- "@rollup/plugin-typescript": "~12.1.0",
246
+ "@rollup/plugin-typescript": "~12.1.2",
230
247
  "@types/mocha": "^10.0.9",
231
- "@types/node": "~22.10.10",
248
+ "@types/node": "~22.13.9",
232
249
  "@types/semver": "^7.5.8",
233
- "@types/vscode": "~1.96.0",
250
+ "@types/vscode": "~1.97.0",
234
251
  "@types/which": "^3.0.4",
235
- "@vitest/coverage-v8": "^3.0.4",
236
- "@vitest/ui": "^3.0.3",
237
- "@vscode/test-web": "^0.0.65",
238
- "@vscode/vsce": "~3.2.1",
252
+ "@typespec/compiler": "^0.66.0 || >=0.67.0-dev <0.67.0",
253
+ "@typespec/internal-build-utils": "^0.66.0 || >=0.67.0-dev <0.67.0",
254
+ "@vitest/coverage-v8": "^3.0.7",
255
+ "@vitest/ui": "^3.0.7",
256
+ "@vscode/extension-telemetry": "^0.6.2",
257
+ "@vscode/test-web": "^0.0.67",
258
+ "@vscode/vsce": "~3.2.2",
239
259
  "c8": "^10.1.3",
240
260
  "mocha": "^11.1.0",
241
261
  "rimraf": "~6.0.1",
242
- "rollup": "~4.31.0",
243
- "semver": "^7.6.3",
244
- "typescript": "~5.7.3",
245
- "vitest": "^3.0.5",
262
+ "rollup": "~4.34.9",
263
+ "rollup-plugin-copy": "^3.5.0",
264
+ "semver": "^7.7.1",
265
+ "swagger-ui-dist": "^5.20.0",
266
+ "typescript": "~5.8.2",
267
+ "vitest": "^3.0.7",
246
268
  "vscode-languageclient": "~9.0.1",
247
269
  "which": "^5.0.0",
248
270
  "yaml": "~2.7.0",
249
- "@typespec/compiler": "~0.66.0",
250
- "@typespec/internal-build-utils": "~0.66.0"
271
+ "ajv": "~8.17.1"
251
272
  },
273
+ "dependencies": {},
274
+ "peerDependencies": {},
252
275
  "scripts": {
253
276
  "clean": "rimraf ./dist ./temp",
254
- "build": "npm run compile && npm run copy-tmlanguage && npm run generate-language-configuration && npm run generate-third-party-notices && npm run package-vsix",
277
+ "build": "npm run compile && npm run copy-templates && npm run copy-tmlanguage && npm run generate-language-configuration && npm run generate-third-party-notices && npm run package-vsix",
255
278
  "compile": "rollup --config rollup.config.ts --configPlugin typescript --failAfterWarnings 2>&1",
256
279
  "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch",
257
280
  "dogfood": "node scripts/dogfood.js",
281
+ "copy-templates": "node scripts/copy-templates.js",
258
282
  "copy-tmlanguage": "node scripts/copy-tmlanguage.js",
259
283
  "generate-language-configuration": "node scripts/generate-language-configuration.js",
260
284
  "generate-third-party-notices": "typespec-build-tool generate-third-party-notices",
285
+ "update-telemetry-key": "node scripts/update-telemetry-key.js",
261
286
  "package-vsix": "vsce package",
262
287
  "deploy": "vsce publish",
263
288
  "open-in-browser": "vscode-test-web --extensionDevelopmentPath=. .",
Binary file