diff --git a/src/vs/workbench/browser/labels.ts b/src/vs/workbench/browser/labels.ts index 1a077032f75d2ae81256fd3357cb48e8a0d44704..115e2a84c2c400fd98e05cce1107413980727722 100644 --- a/src/vs/workbench/browser/labels.ts +++ b/src/vs/workbench/browser/labels.ts @@ -46,7 +46,7 @@ export interface IResourceLabel extends IDisposable { readonly onDidRender: Event; /** - * Most generic way to apply a label directly. + * Most generic way to apply a label with raw information. */ setLabel(label?: string, description?: string, options?: IIconLabelValueOptions): void; @@ -58,14 +58,14 @@ export interface IResourceLabel extends IDisposable { setResource(label: IResourceLabelProps, options?: IResourceLabelOptions): void; /** - * Convinient method to apply a label by passing an editor along. + * Convinient method to render a file label based on a resource. */ - setEditor(editor: IEditorInput, options?: IResourceLabelOptions): void; + setFile(resource: uri, options?: IFileLabelOptions): void; /** - * Convinient method to render a file label based on a resource. + * Convinient method to apply a label by passing an editor along. */ - setFile(resource: uri, options?: IFileLabelOptions): void; + setEditor(editor: IEditorInput, options?: IResourceLabelOptions): void; clear(): void; @@ -89,10 +89,6 @@ export class ResourceLabels extends Disposable { this.registerListeners(); } - get labels(): IResourceLabel[] { - return this._labels; - } - get(index: number): IResourceLabel { return this._labels[index]; }