Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Fix an undefined variable error because of mistyping
Browse files Browse the repository at this point in the history
  • Loading branch information
xnkevinnguyen committed Mar 5, 2020
1 parent 4f77c7d commit 18bc94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const fileSelectionService = new FileSelectionService(messagingService);
export let outChannel: vscode.OutputChannel | undefined;

function loadScript(context: vscode.ExtensionContext, scriptPath: string) {
return `<script initialDevice=${this.deviceSelectionService.getCurrentActiveDevice()} src="${vscode.Uri.file(
return `<script initialDevice=${deviceSelectionService.getCurrentActiveDevice()} src="${vscode.Uri.file(
context.asAbsolutePath(scriptPath)
)
.with({ scheme: "vscode-resource" })
Expand Down Expand Up @@ -121,7 +121,7 @@ export async function activate(context: vscode.ExtensionContext) {
}

const openWebview = () => {
if (currentPanel) {
if (currentPanel && currentPanel.webview) {
messagingService.setWebview(currentPanel.webview);
currentPanel.reveal(vscode.ViewColumn.Beside);
} else {
Expand Down

0 comments on commit 18bc94b

Please sign in to comment.