Skip to content

Commit 3eeaf87

Browse files
committed
modify to work on remote environment
1 parent 7607eed commit 3eeaf87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/application/importPath/copyImportPathCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class CopyImportPathCommand implements IExtensionSingleActivationService
2525

2626
private async execute(fileUri?: vscode.Uri): Promise<void> {
2727
const uri = fileUri ?? vscode.window.activeTextEditor?.document.uri;
28-
if (!uri || uri.scheme !== 'file' || !uri.fsPath.endsWith('.py')) {
28+
if (!uri || !uri.fsPath.endsWith('.py')) {
2929
void vscode.window.showWarningMessage('No Python file selected for import-path copy.');
3030
return;
3131
}

0 commit comments

Comments
 (0)