Skip to main content
Version: 0.22.0

Function: updateExtension()

function updateExtension(
dirs,
name,
options?
): Promise<{
from?: string;
name: string;
scope: keyof ExtensionDirs;
to?: string;
}>;

Defined in: core/extensionCatalog.ts:168

Updates an installed extension from the marketplace it came from: a fresh copy of the marketplace, then installed again in the same scope (its data and options kept). One that didn't come from a marketplace is installed again with extension add.

Parameters​

ParameterType
dirsExtensionDirs
namestring
options{ official?: string; }
options.official?string

Returns​

Promise<{ from?: string; name: string; scope: keyof ExtensionDirs; to?: string; }>