Commit 4ddac10
committed
feat(python): python code intelligence via Pyrefly with Ruff formatting
- New PythonSupport default extension (desktop only): completion, hover,
signature help, jump-to-definition, references, type diagnostics and
quick fixes through the shared LSP framework, powered by an exact-pinned
Pyrefly wheel installed on demand from PyPI (sha256-verified, node-side
download + stdlib zip extraction, no npm or Python runtime needed)
- Ruff installs alongside (own pin, independent upgrade) and powers only
the Beautify command as a standalone 'ruff format' stdin call
- Generic NodeUtils: downloadFile (streamed, progress events, sha256),
extractZipFile (stdlib unzipper, restores exec bits), setExecutableBits,
execFileWithInput
- LSP framework: per-server workspaceConfiguration served to
workspace/configuration pulls (pyrefly treats the null fallback answer
as all-diagnostics-off)
- Install UX shared with PHP: once-per-lifetime dialog over the find-bar
prompt (terse line + benefits hover card + powered-by links + download
size beside the action buttons); bar styles generalized to lsp-install-*
- Fix buttons (problems panel + hover quick view) now show the LSP code
action title as tooltip so users see what a fix will apply
- integration:Python LSP suite (7 specs) + fixtures1 parent e05211f commit 4ddac10
21 files changed
Lines changed: 1699 additions & 32 deletions
File tree
- docs/API-Reference
- language
- utils
- gulpfile.js
- src-node
- src
- extensions/default
- PHPSupport
- PythonSupport
- htmlContent
- languageTools
- language
- nls/root
- styles
- utils
- test/spec/PythonSupport-test-files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 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 | + | |
59 | 125 | | |
60 | 126 | | |
61 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
912 | | - | |
913 | | - | |
| 912 | + | |
| 913 | + | |
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 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 | + | |
156 | 181 | | |
157 | 182 | | |
158 | 183 | | |
159 | 184 | | |
| 185 | + | |
| 186 | + | |
160 | 187 | | |
161 | 188 | | |
162 | 189 | | |
| |||
168 | 195 | | |
169 | 196 | | |
170 | 197 | | |
171 | | - | |
| 198 | + | |
| 199 | + | |
172 | 200 | | |
173 | 201 | | |
174 | 202 | | |
| |||
205 | 233 | | |
206 | 234 | | |
207 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
208 | 239 | | |
209 | 240 | | |
210 | 241 | | |
211 | | - | |
| 242 | + | |
212 | 243 | | |
213 | 244 | | |
214 | 245 | | |
| |||
224 | 255 | | |
225 | 256 | | |
226 | 257 | | |
227 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
228 | 261 | | |
229 | 262 | | |
230 | 263 | | |
| |||
245 | 278 | | |
246 | 279 | | |
247 | 280 | | |
| 281 | + | |
248 | 282 | | |
249 | 283 | | |
250 | 284 | | |
| |||
0 commit comments