Matt Bierner
d2a794a719
Migrate off of `eslint-plugin-local`
...
We can now do this natively
2025-07-08 13:09:17 -07:00
Benjamin Pasero
cdf404ff47
debt - restore old layer name ( #250928 )
2025-06-09 07:08:43 +00:00
Connor Peet
90885486e5
debt: finish adopting ensureNoDisposablesAreLeakedInTestSuite ( #249678 )
...
Closes #200091
Notably makes `raceCancellablePromises` itself be cancellable to allow
for composition, and make `Event.toPromise` cancellable too.
2025-05-23 17:28:32 -07:00
Benjamin Pasero
a8149189ec
debt - disable use of node.js `path` lib ( #249425 )
...
* debt - disable use of node.js `path` lib
* .
2025-05-21 00:59:53 -07:00
Oleg Solomko
da6b2b2f10
remove prompt-file source code specific linter rules
2025-05-12 08:41:28 -07:00
Benjamin Pasero
174dc35fe5
debt - inline `bootstrap-window` ( #248373 )
2025-05-08 09:58:09 +02:00
Oleg Solomko
2f392d619e
move strict tsconfig closer to the prompt files source code and add missing documentation comments
2025-05-06 14:56:37 -07:00
Oleg Solomko
f15d50d221
cleanup eslint config, fix more linter failures
2025-05-06 14:56:37 -07:00
Oleg Solomko
03c1c34cda
refactor token stream to remove floating promises
2025-05-06 14:56:37 -07:00
Oleg Solomko
b49c8c8245
more eslint rules and linter error fixes
2025-05-06 14:56:36 -07:00
Oleg Solomko
59b0b30683
add more eslint rules and fix related linter issues
2025-05-06 14:56:36 -07:00
Oleg Solomko
baaabfff4a
reduce number of linter rules, address all outstanding linter errors
2025-05-06 14:56:36 -07:00
Oleg Solomko
361cc97926
fix issues generated by the new linter config
2025-05-06 14:56:36 -07:00
Oleg Solomko
5ba5d94744
add linting config for the prompt files source code
2025-05-06 14:56:35 -07:00
Benjamin Pasero
44cc351e54
debt - enforce lazy and safe `Intl` usage ( #248063 )
2025-05-03 07:22:47 -07:00
Connor Peet
c5759394bf
mcp: support streamable HTTP ( #246557 )
...
This PR adds support for 'streamable HTTP' MCP servers. This is
backwards-compatible with existing SSE servers. We'll first try to
initialize the server in streamable HTTP mode, and then fall back to
legacy SSE if that fails.
This PR also adds our own small SSE parser, `eventsource` was too high
level to do what we need to do.
Refs https://github.com/microsoft/vscode/issues/244751
2025-04-14 23:40:28 +00:00
Henning Dieterichs
13cf8e47af
Introduces code-no-deep-import-of-internal ( #245143 )
...
* Introduces code-no-deep-import-of-internal
2025-04-01 10:23:29 +02:00
Alex Dima
46035d0296
Split up the editor's worker and the editor worker helper scripts, remove AMD support
2025-03-20 18:37:55 +01:00
Matt Bierner
6b3e9f6759
Fix eslint not linting our custom eslint rules
2025-03-19 22:49:06 -07:00
Connor Peet
248739282e
mcp: support sse ( #243621 )
...
* mcp: support sse
Didn't seem like Claude Desktop configs have SSE support yet, but I did
the obvious of having an object with a `url`. I also added a `type`
(optional for stdio) so we can better disambiguate types of configs.
Example .vscode/mcp.json:
```
{
"servers": {
"everything": {
"type": "sse",
"url": "http://localhost:3001/sse "
}
}
}
```
Closes #243242
* update layer check
2025-03-15 06:32:00 +00:00
Alex Ross
94ae470f1b
Adopt ensureNoDisposablesAreLeakedInTestSuite in a few files ( #241462 )
...
Part of #200091
2025-02-21 12:47:29 +01:00
Rob Lourens
94da87e5c9
Remove vscode-dts-region-comments ( #239868 )
...
This is from how the old vscode.proposed.d.ts was managed, and is no longer relevant
2025-02-06 17:45:08 -08:00
Justin Chen
363d424f91
adopt `ensureNoDisposablesAreLeakedInTestSuite` ( #239536 )
...
* adopt
* fix import change
* remove disposablestore and organize imports
* fix disposable leak error
* more disposables fix
* rename to code actions disposable
---------
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2025-02-04 23:37:31 +01:00
Matt Bierner
68ec60529e
Require `export` on all vscode public api types
...
Adds new eslint rule which requires `export` be used for public api types
The `export` is not actually needed, but our existing typing files largely use it. This makes it consistent
2025-01-08 11:40:36 -08:00
Joyce Er
d4de5ceba4
test: adopt `ensureNoDisposablesAreLeakedInTestSuite` ( #236766 )
...
* test: adopt `ensureNoDisposablesAreLeakedInTestSuite`
* test: adopt `ensureNoDisposablesAreLeakedInTestSuite`
2024-12-21 04:23:36 +00:00
Christof Marti
3d41ba214c
Proxy support for Node.js fetch ( #228697 )
2024-11-06 00:22:35 +01:00
Daniel Imms
a845c87459
Add ligatures working under Electron
...
Part of #34103
2024-11-01 07:42:40 -07:00
Matt Bierner
4b14c2d045
Use `Array<x | y>` for union types in `vscode.d.ts`
...
Pedantic but we mostly use `Array<x | y>` for arrays of unions instead of `(x | y)[]`. Just adding an eslint rule and updating some places to be consistent
2024-10-21 18:55:14 -07:00
Benjamin Pasero
912b1142d0
eslint - warn when using ESM-incompatible globals ( #231428 )
2024-10-15 12:22:29 -07:00
Matt Bierner
71f16d9c13
Use `fileURLToPath` for eslint ( #230734 )
2024-10-07 21:13:41 +02:00
Matt Bierner
ab554de6ca
Don't require loading project for eslint rules ( #230732 )
...
This is no longer required
2024-10-07 12:07:25 -07:00
Matt Bierner
7d10ec0123
Merge terminalContrib eslint rules
2024-10-04 08:38:44 -07:00
Matt Bierner
e21d646bd7
Rename to plain `js`
2024-10-04 08:35:56 -07:00