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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252{
"name": "ty",
"displayName": "ty",
"description": "A Visual Studio Code extension with support for the ty type checker and language server.",
"version": "2026.4.0",
"serverInfo": {
"name": "ty",
"module": "ty"
},
"publisher": "astral-sh",
"license": "MIT",
"homepage": "https://github.com/astral-sh/ty-vscode",
"repository": {
"type": "git",
"url": "https://github.com/astral-sh/ty-vscode.git"
},
"bugs": {
"url": "https://github.com/astral-sh/ty-vscode/issues"
},
"icon": "icon.png",
"galleryBanner": {
"color": "#1e415e",
"theme": "dark"
},
"keywords": [
"python",
"type checker",
"language server",
"ty"
],
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages"
],
"extensionDependencies": [
"ms-python.python"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"restrictedConfigurations": [
"ty.importStrategy",
"ty.interpreter"
]
},
"virtualWorkspaces": {
"supported": false,
"description": "Virtual Workspaces are not supported by the ty extension."
}
},
"activationEvents": [
"onLanguage:python",
"workspaceContains:*.py",
"workspaceContains:*.ipynb"
],
"main": "./dist/extension.js",
"scripts": {
"fmt": "prettier -w .",
"fmt-check": "prettier --check .",
"lint": "eslint src --ext ts --max-warnings=0",
"compile": "webpack",
"compile-tests": "tsc -p . --outDir out",
"tsc": "tsc --noEmit",
"package": "webpack --mode production --devtool source-map --config ./webpack.config.js",
"watch": "webpack --watch",
"vsce-package": "vsce package -o ty.vsix",
"vscode:prepublish": "npm run package",
"pretest": "npm run compile-tests && npm run compile",
"tests": "vscode-test"
},
"contributes": {
"configuration": {
"properties": {
"ty.configuration": {
"default": null,
"markdownDescription": "Inline JSON configuration for ty settings. Overrides settings in a configuration file. For example\n\n```json\n{\n \"rules\": {\n \"unresolved-reference\": \"ignore\"\n }\n}\n``` ",
"scope": "window",
"type": "object"
},
"ty.configurationFile": {
"default": null,
"markdownDescription": "Path to a `ty.toml` configuration file.",
"scope": "window",
"type": "string"
},
"ty.disableLanguageServices": {
"default": false,
"markdownDescription": "Whether to disable all language services for ty like completions, hover, goto definition, etc.",
"scope": "window",
"type": "boolean"
},
"ty.diagnosticMode": {
"default": "openFilesOnly",
"markdownDescription": "Analysis scope for showing diagnostics.",
"enum": [
"openFilesOnly",
"workspace",
"off"
],
"enumDescriptions": [
"Analyzes and reports errors on only open files.",
"Analyzes and reports errors on all files in the workspace.",
"Turn all diagnostics off. Use ty as a language server only."
],
"scope": "window",
"type": "string"
},
"ty.showSyntaxErrors": {
"default": true,
"markdownDescription": "Whether to show syntax error diagnostics.",
"scope": "window",
"type": "boolean"
},
"ty.importStrategy": {
"default": "fromEnvironment",
"markdownDescription": "Strategy for loading the `ty` executable. `fromEnvironment` picks up ty from the environment, falling back to the bundled version if needed. `useBundled` uses the version bundled with the extension.",
"enum": [
"fromEnvironment",
"useBundled"
],
"enumDescriptions": [
"Use `ty` from environment, falling back to the bundled version if `ty` is not found.",
"Always use the bundled version of `ty`."
],
"scope": "window",
"type": "string"
},
"ty.inlayHints.variableTypes": {
"default": true,
"markdownDescription": "Whether to enable inlay hints for variable types.",
"scope": "window",
"type": "boolean"
},
"ty.inlayHints.callArgumentNames": {
"default": true,
"markdownDescription": "Whether to enable inlay hints for call argument names.",
"scope": "window",
"type": "boolean"
},
"ty.completions.autoImport": {
"default": true,
"markdownDescription": "Whether to include auto-import code completions in ty.",
"scope": "window",
"type": "boolean"
},
"ty.interpreter": {
"default": [],
"markdownDescription": "Path to a Python interpreter to use to find the `ty` executable.",
"scope": "window",
"items": {
"type": "string"
},
"type": "array"
},
"ty.logLevel": {
"default": null,
"markdownDescription": "Controls the log level of the language server.",
"enum": [
"error",
"warning",
"info",
"debug",
"trace"
],
"scope": "application",
"type": "string"
},
"ty.logFile": {
"default": null,
"markdownDescription": "Path to the log file for the language server.",
"scope": "application",
"type": "string"
},
"ty.path": {
"default": [],
"markdownDescription": "Path to a custom `ty` executable, e.g., `[\"/path/to/ty\"]`.",
"scope": "window",
"items": {
"type": "string"
},
"type": "array"
},
"ty.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"markdownDescription": "Traces the communication between VSCode and the ty language server."
}
}
},
"commands": [
{
"title": "Restart server",
"category": "ty",
"command": "ty.restart"
},
{
"title": "Show client logs",
"category": "ty",
"command": "ty.showLogs"
},
{
"title": "Show server logs",
"category": "ty",
"command": "ty.showServerLogs"
},
{
"title": "Open debug information",
"category": "ty",
"command": "ty.debugInformation"
}
],
"configurationDefaults": {
"python.languageServer": "None"
}
},
"dependencies": {
"@vscode/python-extension": "^1.0.5",
"fs-extra": "^11.3.0",
"vscode-languageclient": "^9.0.1",
"which": "^6.0.0"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.0.0",
"@types/vscode": "1.75.0",
"@types/which": "^3.0.4",
"@vscode/vsce": "^3.4.2",
"eslint": "^9.28.0",
"eslint-plugin-import": "^2.31.0",
"glob": "^13.0.0",
"ovsx": "^0.10.3",
"prettier": "^3.5.3",
"ts-loader": "^9.5.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.33.0",
"webpack": "^5.99.9",
"webpack-cli": "^6.0.1"
},
"prettier": {
"printWidth": 100,
"tabWidth": 2,
"trailingComma": "all"
}
}