Skip to content

Commit df07719

Browse files
author
N. Taylor Mullen
authored
Expand debug pre-requisites to allow debug.javascript.usePreview. (#3614)
- The prerequisites follow the expectation of usePreview || useV3s
1 parent 68982b5 commit df07719

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/omnisharp/utils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ function hasBlazorWebAssemblyDebugPrerequisites() {
202202
return false;
203203
}
204204

205+
const debugJavaScriptConfigSection = vscode.workspace.getConfiguration('debug.javascript');
206+
const usePreviewValue = debugJavaScriptConfigSection.get('usePreview');
207+
if (usePreviewValue) {
208+
// If usePreview is truthy it takes priority over the useV3 variants.
209+
return true;
210+
}
211+
205212
const debugNodeConfigSection = vscode.workspace.getConfiguration('debug.node');
206213
const useV3NodeValue = debugNodeConfigSection.get('useV3');
207214
if (!useV3NodeValue) {

0 commit comments

Comments
 (0)