Commit graph

136 commits

Author SHA1 Message Date
ChaseKnowlden e8760a5d6c Fix capitalization of GitHub org 2020-09-17 11:43:03 +02:00
Jack Works 5d9647d4bc
Improve typescript.code-snippets for async (#99544)
* Update typescript.code-snippets

* Update typescript.code-snippets

* Update typescript.code-snippets

* Update typescript.code-snippets
2020-08-19 12:07:13 -07:00
Ye-hyoung Kang fcc2a4935e
Add filename patterns for jsconfig.json (#103360)
Add alternative filename patterns for jsconfig.json that will be recognized as JSONC when opened. This mirrors the accepted filename patterns for tsconfig.json.
2020-07-27 13:12:42 -07:00
Alex Dima 91cdca1bdb
Do not ship unnecessary files with extensions 2020-07-24 13:57:51 +02:00
Matt Bierner a877e0528e Remove special grammar rules for console in js/ts
Fixes #101802

These can be better handled by semantic highlighting
2020-07-07 13:24:23 -07:00
Matt Bierner 86a9e31ccc Update JS/TS grammars 2020-06-10 16:44:10 -07:00
Robert Massaioli f3ffbedd41
Update for-in loop to work with eslint:recommended (#99721)
The code in the automatic template will fail this eslint rule: https://eslint.org/docs/rules/no-prototype-builtins. This is just plain annoying.

This change will make the snippet generated code not fail the linter. It will also avoid the subtle bugs that the eslint rule was made to avoid in the first place.
2020-06-09 23:52:58 -07:00
Martin Aeschlimann e4e4343217 Improve new constant color, tests. For #97373 2020-05-29 00:22:17 +02:00
Jack Works ece530adcf
Update typescript.code-snippets (#98521) 2020-05-27 11:41:23 -07:00
Alex Dima 786d4dab94
Fix integration tests 2020-04-23 12:11:58 +02:00
Martin Aeschlimann b02307e53d [themes][semantic] default themes: new constant color. Fixes #95346 2020-04-15 17:04:28 +02:00
Matt Bierner b4b5b6251e Format 2020-04-13 12:36:42 -07:00
Martin Aeschlimann d5e12a12dd Use code-snippet suffix for extension snippets. Fixes #94625 2020-04-08 10:12:23 +02:00
Matt Bierner 75c625d421 Patch js/ts grammars to remove special scopes for node
Fixes #94284

Now the we have semantic highlighting, we should use that to identify if a variable is really from node or not
2020-04-03 14:11:47 -07:00
Matt Bierner a1d80c4a70 Update JS/TS grammars 2020-04-03 14:01:19 -07:00
Matt Bierner 25377ee712 Update js/ts grammar 2020-03-30 16:29:19 -07:00
Martin Aeschlimann 17e140249f more typescript specific rules 2020-03-31 01:12:41 +02:00
Martin Aeschlimann 3c938c800a language specific scopes 2020-03-29 18:03:17 +02:00
Matt Bierner 3bcc2f6061 Update js/ts grammars 2020-03-27 15:22:20 -07:00
Matt Bierner 138b9e488e Update JS/TS grammars 2020-03-16 20:15:57 -07:00
Miguel Solorio 666fcc0d62 Fix #88418, update number color for color contrast 2020-01-21 10:23:18 -08:00
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