标签: visual-studio-code vscode-extensions
我正在开发VSCode扩展。我想获取编辑器组顶部的选项卡选项卡的所有TextEditors。我怎么能这样做?
答案 0 :(得分:0)
vscode.window.visibleTextEditors属性应具有此
vscode.window.visibleTextEditors
import * as vscode from 'vscode' for (const editor of vscode.window.visibleTextEditors) { console.log(editor.document.uri) }