Commit Graph

1665 Commits

Author SHA1 Message Date
Matt Bierner
ab8ed4b717 Fallback to use insert text when label is falsy (#184944)
For #184812
2023-06-12 21:11:42 +02:00
Matt Bierner
977ee8ca1e Add logging of readDirectory (#184549) 2023-06-07 15:22:16 -07:00
Matt Bierner
42498ee647 Mention tsconfig / jsconfig in 'Go to project configuration' (#184441)
This makes the commands more discoverable
2023-06-06 13:41:54 -07:00
Matt Bierner
af4c133f63 Pick up TS 5.1.3 (#184091)
Fixes #182931
2023-06-01 21:07:19 +02:00
Matt Bierner
14977db0ec Disable move to file in TS versions < 5.2 (#183992)
There are still a few key bugs with refactoring. We will  ship this as a preview for TS 5.2+ instead of for 5.1
2023-05-31 22:18:24 +02:00
Matt Bierner
2add9d4c10 Set isRefactoring for all TS refactoring edits (#183982) 2023-05-31 19:14:35 +02:00
Matt Bierner
f4175f4a13 Default to current dir for move to file select (#183875)
Fixes #183870

`showOpenDialog` seems to ignore `defaultUri` if the file doesn't exist
2023-05-31 09:58:03 +10:00
Matt Bierner
d1ae1fff18 Make JS/TS go to configuration commands work on non-file: file systems (#183688)
Make `go to project` commands work on non-`file:` file systems

Fixes #183685
2023-05-30 16:07:14 -07:00
Matt Bierner
8a71f8515d Noop when moving a symbol into the file it is already in (#183866)
Fixes #183793
2023-05-30 13:40:45 -07:00
Matt Bierner
ea7d830fb4 Fix some errors for project wide JS/TS IntelliSense (#183482)
- Don't compute `semanticSupportedSchemes` early, as this may be incorrect if the script is loaded before there are workspace folders

- Handle exceptions when watching files by logging them but not crashing the server
2023-05-25 18:43:46 -07:00
Matt Bierner
710d6ea32c Fix new path suggestion for move to file (#183474)
Turns our `newFileName` is actually a path :)
2023-05-26 00:29:58 +02:00
Aiday Marlen Kyzy
81f98eb8fe adding text to better explain the dependence on the AI extension 2023-05-25 15:20:55 +02:00
Aiday Marlen Kyzy
0cce0c2f51 adding typescript in front 2023-05-25 14:48:50 +02:00
Aiday Marlen Kyzy
454a8e61ff polishing the code 2023-05-25 14:46:57 +02:00
Matt Bierner
0908552502 Pick up latest TS for building VS Code (#183358) 2023-05-24 23:19:24 +02:00
Aiday Marlen Kyzy
203c911ca0 adding a setting in order to control whether the ai assisted setting is enabled or not 2023-05-24 16:18:04 +02:00
Johannes
2b8529fa61 make API command for interactiveEditor.start so that initial range can be set properly 2023-05-24 15:21:18 +02:00
Johannes
ce7986f35e extract logic into EditorChatFollowUp class 2023-05-24 15:02:56 +02:00
Aiday Marlen Kyzy
49043016b5 cleaning the code 2023-05-24 10:51:07 +02:00
Aiday Marlen Kyzy
b07e68e5fb cleaning the code 2023-05-23 18:35:36 +02:00
Aiday Marlen Kyzy
1a50d63321 added the arrow function into the private function 2023-05-23 18:18:44 +02:00
Aiday Marlen Kyzy
b278ac8a54 resetting the privacy modifiers 2023-05-23 17:29:40 +02:00
Aiday Marlen Kyzy
b2361a5c83 removing some console logs 2023-05-23 17:28:46 +02:00
Aiday Marlen Kyzy
e5a37e8d5f setting the right end line number 2023-05-23 17:26:33 +02:00
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
Bhavya U
b0cf9f8e24 Remove temp walkthroughs (#182996) 2023-05-19 15:28:27 -07: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
Bhavya U
6efb31c7a9 Add temporary nodeJS walkthrough (#181441) 2023-05-03 12:31:11 -07:00
Matt Bierner
be03603bfe Remove duplicated types (#181267) 2023-05-01 19:15:34 +00:00
Matt Bierner
8243eb2556 Fix enumItem labels (#180889)
`javascript.preferences.importModuleSpecifierEnding` and `typescript.preferences.importModuleSpecifierEnding` got out of sync here
2023-04-25 16:14:03 -07: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
6a9c24cbd0 Update importModuleSpecifierEnding to mention .ts (#180349)
Makes the `importModuleSpecifierEnding` settings mention that it can include `.js` or `.ts`
2023-04-19 20:43:53 +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
Matt Bierner
f24d50369f Add note on required TS version to setting (#180271) 2023-04-18 19:14:17 -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