build: enable breakpoints in source files (#64220)

This commit revamps the debugging setup and enabling developers to set breakpoints directly in the source TypeScript files.

Key changes include:
- Updated `launch.json` with source map path overrides to correctly map compiled output back to the original source code.
- Switched from `external` to `linked` sourcemaps in the Bazel build configuration for better debugging support.
- Consolidated the recommended VSCode settings into the main `launch.json` and `tasks.json`, removing the separate `recommended-*.json` files.
- Updated the debugging documentation to reflect the new, simplified workflow.

These changes significantly improve the developer experience for contributors working on the language service, making it much easier to debug and troubleshoot issues.

This applies to both the framework packages and vscode-ng-langugage-service.

PR Close #64220
This commit is contained in:
Alan Agius
2025-10-06 09:48:25 +00:00
committed by Miles Malerba
parent 90d3b7f834
commit 66999dd65b
13 changed files with 75 additions and 221 deletions
+2 -2
View File
@@ -242,10 +242,10 @@
"onLanguage:html",
"onLanguage:typescript"
],
"main": "../dist/bin/vscode-ng-language-service/client/index",
"main": "../dist/bin/vscode-ng-language-service/client/src/extension.js",
"scripts": {
"build:syntaxes": "bazel run //vscode-ng-language-service/syntaxes:syntaxes",
"watch": "ibazel build //vscode-ng-language-service/client:index //vscode-ng-language-service/server:index",
"watch": "ibazel build //vscode-ng-language-service/client/src //vscode-ng-language-service/server/src",
"package": "bazel build //vscode-ng-language-service:npm --config=release",
"test": "bazel test --test_tag_filters=unit_test //vscode-ng-language-service/...",
"test:watch": "ibazel test --test_tag_filters=unit_test //vscode-ng-language-service/...",