Commit Graph

1835 Commits

Author SHA1 Message Date
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
d662a014f4
Make pasting canceling ongoing geterr requests (#216089)
Should speed up pasting
2024-06-19 10:22:00 -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
Matt Bierner
94274c47b8
Skip interrupting geterr in automatic cases (#215389)
Quick fixes already don't interrupt `geterr` requests so this likely won't slow down the automatic lightbulb
2024-06-12 14:29:41 -07:00
Matt Bierner
b7e5750fa9
Restrict copy/paste with imports to TS 5.6+ (#215386)
Also skips when the copied file is the same as the paste file
2024-06-12 22:20:46 +02:00
Matt Bierner
df2861b737
Pick up TS 5.5 for builtin ts extension (#214170)
For #214169
2024-06-03 21:07:18 +02:00
Matt Bierner
b1ecfe96b5
Don't use shell for spawning node (#213960)
Fixes #204678
2024-05-30 17:08:47 -07:00
Alexandru Dima
8f78098b37
Ensure inline chat is started with a good initial selection (#213860) 2024-05-29 15:59:54 -07:00
Matt Bierner
d0d79c231f
Fix js/ts cross code block intellisense (#213726)
We need to register support for the backing copilot scheme too, not just the panel scheme in core
2024-05-28 13:43:20 -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
Matt Bierner
85fe2e2daf
Update for latest code mapper proposal (#213256) 2024-05-22 22:10:07 +02:00
Matt Bierner
001b81c683
Disable VS Code file watching for yarn pnp (#213238)
Disable VS Code file watching on yarn pnp
2024-05-22 18:43:55 +02:00
Walker Boyle
3bda9ff4f7
fix: tsserver no longer crashes when log path includes spaces (#212752) 2024-05-21 18:01:17 +00:00
Matt Bierner
daec93b827
Disable web ata for safari (#212726) 2024-05-14 11:12:28 -07: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
Matt Bierner
268c20f317
Suppress semantic errors in js/ts notebook cells (#212367)
Fixes #212366
2024-05-09 10:20:21 -07:00
강동윤 (Donny)
71718e2b96 json schema for swcrc 2024-05-07 18:28:22 +09:00
Matt Bierner
59a90a6dab
Pass along autoImport setting on TS file settings (#211803) 2024-05-01 12:23:30 -07:00
Matt Bierner
431afbe459
Log trigger reason in TS refactor telemetry (#211652) 2024-04-30 11:27:07 -07:00
Matt Bierner
bc278dfe7c
Fix workspace symbol search (#211681)
For #211672
2024-04-29 17:54:50 -07:00
Matt Bierner
c1cc1a902d
Remove most <type> assertions in TS ext (#211648)
These can easily hide typing errors
2024-04-29 18:23:51 +02:00
Matt Bierner
5d25f31b7e
Re-register TS sort/remove unused commands (#210984)
Fixes #210728

Removed these as I thought they were unused
2024-04-22 20:16:38 -07:00
Matt Bierner
117c4419d6
Fix config file diag text (#210988)
Fixes #210966
2024-04-22 20:15:13 -07:00
Matt Bierner
9d2deb650d
Use resolveCodeAction for organize imports (#210418)
For #210171
2024-04-15 15:19:28 -07:00
Matt Bierner
23915afd3b
Exclude chat symbols from JS/TS workspace symbol results (#210095) 2024-04-10 12:27:52 -07:00
Sheetal Nandi
b2c4302323
Use vscode watches for tsserver (#193848) 2024-04-09 13:39:34 +02:00
Vladimir Piskarev
5bde174ef1
Fix incorrect typings in OpenJsDocLinkCommand_Args (#209872)
Fix incorrect typings in OpenJsDocLinkCommand_Args
2024-04-08 20:09:49 +00:00
Matt Bierner
125e308ea4
Bump @typescript-eslint versions (#209516)
6.x is the latest release that supports our current node target
2024-04-04 10:36:59 -07:00
Matt Bierner
b5f97ae0e1
Fix null access (#209449) 2024-04-03 17:37:38 +02:00
Matt Bierner
cb83e0b39b
Don't use stateful regex (#209268)
Fixes #209254
2024-04-01 19:00:16 +02:00
Justin Chen
7637ca582e
proper quick fix if recently edited document (#206490)
* if doc has been recently changed, wait before running code action

* checking needs delay in extension

* removed unused awaits

* removed unused checks

* remove whitespace

* remove needsDelay and adds delay in extension instead

* remove recentlyadded

* remove whitespace

* cleanup from comments

* adds back needs delay

* deal with cancellation state

* remove whitespace and needsDelay again

* clean up

* Update codeActionController.ts

* add review

* added position for extra check
2024-03-15 00:47:17 +01:00
Justin Chen
315ae79d96
ts server crash open issue reporter (#207526)
minor open reporter changes
2024-03-13 15:58:33 -07:00
Andrew Branch
d1498b3a48
[typescript-language-features] Fix autoImportFileExcludePatterns format to work on Windows (#202762)
* Do not prefix autoImportFileExcludePatterns with `/`

* Fix autoImportFileExcludePatterns format
2024-03-13 07:51:45 +00:00
Matt Bierner
c087be9705
Adopt module 'Preserve' for TS 5.4+ (#206478) 2024-03-07 13:35:56 -08:00
Matt Bierner
6403b4367b
Pick up latest TS for building VS Code (#207096) 2024-03-07 12:59:59 -08:00
Matt Bierner
a5abe07cea
Remove buffers that shouldn't be validated from geterr request (#206843)
Fixes #206644
2024-03-04 13:40:39 -08:00
Logan Ramos
436af204d4
Bump tas client (#206106) 2024-02-23 10:00:23 -08:00
Matt Bierner
2ad2a35cad
Make sure we don't report errors in chat code blocks (#204779) 2024-02-21 08:53:05 -08:00
Ulugbek Abdullaev
b4e834f6fd
Removed Copilot related code from TypeScript Refactor Provider 2024-02-21 12:44:54 +01:00
Justin Chen
7ff2572a3e
remove leftover console log in quickfix (#205022)
removed leftover log
2024-02-12 19:45:06 +01:00
Matt Bierner
428dd56479
Try to observe TS usage of insert/replace (#204661)
Fixes #204037

- Replace span on item == use for both insert and replace
- Optional replacement span == use only for replace
2024-02-07 15:21:42 -08:00
Matt Bierner
a1fb0dcd2e
Put all chat code blocks in same implicit JS/TS project (#204655) 2024-02-07 14:47:44 -08:00
Yves Daaboul
0786b4d2fb
fix(193523): JSDoc optional parameters don't display in functions (#202963)
* Issue193523: Brought back optional params to autocompletion preview

* #193523: Hided end-of-list optional params

* #193523: Added unit tests

* #193523: Fixed integration tests

* Update extensions/typescript-language-features/src/languageFeatures/util/snippetForFunctionCall.ts

---------

Co-authored-by: Matt Bierner <matb@microsoft.com>
2024-02-06 03:59:23 +00: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
Matt Bierner
e9ce823bf1
Fix potential race creating JS/TS temp dir (#203367)
Fixes #203335
2024-01-29 09:24:41 -08:00