Microsoft/vscode

TabInputWebview viewType comment is inaccurate/unclear or there is a bug in viewType

开放

#201,884 创建于 2024年1月5日

 (1 条评论) (1 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
apibughelp wantedwebview

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

TabInputWebview.viewType in vscode.d.ts is described as:

The type of webview. Maps to {@linkcode WebviewPanel.viewType WebviewPanel's viewType}

WebviewPanel.viewType in vscode.d.ts says:

Identifies the type of the webview panel, such as 'markdown.preview'.

However, when checking a TabInputWebview that I have, the viewType is for the form mainThreadWebview-markdown.preview.

Should the mainThreadWebview- prefix either be stripped from here, or a node added to the docstring in vscode.d.ts making sure that users know to expect it?

贡献者指南