Skip to content

Commit 6ac72bd

Browse files
committed
label: minor rename
1 parent 05708fd commit 6ac72bd

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/vs/editor/standalone/browser/simpleServices.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { KeybindingResolver } from 'vs/platform/keybinding/common/keybindingReso
3636
import { IKeybindingItem, KeybindingsRegistry } from 'vs/platform/keybinding/common/keybindingsRegistry';
3737
import { ResolvedKeybindingItem } from 'vs/platform/keybinding/common/resolvedKeybindingItem';
3838
import { USLayoutResolvedKeybinding } from 'vs/platform/keybinding/common/usLayoutResolvedKeybinding';
39-
import { ILabelService, LabelRules, RegisterFormatterEvent } from 'vs/platform/label/common/label';
39+
import { ILabelService, LabelRules, RegisterFormatterData } from 'vs/platform/label/common/label';
4040
import { INotification, INotificationHandle, INotificationService, IPromptChoice, IPromptOptions, NoOpNotification } from 'vs/platform/notification/common/notification';
4141
import { IProgressRunner, IProgressService } from 'vs/platform/progress/common/progress';
4242
import { ITelemetryInfo, ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
@@ -612,8 +612,8 @@ export class SimpleBulkEditService implements IBulkEditService {
612612
export class SimpleUriLabelService implements ILabelService {
613613
_serviceBrand: any;
614614

615-
private readonly _onDidRegisterFormatter = new Emitter<RegisterFormatterEvent>();
616-
public readonly onDidRegisterFormatter: Event<RegisterFormatterEvent> = this._onDidRegisterFormatter.event;
615+
private readonly _onDidRegisterFormatter = new Emitter<RegisterFormatterData>();
616+
public readonly onDidRegisterFormatter: Event<RegisterFormatterData> = this._onDidRegisterFormatter.event;
617617

618618
public getUriLabel(resource: URI, options?: { relative?: boolean, forceNoTildify?: boolean }): string {
619619
if (resource.scheme === 'file') {

src/vs/platform/label/common/label.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { Schemas } from 'vs/base/common/network';
2121
import { IWindowService } from 'vs/platform/windows/common/windows';
2222
import { REMOTE_HOST_SCHEME } from 'vs/platform/remote/common/remoteHosts';
2323

24-
export interface RegisterFormatterEvent {
24+
export interface RegisterFormatterData {
2525
selector: string;
2626
formatter: LabelRules;
2727
}
@@ -37,7 +37,7 @@ export interface ILabelService {
3737
getWorkspaceLabel(workspace: (IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier | IWorkspace), options?: { verbose: boolean }): string;
3838
getHostLabel(): string;
3939
registerFormatter(selector: string, formatter: LabelRules): IDisposable;
40-
onDidRegisterFormatter: Event<RegisterFormatterEvent>;
40+
onDidRegisterFormatter: Event<RegisterFormatterData>;
4141
}
4242

4343
export interface LabelRules {
@@ -79,15 +79,15 @@ export class LabelService implements ILabelService {
7979
_serviceBrand: any;
8080

8181
private readonly formatters: { [prefix: string]: LabelRules } = Object.create(null);
82-
private readonly _onDidRegisterFormatter = new Emitter<RegisterFormatterEvent>();
82+
private readonly _onDidRegisterFormatter = new Emitter<RegisterFormatterData>();
8383

8484
constructor(
8585
@IEnvironmentService private readonly environmentService: IEnvironmentService,
8686
@IWorkspaceContextService private readonly contextService: IWorkspaceContextService,
8787
@IWindowService private readonly windowService: IWindowService
8888
) { }
8989

90-
get onDidRegisterFormatter(): Event<RegisterFormatterEvent> {
90+
get onDidRegisterFormatter(): Event<RegisterFormatterData> {
9191
return this._onDidRegisterFormatter.event;
9292
}
9393

0 commit comments

Comments
 (0)