Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)

This commit is contained in:
Cory Rivera
2021-08-25 16:28:29 -07:00
committed by GitHub
parent ab1112bfb3
commit cb7b7da0a4
1752 changed files with 59525 additions and 33878 deletions

View File

@@ -321,6 +321,11 @@ interface IWorkbenchConstructionOptions {
*/
readonly staticExtensions?: readonly IStaticExtension[];
/**
* Filter for built-in extensions.
*/
readonly builtinExtensionsFilter?: (extensionId: string) => boolean;
/**
* [TEMPORARY]: This will be removed soon.
* Enable inlined extensions.
@@ -328,6 +333,13 @@ interface IWorkbenchConstructionOptions {
*/
readonly _enableBuiltinExtensions?: boolean;
/**
* Allows the workbench to skip checking whether an extension was built for the web
* and assumes they are addressable via the `Microsoft.VisualStudio.Code.WebResources`
* asset URI.
*/
readonly assumeGalleryExtensionsAreAddressable?: boolean;
/**
* Support for URL callbacks.
*/
@@ -457,10 +469,12 @@ interface IWorkbench {
}
env: {
readonly uriScheme: string;
/**
* @see [retrievePerformanceMarks](#commands.retrievePerformanceMarks)
*/
retrievePerformanceMarks(): Promise<[string, readonly IPerformanceMark[]][]>;
openUri(uri: URI): Promise<boolean>;
}
/**
@@ -560,6 +574,16 @@ namespace env {
return workbench.env.retrievePerformanceMarks();
}
export async function getUriScheme(): Promise<string> {
const workbench = await workbenchPromise;
return workbench.env.uriScheme;
}
export async function openUri(target: URI): Promise<boolean> {
const workbench = await workbenchPromise;
return workbench.env.openUri(target);
}
}
export {