Commit Graph

322 Commits

Author SHA1 Message Date
Alex Dima
34e7a220c8 Avoid shipping unnecessary files 2018-09-19 19:53:46 +02:00
Matt Bierner
dbeeecbaed Refactoring to create TS Server object
Rebase of a number of incremental changes listed below

Move first level dispatchMessage into ForkedTsServerProcess

Goal is to move callbacks and other per-server state into `ForkedTsServerProcess`

Create forked ts server object syncrounously

There is no reason for this to be async anymore. Making this object sync reduces complexity and makes the code easier to reason about

Moving server relate functions into ForkedTSServer object

The goal here is to have a single "server" object that keeps track of all its relevant state. The service client would manage one of these servers at a time, starting new ones if needed and dispatching to old ones

Split server into own file

Use switch case instead of conditionals

Make pendingResponses readonly

Add typings for callback item

Improve naming

- Use more descriptive names
- Preview private vars with _

Use passed in version for getting command line args

Attach webview click handler to window instead of to document body

Fixes #48926

Change error handling for ts server exit and error

- Don't fire twice on error (once for the `once` and once for the `onError`)
- Flush callbacks on both exit and error.

Remove cancellationPipeName as state

Remove obsolete comment

Move all env generation into generatePatchedEnv

Extract server spawn into static method

Move spawn from static to be own factory class

Move providers from arguments to state on the spawner

Update js/ts grammar

Remove duplicate error handler

Cleaning up server fork

- Standarize names
- Extract methods
- Move some function to be private statics
- Move logging out of electron and into server.ts

