UNPKG

@luozhu/vscode-utils

Version:
23 lines (22 loc) 853 B
import vscode from 'vscode'; /** * 获取基于 umijs 的 webview 内容 * @param context 扩展上下文 * @param webviewPanel webview 面板对象 * @param options 配置项 * @returns string */ export declare const getUmiHTMLContent: (context: vscode.ExtensionContext, webviewPanel: vscode.WebviewPanel, options?: { rootPath?: string | undefined; title?: string | undefined; style?: string | undefined; } | undefined) => string; /** * 获取基于 umijs 的 webview 内容 * @param context 扩展上下文 * @param viewType webview 面板的唯一标识符 * @param title webview 面板的标题 * @param iconPath webview 面板的 Icon * @returns vscode.WebviewPanel */ export declare const createUmiWebviewPanel: (context: vscode.ExtensionContext, viewType: string, title: string, iconPath: string) => vscode.WebviewPanel;