Skip to content

Add logging snippets for Javascript & typescript#37889

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
abinavseelan:feature/logging-snippets-js-ts
Nov 10, 2017
Merged

Add logging snippets for Javascript & typescript#37889
mjbvz merged 1 commit intomicrosoft:masterfrom
abinavseelan:feature/logging-snippets-js-ts

Conversation

@abinavseelan
Copy link
Contributor

@abinavseelan abinavseelan commented Nov 9, 2017

Add logging snippets for Javascript & Typescript

This PR addresses #37839 😄

Context

One nifty set of snippets that I do miss from my time with Atom are the log, warn and error snippets for Javascript.

log => console.log()
warn => console.warn()
error => console.error()

atom-log-snippets

Changes

  • Added new log, warn and error snippets to extensions/javascript/snippets/javascript.json
  • Added new warn and error snippets to extensions/typescript/snippets/typescript.json

After Changes

code-logging-snippet

@msftclas
Copy link

msftclas commented Nov 9, 2017

CLA assistant check
All CLA requirements met.

@auchenberg
Copy link
Contributor

@egamma @mattbierner How do we usually balance built-in snippets vs extension provided?

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 9, 2017

@auchenberg My idea for what should be a built-in snippet:

  • Useful for a large number of developers
  • Not framework or pattern specific
  • Meaningfully improves writing code and does not get in the way

This one fits the first two well. As for the third, these snippets are not a huge improvement over suggestions IMO but I do think they are a nice quality of life addition

@mjbvz mjbvz merged commit 2a8744f into microsoft:master Nov 10, 2017
@mjbvz mjbvz added this to the November 2017 milestone Nov 10, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants