Commit graph

18 commits

Author SHA1 Message Date
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
Kyra 7de4798021 snippets: Add setInterval snippet (#61351)
* snippets: Add setInterval snippet

* fix: typo in prefix
2018-10-19 15:13:08 -07:00
Abinav Seelan 2a8744fa14 Add logging snippets for Javascript & typescript (#37889) 2017-11-10 11:19:36 -08:00
Matt Bierner 35f46e131c Use shared snippets for js and jsx, and ts and tsx 2017-11-07 15:03:26 -08:00
Matt Bierner d2f1fd4763 Update a few more vars to const in js/ts snippets
Fixes #35322
2017-11-03 09:59:13 -07:00
Matt Bierner b2b952d1d2 Modernize js/ts snippets
Fixes #35322

Also make sures js and jsx / ts and tsx snippets are aligned again
2017-11-02 12:56:34 -07:00
prog-rajkamal 214437bd75 Fix #35322: Modenrize javascript snippets (#35444) 2017-10-09 12:32:38 -07:00
Martin Aeschlimann 45251543b9 [folding] snippets for folding markers 2017-09-25 23:00:02 +02:00
Oliver Joseph Ash 81444f43fa Add import statement snippet to .js(x) files (#34682)
* Add import statement snippet to JS files

This makes them consistent with TS files.

* Add import statement snippet to jsx files
2017-09-20 08:49:57 -07:00
Johannes Rieken cf5c011529 Fix our snippets to be text mate compatible 2016-11-11 17:13:36 +01:00
Joao Moreno cfbf9294e4 add javascript react snippets
fixes #3415
2016-02-26 10:31:26 +01:00
Erich Gamma 8f35cc4768 Hello Code 2015-11-13 14:39:38 +01:00