Commit Graph

332 Commits

Author SHA1 Message Date
Martin Aeschlimann
273f654ced Merge remote-tracking branch 'origin/main' into aeschli/clear-wombat-216 2025-01-17 09:42:36 +01:00
Martin Aeschlimann
37a00332c7 remove old MappedEditsProvider 2025-01-15 21:21:58 +01:00
aslezar
d8ea024868 chore: used same message decription for TS and JS 2025-01-14 12:49:27 +05:30
Shivam Garg
00d7778d98 Merge branch 'microsoft:main' into fix-js-indent 2025-01-13 01:42:01 +05:30
Matt Bierner
4daea74ba9 Finalize paste api and drop api tweaks
Fixes #30066

This finalizes the documentPaste api. This api allows extensions to attach metadata on text copy and change how content is pasted. Some examples:

- Updating imports for pasted code
- Inserting an image as an attachment in notebooks
- Pasting files converts them to relative text paths
2025-01-07 14:57:16 -08:00
aslezar
97a5f18d0d fix: update descriptions for switch-case indentation settings in TypeScript and JavaScript 2024-12-31 13:06:32 +05:30
aslezar
a91e6b684b feat: support custom js switch-case indentation 2024-12-29 15:24:38 +05:30
Matt Bierner
cfb3a3043d Merge branch 'main' into patch-1 2024-12-17 11:31:26 -08:00
Logan Ramos
e689b912ba Update telemetry package (#236378) 2024-12-17 20:12:49 +01:00
DetachHead
d6bf64517a remove javascript.inlayHints.enumMemberValues.enabled because javascript does not have enums 2024-12-17 09:42:08 +10:00
Matt Bierner
54d81cd618 Add paste as default settings and enable js/ts paste with imports by default (#233031)
Fixes #184871
For #30066

Adds new settings that let you configure the default way to paste/drop.

Also enables js/ts paste with imports by default for 5.7+. However will not apply by default. Instead it will be shown as an option after pasting. You can then use the `editor.pasteAs.preferences` setting to make it apply automatically or use the `javascript.updateImportsOnPaste.enabled` settings to disable the feature entirely
2024-11-04 16:30:09 -08:00
Isabel Duan
20a02666f9 Merge branch 'main' into organizeImportsSettingsFix 2024-10-30 15:50:10 -07:00
Isabel Duan
95779b7b37 add descriptions, refactor getPreferences function to be more clear 2024-10-30 15:28:59 -07:00
Matt Bierner
8875f03ec8 Remove code action contribution section (#232664)
This was never fully implemented and I'm not sure we're going to move forward with the static contribution proposal
2024-10-30 14:03:43 -07:00
Matt Bierner
f4bdaadbac Merge vscode ts file watch settings (#230152)
Fixes #230144

Also deprecates the experimental setting while still observing it for now
2024-09-30 12:32:24 -07:00
Gabriela Araujo Britto
0f9abf3c35 [typescript-language-features] Expandable hover (#228255)
* add verbosity level to hover provider

* cleanup

* update minimum ts version

* get `canIncreaseVerbosityLevel` from server response

* add expandable hover experimental setting
2024-09-24 09:22:09 -07:00
Matt Bierner
bd324432e0 Bump default target to es2022 (#228744)
From #227409
2024-09-16 18:07:04 +02:00
Benjamin Pasero
88b706b2bb watcher - support suspend/resume for non-correlated requests (#228703) 2024-09-16 12:24:34 +02:00
Matt Bierner
3e0761cc9f Fix setting 2024-08-28 14:11:30 -07:00
Matt Bierner
89f2077c35 Merge pull request #226485 from mjbvz/informal-echidna
Enable ATA on web by default again
2024-08-23 13:30:54 -07:00
Matt Bierner
a8a33390df Merge pull request #226202 from andrewbranch/autoImportSpecifierExcludeRegexes
[typescript-language-features] Add autoImportSpecifierExcludeRegexes preference
2024-08-23 13:23:49 -07:00
Matt Bierner
47fb559c6d Reorder go to source definition (#226212)
Fixes #225419
2024-08-23 13:15:37 -07:00
Matt Bierner
bedf9f4ab7 Enable ATA on web by default again
For #182791

Enabling for further testing
2024-08-23 13:14:54 -07:00
Andrew Branch
7b357dd3a5 [typescript-language-features] Add autoImportSpecifierExcludeRegexes preference 2024-08-21 12:10:36 -07:00
Matt Bierner
2baacda638 Remove presets keys
Fixes #226031
2024-08-20 15:08:00 -07:00
Matt Bierner
ddbe321368 Remove presets for now
https://github.com/microsoft/typescript/issues/59579
2024-08-16 13:01:03 -07:00
Matt Bierner
2a045a1bc1 Merge branch 'main' into organize-imports-settings 2024-08-08 11:57:09 -07:00
Gabriela Araujo Britto
878af0771b [typescript-language-features] Region-based semantic diagnostics for TypeScript (#208713)
* WIP

* invalidate diagnostics in range

* check whether should use region based diagnostics

* add ts-expect-errors

* make region opt off by default

* bump to expected 5.6

* update comments to refer to 5.6

* make region diagnostics on by default for insiders
2024-06-19 15:12:57 -07:00
Matt Bierner
61eba45dc4 Don't register js/ts paste provider if setting is off (#216168) 2024-06-17 15:14:59 -07:00
Benjamin Pasero
2188b46e88 ts - enable use code watcher by default (#213450) 2024-05-25 12:48:33 +02:00
Matt Bierner
934af755c4 Hook up prototype paste with imports for JS/TS (#204665)
* Hook up prototype paste with imports for JS/TS

For https://github.com/microsoft/TypeScript/pull/57262 but with proposed changes to ts protocol

* Support new api

* Update
2024-05-24 21:57:30 +02:00
Matt Bierner
fb7f5a9a83 Disable web TS type acquisition (#213412)
We're waiting on some perf improvement for upstream types installer before turning this on everywhere
2024-05-24 21:51:41 +02:00
Johannes Rieken
2ba77dae52 Merge pull request #212158 from kdy1/swcrc-schema
feat: Use official json schema for SWC
2024-05-13 09:42:10 +02:00
Robo
5216c04428 chore: update to electron 29 (#209818)
* chore: update electron@29.1.0

* chore: update typings to 20.x

* chore: bump electron@29.1.5

* ci: fix crash in compiling extensions-ci

* chore: disable .d.ts check for build/

$ ../node_modules/.bin/tsc -p tsconfig.build.json
node_modules/@types/chokidar/index.d.ts:21:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/@types/chokidar/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
  Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref

21 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
                ~~~~~~~~~

node_modules/chokidar/types/index.d.ts:8:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
  Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref

8 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
               ~~~~~~~~~

Found 2 errors in 2 files.

Errors  Files
     1  node_modules/@types/chokidar/index.d.ts:21
     1  node_modules/chokidar/types/index.d.ts:8

Refs a0f9e09f64

* chore: update core types

* temp: fix layer validation

* chore: update nodejs checksums

* ci: use latest v20 LTS for missing node-gyp

Refs eacec5f490

* ci: define LIBCPP_HARDENING_MODE

* ci: fix crash in vscode-web-min-ci

* chore: update rpm deps-list

* chore: bump tree-sitter-typescript@0.20.5

* chore: bump electron@29.3.0

* chore: bump electron@29.3.1

* chore: update rpm deps-list for x86_64

* ci: disable io_uring UV backend on linux

* ci: disable io_uring backend for oss as well

* chore: update typings to 20.x

* ci: add TODO for io_uring workaround

* chore: bump distro

* chore: update preinstall node version checks

* chore: update @types/gulp

Refs https://github.com/microsoft/vscode/issues/212442

* ci: disable io_uring in more test suites
2024-05-11 01:20:28 +09:00
Matt Bierner
a4643b0ee0 Enable web type acquisition by default for js/ts (#212370)
* Enable web type acquisition by default for js/ts

Fixes #182791
Fixes #172887

* Cleanup
2024-05-09 20:09:49 +02:00
강동윤 (Donny)
71718e2b96 json schema for swcrc 2024-05-07 18:28:22 +09:00
Sheetal Nandi
b2c4302323 Use vscode watches for tsserver (#193848) 2024-04-09 13:39:34 +02:00
Isabel Duan
bc2c9609c2 add settings 2024-04-01 19:24:48 +00:00
Logan Ramos
436af204d4 Bump tas client (#206106) 2024-02-23 10:00:23 -08:00
Justin Chen
9f50c3dc2a groundwork for code action ranges for quick fix (#204191)
* added in config

* fix balance between diagnostic and range

* cleanup
2024-02-05 14:13:18 -08:00
Nathan Shively-Sanders
5e6ec068b2 Split TS' AI-backed code actions into separate entries (#201140)
* Split TS' AI-backed code actions into separate entries

Lets the user decide whether to add AI to their code action, which shows
intent, which is good for us to learn whether people actually want this.

Related: this should be unflagged for insiders. To do this, do I just
delete the flags?

* Stop appending a duplicate message in missingFunctionDeclaration

* Fix: quickfix was still showing Copilot-only

It's a workaround--I'm not sure of the right way to do this.

* Update to use `isAI`

* Put AI code actions after others.

* Add isAI to rest of code actions

* Remove flags for TS AI code actions

* Check for copilot-chat instead of copilot

It's possible to have copilot installed without copilot-chat.

* Fix file casing

---------

Co-authored-by: Matt Bierner <matb@microsoft.com>
2024-01-31 22:46:39 +00:00
Michael Lively
e33219dde3 Add multi-document highlight provider feature (#198467)
* multi-doc api + text provider editor feature + extHost hookup + typescript semantic multi-doc

* fix disposable leak, wasn't setting providers to the disposableMap

* filter unnecessary models to fix errors with typescript provider

* fix nits (todo - doc filter)

* fix typo from merge conflict

* expose LanguageSelector in multi-doc provider, filter out 0 score models
2023-11-22 10:07:20 -08:00
Matt Bierner
fbfabc523d Split up webServer.ts (#198802)
Refactors webServer.ts to split it into multiple files and encapsulate some functionality in classes
2023-11-21 12:06:47 -08:00
Matt Bierner
6805bb6d2b Hook up mapped code edits experiment for TS (#198478)
For https://github.com/microsoft/TypeScript/pull/55406
2023-11-17 02:07:09 +00:00
John Murray
77dc8793db Add typescript.implementationsCodeLens.showOnInterfaceMethods setting (#136282) (#198419)
* Add `typescript.implementationsCodeLens.showOnInterfaceMethods` setting (#136282)

* Update codelenses when `typescript.referencesCodeLens.showOnAllFunctions` changes

* Improve handling of disposables
2023-11-16 22:46:41 +00:00
Logan Ramos
9bea1fc96a Bump telemetry package (#197168) 2023-11-01 20:51:03 +01:00
Andrew Branch
82ece597ee Add setting for preferring type-only imports (#196123) 2023-10-30 18:14:58 +00:00
Joyce Er
dedfcf65d3 feat: add enum descriptions for TS locale setting (#195947) 2023-10-19 01:52:49 +02:00
Matt Bierner
a12bb0543d Restore copilot fixes/refactorings (#194092)
Reverts #193810 to restore #193810
2023-09-26 09:40:27 +02:00
Johannes Rieken
b7fad0df6d Revert "Copilot-based TS refactors" 2023-09-22 16:05:04 +02:00