diff --git a/src/vs/platform/contextkey/common/contextkey.ts b/src/vs/platform/contextkey/common/contextkey.ts index 35190311500..159f2123253 100644 --- a/src/vs/platform/contextkey/common/contextkey.ts +++ b/src/vs/platform/contextkey/common/contextkey.ts @@ -1451,7 +1451,7 @@ export class ContextKeyRegexExpr implements IContextKeyExpression { public serialize(): string { const value = this.regexp - ? `/${this.regexp.source}/${this.regexp.ignoreCase ? 'i' : ''}` + ? `/${this.regexp.source}/${this.regexp.flags}` : '/invalid/'; return `${this.key} =~ ${value}`; }