提交 98b1ed2e 编写于 作者: B Benjamin Pasero

labels - 💄

上级 c87e3e79
......@@ -46,7 +46,7 @@ export interface IResourceLabel extends IDisposable {
readonly onDidRender: Event<void>;
/**
* 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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册