mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
added option to force reload extensions (#5990)
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
"activationEvents": [
|
"activationEvents": [
|
||||||
"*"
|
"*"
|
||||||
],
|
],
|
||||||
|
"forceReload": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Microsoft/azuredatastudio.git"
|
"url": "https://github.com/Microsoft/azuredatastudio.git"
|
||||||
|
|||||||
@@ -236,6 +236,8 @@ export interface IExtensionDescription extends IExtensionManifest {
|
|||||||
readonly isUnderDevelopment: boolean;
|
readonly isUnderDevelopment: boolean;
|
||||||
readonly extensionLocation: URI;
|
readonly extensionLocation: URI;
|
||||||
enableProposedApi?: boolean;
|
enableProposedApi?: boolean;
|
||||||
|
// {{ SQL CARBON EDIT }}
|
||||||
|
readonly forceReload?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isLanguagePackExtension(manifest: IExtensionManifest): boolean {
|
export function isLanguagePackExtension(manifest: IExtensionManifest): boolean {
|
||||||
|
|||||||
@@ -305,6 +305,11 @@ export class ExtensionService extends Disposable implements IExtensionService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// {{ SQL CARBON EDIT }}
|
||||||
|
if (extension.forceReload) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const extensionDescription = this._registry.getExtensionDescription(extension.identifier);
|
const extensionDescription = this._registry.getExtensionDescription(extension.identifier);
|
||||||
if (extensionDescription) {
|
if (extensionDescription) {
|
||||||
// ignore adding an extension which is already running and cannot be removed
|
// ignore adding an extension which is already running and cannot be removed
|
||||||
|
|||||||
Reference in New Issue
Block a user