Created
October 14, 2020 17:55
-
-
Save ljmotta/b27a0d6d43f33f72dd5eb89020ac2bc1 to your computer and use it in GitHub Desktop.
TodoListWebview Constructor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as vscode from "vscode"; | |
import { TodoListChannelApi } from "../api"; | |
export class TodoListWebview { | |
constructor( | |
private readonly context: vscode.ExtensionContext, | |
private readonly envelopeLocator: { | |
targetOrigin: string; | |
title: string; | |
envelopePath: string; | |
}, | |
private readonly api: TodoListChannelApi | |
) {} | |
public open(pageId: string, opts: { onClose: () => void }) { | |
// Open code here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment