Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 14, 2020 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/b27a0d6d43f33f72dd5eb89020ac2bc1 to your computer and use it in GitHub Desktop.
Save ljmotta/b27a0d6d43f33f72dd5eb89020ac2bc1 to your computer and use it in GitHub Desktop.
TodoListWebview Constructor
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