File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
platform/extensionManagement/common
workbench/services/extensions/common Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { onUnexpectedError } from 'vs/base/common/errors';
7
7
import { IExtensionManifest } from 'vs/platform/extensions/common/extensions' ;
8
8
9
9
export interface IActivationEventsGenerator < T > {
10
- ( contribution : T , result : { push ( item : string ) : void } ) : void ;
10
+ ( contributions : T [ ] , result : { push ( item : string ) : void } ) : void ;
11
11
}
12
12
13
13
export class ImplicitActivationEventsImpl {
Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ export const schema: IJSONSchema = {
565
565
}
566
566
} ;
567
567
568
- export type toArray < T > = T extends Array < any > ? T : T [ ] ;
568
+ export type removeArray < T > = T extends Array < infer X > ? X : T ;
569
569
570
570
export interface IExtensionPointDescriptor < T > {
571
571
extensionPoint : string ;
@@ -576,7 +576,7 @@ export interface IExtensionPointDescriptor<T> {
576
576
* A function which runs before the extension point has been validated and which
577
577
* can should collect automatic activation events from the contribution.
578
578
*/
579
- activationEventsGenerator ?: IActivationEventsGenerator < toArray < T > > ;
579
+ activationEventsGenerator ?: IActivationEventsGenerator < removeArray < T > > ;
580
580
}
581
581
582
582
export class ExtensionsRegistryImpl {
You can’t perform that action at this time.
0 commit comments