Commit Graph

165 Commits

Author SHA1 Message Date
Benjamin Pasero
b487c0264d eslint - disallow querySelector and friends (#274582) 2025-11-02 09:03:41 +00:00
Rob Lourens
7e1fd498bb Some no explicit any in contrib/debug/ (#273469)
* Reduce explicit any

* More no explicit any

* CCR thank you

* Fix

* Fix

* Fix context computation
2025-10-30 20:30:22 +00:00
Matt Bierner
b7b11cf3d1 Use config to disable rule in tests 2025-10-29 11:42:15 -07:00
Matt Bierner
271879b06d Exclude chatEditingSession.ts from in check
Looks like this snuck through somehow
2025-10-28 11:48:14 -07:00
Johannes Rieken
478b33a153 Add eslint rule for no in-operator (#273779)
* add no-in-operator rule, config, and ignore-list

* add `hasKey` util and tests

* updates

* sample adoption, no `in` in strings.ts
2025-10-28 17:51:49 +01:00
Benjamin Pasero
fd49ad959b debt - reduce use of any type (#273692) 2025-10-28 06:35:39 +00:00
Paul
80d650774b Add eslint rule for policy localization (#272334) 2025-10-27 12:03:18 -07:00
Benjamin Pasero
08b8ea2f38 debt - reduce more any types (#273358)
* debt - reduce more `any` types

* Update src/vs/workbench/api/browser/mainThreadNotebook.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/vs/workbench/api/browser/mainThreadDebugService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-26 04:50:40 +00:00
Alexandru Dima
7907ff788e strict no explicit any (#273329) 2025-10-25 15:34:12 -07:00
Daniel Imms
f4edae643b Move tree sitter parsing into own class 2025-10-21 09:01:44 -07:00
Ladislau Szomoru
b63cdda669 SCM - remove the usage of any (#272231) 2025-10-20 09:47:06 +00:00
Benjamin Pasero
4659a80b74 debt - code and lint 💄 (#272215) 2025-10-20 05:35:31 +00:00
Benjamin Pasero
e693523b97 eslint - enable no-explicit-any for src/**/*.ts by using ignores (#272101) 2025-10-18 21:28:25 +02:00
Matt Bierner
2f5b1d0cc4 Enforce single quote strings in tests too
Fixes #271473

Final pass of fixes and removes the exception for test files
2025-10-15 11:33:45 -07:00
Sandeep Somavarapu
33b1d77b03 remove any type (#270549)
* remove any type

* remove any type
2025-10-09 15:26:30 +00:00
Sandeep Somavarapu
a646590ebb remove any usage (#270146)
* remove any usage

* comment

* fix compilation
2025-10-07 10:30:19 -07:00
Benjamin Pasero
d54f6fc155 debt - reduce any type (#270139) 2025-10-07 09:29:12 +02:00
Benjamin Pasero
7e8c7bef61 debt - reduce explicit any usage (#269814) 2025-10-06 15:19:56 +00:00
Alexandru Dima
3d6c0d4af6 Adopt strict no explicit any (#269874) 2025-10-05 07:59:37 +02:00
Benjamin Pasero
70a7ef1bc9 debt - start to reduce explicit any in my code (#269479) 2025-10-03 15:23:14 +00:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Connor Peet
3e4ee8ef9e update undici lint 2025-09-26 10:54:13 -07:00
Josh Spicer
fc4d4d8ee5 chatSessions API redesign/experiment (#268089)
* adapt API to provide a chatParticipant

* initial tidy up to support agent in extension

* untitled prototype

* onDidCreateChatSessionIte

* tidy

* tidy

* names

* onDidCommitChatSessionItemEmitter and bump proposed api version

* deprecated note

* untitled with uuid to prevent collision

* pick correct editor group
2025-09-25 20:14:51 -07:00
Matt Bierner
36713d57bf Merge branch 'main' into dev/mjbvz/mermaid-core 2025-09-22 12:44:19 -07:00
Henning Dieterichs
dace6b32b3 Implements code-no-observable-get-in-reactive-context (#267526)
* Implements code-no-observable-get-in-reactive-context

* Improves code

* Fixes lint warnings
2025-09-20 20:29:58 +02:00
Henning Dieterichs
824678f51e feat: add ESLint rule to prevent reader method calls after await 2025-09-18 16:20:52 -07:00
Matt Bierner
42187d0f3f Merge branch 'main' into dev/mjbvz/mermaid-core 2025-09-15 22:07:47 -07:00
Matt Bierner
c7e7a779e8 Add basic mermaid rendering support in core
For #257761

Ports over extension sample + a few improvements to core
2025-09-10 18:22:39 -07:00
Matt Bierner
2af3da81d6 Add eslint rule to ban using dompurify directly
All callers in our codebase should use `domSanitize` instead

Also adding myself as a codeowner here to make sure I'm alerted to changes in domSanitize since they need more consideration
2025-09-10 15:58:44 -07:00
Tyler James Leonhardt
4a653ec816 Add initial MCP server (#261898) 2025-08-15 23:25:13 -07:00
Matt Bierner
73e6d6a0a2 Enable a few more stylistic eslint options for my extensions 2025-08-14 10:42:20 -07:00
Matt Bierner
f272e51947 Convert esbuild scripts to modules
Planning to convert to typescript but want to do it in a few smaller steps
2025-08-07 20:04:44 -07:00
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