You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't a very good snippet since no-one should ever write code like this. enf is ok because anonymous/arrow functions get names from variable declarations. But an anonymous function does not get any name.
As a result the default exported function from this snippet will have no name in logs/debugging and will not be smart-imported by vscode.
export default function ${1:${TM_FILENAME_BASE}}(parameter) { ... would work better.
The text was updated successfully, but these errors were encountered:
Documentation says that
edf
outputsexport default (parameter) => { console.log(parameter);};
.This isn't a very good snippet since no-one should ever write code like this.
enf
is ok because anonymous/arrow functions get names from variable declarations. But an anonymous function does not get any name.As a result the default exported function from this snippet will have no name in logs/debugging and will not be smart-imported by vscode.
export default function ${1:${TM_FILENAME_BASE}}(parameter) { ...
would work better.The text was updated successfully, but these errors were encountered: