We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7607eed commit 3eeaf87Copy full SHA for 3eeaf87
1 file changed
src/client/application/importPath/copyImportPathCommand.ts
@@ -25,7 +25,7 @@ export class CopyImportPathCommand implements IExtensionSingleActivationService
25
26
private async execute(fileUri?: vscode.Uri): Promise<void> {
27
const uri = fileUri ?? vscode.window.activeTextEditor?.document.uri;
28
- if (!uri || uri.scheme !== 'file' || !uri.fsPath.endsWith('.py')) {
+ if (!uri || !uri.fsPath.endsWith('.py')) {
29
void vscode.window.showWarningMessage('No Python file selected for import-path copy.');
30
return;
31
}
0 commit comments