diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 5837d44b84af6..bb8578453dfc8 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -2232,8 +2232,14 @@ declare module 'vscode' { */ readonly label: string; + + /** + * The index of the tab within the view column + */ + readonly index: number; + /** - * The position of the tab + * The column the tab belongs to */ readonly viewColumn: ViewColumn; @@ -2255,6 +2261,23 @@ declare module 'vscode' { * Dictated by being the selected tab in the active group */ readonly isActive: boolean; + + /** + * Closes the tab object + */ + close(): void; + + /** + * Sets the label of the tab + */ + setLabel(label: string): void; + + /** + * Moves the tab to the new index and view column + * @param index The new index of the tab within the current group + * @param viewColumn The new view column of the tab. + */ + move(index: number, viewColumn: ViewColumn): void; } export namespace window { @@ -2282,6 +2305,13 @@ declare module 'vscode' { */ export const onDidChangeActiveTab: Event; + /** + * Opens a tab + * @param tab The object representing the tab you want to open + * @returns The opened tab + */ + export function openTab(tab: Exclude): Thenable; + } //#endregion