From f5315ed19d6ab09aa455ec0f9cbea86b5afd0071 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Wed, 24 Apr 2024 11:26:41 -0700 Subject: [PATCH] format and update options.md --- CHANGELOG.md | 1 + OPTIONS.md | 24 ++++++++++++++++-------- src/configuration.ts | 2 +- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2d6e1531..0669cbc2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he ## Nightly (only) - feat: resolve executables from `node_modules/.bin` automatically ([#1984](https://github.com/microsoft/vscode-js-debug/issues/1984)) +- fix: add new source map path patterns for turbopack ([#1996](https://github.com/microsoft/vscode-js-debug/issues/1996)) - fix: avoid forcing attach PID into debug mode with default args ([vscode#206683](https://github.com/microsoft/vscode/issues/206683)) ## v1.88 (March 2024) diff --git a/OPTIONS.md b/OPTIONS.md index 23c8058c6..97f4e6c1e 100644 --- a/OPTIONS.md +++ b/OPTIONS.md @@ -44,7 +44,8 @@ "webpack://@?:*/?:*/*": "${workspaceFolder}/*", "webpack://?:*/*": "${workspaceFolder}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${workspaceFolder}/*" + "meteor://💻app/*": "${workspaceFolder}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

timeout

Retry for this number of milliseconds to connect to Node.js. Default is 10000 ms.

@@ -100,7 +101,8 @@ "webpack://@?:*/?:*/*": "${workspaceFolder}/*", "webpack://?:*/*": "${workspaceFolder}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${workspaceFolder}/*" + "meteor://💻app/*": "${workspaceFolder}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

stopOnEntry

Automatically stop program after launch.

@@ -149,7 +151,8 @@ "webpack://@?:*/?:*/*": "${workspaceFolder}/*", "webpack://?:*/*": "${workspaceFolder}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${workspaceFolder}/*" + "meteor://💻app/*": "${workspaceFolder}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

timeout

Retry for this number of milliseconds to connect to Node.js. Default is 10000 ms.

@@ -200,7 +203,8 @@ "webpack://@?:*/?:*/*": "${workspaceFolder}/*", "webpack://?:*/*": "${workspaceFolder}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${workspaceFolder}/*" + "meteor://💻app/*": "${workspaceFolder}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

testConfiguration

Path to a test configuration file for the test CLI.

@@ -249,7 +253,8 @@ "webpack://@?:*/?:*/*": "${webRoot}/*", "webpack://?:*/*": "${webRoot}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${webRoot}/*" + "meteor://💻app/*": "${webRoot}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

timeout

Retry for this number of milliseconds to connect to Node.js. Default is 10000 ms.

@@ -297,7 +302,8 @@ "webpack://@?:*/?:*/*": "${webRoot}/*", "webpack://?:*/*": "${webRoot}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${webRoot}/*" + "meteor://💻app/*": "${webRoot}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

targetSelection

Whether to attach to all targets that match the URL filter ("automatic") or ask to pick one ("pick").

@@ -353,7 +359,8 @@ "webpack://@?:*/?:*/*": "${webRoot}/*", "webpack://?:*/*": "${webRoot}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${webRoot}/*" + "meteor://💻app/*": "${webRoot}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

timeout

Retry for this number of milliseconds to connect to Node.js. Default is 10000 ms.

@@ -402,7 +409,8 @@ "webpack://@?:*/?:*/*": "${webRoot}/*", "webpack://?:*/*": "${webRoot}/*", "webpack:///([a-z]):/(.+)": "$1:/$2", - "meteor://💻app/*": "${webRoot}/*" + "meteor://💻app/*": "${webRoot}/*", + "turbopack://[project]/*": "${workspaceFolder}/*" }

sourceMapRenames

Whether to use the "names" mapping in sourcemaps. This requires requesting source content, which can be slow with certain debuggers.

Default value:
true

sourceMaps

Use JavaScript source maps (if they exist).

Default value:
true

targetSelection

Whether to attach to all targets that match the URL filter ("automatic") or ask to pick one ("pick").

diff --git a/src/configuration.ts b/src/configuration.ts index 352413e68..aef24d94f 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -977,7 +977,7 @@ export function defaultSourceMapPathOverrides(webRoot: string): { [key: string]: 'webpack://?:*/*': `${webRoot}/*`, 'webpack:///([a-z]):/(.+)': '$1:/$2', 'meteor://💻app/*': `${webRoot}/*`, - "turbopack://[project]/*": "${workspaceFolder}/*" + 'turbopack://[project]/*': '${workspaceFolder}/*', }; }