mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
use electron openExternal, return boolean-promise, rename to 'open', #66741
This commit is contained in:
@@ -256,7 +256,7 @@ export function createApiFactory(
|
||||
get clipboard(): vscode.Clipboard {
|
||||
return extHostClipboard;
|
||||
},
|
||||
openItem: proposedApiFunction(extension, (uri: URI) => {
|
||||
open: proposedApiFunction(extension, (uri: URI) => {
|
||||
return extHostWindow.openUri(uri);
|
||||
})
|
||||
});
|
||||
|
||||
@@ -621,7 +621,7 @@ export interface MainThreadDebugServiceShape extends IDisposable {
|
||||
|
||||
export interface MainThreadWindowShape extends IDisposable {
|
||||
$getWindowVisibility(): Promise<boolean>;
|
||||
$openUri(uri: UriComponents): Promise<any>;
|
||||
$openUri(uri: UriComponents): Promise<boolean>;
|
||||
}
|
||||
|
||||
// -- extension host
|
||||
|
||||
Reference in New Issue
Block a user