Fix debugging not working

VSCode was not able to find the original source of the bundled
extension because it was looking for the source in the `out` directory.
By setting the `sourceRoot` to the `extensions/ql-vscode` directory
which is located at `..` from the `out` directory, VSCode is able to
find the original source and breakpoints are hit.
This commit is contained in:
Koen Vlaswinkel
2023-01-11 12:13:55 +02:00
parent 033d653d44
commit bb63dc52c9

View File

@@ -46,6 +46,7 @@ export function compileEsbuild() {
platform: "node",
target: "es2020",
sourcemap: "linked",
sourceRoot: "..",
loader: {
".node": "copy",
},