From 72f33d569df2c54d50061369ce992577cfd9a205 Mon Sep 17 00:00:00 2001 From: Ulugbek Abdullaev Date: Sun, 19 Feb 2023 16:39:28 +0100 Subject: [PATCH] context keys: regex: serialize prints all regexp flags, not only `i` --- src/vs/platform/contextkey/common/contextkey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`; }