Commit Graph

1383 Commits

Author SHA1 Message Date
Aiday Marlen Kyzy
c7b6e732e7 initial code 2023-05-23 16:17:41 +02:00
Aiday Marlen Kyzy
90a6ac4a63 adding a console log 2023-05-23 15:25:53 +02:00
Matt Bierner
65123b465a Allow clickable links to absolute tsconfig extends paths (#182921)
Fixes #182898
2023-05-19 01:05:34 +02:00
Matt Bierner
728197deb8 Remove some completions logic specific to old TS versions (#182894)
Removes workarounds added for TS versions that are many years old at this point
2023-05-18 11:10:31 -07:00
Gabriela Araujo Britto
8457aa24b2 [typescript-language-features] Use original filterText if present (#172866)
* use original filter text, if present

* update comment
2023-05-17 22:37:11 +00:00
Matt Bierner
4d59b19b73 Enable project wide JS/TS intellisense on web by default (#182812)
Fixes #170920

Enables this feature by default but also disables semantic errors. This is needed to avoid lots of annoying false positive errors for external modules. We plan to remove this limitation once type downloading support is enabled
2023-05-18 00:06:00 +02:00
Matt Bierner
adddf406d0 Simplify buffer enums (#182811) 2023-05-18 00:01:06 +02:00
Matt Bierner
1569f9d9d7 Don't cancel file reopen if language has changed (#182657)
Fixes #182526

The chat panel changes the language of a document. This revealed a bug in JS/TS about language changes.

Normally changing a language should close and reopen a text document. However we added an optimization to not do this full flow if the open then close happens quickly

However this causes issues if the file changes languages as TS gets into a state where its doc language id does not match VS Code's language id. To fix this, I've limited the optimization to only apply when the expected script kinds match
2023-05-16 12:28:14 -07:00
Matt Bierner
8b11c814cc Use better placeholder for move to file (#182108) 2023-05-10 12:56:25 -07:00
Matt Bierner
be03603bfe Remove duplicated types (#181267) 2023-05-01 19:15:34 +00:00
Matt Bierner
42fbc2f784 Use custom command to open JS doc links (#180737)
Fixes #162507

Prevents incorrect auto transform of the uri
2023-04-24 15:05:14 -07:00
Matt Bierner
03540d605f Pick up latest TS for building VS code (#180706) 2023-04-24 20:14:30 +02:00
Matt Bierner
6fefe056e2 Don't show JS/TS loading indicator eagerly (#180265)
This fixes the loading indicator showing when an extension opens an in-memory JS file that doesn't belong to any project
2023-04-18 19:14:49 -07:00
Donald33 Wang
7122771026 Support custom switch-case indentation (#179670) 2023-04-18 17:24:51 +00:00
Matt Bierner
95396f14db Don't complete jsx tag as function call (#180171)
Fixes #177606
2023-04-17 21:12:28 -07:00
Matt Bierner
24c44070ae Revert "Nicely format logged objects (#179405)" (#179894)
This reverts commit 5d3f960b67.

Based on comments in https://github.com/microsoft/vscode/pull/179405#issuecomment-1506843399
2023-04-13 18:55:06 +01:00
Matt Bierner
26ccce443f Enable renaming of matching jsx tags (#179806)
Fixes #159534

Uses the new linked editing api to make f2 rename matching jsx tags
2023-04-12 21:42:59 +02:00
Matt Bierner
5d3f960b67 Nicely format logged objects (#179405)
Follow up oin https://github.com/microsoft/vscode/issues/176479#issuecomment-1498597499

This uses JSON.stringify to format objects that are logged. Currently they are all printed as a single line without any whitespace
2023-04-11 13:04:44 -07:00
Matt Bierner
a58d9dc08f Update linked editing file name (#179643)
Also make sure we are enabled in all syntax files
2023-04-10 15:55:44 -07:00
Matt Bierner
06659f0ba9 Add stubs for jsx linked editing (#176279)
* Add stubs jsx linked editing

For https://github.com/microsoft/TypeScript/issues/51832

* Update for new TS changes

* Update to finalized protocol
2023-04-10 23:32:09 +01:00
Andrew Branch
117668153b [typescript-language-features] Support replacing Go to Definition with Go to Source Definition by preference (#178840)
* Add preference for replacing Go to Definition with Go to Source Definition

* Support replacing Go to Definition with Go to Source Definition by preference

* Predicate call on TS version
2023-04-05 21:17:01 +00:00
Matt Bierner
cc69fb1aad Switch TS ext to use LogOutputChannel (#179205)
Fixes #176479
2023-04-05 10:44:21 -07:00
Daniel Rosenwasser
93026118c5 Remove Node.js walkthrough/getting started guide (#176325)
Remove Node.js walkthrough/getting started.

Co-authored-by: Matt Bierner <matb@microsoft.com>
2023-04-04 15:27:13 -07:00
Matt Bierner
b9202b6408 Use better names in js/ts text rendering (#178711)
Use better names
2023-03-30 21:10:51 +02:00
Matt Bierner
0acd272268 Refactor structure of typescript extension (#178634)
There were way to many files under `util`. This change moves around files to more meaningful locations
2023-03-29 16:54:53 -07:00
Matt Bierner
ce00cd7812 Add initial prototype for JS/TS move to file refactoring (#178535)
Add initial support for move to file

Fixes #176705
For https://github.com/microsoft/TypeScript/pull/53542
2023-03-28 16:49:50 -07:00
Matt Bierner
6f5920818a Bump eslint versions (#178516) 2023-03-28 14:16:09 -07:00
Matt Bierner
07b2b6066b Remove extra file check in documentHighlights (#177879)
Fixes #177823

For document hightlights, it seems TS returns windows paths that use forward slashes. This seems wrong, but we also likely don't need the extra check for the file on our side either since we already pass in `filesToSearch`
2023-03-21 21:09:19 +01:00
Matt Bierner
26e7b9a3bd TS source actions should not be blocked by pending action requests (#177737)
Fixes #164876
2023-03-21 10:29:56 -07:00
Matt Bierner
549d31a5d5 Stop VS Code from transforming uris in tsconfig document link (#177305)
Fixes #160979
2023-03-15 17:17:18 -07:00
Matt Bierner
54921d7173 Pass TS Server the original fs path (#177292)
For #177083

We've had code to normalize the file path for a long time but I don't think it's needed. In the case of samba paths, it also appears to break things

Let's try dropping it and passing along the original `fsPath` instead
2023-03-15 15:00:15 -07:00
Matt Bierner
3df6a29a80 Don't skip JS/TS diagnostic updates on equals (#177149)
Even though the diagnostics on the ext host side may be equal, the displayed diagnostic may be at a different spot. We need to make sure the UI is also updated in these cases by setting the diagnostics again
2023-03-14 18:03:51 -07:00
Matt Bierner
1f3da727a9 Bump TS web version (#176577) 2023-03-09 07:32:42 -08:00
Matt Bierner
ed43d97e47 Always use TS's sort text in TS 5+ (#176322)
* Always use TS's sort text in TS 5+

Fixes #174628

* Add missing file
2023-03-06 17:12:44 -08:00
Matt Bierner
797291f90f Fixing some project wide intellisense issues in safari (#176294)
For #175229

- Safari can't transfer `Proxy` objects
- Safari's nested worker polyfill wasn't forwarding along the `ports` field on message events
2023-03-06 12:52:34 -08:00
Matt Bierner
1270982c75 Make add missing new auto fixable (#175720)
Fixes #175719
2023-03-01 06:50:11 +01:00
Matt Bierner
28d9a83f12 Fix TS Server logging on windows (#175600)
Fixes #175172

We need to pass TS the windows style path here
2023-02-28 14:36:27 -07:00
Matt Bierner
ce24cb7dac Fix suggest action toggling (#175567)
Fixes #175113
2023-02-27 20:10:00 +01:00
Matt Bierner
4d247bae44 Don't allow one click reporting of TS Server crashes against VS Code repo when TS server plugins are enabled (#175186)
Don't allow one click reporting of TS Server crashes when TS server plugins are enabled

Fixes #175184
2023-02-22 23:26:18 +00:00
Matt Bierner
5170e1a42b Use native path for trace directory (#173856)
Fixes #173854

On windows, we need to pass in the `c:\` style path. The normal `/` path causes TS Server to crash
2023-02-08 10:41:10 -08:00
Matt Bierner
095a2f8ae8 Log correct tsserver path (#173708)
Fixes #173707

We previously converted the TS Server log from a simple string to an object. However there were a few cases where this object was incorrectly being converted into a UI string, resulting in `[Object object]`
2023-02-07 09:18:15 -08:00
Matt Bierner
25514d899f Use pervious crashed TS Server version to check if user was on old TS version (#173620)
Use pervious crashed version to check if user was on old TS version

Fixes #133818
2023-02-06 15:05:19 -08:00
Matt Bierner
69b6f978f6 Make sure we pass TS server the transformed project root (#173096)
When opening a file, we pass TS Server a project root to prevent it from scanning too many files. On web, we need to pass the transformed project root, not the original uri

This PR also removes some confusingly duplicated methods and renames them to make their behavior more clear
2023-02-02 11:30:04 +00:00
Matt Bierner
855dd78852 Fix open ts server log command on web (#172885)
Fixes #172853
2023-01-31 06:34:00 +01:00
Matt Bierner
5be17a3f51 Use uris instead of string paths for TS Server logs (#172872) 2023-01-30 16:28:53 -08:00
Matt Bierner
99d9949a7c Make remove await quick fix auto fixable (#172854)
Make remove `await` quick fixable

Fixes #172851
2023-01-30 14:09:30 -08:00
Matt Bierner
f3edd0e0be Fix TS Server always logging (#172562)
Fixes #172554
2023-01-30 09:39:19 -08:00
Matt Bierner
b1a4dfdcfd TS should ignore github: files (#172603)
Fixes #172597
2023-01-30 08:39:43 -08:00
Johannes Rieken
46a157973f fix TS filterText/insertText updating (#172616)
fixes https://github.com/microsoft/vscode/issues/172419
2023-01-27 10:06:14 +01:00
Matt Bierner
6c710f3324 Give debug name to the TS Server workers (#172328)
Give a debug name to the TS Server workers

This gives the TS Server worker process debug name, which helps with debugging and profiling
2023-01-24 17:07:33 -08:00