Skip to content

Commit

Permalink
Add regex for terminal command
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 committed Sep 15, 2023
1 parent 2aa0a48 commit 9e25e3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/extension/extensionInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,10 @@ export async function registerDebugger(context: IExtensionContext): Promise<void
);

const debugPortAttributesProvider = new DebugPortAttributesProvider();
context.subscriptions.push(workspace.registerPortAttributesProvider({}, debugPortAttributesProvider));
context.subscriptions.push(
workspace.registerPortAttributesProvider(
{ commandPattern: /extensions.ms-python.debugpy.*debugpy.launcher/ },
debugPortAttributesProvider,
),
);
}

0 comments on commit 9e25e3e

Please sign in to comment.