diff --git a/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx b/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx index 95eef53474688..3eef36552e953 100644 --- a/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx +++ b/packages/core/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx @@ -247,7 +247,7 @@ export class TabBarToolbar extends ReactWidget { } protected evaluateWhenClause(whenClause: string | undefined): boolean { - return whenClause ? this.contextKeyService.match(whenClause) : true; + return whenClause ? this.contextKeyService.match(whenClause, this.current?.node) : true; } protected executeCommand = (e: React.MouseEvent) => {