mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
update proposed API with my items and remove deprecations
This commit is contained in:
@@ -225,10 +225,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
get appName() { return initData.environment.appName; },
|
||||
get appRoot() { return initData.environment.appRoot!.fsPath; },
|
||||
get uriScheme() { return initData.environment.appUriScheme; },
|
||||
createAppUri(options?) {
|
||||
checkProposedApiEnabled(extension);
|
||||
return extHostUrls.proposedCreateAppUri(extension.identifier, options);
|
||||
},
|
||||
get logLevel() {
|
||||
checkProposedApiEnabled(extension);
|
||||
return typeConverters.LogLevel.to(extHostLogService.getLevel());
|
||||
|
||||
@@ -610,7 +610,6 @@ export interface MainThreadUrlsShape extends IDisposable {
|
||||
$registerUriHandler(handle: number, extensionId: ExtensionIdentifier): Promise<void>;
|
||||
$unregisterUriHandler(handle: number): Promise<void>;
|
||||
$createAppUri(uri: UriComponents): Promise<UriComponents>;
|
||||
$proposedCreateAppUri(extensionId: ExtensionIdentifier, options?: { payload?: Partial<UriComponents>; }): Promise<UriComponents>;
|
||||
}
|
||||
|
||||
export interface ExtHostUrlsShape {
|
||||
|
||||
@@ -59,8 +59,4 @@ export class ExtHostUrls implements ExtHostUrlsShape {
|
||||
async createAppUri(uri: URI): Promise<vscode.Uri> {
|
||||
return URI.revive(await this._proxy.$createAppUri(uri));
|
||||
}
|
||||
|
||||
async proposedCreateAppUri(extensionId: ExtensionIdentifier, options?: vscode.AppUriOptions): Promise<vscode.Uri> {
|
||||
return URI.revive(await this._proxy.$proposedCreateAppUri(extensionId, options));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user