"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/vs/workbench/services/extensions/common/abstractExtensionService.ts" between
vscode-1.48.2.tar.gz and vscode-1.49.0.tar.gz

About: Visual Studio Code is a source code editor (available for Windows, macOS and Linux). It comes with built-in support for JavaScript, TypeScript and Node.js and has extensions for other languages (such as C++, C#, Java, Python, PHP, Go). Source code.

abstractExtensionService.ts  (vscode-1.48.2):abstractExtensionService.ts  (vscode-1.49.0)
skipping to change at line 18 skipping to change at line 18
import { Emitter, Event } from 'vs/base/common/event'; import { Emitter, Event } from 'vs/base/common/event';
import { Disposable } from 'vs/base/common/lifecycle'; import { Disposable } from 'vs/base/common/lifecycle';
import * as perf from 'vs/base/common/performance'; import * as perf from 'vs/base/common/performance';
import { isEqualOrParent } from 'vs/base/common/resources'; import { isEqualOrParent } from 'vs/base/common/resources';
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/ common/environmentService'; import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/ common/environmentService';
import { IWorkbenchExtensionEnablementService } from 'vs/workbench/services/exte nsionManagement/common/extensionManagement'; import { IWorkbenchExtensionEnablementService } from 'vs/workbench/services/exte nsionManagement/common/extensionManagement';
import { BetterMergeId } from 'vs/platform/extensionManagement/common/extensionM anagementUtil'; import { BetterMergeId } from 'vs/platform/extensionManagement/common/extensionM anagementUtil';
import { IInstantiationService } from 'vs/platform/instantiation/common/instanti ation'; import { IInstantiationService } from 'vs/platform/instantiation/common/instanti ation';
import { INotificationService, Severity } from 'vs/platform/notification/common/ notification'; import { INotificationService, Severity } from 'vs/platform/notification/common/ notification';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry'; import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { ActivationTimes, ExtensionPointContribution, IExtensionService, IExtens ionsStatus, IMessage, IWillActivateEvent, IResponsiveStateChangeEvent, toExtensi on, IExtensionHost } from 'vs/workbench/services/extensions/common/extensions'; import { ActivationTimes, ExtensionPointContribution, IExtensionService, IExtens ionsStatus, IMessage, IWillActivateEvent, IResponsiveStateChangeEvent, toExtensi on, IExtensionHost, ActivationKind } from 'vs/workbench/services/extensions/comm on/extensions';
import { ExtensionMessageCollector, ExtensionPoint, ExtensionsRegistry, IExtensi onPoint, IExtensionPointUser } from 'vs/workbench/services/extensions/common/ext ensionsRegistry'; import { ExtensionMessageCollector, ExtensionPoint, ExtensionsRegistry, IExtensi onPoint, IExtensionPointUser } from 'vs/workbench/services/extensions/common/ext ensionsRegistry';
import { ExtensionDescriptionRegistry } from 'vs/workbench/services/extensions/c ommon/extensionDescriptionRegistry'; import { ExtensionDescriptionRegistry } from 'vs/workbench/services/extensions/c ommon/extensionDescriptionRegistry';
import { ResponsiveState } from 'vs/workbench/services/extensions/common/rpcProt ocol'; import { ResponsiveState } from 'vs/workbench/services/extensions/common/rpcProt ocol';
import { ExtensionHostManager } from 'vs/workbench/services/extensions/common/ex tensionHostManager'; import { ExtensionHostManager } from 'vs/workbench/services/extensions/common/ex tensionHostManager';
import { ExtensionIdentifier, IExtensionDescription, ExtensionType, ITranslatedS cannedExtension } from 'vs/platform/extensions/common/extensions'; import { ExtensionIdentifier, IExtensionDescription, ExtensionType, ITranslatedS cannedExtension } from 'vs/platform/extensions/common/extensions';
import { IFileService } from 'vs/platform/files/common/files'; import { IFileService } from 'vs/platform/files/common/files';
import { parseExtensionDevOptions } from 'vs/workbench/services/extensions/commo n/extensionDevOptions'; import { parseExtensionDevOptions } from 'vs/workbench/services/extensions/commo n/extensionDevOptions';
import { IProductService } from 'vs/platform/product/common/productService'; import { IProductService } from 'vs/platform/product/common/productService';
import { ExtensionActivationReason } from 'vs/workbench/api/common/extHostExtens ionActivator'; import { ExtensionActivationReason } from 'vs/workbench/api/common/extHostExtens ionActivator';
skipping to change at line 189 skipping to change at line 189
public restartExtensionHost(): void { public restartExtensionHost(): void {
this._stopExtensionHosts(); this._stopExtensionHosts();
this._startExtensionHosts(false, Array.from(this._allRequestedAct ivateEvents.keys())); this._startExtensionHosts(false, Array.from(this._allRequestedAct ivateEvents.keys()));
} }
protected startExtensionHost(): void { protected startExtensionHost(): void {
this._startExtensionHosts(false, Array.from(this._allRequestedAct ivateEvents.keys())); this._startExtensionHosts(false, Array.from(this._allRequestedAct ivateEvents.keys()));
} }
public activateByEvent(activationEvent: string): Promise<void> { public activateByEvent(activationEvent: string, activationKind: Activatio nKind = ActivationKind.Normal): Promise<void> {
if (this._installedExtensionsReady.isOpen()) { if (this._installedExtensionsReady.isOpen()) {
// Extensions have been scanned and interpreted // Extensions have been scanned and interpreted
// Record the fact that this activationEvent was requeste d (in case of a restart) // Record the fact that this activationEvent was requeste d (in case of a restart)
this._allRequestedActivateEvents.add(activationEvent); this._allRequestedActivateEvents.add(activationEvent);
if (!this._registry.containsActivationEvent(activationEve nt)) { if (!this._registry.containsActivationEvent(activationEve nt)) {
// There is no extension that is interested in th is activation event // There is no extension that is interested in th is activation event
return NO_OP_VOID_PROMISE; return NO_OP_VOID_PROMISE;
} }
return this._activateByEvent(activationEvent); return this._activateByEvent(activationEvent, activationK ind);
} else { } else {
// Extensions have not been scanned yet. // Extensions have not been scanned yet.
// Record the fact that this activationEvent was requeste d (in case of a restart) // Record the fact that this activationEvent was requeste d (in case of a restart)
this._allRequestedActivateEvents.add(activationEvent); this._allRequestedActivateEvents.add(activationEvent);
return this._installedExtensionsReady.wait().then(() => t if (activationKind === ActivationKind.Immediate) {
his._activateByEvent(activationEvent)); // Do not wait for the normal start-up of the ext
ension host(s)
return this._activateByEvent(activationEvent, act
ivationKind);
}
return this._installedExtensionsReady.wait().then(() => t
his._activateByEvent(activationEvent, activationKind));
} }
} }
private _activateByEvent(activationEvent: string): Promise<void> { private _activateByEvent(activationEvent: string, activationKind: Activat ionKind): Promise<void> {
const result = Promise.all( const result = Promise.all(
this._extensionHostManagers.map(extHostManager => extHost Manager.activateByEvent(activationEvent)) this._extensionHostManagers.map(extHostManager => extHost Manager.activateByEvent(activationEvent, activationKind))
).then(() => { }); ).then(() => { });
this._onWillActivateByEvent.fire({ this._onWillActivateByEvent.fire({
event: activationEvent, event: activationEvent,
activation: result activation: result
}); });
return result; return result;
} }
public whenInstalledExtensionsRegistered(): Promise<boolean> { public whenInstalledExtensionsRegistered(): Promise<boolean> {
return this._installedExtensionsReady.wait(); return this._installedExtensionsReady.wait();
 End of changes. 6 change blocks. 
7 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)