Графік комітів
19 Коміти
Автор SHA1 Повідомлення Дата
LU XIANGRUIтаwildcatDownstairs 5785ebadd8 feat(typescript): import style code style settings, sent to tsserver (#6342)
Editor > Code Style > JavaScript and TypeScript get an Imports tab: import paths (shortest / relative / non-relative / relative within the project), import path ending (automatic / minimal / index / .js), and glob and regex lists of what not to auto-import. They are stored with the code style, added to the servers' typescript/javascript preferences under both vtsls and typescript-language-server key names, and sent to running servers with didChangeConfiguration; a server's own Language Servers settings still win. The two exclusion lists are always sent (as [] when unset) so clearing one takes effect without a restart. Adds the typescript_import_style language smoke test.

Closes #6072

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 15:26:29 +08:00
LU XIANGRUIтаwildcatDownstairs cb60c742fc feat(typescript): code style for semicolons, quotes and spaces, sent to tsserver (#6045)
Only tabSize and insertSpaces reached the TypeScript server, so quick fixes, auto-imports, refactorings and Reformat Code used tsserver's own style. Editor › Code Style › JavaScript and TypeScript get Spaces (tsserver's insertSpace* options) and Punctuation (semicolons, quote style) tabs, stored with the per-language code style settings and passed to vtsls and typescript-language-server. A project's own Prettier, oxfmt or Biome configuration still takes over formatting once the tool is installed, and Format on save keeps running it.

Merged main in and combined this with the dprint formatter that landed meanwhile: dprint is chosen before the project-formatter check and also runs on save.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 01:43:28 +08:00
LU XIANGRUIтаwildcatDownstairs aa0f8105af feat(run): run Cypress tests with a test tree and Rerun Failed Tests (#6044)
Cypress specs only ran as an npm script. A package.json script that runs cypress run is now a test configuration, and a package that depends on cypress or has a cypress.config.* gets a Cypress configuration (npx cypress run) whose form chooses the testing type, browser and specs. Test runs report through Cypress's built-in teamcity reporter into the test tree (spec › describe chain › test, with durations and failure details), with gutter icons, navigation to source and Rerun Failed Tests selecting the failed specs.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 01:32:57 +08:00
LU XIANGRUIтаwildcatDownstairs 0adc816a56 feat(problems): list TypeScript project errors from the project's tsc --watch (#6097)
The TypeScript server reports errors only for open files, so a change that breaks an unopened file went unnoticed until Build. Problems › ⋮ gets TypeScript Project Errors (tsc --watch), off by default (project setting languages.typescript.watchProblems). When on, the IDE runs the project's own node_modules/.bin/tsc in watch mode for each root tsconfig.json and lists its errors under source tsc, parsed by Build's tsc parser. The watcher never writes into the project: build info goes to a temporary folder, and an error that Build and the watcher both report is listed once.

The language smoke workflow step from the original branch is left to a separate change.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 01:32:29 +08:00
LU XIANGRUIтаwildcatDownstairs ffe96c2ca2 feat(format): format with the project's dprint (#6049)
Reformat Code and format on save run the project's own dprint (dprint fmt --stdin <path>) for files its plugins cover when a dprint config or a project-local dprint is found below the project root. The covered files come from dprint editor-info, cached per config file and modification time (failures included, so an offline plugin download doesn't time out on every format). Files no plugin covers, and every file when dprint can't run, keep their usual formatter.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:54:33 +08:00
LU XIANGRUIтаwildcatDownstairs 33bd5372b6 feat(run): run Jasmine tests with a test tree and Rerun Failed Tests (#6050)
Jasmine test configurations report results to the test tree through a reporter, so specs show up as they run, navigate to source, and Rerun Failed Tests selects the failed specs with --filter=. A suite whose afterAll failed is rerun by its specs.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:54:16 +08:00
LU XIANGRUIтаwildcatDownstairs fa6b4be6f5 feat(js): resolve path aliases from Vite, Rollup and esbuild configs (#6033) (#6033)
TypeScript and JavaScript import resolution reads path aliases from Vite, Rollup and esbuild configs (resolve.alias, @rollup/plugin-alias, esbuild alias), so imports like `@/components/Button` resolve, complete and navigate without a duplicate tsconfig `paths` entry. Aliases are scoped to the package that declares them, and tsconfig `paths` still win when both define a prefix.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:51:02 +08:00
LU XIANGRUIтаwildcatDownstairs 0155d74084 feat(debugger): reconnect Attach to Node.js automatically when the process restarts (#6103)
Attach to Node.js ended the debug session as soon as the inspected process exited, so with nodemon, node --watch or tsx watch the attach had to be restarted after every save. The configuration gets Reconnect automatically, which passes js-debug's `restart: true`. js-debug waits for the inspector to come back and attaches the new process as a new child session with the same breakpoints. While it waits, the Frames pane says so. The restarted process's tab replaces the finished one and keeps its console output. VS Code attach configurations with `restart` (true or a policy object) import with the option on.

Closes #6084

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 00:32:02 +08:00
Mr0Bread 5289f44620 fix(lsp): negotiate TypeScript 7 local semantic tokens (#6186)
The native TypeScript 7 server only sends semantic-token modifiers the
client advertises, and the client capabilities did not list `local`. Its
legend therefore had no `local`, so module-level function calls could not
be told apart from local ones and lost the Global function style that
tsserver-based servers get. The client now advertises `local`, which the
editor already maps; no styles or palette change.

Adds an ignored real-server test comparing native TypeScript 7, vtsls and
typescript-language-server on the same sample, and documents the shared
colour-scheme entries.

Closes #6185

Co-authored-by: Mr0Bread <[email protected]>
2026-11-26 21:34:14 +08:00
LU XIANGRUIтаwildcatDownstairs 9e8722feb6 feat(lsp): lint and format with Biome (#5200)
Adds Biome as a language server (lint diagnostics and code actions) and as a formatter for CSS, GraphQL, JavaScript, TypeScript (and JSX), JSON and JSONC, with a Languages & Frameworks > Biome settings page (path, provider, run on save, enabled languages).

Biome formats instead of Prettier and oxfmt below a biome.json / biome.jsonc or a Biome installation, unless the nearest configuration sets formatter.enabled to false, in which case Prettier keeps formatting. Resolved conflicts with the Tailwind CSS language server: both servers are listed in the language definitions, registry tests and docs.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-22 19:18:37 +08:00
LU XIANGRUIтаwildcatDownstairs 0130847bc0 feat(languages): start the Tailwind CSS language server in Tailwind projects (#5199)
Runs @tailwindcss/language-server next to the language's own servers for HTML, CSS, JS/JSX, TS/TSX, Vue, Svelte and Astro, only below a tailwind.config.* (v3) or a package.json listing tailwindcss in dependencies or devDependencies (v4), with one-click install like the ESLint and Angular servers. JSON root markers (package.json#…) now match a key with any non-null value, not only objects. Adds fixtures/tailwind-app and an ignored real-server test.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-22 18:55:05 +08:00
LU XIANGRUIтаwildcatDownstairs 1f39eb8e63 fix(run): keep Jest and Vitest gutter runs as they were (#5194)
#5173 gave every JS file in test/ gutter targets and #5169 made all kind-node test configurations bases for gutter runs, so Jest/Vitest projects gained run icons in test/ helpers and imported npx jest configurations started running gutter targets. test/ now counts only in projects with a Mocha or node --test configuration, and only Playwright's node configurations are gutter bases.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-22 18:50:42 +08:00
LU XIANGRUIтаwildcatDownstairs 70702934d1 feat(run): run Mocha tests with a test tree and Rerun Failed Tests (#5173)
Mocha runs showed no test tree, and single tests ran with Jest's `-t`. A `package.json` script that runs `mocha` is now a test configuration with `testRunner: "mocha"`. Test runs import the IDE's hook (`mochaHook.js`, a `data:` URL in `NODE_OPTIONS`), which prints a record per finished test (file, suite chain, status, duration, declaration line, error) next to the run's own reporter; the records become the tree and are hidden from the console. Gutter icons, Rerun Failed Tests and running selected tests use Mocha's own `--grep`. New fixture `fixtures/mocha-app`, run by `smoke/run.test.ts` in the TypeScript job.

Closes #5153

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-22 15:24:38 +08:00
LU XIANGRUIтаwildcatDownstairs 8e541d5b45 feat(run): run node:test tests with a test tree and Rerun Failed Tests (#5172)
`node --test` runs showed no test tree, and single tests ran with Jest's `-t`.

- Detection: a `package.json` script whose Node options include `--test` (also `tsx --test`) is a test configuration with `testRunner: "node-test"`; a script that picks its own `--test-reporter` runs as written.
- Test tree: test runs add the IDE's reporter (`nodeTestReporter.js`, passed as a `data:` URL) next to `spec` through `NODE_OPTIONS`, which works through `npm run`, Node's per-file child processes and remote run targets. It prints a record per test (file, describe chain, status, duration, declaration line, error); the records become the tree and are hidden from the console, which keeps `spec`'s output.
- Gutter, Rerun Failed Tests, run selected tests: select by full name with `--test-name-pattern` in `NODE_OPTIONS`, plus the files.

New fixture `fixtures/node-test-app`, run by `smoke/run.test.ts` in the TypeScript job.

Closes #5152

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-22 15:19:57 +08:00
LU XIANGRUIтаwildcatDownstairs 9b4ee2a6ff feat(run): run Playwright tests with a test tree and Rerun Failed Tests (#5169)
A Playwright project had no test tree and no Rerun Failed Tests: its output went through the Jest / Vitest parser, single tests ran with Jest's `-t`, and projects without a `test` script weren't detected at all.

- Detection: a `package.json` script that runs `playwright test` is a test configuration and records `testRunner: "playwright"` (new optional `RunExtras.test_runner`, `test-runner` in `run.toml`); a package with a `playwright.config.*` that no script runs gets `npx playwright test`.
- Test tree: test runs add `--reporter=list` unless a reporter is named, parsed into file › [project] › describe chain › test with status, duration, location and failure details.
- Gutter: `test.describe` blocks and `fixme` / `fail` / `serial` tests get run / debug icons and run by declaration line (`file:line`); in a project with Playwright and another runner, specs run on Playwright's configuration and other tests on the other runner's.
- Rerun Failed Tests / run selected tests: the files plus `--grep` on the describe chain and title, with `--project` when the run named projects.

New fixture `fixtures/playwright-app`; `smoke/run.test.ts` runs it after `ts-app`.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-22 14:30:06 +08:00
l0ng-ai d80aeb6e9e docs: describe ESLint, browser debugging, Bun debugging and Open In › GitHub (#5046)
The JavaScript page still said there was no ESLint integration, no browser debugging and no Bun debugging, and the GitHub page said files couldn't be opened on GitHub or linked. Document the ESLint server, the JavaScript Debug configuration, bun-dap, Open In / Copy Path/Reference… for GitHub, GitLab and Bitbucket remotes, and the TypeScript inlay hints, in English and Chinese.
2026-11-21 23:13:08 +08:00
Chris Schofield 64632dc4d7 feat(editor): JSX/TSX tag editing — linked tag rename, prop values, Emmet (#4905)
JSX/TSX editing like the HTML modes: editing an opening or closing tag's name renames its partner (Simultaneous <tag></tag> editing), Enter between a tag pair puts the caret on an indented line with the closing tag below, and JSX tag pairs are matched. Typing = after a value-less prop inserts "" for string-typed props and {} otherwise (type from the server's hover, {} after 500 ms), following Pair quotes / Pair brackets. Emmet expands with Tab among an element's children and after return / => (className, self-closing void elements). Under TypeScript 7 the native server is asked for jsxAttributeCompletionStyle auto, so prop completion inserts the value delimiters as vtsls does.

Co-authored-by: ChildishForces <[email protected]>

Co-authored-by: ChildishForces <[email protected]>
2026-11-21 05:45:10 +08:00
l0ng-ai ae542b3044 feat(javascript): choose the preferred runtime on a JavaScript Runtime settings page (#3291)
The Node.js settings page becomes JavaScript Runtime with a Preferred runtime choice: Auto (the nearest deno.json / bun.lock, else Node.js, as before), Node.js, Bun or Deno. It decides what runs JavaScript and TypeScript files from the gutter and the editor's Run action, files outside the project included; a chosen runtime that is not installed is reported instead of falling back to Node.js. The package manager sits beside it, the Node interpreter and run target under a Node.js section. New setting languages.node.runtime.

Closes #3233
2026-11-14 12:48:05 +08:00
l0ng-ai dbdf610ffa docs: add the Mintlify documentation site (#2528)
Closes #1543
2026-11-10 21:06:30 +08:00