Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(@multiInject("IMiddleware") @optional() private middlewares: IMiddleware[]) {
}
constructor(@inject(TYPES.ModelRendererFactory) modelRendererFactory: ModelRendererFactory,
@multiInject(TYPES.IVNodeDecorator) @optional() protected decorators: IVNodeDecorator[],
@multiInject(TYPES.HiddenVNodeDecorator) @optional() protected hiddenDecorators: IVNodeDecorator[],
@multiInject(TYPES.PopupVNodeDecorator) @optional() protected popupDecorators: IVNodeDecorator[],
@inject(TYPES.ViewerOptions) protected options: ViewerOptions,
@inject(TYPES.ILogger) protected logger: ILogger,
@inject(TYPES.IActionDispatcher) protected actiondispatcher: IActionDispatcher) {
this.patcher = this.createPatcher();
this.renderer = modelRendererFactory(decorators);
this.hiddenRenderer = modelRendererFactory(hiddenDecorators);
this.popupRenderer = modelRendererFactory(popupDecorators);
}
constructor(@inject(ButtonHandlerRegistry)@optional() protected buttonHandlerRegistry: ButtonHandlerRegistry) {
super();
}
constructor(
@inject(IPersistentStateFactory) private readonly persistentStateFactory: IPersistentStateFactory,
@inject(IWorkspaceService) private readonly workspaceService: IWorkspaceService,
@inject(IHttpClient) private readonly httpClient: IHttpClient,
@inject(ICryptoUtils) private readonly crypto: ICryptoUtils,
@inject(IApplicationEnvironment) private readonly appEnvironment: IApplicationEnvironment,
@inject(IOutputChannel) @named(STANDARD_OUTPUT_CHANNEL) private readonly output: IOutputChannel,
@inject(IFileSystem) private readonly fs: IFileSystem,
@inject(IConfigurationService) configurationService: IConfigurationService,
@optional() private experimentEffortTimeout: number = EXPERIMENTS_EFFORT_TIMEOUT_MS
) {
this.isDownloadedStorageValid = this.persistentStateFactory.createGlobalPersistentState(isDownloadedStorageValidKey, false, EXPIRY_DURATION_MS);
this.experimentStorage = this.persistentStateFactory.createGlobalPersistentState(experimentStorageKey, undefined);
this.downloadedExperimentsStorage = this.persistentStateFactory.createGlobalPersistentState(downloadedExperimentStorageKey, undefined);
this.enabled = configurationService.getSettings(undefined).experiments.enabled;
}
constructor(@inject("IObjectContainer") private container: IObjectContainer,
@multiInject("IViewModelFactoryExtender") @optional() private extenders: IViewModelFactoryExtender[] = []) {
}
constructor(@multiInject(TYPES.MouseListener) @optional() protected mouseListeners: MouseListener[] = []) {
super(mouseListeners);
this.rankedMouseListeners = groupBy(mouseListeners, listener => getRank(listener));
}
constructor(@inject(TYPES.Action) action: UpdateModelAction,
@inject(TYPES.ILogger) protected logger: ILogger,
@inject(GLSP_TYPES.IFeedbackActionDispatcher) @optional() protected readonly feedbackActionDispatcher: IFeedbackActionDispatcher,
@inject(TYPES.ActionHandlerRegistryProvider) protected actionHandlerRegistryProvider: () => Promise) {
super(action);
}
constructor(@inject(TYPES.IActionDispatcher) protected actionDispatcher: IActionDispatcher,
@multiInject(TYPES.KeyListener)@optional() protected keyListeners: KeyListener[] = []) {}
constructor(@multiInject(TYPES.PopupMouseListener) @optional() protected mouseListeners: MouseListener[] = []) {
super(mouseListeners);
}
}
constructor(@optional() protected testScope?: TestScope) {}
}