We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a31d226 commit a75736eCopy full SHA for a75736e
1 file changed
src/vs/platform/contextkey/browser/contextKeyService.ts
@@ -169,11 +169,7 @@ export class ContextKeyChangeEvent implements IContextKeyChangeEvent {
169
private _keys: string[] = [];
170
171
collect(oneOrManyKeys: string | string[]): void {
172
- if (Array.isArray(oneOrManyKeys)) {
173
- this._keys = this._keys.concat(oneOrManyKeys);
174
- } else {
175
- this._keys.push(oneOrManyKeys);
176
- }
+ this._keys = this._keys.concat(oneOrManyKeys);
177
}
178
179
affectsSome(keys: Set<string>): boolean {
0 commit comments