labelService: allow to register workspace label formater

This commit is contained in:
isidor
2018-08-23 15:48:56 +02:00
parent 8f96ce69e2
commit 1a0311ae4e
9 changed files with 67 additions and 54 deletions

View File

@@ -15,7 +15,7 @@ import { values } from 'vs/base/common/map';
import { Range, FileChangeType } from 'vs/workbench/api/node/extHostTypes';
import { ExtHostLanguageFeatures } from 'vs/workbench/api/node/extHostLanguageFeatures';
import { Schemas } from 'vs/base/common/network';
import { UriLabelRules } from 'vs/platform/label/common/label';
import { LabelRules } from 'vs/platform/label/common/label';
class FsLinkProvider implements vscode.DocumentLinkProvider {
@@ -142,7 +142,7 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
});
}
setUriFormatter(scheme: string, formatter: UriLabelRules): void {
setUriFormatter(scheme: string, formatter: LabelRules): void {
this._proxy.$setUriFormatter(scheme, formatter);
}