mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 05:51:32 +01:00
Fix invalid tab references
This commit is contained in:
@@ -36,9 +36,9 @@ class ExtHostEditorTab {
|
||||
}
|
||||
|
||||
get apiObject(): vscode.Tab {
|
||||
// Don't want to lose reference to parent `this` in the getters
|
||||
const that = this;
|
||||
if (!this._apiObject) {
|
||||
// Don't want to lose reference to parent `this` in the getters
|
||||
const that = this;
|
||||
const obj: vscode.Tab = {
|
||||
get isActive() {
|
||||
// We use a getter function here to always ensure at most 1 active tab per group and prevent iteration for being required
|
||||
@@ -120,9 +120,9 @@ class ExtHostEditorTabGroup {
|
||||
}
|
||||
|
||||
get apiObject(): vscode.TabGroup {
|
||||
// Don't want to lose reference to parent `this` in the getters
|
||||
const that = this;
|
||||
if (!this._apiObject) {
|
||||
// Don't want to lose reference to parent `this` in the getters
|
||||
const that = this;
|
||||
const obj: vscode.TabGroup = {
|
||||
get isActive() {
|
||||
// We use a getter function here to always ensure at most 1 active group and prevent iteration for being required
|
||||
|
||||
Reference in New Issue
Block a user