Skip to content

Commit

Permalink
Add ability to capture device screenshots
Browse files Browse the repository at this point in the history
1. Added support to show preview of screenshot
2. Fixed a linter issue
  • Loading branch information
fumer-fubotv committed Oct 9, 2023
1 parent 52c6de5 commit a564c7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/CaptureScreenshotCommand.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import { extension } from '../extension';
import * as rokuDeploy from 'roku-deploy';
import { BrightScriptCommands } from '../BrightScriptCommands';
import type { BrightScriptCommands } from '../BrightScriptCommands';

export const FILE_SCHEME = 'bs-captureScreenshot';

Expand All @@ -21,6 +21,7 @@ export class CaptureScreenshotCommand {
let status = await rokuDeploy.takeScreenshot({ host: host, password: pass, outDir: outDirPath, outFile: filename });
if (status) {
void vscode.window.showInformationMessage(`Screenshot saved at: ` + status);
void vscode.commands.executeCommand('vscode.open', vscode.Uri.file(status));
}
}));
}
Expand Down

0 comments on commit a564c7b

Please sign in to comment.