Skip to content

Commit

Permalink
Drop requirement to start from Noir file when a project folder is con…
Browse files Browse the repository at this point in the history
…figured in a launch file
  • Loading branch information
mverzilli committed Jan 25, 2024
1 parent 77da2e1 commit 9d06ca1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ class NoirDebugConfigurationProvider implements DebugConfigurationProvider {
config: DebugConfiguration,
_token?: CancellationToken,
): ProviderResult<DebugConfiguration> {
if (window.activeTextEditor?.document.languageId != 'noir')
if (
(!config.projectFolder || config.projectFolder === ``) &&
window.activeTextEditor?.document.languageId != 'noir'
)
return window.showInformationMessage(`Select a Noir file to debug`);

const currentFilePath = window.activeTextEditor.document.uri.fsPath;
Expand Down

0 comments on commit 9d06ca1

Please sign in to comment.