Skip to content

Commit

Permalink
fix: only change to underlying vscode adapter when starting debug ses…
Browse files Browse the repository at this point in the history
…sion (#245)

This is related to a behavior change from vscode, and to microsoft/vscode#188979
  • Loading branch information
byCedric authored Mar 6, 2024
1 parent 913cb7f commit 7a3190f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/expoDebuggers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class ExpoDebuggersProvider implements vscode.DebugConfigurationProvider
}

return {
type: 'pwa-node',
type: DEBUG_TYPE,
request: 'attach',
name: config.name ?? 'Debug Expo app',

Expand Down Expand Up @@ -162,6 +162,9 @@ export class ExpoDebuggersProvider implements vscode.DebugConfigurationProvider
throw new Error('Could not resolve Expo project: ' + config.projectRoot);
}

// Reuse the pwa-node debug adapter from vscode.js-debug
config.type = 'pwa-node';

// Reuse the validated project root as cwd
config.cwd = config.projectRoot;

Expand Down

0 comments on commit 7a3190f

Please sign in to comment.