forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Add VSCode recommended launch and task configurations (angular…
…#33544) This adds a common configurations used when developing code in VSCode. Specifically it adds support for launching these targets as tasks and ind debugger. - `packages/core/test` - `packages/core/test/render3` - `packages/core/test/acceptance` PR Close angular#33544
- Loading branch information
Showing
4 changed files
with
209 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
# VSCode Configuration | ||
|
||
This folder contains opt-in [Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) and [Extension Recommendations](https://code.visualstudio.com/docs/editor/extension-gallery#_workspace-recommended-extensions) that the Angular team recommends using when working on this repository. | ||
This folder contains opt-in [Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings), [Tasks](https://code.visualstudio.com/docs/editor/tasks), [Launch Configurations](https://code.visualstudio.com/Docs/editor/debugging#_launch-configurations) and [Extension Recommendations](https://code.visualstudio.com/docs/editor/extension-gallery#_workspace-recommended-extensions) that the Angular team recommends using when working on this repository. | ||
|
||
## Usage | ||
|
||
To use the recommended settings follow the steps below: | ||
To use the recommended configurations follow the steps below: | ||
|
||
- install <https://marketplace.visualstudio.com/items?itemName=xaver.clang-format> | ||
- copy `.vscode/recommended-settings.json` to `.vscode/settings.json` | ||
- install the recommneded extensions in `.vscode/extensions.json` | ||
- copy (or link) `.vscode/recommended-settings.json` to `.vscode/settings.json` | ||
- copy (or link) `.vscode/recommended-launch.json` to `.vscode/launch.json` | ||
- copy (or link) `.vscode/recommended-tasks.json` to `.vscode/tasks.json` | ||
- restart the editor | ||
|
||
If you already have your custom workspace settings you should instead manually merge the file content. | ||
If you already have your custom workspace settings you should instead manually merge the file contents. | ||
|
||
This isn't an automatic process so you will need to repeat it when settings are updated. | ||
|
||
To see the recommended extensions select "Extensions: Show Recommended Extensions" in the [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette). | ||
|
||
## Editing `.vscode/recommended-settings.json` | ||
## Editing `.vscode/recommended-*.json` files | ||
|
||
If you wish to add extra configuration items please keep in mind any settings you add here will be used by many users. | ||
If you wish to add extra configuration items please keep in mind any modifications you make here will be used by many users. | ||
|
||
Try to keep these settings to things that help facilitate the development process and avoid altering the user workflow whenever possible. | ||
Try to keep these settings/configuations to things that help facilitate the development process and avoid altering the user workflow whenever possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach to bazel test ... --config=debug", | ||
"type": "node", | ||
"request": "attach", | ||
"port": 9229, | ||
"address": "localhost", | ||
"restart": false, | ||
"sourceMaps": true, | ||
"localRoot": "${workspaceRoot}", | ||
"remoteRoot": "${workspaceRoot}", | ||
"stopOnEntry": false, | ||
"timeout": 60000, | ||
}, | ||
{ | ||
"name": "Attach to bazel test ... --config=debug (no source maps)", | ||
"type": "node", | ||
"request": "attach", | ||
"port": 9229, | ||
"address": "localhost", | ||
"restart": false, | ||
"sourceMaps": false, | ||
"localRoot": "${workspaceRoot}", | ||
"remoteRoot": "${workspaceRoot}", | ||
"stopOnEntry": false, | ||
"timeout": 60000, | ||
}, | ||
{ | ||
"name": "IVY:packages/core/test/acceptance", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"--define=compile=aot", | ||
"packages/core/test/acceptance", | ||
"--config=debug" | ||
], | ||
"port": 9229, | ||
"address": "localhost", | ||
"restart": true, | ||
"sourceMaps": true, | ||
"timeout": 60000, | ||
}, | ||
{ | ||
"name": "IVY:packages/core/test/render3", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"--define=compile=aot", | ||
"packages/core/test/render3", | ||
"--config=debug" | ||
], | ||
"port": 9229, | ||
"address": "localhost", | ||
"restart": true, | ||
"sourceMaps": true, | ||
"timeout": 60000, | ||
}, | ||
{ | ||
"name": "IVY:packages/core/test", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"--define=compile=aot", | ||
"packages/core/test", | ||
"--config=debug" | ||
], | ||
"port": 9229, | ||
"address": "localhost", | ||
"restart": true, | ||
"sourceMaps": true, | ||
"timeout": 60000, | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "IVY:packages/core/test/...", | ||
"type": "shell", | ||
"command": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"--define=compile=aot", | ||
"packages/core/test", | ||
"packages/core/test/acceptance", | ||
"packages/core/test/render3", | ||
], | ||
"group": "test", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
}, | ||
}, | ||
{ | ||
"label": "VE:packages/core/test/...", | ||
"type": "shell", | ||
"command": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"packages/core/test", | ||
"packages/core/test/acceptance", | ||
"packages/core/test/render3", | ||
], | ||
"group": "test", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
}, | ||
}, | ||
{ | ||
"label": "IVY:packages/core/test/acceptance", | ||
"type": "shell", | ||
"command": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"--define=compile=aot", | ||
"packages/core/test/acceptance", | ||
], | ||
"group": "test", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
}, | ||
}, | ||
{ | ||
"label": "VE:packages/core/test/acceptance", | ||
"type": "shell", | ||
"command": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"packages/core/test/acceptance", | ||
], | ||
"group": "test", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
}, | ||
}, | ||
{ | ||
"label": "IVY:packages/core/test", | ||
"type": "shell", | ||
"command": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"--define=compile=aot", | ||
"packages/core/test", | ||
], | ||
"group": "test", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
}, | ||
}, | ||
{ | ||
"label": "VE:packages/core/test", | ||
"type": "shell", | ||
"command": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"packages/core/test", | ||
], | ||
"group": "test", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
}, | ||
}, | ||
{ | ||
"label": "IVY:packages/core/test/render3", | ||
"type": "shell", | ||
"command": "${workspaceFolder}/node_modules/.bin/bazel", | ||
"args": [ | ||
"test", | ||
"--define=compile=aot", | ||
"packages/core/test/render3", | ||
], | ||
"group": "test", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
}, | ||
}, | ||
], | ||
} |