Commit Graph

157 Commits

Author SHA1 Message Date
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
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