typespec-vscode 0.52.0 → 0.52.1
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/README.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# TypeSpec Language Support for VS Code
|
|
2
2
|
|
|
3
|
+
[Repository](https://github.com/microsoft/typespec) | [Documentation](https://typespec.io/docs) | [Issues](https://github.com/microsoft/typespec/issues) | [Samples](https://github.com/microsoft/typespec/tree/main/packages/samples/specs)
|
|
4
|
+
|
|
3
5
|
This provides provides [TypeSpec](https://github.com/microsoft/typespec) language support for VS Code.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
## Features
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
- Live diagnostic reporting
|
|
10
|
+
- Syntax highlighting
|
|
11
|
+
- Code completion
|
|
12
|
+
- Code folding
|
|
13
|
+
- Formatting
|
|
14
|
+
- Hover info
|
|
15
|
+
- Rename refactoring
|
|
16
|
+
- Go to definition
|
|
8
17
|
|
|
9
|
-
## Configure
|
|
18
|
+
## Configure
|
|
10
19
|
|
|
11
20
|
TypeSpec wil interpolate a few variables using this pattern `${<name>}`. For example `${workspaceFolder}`.
|
|
12
21
|
|
package/dist/src/extension.cjs
CHANGED
|
@@ -21817,9 +21817,9 @@ async function launchLanguageClient(context) {
|
|
|
21817
21817
|
const workspaceFolder = (_d = (_c = (_b = (_a = require$$0$1.workspace.workspaceFolders) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.uri) === null || _c === void 0 ? void 0 : _c.fsPath) !== null && _d !== void 0 ? _d : "";
|
|
21818
21818
|
client === null || client === void 0 ? void 0 : client.error([
|
|
21819
21819
|
`TypeSpec server executable was not found: '${exe.command}' is not found. Make sure either:`,
|
|
21820
|
-
` -
|
|
21821
|
-
" -
|
|
21822
|
-
" -
|
|
21820
|
+
` - TypeSpec is installed locally at the root of this workspace ("${workspaceFolder}") or in a parent directory.`,
|
|
21821
|
+
" - TypeSpec is installed globally with `npm install -g @typespec/compiler'.",
|
|
21822
|
+
" - TypeSpec server path is configured with https://github.com/microsoft/typespec#installing-vs-code-extension.",
|
|
21823
21823
|
].join("\n"), undefined, false);
|
|
21824
21824
|
throw `TypeSpec server executable was not found: '${exe.command}' is not found.`;
|
|
21825
21825
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typespec-vscode",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"description": "TypeSpec
|
|
6
|
-
"homepage": "https://
|
|
5
|
+
"description": "TypeSpec language support for VS Code",
|
|
6
|
+
"homepage": "https://typespec.io",
|
|
7
7
|
"readme": "https://github.com/microsoft/typespec/blob/main/README.md",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
"keywords": [
|
|
17
17
|
"typespec"
|
|
18
18
|
],
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"preview": true,
|
|
20
|
+
"publisher": "typespec",
|
|
21
|
+
"displayName": "TypeSpec for VS Code",
|
|
21
22
|
"categories": [
|
|
22
23
|
"Programming Languages"
|
|
23
24
|
],
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"typespec-vscode-*.vsix",
|
|
35
36
|
"ThirdPartyNotices.txt"
|
|
36
37
|
],
|
|
38
|
+
"icon": "./icons/logo.png",
|
|
37
39
|
"contributes": {
|
|
38
40
|
"languages": [
|
|
39
41
|
{
|
|
@@ -45,6 +47,10 @@
|
|
|
45
47
|
"extensions": [
|
|
46
48
|
".tsp"
|
|
47
49
|
],
|
|
50
|
+
"icon": {
|
|
51
|
+
"light": "./icons/tsp-file.light.svg",
|
|
52
|
+
"dark": "./icons/tsp-file.dark.svg"
|
|
53
|
+
},
|
|
48
54
|
"configuration": "./dist/language-configuration.json"
|
|
49
55
|
},
|
|
50
56
|
{
|
|
@@ -134,6 +140,7 @@
|
|
|
134
140
|
"copy-tmlanguage": "node scripts/copy-tmlanguage.js",
|
|
135
141
|
"generate-language-configuration": "node scripts/generate-language-configuration.js",
|
|
136
142
|
"generate-third-party-notices": "typespec-build-tool generate-third-party-notices",
|
|
137
|
-
"package-vsix": "vsce package"
|
|
143
|
+
"package-vsix": "vsce package",
|
|
144
|
+
"deploy": "vsce publish"
|
|
138
145
|
}
|
|
139
146
|
}
|
|
index 875cbe2..378b900 100644
|
|
|
Binary file
|