Commit graph

149 commits

Author SHA1 Message Date
Matt Bierner 0ae3ecbf15 Fix multiline jsdoc type highlightingFixes #27777 2019-04-11 10:05:36 -07:00
Matt Bierner 0768663da9 Update js/ts grammar 2019-03-20 17:56:50 -07:00
Matt Bierner e4ac6d29ac Update js/ts grammar 2019-03-15 13:42:19 -07:00
Matt Bierner 7e4e409c52 Update js/ts grammar 2019-02-13 11:14:41 -08:00
Alex Ross 6e968190df Update grammars 2019-02-04 16:35:48 +01:00
Matt Bierner 770beca118 Update js/ts grammars 2019-01-25 15:36:17 -08:00
Matt Bierner c800831ffc Update js/ts grammar 2019-01-22 14:34:43 -08:00
Matt Bierner 5ed55a8606 Don't treat dom properties as special for syntax highlighting
See https://github.com/Microsoft/TypeScript-TmLanguage/issues/691

Assuming that properties named `label` or `name` are dom properties is incorrect and causes a lot of false positives. This results in weirdly inconsistent colorization
2019-01-02 17:33:50 -08:00
Matt Bierner 5631529791 Update js/ts grammar 2019-01-02 17:22:27 -08:00
Matt Bierner aa301e3435 Update js/ts grammar 2018-12-19 13:40:54 -08:00
Matt Bierner 21d29aeb45 Update js/ts grammar 2018-12-17 15:50:25 -08:00
Alex Ross 6c6cd0aab4 Update grammars 2018-12-12 17:25:07 +01:00
Matt Bierner f2348199e0 Update js/ts grammar 2018-11-29 11:42:42 -08:00
Matt Bierner 3c95fb7b9f Update js/ts grammars 2018-11-28 18:28:48 -08:00
Matt Bierner 812a35fc39 Update js/ts grammar 2018-11-05 16:20:13 -08:00
Matt Bierner def0c260d4 Pick up latest js/ts grammar 2018-10-29 20:05:15 -07:00
Alex Ross fd8d4b09e1 Update grammars 2018-10-23 16:13:27 +02:00
Martin Aeschlimann 10a1d2a50a update grammars 2018-10-04 12:00:39 +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
Matt Bierner d039671ad1 Update js/ts grammars 2018-08-20 15:50:44 +02:00
Martin Aeschlimann e4c54be876 update TypeScript grammar 2018-07-27 11:02:03 +02:00
Matt Bierner 1e10fa5163 Update ts/js grammars 2018-07-26 15:40:45 -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 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 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
Martin Aeschlimann d5bded0904 update grammars 2018-03-17 17:40:48 +01: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
Matt Bierner 5f25d3c167 Update js/ts grammars 2018-02-26 16:35:57 -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
Matt Bierner b3526e5adf Update js/ts grammar 2018-01-25 15:28:54 -08:00
Matt Bierner 385e7f7341 Update js/ts grammar 2018-01-02 13:20:50 -08:00
Martin Aeschlimann 7c5c8d59db [js] update grammar 2017-12-20 17:30:56 +01:00
Matt Bierner f806fc6d0c Update JS/TS grammars 2017-12-08 14:48:35 -08:00
Martin Aeschlimann 9ecd00dc28 [js] update grammar 2017-11-10 09:19:56 +01:00
Matt Bierner 9613018ef0 Update ts grammar 2017-10-13 14:46:12 -07:00
Matt Bierner ae20b2073a Make sure we rewrite contentName for jsx grammar 2017-10-12 19:25:15 -07:00
Matt Bierner 9ca019f9e8 Update js/ts grammars 2017-10-12 19:25:15 -07:00
Matt Bierner 63ecf01397 Use unique grammar and scope for JavaScript react to avoid conflicts when overriding plain old javascript grammar
Fixes #35532
2017-10-10 15:02:32 -07:00
Matt Bierner d06bf76099 Update js/ts grammar
Fixes #35768
Fixes #35639
2017-10-09 08:46:43 -07:00
Matt Bierner cbfafa8f15 Update js/ts grammar 2017-09-25 11:28:07 -07:00
Martin Aeschlimann 098d2dbfa8 [ts/js] update grammar 2017-09-25 15:25:05 +02:00
Matt Bierner 0347eda931 Update TS/JS grammars 2017-09-13 23:00:51 -07:00
Matt Bierner 9ad4bcd66f Update TS grammar 2017-07-12 14:26:42 -07:00
Matt Bierner 6fa9edcf71 Update js/ts grammar 2017-06-20 13:51:31 -07:00
Matt Bierner ab1e78ef1f Update js/ts grammar (#27957) 2017-06-05 10:05:50 -07:00
Martin Aeschlimann f9084bb244 Add information_for_contributors to grammars 2017-05-26 09:27:51 +02:00
Martin Aeschlimann d889de5bb5 [typescript] update grammar 2017-05-26 09:27:50 +02:00
Matt Bierner ae5c28306b Pick up updated js/ts grammar (#26094) 2017-05-08 08:12:33 -07:00
Bradley Meck d6c61a0e12 Add .mjs to known JavaScript file extensions (#25747)
Also add .es6 in missing places
2017-05-04 16:21:08 -07:00
Matt Bierner 08b0a15967 Update TS/JS Grammars (#25337)
* Update TS/JS Grammars

* Update test results

* Update html tests
2017-04-25 15:29:09 -07:00
Martin Aeschlimann 2c55fde0da [ts] update grammar. Fixes #19403 2017-01-30 11:58:08 +01:00
Martin Aeschlimann abfdbf6d46 [typescript] grammars: remove workaround for spaces in scope names 2017-01-19 12:02:16 +01:00
Martin Aeschlimann 3956be9ba6 [typescript] update grammar to to Microsoft/TypeScript-TmLanguage@e47681d (2017-01-17). Fixes #18612 2017-01-19 12:02:15 +01:00
Martin Aeschlimann ac16d37827 [ts/js] update grammar 2016-12-28 15:11:12 -04:00
Martin Aeschlimann d20d9ece16 [typescript] update grammar 2016-12-12 10:52:57 +01:00
Martin Aeschlimann b8f51b5351 [typescript] update grammar 2016-11-18 17:26:22 +01:00
Martin Aeschlimann 147130799d [typescript] update grammar 2016-11-08 21:47:40 +01:00
Martin Aeschlimann 47a79e95c4 [ts] update grammar 2016-10-27 16:39:46 +02:00
Martin Aeschlimann 117f6bba76 [ts] update grammar 2016-10-18 11:57:00 +02:00
Martin Aeschlimann 52f9c67a5a [themes] avoid entity.name.class scope 2016-10-14 16:05:33 +02:00
Martin Aeschlimann de957293de [ts] upate grammar, remove meta scopes 2016-10-14 10:13:51 +02:00
Sandeep Somavarapu 5ad1483b63 fix #12750 2016-09-28 18:07:03 +02:00
Martin Aeschlimann c5fc19d474 grammar update script: Generalize as /build/npm/update-grammar 2016-08-03 12:13:18 +02:00
Martin Aeschlimann 5ca799fd07 [javascript] update grammar, grammar as JSON 2016-08-02 17:27:04 +02:00
Martin Aeschlimann 88f88a9093 Update TS grammar with fix 11. 2016-06-22 10:17:03 +02:00
Martin Aeschlimann 700d73620a Update typescript grammar (June 9) 2016-06-15 09:44:31 +02:00
Alex Dima 9326b1406b Fixes #6916: Remove type parameters rule from JavaScript grammar 2016-05-26 13:44:39 +02:00
Martin Aeschlimann 9823c9d7df Update typescript grammar 2016-05-26 12:28:53 +02:00
Martin Aeschlimann 6ac1a239c9 Update to latest TS/JS grammar 2016-03-16 09:50:01 +01:00
Martin Aeschlimann ba737b58dc Update Typescript & JavaScript grammars with fix for TypeScript-TmLanguage/37 2016-03-12 14:58:07 +01:00
Martin Aeschlimann 499b4b55bd Consume latest TypeScript grammar and token.css simplification 2016-03-11 10:31:42 +01:00
Martin Aeschlimann 3043d12a12 [ts][js] update grammar to dbb24c8 (Feb 24) 2016-02-24 15:30:13 +01:00
Martin Aeschlimann 710b5a1d42 fixes #2174 : [js] Salsa - JS ReactNative - use the TypeScriptReact grammar for JS 2016-02-11 09:40:15 +01:00
Martin Aeschlimann 36dd129388 Fixes #2698 : Dark and light (Visual Studio) themes target ts for some important js styles 2016-02-04 13:58:05 +01:00
Martin Aeschlimann 09c07b7830 Update TS/JS grammars to 59c4f26 (Feb 2) 2016-02-03 18:39:13 +01:00
Martin Aeschlimann db1768a599 [theme] storage.type is used for types 2016-01-11 13:52:36 +01:00
Martin Aeschlimann 45f29b9988 [js] update grammars with latest from TypeScript-TmLanguage (05e623f) 2015-12-11 16:06:09 +01:00
Martin Aeschlimann 0b3f7b223d [javascript] Bring back ES6 syntax highlighting support #133 2015-12-03 16:03:48 +01:00
Jake Lee Kennedy 15ffb3dd2b Function calls not highlighted in JS
tmTheme files use `meta.function-call` to highlight function calls.
2015-11-21 12:10:24 +00:00
Erich Gamma 8f35cc4768 Hello Code 2015-11-13 14:39:38 +01:00