Commit Graph

1068 Commits

Author SHA1 Message Date
Andrew Branch
1c8662b8bf Add setting for package.json auto imports (#103037) 2020-07-22 15:28:22 -07:00
Matt Bierner
3f1206a355 Fix isWeb platform check
The new check should be safer
2020-07-22 14:52:38 -07:00
Matt Bierner
5b9fd525fa Minimize shipped tsserver
This takes the shipped size from 9Mb to 2.9mb
2020-07-22 14:52:38 -07:00
Matt Bierner
ba6576d343 Move project status into host 2020-07-22 14:02:38 -07:00
Matt Bierner
8d6b507dfb Fix build error
watch didn't pick up on the file rename
2020-07-22 12:12:21 -07:00
Matt Bierner
f9224c26cb Move command manager into commands folder 2020-07-22 11:31:08 -07:00
Matt Bierner
3b15049759 Rename files to mark them as browser or electron 2020-07-22 11:31:08 -07:00
Matt Bierner
c6ce8f26cc Move fork impl into serverProcess 2020-07-22 11:31:08 -07:00
Matt Bierner
2f10b23958 Move buffer sync support into server folder 2020-07-22 11:31:08 -07:00
Matt Bierner
0a7364f005 Use object parameter for services 2020-07-21 18:56:27 -07:00
Matt Bierner
feadf5183d Move code lens files into own directory 2020-07-21 17:19:47 -07:00
Matt Bierner
5dfb77c313 Move task provider into own folder 2020-07-21 17:15:20 -07:00
Matt Bierner
a4b0116978 Rename features -> langaugeFeatures 2020-07-21 17:12:19 -07:00
Matt Bierner
6649f4e296 Clean up extension activation 2020-07-21 17:06:24 -07:00
Matt Bierner
0bf4493b75 Don't send git resources to tsserver 2020-07-21 16:52:17 -07:00
Matt Bierner
21cd7c6001 Move some files into server 2020-07-21 16:47:54 -07:00
Matt Bierner
ae7254a2e9 Fixing some errors when loading workspace TS versions 2020-07-21 16:41:02 -07:00
Matt Bierner
23c4467ed3 Enable web TS Server (#102990)
This enables running the TS Server on web. This currently requires a special version of the TypeScript server
2020-07-21 16:13:52 -07:00
Matt Bierner
ec8606cb49 Make sure main process webview file resource loads stays on main process
We were checking the wrong uri
2020-07-21 14:02:28 -07:00
Matt Bierner
caa05dd6d5 Remove extra gating around selector
A registration should only need to if it targets all files, or just those on disk
2020-07-20 16:53:32 -07:00
Matt Bierner
3841f78377 Fix normalization of toResource for untitled resources 2020-07-20 16:36:58 -07:00
Matt Bierner
e41c195051 Work towards allowing enhanced syntax server commands to be run against any file
We currently restrict the TS server to working with a small set of file schemes. This is done because the TS server itself cannot read files from on of VS Code's virtual file system providers (and will crash if it tries to do so)

However we can enable single file commands for these other file schemes, so long as they are treated as in-memory files. This change works towards supporting that by changing when certain providers are enabled/disabled
2020-07-20 16:27:37 -07:00
Matt Bierner
8bf2ae16a0 Export RequestCancellerFactory implementations as constants 2020-07-20 16:27:37 -07:00
Matt Bierner
538ff07c71 Move logDirectoryProvide into server 2020-07-20 16:27:37 -07:00
Matt Bierner
90fbd0eb60 Extract cancellation.electron
This makes it possible to replace the cancellation logic for serverless
2020-07-20 16:27:37 -07:00
Matt Bierner
3b9db3df27 Extract NodeLogDirectoryProvider to electron specific file 2020-07-20 16:27:37 -07:00
Matt Bierner
00bd63c32c Move lazyClientHost to own file 2020-07-20 16:27:37 -07:00
Matt Bierner
c17905888c Extract onIsCaseInsenitiveFileSystem 2020-07-20 16:27:37 -07:00
Matt Bierner
00a0a77785 Cleaning up ts server logic
Getting ready to have worker based TS servers instead of ones that use a process

- Use standard error handler instead of having separate reader error
- Move all process based server logic into own file (`serverProcess`)
2020-07-16 16:05:20 -07:00
Matt Bierner
ed028cfd96 Add ClientCapabilities class 2020-07-16 14:37:58 -07:00
Matt Bierner
0857489caf Add the concept of client capabilities for TypeScript
For serverless, we will only be able to run the TypeScript syntax server which does not support all features. This change makes this possible by adding the concept of client capabilities. Providers such as rename will only be registered when the client has semantic capabilities
2020-07-16 12:32:27 -07:00
Matt Bierner
16c6b81b3e Flatten conditional registration
This allows us to pass a precomputed, flat list of requirements when registering a language feature
2020-07-16 12:32:27 -07:00
Matt Bierner
a1967ddf13 Remove eslint disable
For #101978
2020-07-09 09:25:47 -07:00
Matt Bierner
76471bdb74 Add slight delay to test
For #101922

I can't repo this locally but suspect it may be timing related
2020-07-08 11:43:48 -07:00
Matt Bierner
dee0511b58 Remove duplicated test 2020-07-08 11:43:48 -07:00
Matt Bierner
46c2494cb0 Enable ts tests on ./test-integration.sh (#101826)
* Enable ts tests on ./test-integration.sh

* Fix join lines for windows

* Fixing more tests for windows

Make sure we use the correct new line character

* Update test-ingration scripts
2020-07-07 17:38:03 -07:00
Matt Bierner
bc462053d6 Making TS tests more reliable 2020-07-06 16:52:35 -07:00
Matt Bierner
4f9ebc3205 Sort implement abstract above remove unused
Fixes #101486
2020-07-06 15:41:10 -07:00
Matt Bierner
2ce03eed5a Update VS Code refactoring support for new TS 4.0 api
Adopts changes from https://github.com/microsoft/TypeScript/pull/37871/
2020-07-02 16:41:34 -07:00
Armando Aguirre
2ddb2c5a72 Added word boundary on tsserver regex (#101598)
Adds a word boundary on the tsserver regex so that it doens't get confused by other file names.
2020-07-02 13:18:57 -07:00
Matt Bierner
c5b91342d6 Remove extra dispose implementations 2020-06-29 14:40:15 -07:00
Matt Bierner
04c36be045 Prompt user to upload TS Server log 2020-06-26 16:41:38 -07:00
Matt Bierner
90de01176e Always enable dynamic syntax server on TS 4.0+
We are looking for feedback on this new setting. For those on TS 4.0+, it should also be a sensible default
2020-06-26 16:18:48 -07:00
Matt Bierner
9d59cb9813 Reduce duplicate code
Merge the `SyntaxRoutingTsServer` and `ProjectLoadingRoutingSyntaxTsServer` classes since these only differ routing to the syntax server while a project is loading
2020-06-26 16:18:48 -07:00
Martin Aeschlimann
6eeb350744 update typescript-vscode-sh-plugin (fix version check) 2020-06-26 15:26:15 +02:00
Martin Aeschlimann
4952232a7b Merge pull request #101046 from madskristensen/patch-2
Fix SchemaStore.org URLs
2020-06-26 08:46:20 +02:00
Matt Bierner
32e6693f00 Fix race on 'projectInfo' requests
Fixes #101076

Make sure we fully start the TS Server (including uploading files) before sending the 'projectInfo' request for the status bar item
2020-06-25 16:44:25 -07:00
Matt Bierner
48c6e3979d Add experimental support for using iframes for webviews (#100991)
* Use non-deprecated API version

* Prototype: enable offline iframe based webviews on desktop

Adds a new `vscode-webview` protocol  for loading the wrapper contents of a webview

Still needs cleaning up

* fix loading of electron webview

* Cleanup and add `webview.experimental.useIframes` setting

Co-authored-by: deepak1556 <hop2deep@gmail.com>
2020-06-25 14:52:02 -07:00
Mads Kristensen
860ca64f07 Fix SchemaStore.org URLs
SchemaStore.org now support HTTPS directly instead of relying on the backdoor through *.azurewebsites.net
2020-06-25 10:13:47 -07:00
Matt Bierner
adb27e5fd0 enable/disable deprecated diagnostics in core instead of requiring each diagnostic provider do so 2020-06-22 15:21:15 -07:00