Commit Graph

9 Commits

Author SHA1 Message Date
Matt Bierner d69a8fb36d
Align JS and TS snippets (#219917)
Mostly should be the same with a few small differences
2024-07-04 09:12:15 +02:00
Matt Bierner ee8937a604
Rename snippet placeholder (#219904)
Fixes #214760
2024-07-03 17:02:21 -07:00
Quan Zhuo 05043332f8
Add newpromise snippets in javascript (#148755) 2022-05-05 09:38:07 -07:00
Matt Bierner e9636bbce1
Don't have space in snippet
Fixes #146503
2022-04-01 11:15:25 -07: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
BTNDev 2b75c3d5ac
updated javascript for in snippet (#111062)
Updated javascript for in snippet to use Object.hasOwnProperty insted of object.hasOwnProperty because of this vulnerability: https://eslint.org/docs/rules/no-prototype-builtins
2020-11-20 15:37:46 -08:00
Milo Moisson d213eb2d07
Fix JS snippets trailing commas. (#104153)
Fix JS snippets trailing commas, introduced by #100657 and observed by #104141.
2020-08-06 11:42:47 -07:00
Milo Moisson fc8b56a966
Update logging
Remove enter after console.log/warn/error.
Really ennoying...
2020-06-20 18:26:14 +02:00
Martin Aeschlimann d5e12a12dd Use code-snippet suffix for extension snippets. Fixes #94625 2020-04-08 10:12:23 +02:00