We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ca857a commit 2057d8aCopy full SHA for 2057d8a
1 file changed
src/vs/platform/contextkey/common/contextkey.ts
@@ -448,7 +448,7 @@ export class ContextKeyInExpr implements IContextKeyExpression {
448
const item = context.getValue(this.key);
449
450
if (Array.isArray(source)) {
451
- return source.includes(item);
+ return (source.indexOf(item) >= 0);
452
}
453
454
if (typeof item === 'string' && typeof source === 'object' && source !== undefined && source !== null) {
0 commit comments