File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/vs/platform/contextkey/common Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export abstract class ContextKeyExpr {
126
126
return ContextKeySmallerEqualsExpr . create ( key , value ) ;
127
127
}
128
128
129
- public static deserialize ( serialized : string | null | undefined ) : ContextKeyExpression | undefined {
129
+ public static deserializeNew ( serialized : string | null | undefined ) : ContextKeyExpression | undefined {
130
130
if ( ! serialized ) {
131
131
return undefined ;
132
132
}
@@ -152,7 +152,7 @@ export abstract class ContextKeyExpr {
152
152
return expr ;
153
153
}
154
154
155
- public static deserializeOld ( serialized : string | null | undefined ) : ContextKeyExpression | undefined {
155
+ public static deserialize ( serialized : string | null | undefined ) : ContextKeyExpression | undefined {
156
156
if ( ! serialized ) {
157
157
return undefined ;
158
158
}
@@ -1488,7 +1488,8 @@ export class ContextKeyRegexExpr implements IContextKeyExpression {
1488
1488
1489
1489
public serialize ( ) : string {
1490
1490
const value = this . regexp
1491
- ? `/${ this . regexp . source } /${ this . regexp . flags } `
1491
+ // ? `/${this.regexp.source}/${this.regexp.flags}`
1492
+ ? `/${ this . regexp . source } /`
1492
1493
: '/invalid/' ;
1493
1494
return `${ this . key } =~ ${ value } ` ;
1494
1495
}
You can’t perform that action at this time.
0 commit comments