this ensures uris undergo transformation and therefore file and vscode-remotes are handled correctlly
This commit is contained in:
Johannes Rieken
2021-12-06 10:35:48 +01:00
parent 96643fc3f5
commit 84fce54d28
3 changed files with 9 additions and 8 deletions

View File

@@ -295,7 +295,7 @@ export interface MainThreadTextEditorsShape extends IDisposable {
}
export interface MainThreadTreeViewsShape extends IDisposable {
$registerTreeViewDataProvider(treeViewId: string, options: { showCollapseAll: boolean, canSelectMany: boolean, dragAndDropMimeTypes: string[] | undefined}): Promise<void>;
$registerTreeViewDataProvider(treeViewId: string, options: { showCollapseAll: boolean, canSelectMany: boolean, dragAndDropMimeTypes: string[] | undefined }): Promise<void>;
$refresh(treeViewId: string, itemsToRefresh?: { [treeItemHandle: string]: ITreeItem; }): Promise<void>;
$reveal(treeViewId: string, itemInfo: { item: ITreeItem, parentChain: ITreeItem[] } | undefined, options: IRevealOptions): Promise<void>;
$setMessage(treeViewId: string, message: string): void;
@@ -1289,7 +1289,7 @@ export interface ExtHostWorkspaceShape {
}
export interface ExtHostFileSystemInfoShape {
$acceptProviderInfos(scheme: string, capabilities: number | null): void;
$acceptProviderInfos(uri: UriComponents, capabilities: number | null): void;
}
export interface ExtHostFileSystemShape {

View File

@@ -5,6 +5,7 @@
import { Schemas } from 'vs/base/common/network';
import { ExtUri, IExtUri } from 'vs/base/common/resources';
import { UriComponents } from 'vs/base/common/uri';
import { FileSystemProviderCapabilities } from 'vs/platform/files/common/files';
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
import { ExtHostFileSystemInfoShape } from 'vs/workbench/api/common/extHost.protocol';
@@ -33,11 +34,11 @@ export class ExtHostFileSystemInfo implements ExtHostFileSystemInfoShape {
});
}
$acceptProviderInfos(scheme: string, capabilities: number | null): void {
$acceptProviderInfos(uri: UriComponents, capabilities: number | null): void {
if (capabilities === null) {
this._providerInfo.delete(scheme);
this._providerInfo.delete(uri.scheme);
} else {
this._providerInfo.set(scheme, capabilities);
this._providerInfo.set(uri.scheme, capabilities);
}
}