Skip to content

Commit

Permalink
Enable customDescriptionGenerator in launch template, update eslint s…
Browse files Browse the repository at this point in the history
…etting (microsoft#47089)
  • Loading branch information
jakebailey committed Dec 9, 2021
1 parent 0ed9247 commit 4e39023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
12 changes: 2 additions & 10 deletions .vscode/launch.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,15 @@
"outFiles": [
"${workspaceRoot}/built/local/run.js"
],

// NOTE: To use this, you must switch the "type" above to "pwa-node". You may also need to follow the instructions
// here: https://github.com/microsoft/vscode-js-debug#nightly-extension to use the js-debug nightly until
// this feature is shipping in insiders or to a release:
// "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue",
},
{
// See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
"type": "node",
"request": "attach",
"name": "Attach to VS Code TS Server via Port",
"processId": "${command:PickProcess}",

// NOTE: To use this, you must switch the "type" above to "pwa-node". You may also need to follow the instructions
// here: https://github.com/microsoft/vscode-js-debug#nightly-extension to use the js-debug nightly until
// this feature is shipping in insiders or to a release:
// "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
"customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue",
}
]
}
7 changes: 2 additions & 5 deletions .vscode/settings.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
// contents into your existing settings.
{
"eslint.validate": [
{
"language": "typescript",
"autoFix": true
}
"typescript"
],
"eslint.options": {
"rulePaths": ["./scripts/eslint/built/rules/"],
Expand All @@ -16,4 +13,4 @@

// To use the locally built compiler, after 'npm run build':
// "typescript.tsdk": "built/local"
}
}

0 comments on commit 4e39023

Please sign in to comment.