Commit graph

215 commits

Author SHA1 Message Date
Matt Bierner 5c71a0b18b Update js/ts grammar 2020-01-10 14:25:21 -08:00
Matt Bierner 9536692355 Update js/ts grammars 2020-01-06 11:44:57 -08:00
Matt Bierner 609a88d3e3 Update js/ts grammar 2019-12-17 15:04:11 -08:00
Alex Ross c45e6cc623 Update grammars 2019-12-10 12:35:30 +01:00
Matt Bierner 776c33ac41 Pull in the latest grammars 2019-11-26 11:49:01 -08:00
ZHAO Jinxiang 352d641042 Add .cjs to known JavaScript file extensions (#85460) 2019-11-25 19:46:09 -08:00
Matt Bierner e6abf471d8 Update js/ts grammars 2019-11-18 15:34:42 -08:00
Matt Bierner 8b1e55780c Fix grammar pinning test 2019-11-12 21:13:48 -08:00
Matt Bierner 403f364a72 Remove test fixtures for jsdoc 2019-11-12 17:06:20 -08:00
Matt Bierner 96f2f3d66f Remove jsdoc markdown injections
New extension offers a replacement: https://marketplace.visualstudio.com/items?itemName=bierner.jsdoc-markdown-highlighting
2019-11-12 16:45:12 -08:00
Alex Ross 3f1f36333d Update grammars 2019-11-04 14:11:36 +01:00
Matt Bierner 6aab56dd62 Use specific scope name for js vs ts
Fixes #83289
2019-10-25 10:53:04 -07:00
Matt Bierner de2c32f69d Split js doc injection into js and specific ones 2019-10-24 16:58:12 -07:00
Matt Bierner cd955c2770 Pick up latest js/ts grammar
For #82224
2019-10-16 10:43:27 -07:00
Matt Bierner a967c8ada3 Move js/ts json validation to js/ts language features extension
Fixes #73336
2019-10-04 15:31:21 -07:00
Martin Aeschlimann bcf67c867f allow trailing commas in tsconfig.json (for #80419) 2019-09-20 12:07:26 +02:00
Matt Bierner 011836a150
Prototyping custom editors (#77789)
* Custom Editor exploration

For #77131

Adds a prototype of custom editors contributed by extensions. This change does the following:

- Introduces a new contribution point for the declarative parts of a custom editor
- Adds API for registering a webview editor provider. This lets VS Code decided when to create a webview editor
- Adds an `openWith` command that lets you select which editor to use to open a resource from the file explorer
- Adds a setting that lets you say that you always want to use a custom editor for a given file extension
- Hooks up auto opening of a custom editor when opening a file from quick open or explorer
- Adds a new extension that contributes a custom image preview for png and jpg files

Still needs a lot of UX work and testing. We are also going to explore a more generic "open handler" based approach for supporting custom editors

Revert

* Re-use existing custom editor if one is already open

* Don't re-create custom editor webview when clicking on already visible custom editor

* Move customEditorInput to own file

* First draft of serializing custom editor inputs

* Use glob patterns instead of simple file extensions for matching custom resoruces for custom editors

* Add descriptions

* Try opening standard editor while prompting for custom editor

* Make sure we hide image status on dispose

* Make sure we restore editor group too

* Use glob patterns for workbench.editor.custom

* Allow users to configure custom editors for additional file types

* Use filename glob instead of glob on full resource path

* Adding placeholder for prompt open with

* Add enableByDefault setting for editor contributions

* Enable custom editors by default and add `discretion` enum

Changes `enableByDefault` boolean to a `discretion` enum. This should give more flexibility if we want other options (such as forcing a given custom editor to always be used even if there are other default ones)

* Allow custom editors to specify both a scheme and filenamePattern they are active for

* Rework custom editor setting

* Don't allow custom editors to be enabled for all resources by a config mistake

* Replace built-in image editor with one from extension

* Adding reopen with command

* Improve comment

* Remove commented code

* Localize package.json and remove image

* Remove extra lib setting from tsconfig
2019-09-10 17:56:57 -07:00
Johannes Rieken f8ba99ba5a update test file 2019-09-09 11:04:36 +02:00
Johannes Rieken f8daa9eac4 use project-src() to compile what tsconfig-defines 2019-09-06 18:16:12 +02:00
Alex Ross 3ac5830dcf Update grammars 2019-09-02 11:39:10 +02:00
Matt Bierner 5c27385212 Restrict which subsets of the markdown grammar the js/ts injection eagerly loads
Fixes #77990
2019-08-20 10:43:10 -07:00
Alex Ross edf34d3931 Update grammars 2019-08-05 12:44:23 +02:00
Alex Dima 4eb531b613 Reduce diff 2019-07-29 13:44:39 +02:00
Alex Dima f96256b95e Merge remote-tracking branch 'origin/master' into alex/tokenization 2019-07-29 13:23:51 +02:00
Matt Bierner 40c6246335 Update js/ts grammar 2019-07-19 18:35:42 -07:00
Alex Dima 1b8a37d64e Add a fast TypeScript classifier 2019-07-15 23:59:47 +02:00
Matt Bierner f907a8c987 Update js/ts grammar 2019-07-15 11:47:29 -07:00
Matt Bierner 8dfa96edb0 Update js/ts grammar 2019-05-10 15:43:38 -07:00
Matt Bierner b7f20a8b51 Update js/ts grammar 2019-04-23 13:52:06 -07:00
Matt Bierner 0ae3ecbf15 Fix multiline jsdoc type highlightingFixes #27777 2019-04-11 10:05:36 -07:00
Matt Bierner 5a96f231c1 Enable ts-check 2019-04-08 17:13:10 -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 7e86998ef9 Fixes #66247
Allow markdown comments to match blocks that contain extra docs on first line
2019-01-09 12:58:20 -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
davidwu226 2e877e280a Fix invalid JSON. (#65447) 2018-12-23 20:19:29 -08:00
Matt Bierner aa301e3435 Update js/ts grammar 2018-12-19 13:40:54 -08:00
Matt Bierner 04cb6a4c77 Prevent example jsdoc highlighting block from potentially leaking
Fixes #65181
2018-12-17 16:22:52 -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 36c4dc33f6 Don't capture first line of @example blocks as js/ts
Fixes #64457
2018-12-05 14:33:46 -08:00
Matt Bierner 6d0d6713cf Better end of line match 2018-12-05 14:31:53 -08:00
Matt Bierner d7af2b0160 Use more restrictive regular expression for markdown jsdoc content
Fixes #64455
2018-12-05 14:06:05 -08:00
Matt Bierner 89921928d0 Correctly highlight @example code as js/ts
Fixes #64382
2018-12-04 14:05:48 -08: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 5df76d3535 Highlight some basic markdown elements in js/ts fenced code blocks
Fixes #63942
2018-11-28 15:52:57 -08:00
isidor 9edd984da8 delete OSSREADME.json 2018-11-20 12:54:22 +01:00
isidor 2ba92aa3e8 add commitHash to cgmanifest 2018-11-15 17:43:46 +01:00
isidor 347fb6347b add all cgmanifests. Still no commitHash 2018-11-14 18:18:25 +01:00
Matt Bierner 30fb7804c9 Auto close <> in js/ts
Fixes #62864
2018-11-12 11:23:59 -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
Alex Dima 34e7a220c8 Avoid shipping unnecessary files 2018-09-19 19:53:46 +02:00
JYX f448ddebe3 Update tsconfig.schema.json (#58582)
It's actually a config for ts compiler not for js.
2018-09-13 23:47:33 -07: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 9da44453a0 Update grammar tests 2018-08-20 17:01:55 +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 1655e6eb23 Same specialization for ts 2018-07-24 00:42:18 -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
Martin Aeschlimann 0e87ea1c5e jsonc strings are wrong color. Fixes #53010 2018-06-27 14:34:51 +02:00
Martin Aeschlimann e7c0f07530 fix colorize test failures 2018-06-26 17:13:23 +02:00
Martin Aeschlimann 7f56f200c1 Separate grammar for jsonc (fixes #42539) 2018-06-25 23:30:06 +02: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
Martin Aeschlimann 0814ab46f7 Suggestion: tsconfig.*.json should be detected as jsonc. Fixes #50974 2018-06-06 17:11:00 +02: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
Matt Bierner c9c2d9e80b Remove return statement snippets for ts
Fixes #45217

These snipepts do not add much value and do not seem like a good fit for core vscode
2018-03-08 15:14:27 -08:00
Greg Van Liew b3a1b98d54 Edit pass on built-in extension descriptions (#44875) 2018-03-01 16:43:06 -08:00
Matt Bierner 0179894e45 Use vscode.X for basic extensions and vscode.X-language-features for lang features extensions
Standardizing extension identifiers
2018-03-01 00:26:31 -08:00
Martin Aeschlimann f8b2e22b89 Missing JSON schema in tsconfig.json. Fixes #44718 2018-02-28 11:00:49 +01: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
Matt Bierner d2d760ce90 Fixx TS snippets
e694de979f but forgot to stage the proper fix in the commit

Fixes #44638
2018-02-27 11:27:17 -08:00
Matt Bierner 2af32b8873 Bump TS-basics extension version 2018-02-27 11:22:16 -08:00
Matt Bierner e694de979f Fix TS snippets
TS snippets now live in ts-basics instead of the regular ts extension
2018-02-27 11:20:42 -08:00
Matt Bierner 5f25d3c167 Update js/ts grammars 2018-02-26 16:35:57 -08:00
Matt Bierner e23c58b3ab Split out ts syntax and grammar to ts basics 2018-02-23 13:29:52 -08:00