Use undefined instead of null for optional value
2018-09-13 11:55:44 -07:00
Matt Bierner
6d7ab69411 Update js/ts grammars 2018-08-29 01:10:38 +02:00
Matt Bierner
bfae34d749 Update js/ts grammar 2018-08-23 10:54:24 +02:00
Alex Dima
256d205f95 Merge remote-tracking branch 'origin/master' into pr/JacksonKearl/52634 2018-08-22 10:24:19 +02:00
Matt Bierner
d039671ad1 Update js/ts grammars 2018-08-20 15:50:44 +02:00
Jackson Kearl
277d02debb Merge branch 'master' into feature-demo/auto-closing-config 2018-08-08 10:46:46 -07:00
Jackson Kearl
4dff8da77b remove comments for more proper json 2018-08-08 10:43:16 -07:00
Martin Aeschlimann
e4c54be876 update TypeScript grammar 2018-07-27 11:02:03 +02:00
Martin Aeschlimann
c640a0ed5c adopt color changes in colorizer tests 2018-07-27 11:02:03 +02:00
Matt Bierner
1e10fa5163 Update ts/js grammars 2018-07-26 15:40:45 -07:00
Jackson Kearl
75fec9f1fd Merge branch 'feature-demo/auto-closing-config' of github.com:JacksonKearl/vscode into feature-demo/auto-closing-config 2018-07-24 13:41:00 -07:00
Jackson Kearl
763e939bdd Document jsx specialization 2018-07-24 00:38:38 -07:00
Jackson Kearl
629c05f1f8 Add special case for js(x) template strings 2018-07-24 00:07:42 -07:00
Matt Bierner
56d3f0acf2 Update js/ts grammar 2018-07-20 18:07:43 -07:00
Matt Bierner
0f699f35f2 Update js/ts grammar
Addresses #53896
2018-07-10 15:31:10 -07:00
Matt Bierner
9f8491190a Update js/ts grammars 2018-07-03 17:19:04 -07:00
Matt Bierner
260ee3284e Update js/ts grammars 2018-06-19 10:02:48 -07:00
Martin Aeschlimann
772aaf777a update grammars 2018-06-11 13:03:28 +02:00
Matt Bierner
43f6cd5b9c Update js/ts grammar 2018-06-07 16:38:52 -07:00
Matt Bierner
43987a99b5 Update js/ts grammar 2018-06-05 12:48:16 -07:00
Matt Bierner
b3b2ba104a Pick up updated js/ts grammar
fixes #50293
2018-05-22 10:43:27 -07:00
Martin Aeschlimann
bf33900a41 update grammars. Fixes #49071 2018-05-03 17:11:41 +02:00
Matt Bierner
a4c3e74748 Auto trigger suggest on jsdoc parameter names
Fixes #48976
2018-04-30 17:08:53 -07:00
Matt Bierner
5006f7aea7 Update js/ts grammars 2018-04-24 15:38:54 -07:00
Matt Bierner
07d85ac0a0 Update js/ts grammar 2018-04-20 13:27:07 -07:00
Martin Aeschlimann
9d2814a9a1 update grammars 2018-04-18 22:13:50 +02:00
Matt Bierner
2840741d5e Update js/ts grammar 2018-04-16 15:13:49 -07:00
Matt Bierner
d0bc1c3fe4 Updating js/ts grammars 2018-04-06 17:08:40 -07:00
Matt Bierner
5900899b83 Fix quick suggestions not shown in ${| template string
Fixes #37176
2018-04-02 18:43:28 -07:00
Matt Bierner
85d01bfd81 Update js/ts grammars 2018-04-02 16:08:25 -07:00
Matt Bierner
2823cd4b73 Update js/ts grammar 2018-03-23 16:10:48 -07:00
Matt Bierner
a715dfcbd6 Update js/ts grammars 2018-03-23 15:37:58 -07:00
Matt Bierner
95a406bd2a Mark import paths as other type instead of string
Ensures that quick suggestions work properly

Fixes #46142
2018-03-19 14:58:14 -07:00
Martin Aeschlimann
d5bded0904 update grammars 2018-03-17 17:40:48 +01:00
Matt Bierner
eb2b0dfc20 Fix should auto trigger at ${|in js/ts template strings
Fixes #37176
2018-03-16 15:18:14 -07:00
Matt Bierner
d74145ed78 Support quickSuggestions in JSDoc Types (#46001)
* Support quickSuggestions in JSDoc Types

Fixes #43715

Requires vscode-textmate 3.3.1 before merging

* Pick up new vscode textmate version
2018-03-16 15:14:44 -07:00
Matt Bierner
c55926ac9d Update js/ts grmmar 2018-03-15 22:07:57 -07:00
Matt Bierner
b391f5bd72 Update grammars 2018-03-13 15:16:43 -07:00
Matt Bierner
93bd5435bb Update js/ts grammars 2018-03-13 14:24:55 -07:00
Greg Van Liew
b3a1b98d54 Edit pass on built-in extension descriptions (#44875) 2018-03-01 16:43:06 -08:00
Ramya Achutha Rao
15d0e9b30b Remove and other language features from description of basic builtin extensions #44626 2018-02-27 18:15:50 -08:00
Martin Aeschlimann
8bd41ceeca built-in extensions: version to 1.0.0 (for #43978) 2018-02-27 15:16:07 +01:00
Matt Bierner
5f25d3c167 Update js/ts grammars 2018-02-26 16:35:57 -08:00
Martin Aeschlimann
292a290e3f Rename built-in syntax and snippet extensions to "Language Basics". Fixes #44241 2018-02-26 21:27:22 +01:00
Matt Bierner
0cb6cfec4f Remove unused .vscode folders 2018-02-22 16:29:09 -08:00
Matt Bierner
8e0bdd6040 Split package-json specific logic out of javascript extension 2018-02-22 16:27:20 -08:00
Matt Bierner
5a73518833 Add real displayname and description to the javascript extension
Part of #43978
2018-02-22 15:12:09 -08:00
Martin Aeschlimann
8fdf170a08 update grammar script: remove unused properties 2018-02-12 16:54:46 +01:00
Martin Aeschlimann
3e9d16948c [ts/js] update grammars 2018-02-09 12:45:27 +01:00