async function (args) { const panel = vscode.window.createWebviewPanel( "novelReadWebview", , vscode.ViewColumn.One, { enableScripts: true, retainContextWhenHidden: true, } ); let status: StatusBar; panel.onDidChangeViewState((e) => { const active = e.webviewPanel.active; if (active)...
import*asvscodefrom'vscode';import{TodoListWebView}from'./todolistWebview';exportfunctionactivate(context:vscode.ExtensionContext){consttodolistWebview=newTodoListWebView();context.subscriptions.push(vscode.window.registerWebviewViewProvider(TodoListWebView.viewId,todolistWebview))}exportfunctiondeactivate(...
ctrl/cmd +点击(默认)或双击 "latex-workshop.view.pdf.internal.synctex.keybinding": "double-...
// packages/vscode-webview/webview.ts // @ts-ignore export const vscode = typeof acquireVsCodeApi === 'function' ? acquireVsCodeApi() : null; export const callService = function (service: string, method: string, ...args) { // 统一 return promise,统一调用方式 return new Promise((resol...
MakeFunctionRemark: 自动为函数添加注释 我们需要的是 FileDescription 和MarkFunctionRemark这两个宏函数。 分别双击它们,便可建立文件注释和函数注释。 不过,建立函数注释前, 光标必须位于函数定义处。 c) 对语句进行说明 [cpp] view plain copy print ? 1. /*** add by yujian 2012年5月8日 10:19...
在团队降本提效的基建中,洛竹开发了一款 vscode 插件,第一版我使用的是 vscode 内置UI,虽说也能用,但是用户体验欠佳。由于 vscode 内置 UI 不够灵活,一番调研后我决定使用 webview 重构。 开发过 vscode 插件的同学可能对插件开发知识点多、文档阅读困难、参考资料少有所体会。基于 webview 开发插件更是如此,寻...
// 写一个public变量,方便对象引用创建后的webview实例,但是可能存在还未完全解析完成时,访问值为null // 看了vscode api发现,resolveWebView 返回一个 Thenable,可以在解析完成后拿到webview实例 // 但是这个函数是在webview容器第一次显示时自动执行,不需要手动调用,不知道怎么拿到Thenable ...
VSDESIGNER_FUNCTIONVISIBILITY VSDESIGNER_VARIABLENAMING VSDOCUMENTPRIORITY VSDRAWITEMSTRUCT VSEDITORPRIORITY VSErrorCodes VSErrorCodes80 VSEXTENDSHIERARCHY VSFILTERKEYSFLAGS VSFRAMEMODE VSFRAMEMODE2 VsHelpErrors VSIME_ERR VSITEMSELECTION VsMacrosGuids VSMESELCMD VsMSBuildTaskFileManager Vs...
{\\\", \\\" $2\\\", \\\"}\\\"],\\n \\\"description\\\": \\\"export interface\\\"\\n },\\n \\\"Toggle feature function\\\": {\\n \\\"prefix\\\": \\\"tff\\\",\\n \\\"body\\\": [\\n \\\"toggleFeature({ name: ${1:'isAppRedesigned'}, on: ${3...
Aliyun Function Compute extension. Lets you develop your serverless application of Aliyun within VSCode. - alibaba/serverless-vscode