typespec-vscode 0.64.0-dev.2 → 0.64.0-dev.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typespec-vscode",
3
- "version": "0.64.0-dev.2",
3
+ "version": "0.64.0-dev.3",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec language support for VS Code",
6
6
  "homepage": "https://typespec.io",
@@ -32,10 +32,18 @@
32
32
  "activationEvents": [
33
33
  "onLanguage:typespec",
34
34
  "onCommand:typespec.restartServer",
35
+ "onCommand:typespec.createProject",
35
36
  "workspaceContains:**/tspconfig.yaml"
36
37
  ],
37
38
  "icon": "./icons/logo.png",
38
39
  "contributes": {
40
+ "viewsWelcome": [
41
+ {
42
+ "view": "explorer",
43
+ "contents": "You may [open a folder](command:vscode.openFolder) of an existing TypeSpec project; or create a new TypeSpec project in VS Code.\n[Create TypeSpec Project](command:typespec.createProject)\nTo manually create a TypeSpec project, follow [this guide](https://typespec.io/docs/).",
44
+ "when": "!workspaceFolderCount"
45
+ }
46
+ ],
39
47
  "languages": [
40
48
  {
41
49
  "id": "typespec",
@@ -66,6 +74,30 @@
66
74
  "description": "Path to `tsp-server` command that runs the TypeSpec language server.\n\nIf not specified, then `tsp-server` found on PATH is used.\n\nExample (User): /usr/local/bin/tsp-server\nExample (Workspace): ${workspaceFolder}/node_modules/@typespec/compiler",
67
75
  "scope": "machine-overridable"
68
76
  },
77
+ "typespec.initTemplatesUrls": {
78
+ "type": "array",
79
+ "default": [],
80
+ "description": "List of URLs to fetch templates from when creating a new project.",
81
+ "scope": "machine-overridable",
82
+ "items": {
83
+ "type": "object",
84
+ "required": [
85
+ "name",
86
+ "url"
87
+ ],
88
+ "properties": {
89
+ "name": {
90
+ "type": "string",
91
+ "description": "Name of the template."
92
+ },
93
+ "url": {
94
+ "type": "string",
95
+ "description": "URL to fetch the template from."
96
+ }
97
+ },
98
+ "additionalProperties": false
99
+ }
100
+ },
69
101
  "typespec.trace.server": {
70
102
  "scope": "window",
71
103
  "type": "string",
@@ -108,6 +140,16 @@
108
140
  "command": "typespec.showOutputChannel",
109
141
  "title": "Show Output Channel",
110
142
  "category": "TypeSpec"
143
+ },
144
+ {
145
+ "command": "typespec.createProject",
146
+ "title": "Create TypeSpec Project",
147
+ "category": "TypeSpec"
148
+ },
149
+ {
150
+ "command": "typespec.installGlobalCompilerCli",
151
+ "title": "Install TypeSpec Compiler/CLI globally",
152
+ "category": "TypeSpec"
111
153
  }
112
154
  ],
113
155
  "semanticTokenScopes": [
@@ -158,6 +200,7 @@
158
200
  "@types/mocha": "^10.0.9",
159
201
  "@types/node": "~22.7.9",
160
202
  "@types/vscode": "~1.94.0",
203
+ "@types/semver": "^7.5.8",
161
204
  "@typespec/compiler": "~0.63.0 || >=0.64.0-dev <0.64.0",
162
205
  "@typespec/internal-build-utils": "~0.63.0 || >=0.64.0-dev <0.64.0",
163
206
  "@vitest/coverage-v8": "^2.1.5",
@@ -170,7 +213,8 @@
170
213
  "rollup": "~4.24.0",
171
214
  "typescript": "~5.6.3",
172
215
  "vitest": "^2.1.5",
173
- "vscode-languageclient": "~9.0.1"
216
+ "vscode-languageclient": "~9.0.1",
217
+ "semver": "^7.6.3"
174
218
  },
175
219
  "dependencies": {},
176
220
  "peerDependencies": {},
Binary file