mirror of
https://github.com/Microsoft/vscode
synced 2024-10-13 23:09:01 +00:00
Uncaught TypeError: Cannot read property 'isActive' of undefined (fixes #27257)
This commit is contained in:
parent
847fde97f9
commit
4486772aba
|
@ -212,7 +212,7 @@ export class TabsTitleControl extends TitleControl {
|
|||
|
||||
private updateDropFeedback(element: HTMLElement, isDND: boolean, index?: number): void {
|
||||
const isTab = (typeof index === 'number');
|
||||
const isActiveTab = isTab && this.context.isActive(this.context.getEditor(index));
|
||||
const isActiveTab = isTab && this.context && this.context.isActive(this.context.getEditor(index));
|
||||
|
||||
// Background
|
||||
const noDNDBackgroundColor = isTab ? this.getColor(isActiveTab ? TAB_ACTIVE_BACKGROUND : TAB_INACTIVE_BACKGROUND) : null;
|
||||
|
|
Loading…
Reference in a new issue