Commit graph

177 commits

Author SHA1 Message Date
Alex Ross ec5b41ddc2
Update grammars (#159445)
Update grammar
2022-08-29 14:08:44 +02:00
Bryan Lee fac840f22c Add support for angle bracket matching and colorization in Typescript 2022-06-29 01:59:31 +08:00
Matt Bierner 9f3cafba7d
Update grammars (#151383)
Updates the markdown and JS/TS grammars
2022-06-07 09:37:14 -07:00
Remco Haszing a9fc85ff47
Specify tsconfig.tsbuildinfo is json (#149065) 2022-05-10 08:59:40 -07:00
Matt Bierner e6f42433cf
Include @ in JS/TS word pattern (#148962)
Fixes #148874

`@` is used both for decorators and in imports
2022-05-06 21:10:45 +00:00
Alex Ross f3b1b53443
Update grammars 2022-05-02 11:20:10 +02:00
Matt Bierner e9636bbce1
Don't have space in snippet
Fixes #146503
2022-04-01 11:15:25 -07:00
Matt Bierner 1da08937d8
Remove text mate highlighting of more JS/TS built-ins
Identifying specific symbols is a better fit for semantic highlighting instead of textmate as semantic highlighting prevents false positives

This keeps around a few of the most built-ins for now but we may revisit these in the future
2022-03-01 16:17:16 -08:00
Matt Bierner b391749606
Move update grammar script to mjs 2022-03-01 15:56:27 -08:00
Matt Bierner 76a647c33c
Fix tested pattern 2022-02-28 14:49:29 -08:00
Matt Bierner 062b82c1bc
Use .test instead of .match 2022-02-28 14:27:47 -08:00
Matt Bierner 2b92835853
Move js/ts language configs to json file
Fixes #125748
2022-02-03 11:38:09 -08:00
Alex Ross a1a4c0a63b
Update grammars 2022-01-31 16:52:03 +01:00
Daniel Rosenwasser 4fb22d76cf
"Surround with" in TS/JS snippets (#138565)
* Preserve selected text in snippets to provide "surround-with"-like functionality.

* Add the same "surround with"-like functionality to JS snippets.
2021-12-06 18:01:09 -08:00
Alex Ross 9efc116de0
Update grammars 2021-11-02 15:32:34 +01:00
Alex Dima 174db5eb99
Fixes #134662: Configure strings and comments embedded in template expressions to be identified as strings and comments 2021-10-28 17:46:56 +02:00
Alex Dima 8358d0ca67
Define 2500 chars max limit for javascript, not typescript (#135573) 2021-10-22 14:22:20 +02:00
Henning Dieterichs 1a2749d798
Fixes #132802 by making maxTokenizationLineLength configurable per language and reducing the default for TypeScript. 2021-10-13 16:19:54 +02:00
Matt Bierner 8a600adb5c
Register .cts and .mts as TypeScript files
For https://github.com/microsoft/TypeScript/pull/44501
2021-10-06 14:33:36 -07:00
Henning Dieterichs d6b2e78477
Fixes #132847 by configuring ${...} as bracket pair. 2021-09-21 12:28:25 +02:00
Matt Bierner bc0e917553
Mark embedded template expressions as other
Fixes #127005
Fixes ##124270
2021-08-05 17:08:52 -07:00
Alex Ross 3e32c1aae2
Update grammars 2021-07-02 17:06:19 +02:00
Matt Bierner e870a6d700
Update js/ts grammar 2021-04-14 20:42:41 -07:00
Matt Bierner 5207b98402
Update JS/TS grammars 2021-04-07 17:45:59 -07:00
Matt Bierner 05b52df98a Update JS/TS grammar 2021-04-06 17:17:43 -07:00
Alex Ross 17e7a257ff
Update grammars 2021-03-29 15:16:24 +02:00
Danylo Shevchenko 6d07984577
fix(typescript-snippet): fixed "newpromise" snippet
Fixed "newpromise" snippet
2021-03-10 06:13:14 +02:00
João Moreno c3b556727e
fix update-grammars script 2021-02-02 12:30:08 +01:00
João Moreno 8bf9b56ade
Merge branch 'joao/extensions' 2021-02-02 12:06:01 +01:00
Alex Ross b37252c182 Update grammars 2021-02-01 17:48:44 +01:00
João Moreno 03da2de889 add proper yarn.lock files 2021-02-01 14:35:52 +01:00
João Moreno ec805db5ed
add repository field to extensions package.json 2021-01-29 15:30:45 +01:00
João Moreno 9a5d14e307
run prettier over extensions json files 2021-01-29 15:19:18 +01:00
João Moreno 3b03189afa
Restore extensions in core (#114921)
* bring back grammar extensions

* fix hygiene

* Revert "pull themes from the marketplace"

This reverts commit 0738f76dac.
2021-01-25 17:07:56 +01:00
João Moreno bc7d3c9ea6
remove grammar extensions 2021-01-15 12:35:17 +01:00
Matt Bierner 48742bd3a1 Update ts grammar pinning tests 2021-01-04 12:53:04 -08:00
Matt Bierner 74623bc93c Update JS/TS grammars 2021-01-04 12:09:36 -08:00
Alex Ross 4301777727 Update grammars 2020-12-14 15:50:30 +01:00
Matt Bierner e026e9a77e Update JS/TS grammars 2020-11-05 15:08:41 -08:00
Matt Bierner f564bbd517 Restore injection grammar for multiline jsdoc types
For #108237

This only fixes the basic case of making sure multiline types in jsdoc do not capture the leading `*`
2020-10-13 16:51:58 -07:00
Alex Ross 8d2621e952 Update grammars 2020-10-06 11:20:42 +02:00
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