forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
160 lines (160 loc) · 4.75 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"name": "typespec-vscode",
"version": "0.57.0",
"author": "Microsoft Corporation",
"description": "TypeSpec language support for VS Code",
"homepage": "https://typespec.io",
"readme": "https://github.com/microsoft/typespec/blob/main/README.md",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/typespec.git"
},
"bugs": {
"url": "https://github.com/microsoft/typespec/issues"
},
"keywords": [
"typespec"
],
"preview": true,
"publisher": "typespec",
"displayName": "TypeSpec for VS Code",
"categories": [
"Programming Languages"
],
"type": "module",
"main": "./dist/src/extension.cjs",
"engines": {
"vscode": "^1.90.0"
},
"activationEvents": [
"onLanguage:typespec",
"onCommand:typespec.restartServer"
],
"files": [
"typespec-vscode-*.vsix",
"ThirdPartyNotices.txt"
],
"icon": "./icons/logo.png",
"contributes": {
"languages": [
{
"id": "typespec",
"aliases": [
"TypeSpec",
"TYPESPEC"
],
"extensions": [
".tsp"
],
"icon": {
"light": "./icons/tsp-file.light.svg",
"dark": "./icons/tsp-file.dark.svg"
},
"configuration": "./dist/language-configuration.json"
},
{
"id": "markdown-typespec"
}
],
"configuration": [
{
"title": "TypeSpec",
"properties": {
"typespec.tsp-server.path": {
"type": "string",
"default": "",
"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",
"scope": "machine-overridable"
},
"typespec.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Define whether/how the TypeSpec language server should send traces to client. For the traces to show properly in vscode Output, make sure 'Log Level' is also set to 'Trace' so that they won't be filtered at client side, which can be set through 'Developer: Set Log Level...' command."
}
}
}
],
"grammars": [
{
"language": "typespec",
"scopeName": "source.tsp",
"path": "./dist/typespec.tmLanguage"
},
{
"language": "markdown-typespec",
"scopeName": "markdown.tsp.codeblock",
"path": "./markdown-typespec.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.tsp": "typespec"
}
}
],
"commands": [
{
"command": "typespec.restartServer",
"title": "Restart TypeSpec server",
"category": "TypeSpec"
},
{
"command": "typespec.showOutputChannel",
"title": "Show Output Channel",
"category": "TypeSpec"
}
],
"semanticTokenScopes": [
{
"scopes": {
"keyword": [
"keyword.other.tsp"
],
"macro": [
"entity.name.tag.tsp"
],
"docCommentTag": [
"keyword.other.tsp"
]
}
}
]
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "npm run compile && npm run copy-tmlanguage && npm run generate-language-configuration && npm run generate-third-party-notices && npm run package-vsix",
"compile": "rollup --config rollup.config.ts --configPlugin typescript --failAfterWarnings 2>&1",
"watch": "rollup --config rollup.config.ts --configPlugin typescript --watch",
"dogfood": "node scripts/dogfood.js",
"copy-tmlanguage": "node scripts/copy-tmlanguage.js",
"generate-language-configuration": "node scripts/generate-language-configuration.js",
"generate-third-party-notices": "typespec-build-tool generate-third-party-notices",
"package-vsix": "vsce package",
"deploy": "vsce publish"
},
"devDependencies": {
"@rollup/plugin-commonjs": "~26.0.1",
"@rollup/plugin-node-resolve": "~15.2.3",
"@rollup/plugin-typescript": "~11.1.6",
"@types/node": "~18.11.19",
"@types/vscode": "~1.90.0",
"@typespec/compiler": "workspace:~",
"@typespec/internal-build-utils": "workspace:~",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vscode/vsce": "~2.29.0",
"c8": "^10.1.2",
"rimraf": "~5.0.7",
"rollup": "~4.18.0",
"typescript": "~5.5.3",
"vitest": "^1.6.0",
"vscode-languageclient": "~9.0.1"
}
}