Commit Graph

1445 Commits

Author SHA1 Message Date
Gabriela Araujo Britto
efc1b30976 Add custom Node option to run TS Server (#191019)
* Add config for running tsserver on custom node

* log when custom node install is used

* create node version manager

* get node path from node version manager everywhere

* modify prompt

* fix useIpc

* use spawn for custom node and set windowsHide

* detect node

* link memory setting to node setting
2023-09-06 20:27:16 +00:00
Matt Bierner
45e2e0bfd0 JS/TS package acquisition (#184438)
* Experiment with adding ata using `@types` packages shipped in an extension

* Use own file system instead of `https`

* JS/TS type support on web

* Tsconfig needs esModuleInterop not module:nodenext

We actually want webpack to emit commonjs, but need to write ES default
imports to use node-maintainer

* fix package.json indentation

* Adding setting to disable web type acquisition

* Fix merge of yarn lock

* Fixing merge errors

* Fixing errors

* Pick up package externally

* Fixing conflicts

* Bump version

---------

Co-authored-by: Kat Marchán <kzm@zkat.tech>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-08-28 00:49:40 -07:00
Alexandru Dima
0783235efc Merge branch 'main' into aiday/telemetryDiagnosticData 2023-08-24 12:00:25 +02:00
Aiday Marlen Kyzy
a597b9044f disposing the telemetry emitter 2023-08-24 11:01:47 +02:00
Aiday Marlen Kyzy
ca86548968 changing from a js doc to a doc 2023-08-24 10:57:12 +02:00
Matt Bierner
bf9604c568 Add event for when inlay hints are provided (#191134) 2023-08-23 23:15:07 +01:00
Matt Bierner
557695b920 Fix inlay hint location (#191122) 2023-08-23 14:10:55 -07:00
Aiday Marlen Kyzy
82cbf90600 clearing the timeout on dispose of the class 2023-08-22 09:43:11 +02:00
Aiday Marlen Kyzy
46ca479aa3 using a resource map now, need to normalize to a string? 2023-08-22 09:42:12 +02:00
Aiday Marlen Kyzy
df5bf004f4 checking also that the file is of type typescriptreact 2023-08-22 09:33:41 +02:00
Aiday Marlen Kyzy
32c476a056 adding a comment right above the setting 2023-08-22 09:31:25 +02:00
Aiday Marlen Kyzy
5fbf0d2ed1 passing in instead the diagnostic collection 2023-08-21 17:42:44 +02:00
Aiday Marlen Kyzy
fb4b533d93 extracting the method _increaseDiagnosticCodeCount to avoid duplication 2023-08-21 17:01:53 +02:00
Aiday Marlen Kyzy
8db8d30dfa using the utility method equals 2023-08-21 16:56:13 +02:00
Aiday Marlen Kyzy
cf21c24624 updating all the diagnostics after the timeout 2023-08-21 16:48:48 +02:00
Aiday Marlen Kyzy
76cc0881d3 using instead the uri string 2023-08-21 16:24:57 +02:00
Aiday Marlen Kyzy
afcac53ae9 review comments 2023-08-18 14:59:44 +02:00
Aiday Marlen Kyzy
03f09a238c adding a comment 2023-08-18 14:40:14 +02:00
Aiday Marlen Kyzy
1f86585b9b remove the setting of 10000 for updating the diagnostics 2023-08-18 14:37:30 +02:00
Aiday Marlen Kyzy
d56bd87a31 using instead the vscode Uri instead of the entity from vscode-uri 2023-08-18 14:35:17 +02:00
Aiday Marlen Kyzy
3e937b6a20 cleaning the code 2023-08-18 12:55:25 +02:00
Aiday Marlen Kyzy
1829704675 cleaning the code 2023-08-18 12:17:35 +02:00
Aiday Marlen Kyzy
008b00d24f taking the diff between current and previous snapshot 2023-08-18 11:33:03 +02:00
Aiday Marlen Kyzy
81ae16ba6e sending the telemetry event in a loop 2023-08-18 10:47:35 +02:00
Aiday Marlen Kyzy
0d4db5ffc4 sending the diagnostics on handle exit 2023-08-17 14:35:27 +02:00
Aiday Marlen Kyzy
614bfb3d33 sending diagnostics on file open 2023-08-17 14:07:03 +02:00
Aiday Marlen Kyzy
b4801aeb02 adding the data relative to the diagnostic error codes in the typescript extension 2023-08-15 12:20:02 +02:00
Vitaly
432aac18f1 [typescript] Better paths matching for move to existing file quickpick (#181231)
* Better paths matching for move to existing file quickpick

* fix resolving selected item

* fix: select file dialog point to existing file

* skip computing if
use coalesce

* Improve typings

---------

Co-authored-by: Matt Bierner <matb@microsoft.com>
2023-08-09 21:29:30 +01:00
Matt Bierner
4f66a0c2c1 Updating bundled and build TS versions (#189868) 2023-08-07 17:04:12 -07:00
Matt Bierner
3cc82327b5 Bump TS versions (#189344)
Bumps TS version for building VS Code
Bumps bundled TS version
2023-07-31 20:13:11 +01:00
Matt Bierner
e2720e7bf4 Make getWorkspaceRootForResource work for notebook cells (#188186)
Fixes #186811
2023-07-19 05:29:22 +10:00
Matt Bierner
40abe0e1d5 Explicitly add link in JSDoc (#188182)
Fixes #188159
2023-07-18 11:15:14 -07:00
Matt Bierner
c0d560ed49 Don't parse @link inside @example JSDoc tags (#187877)
Fixes #187768
2023-07-13 16:02:57 -07:00
Matt Bierner
00105d2ddb Exclude azurerepos: files from JS/TS intellisense (#187521)
Fixes #186385
2023-07-11 08:45:12 -07:00
Matt Bierner
688bc028e3 Extends tsconfig link logic to references paths (#186227)
Fixes #182898
2023-06-26 14:55:10 -07:00
Matt Bierner
5ee455116f Add codeql comments and small fix (#185931) 2023-06-23 02:40:39 +02:00
Matt Bierner
3a02b99fe8 Try to request workspace content caching on commit (#185920)
For #175972

Here's what believe is happening:

- Workspace opens. We download the archive for the current commit
- User makes a commit
- The commit has now changed, which invalidates the archive. However TS doesn't know this (all the uris seem to stay the same). This means that we silently start going to the network again on file system operations

To fix this, we're going to try re-requesting the archive when a file system change event is fired for the workspace root. This should happen when a commit is made
2023-06-22 15:33:06 -07:00
Matt Bierner
538da53226 Dispose of file watchers when web TS server exits (#185815)
Dispose of file watchers when TS server exits
2023-06-21 17:14:21 -07:00
Matt Bierner
e30b2359c5 Add logging for TS extension file watcher creation (#185813)
Add logging for extension file watcher creation
2023-06-21 15:36:39 -07:00
Matt Bierner
1eabca5501 Support downloading repo contents for all github authorities (#185707)
For #175972

Previously this was broken for `github%2b...` style authorities
2023-06-20 15:19:11 -07:00
Matt Bierner
7f8893b149 Add more logging for when loadWorkspaceContents isn't used (#185624) 2023-06-19 17:42:38 -07:00
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
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