mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-05 01:25:38 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user