Mongo tabs UX fixes (#851)

* Fixed mongo tabs UX

* changed logic for new tab index

* moved index to tabs base

* removed getIndex method
This commit is contained in:
Srinath Narayanan
2021-06-08 00:17:55 +05:30
committed by GitHub
parent f296c00a1c
commit ee60f61cfe
5 changed files with 27 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ import { TabsManager } from "./TabsManager";
// TODO: Use specific actions for logging telemetry data
export default class TabsBase extends WaitsForTemplateViewModel {
private static id = 0;
public readonly index: number;
public closeTabButton: ViewModels.Button;
public node: ViewModels.TreeNode;
public collection: ViewModels.CollectionBase;
@@ -35,6 +36,7 @@ export default class TabsBase extends WaitsForTemplateViewModel {
constructor(options: ViewModels.TabOptions) {
super();
this.index = options.index;
this._theme = ThemeUtility.getMonacoTheme(options.theme);
this.node = options.node;
this.collection = options.collection;