Skip to content

Commit fab256d

Browse files
committed
rename suggestions: refactor: rename 'rename widget' accordingly
1 parent 67a3dd0 commit fab256d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/vs/editor/contrib/rename/browser/rename.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { INotificationService } from 'vs/platform/notification/common/notificati
3838
import { IEditorProgressService } from 'vs/platform/progress/common/progress';
3939
import { Registry } from 'vs/platform/registry/common/platform';
4040
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
41-
import { CONTEXT_RENAME_INPUT_VISIBLE, NewNameSource, RenameInputField, RenameInputFieldResult } from './renameInputField';
41+
import { CONTEXT_RENAME_INPUT_VISIBLE, NewNameSource, RenameInputFieldResult, RenameWidget } from './renameInputField';
4242

4343
class RenameSkeleton {
4444

@@ -138,7 +138,7 @@ class RenameController implements IEditorContribution {
138138
return editor.getContribution<RenameController>(RenameController.ID);
139139
}
140140

141-
private readonly _renameInputField: RenameInputField;
141+
private readonly _renameInputField: RenameWidget;
142142
private readonly _disposableStore = new DisposableStore();
143143
private _cts: CancellationTokenSource = new CancellationTokenSource();
144144

@@ -153,7 +153,7 @@ class RenameController implements IEditorContribution {
153153
@ILanguageFeaturesService private readonly _languageFeaturesService: ILanguageFeaturesService,
154154
@ITelemetryService private readonly _telemetryService: ITelemetryService,
155155
) {
156-
this._renameInputField = this._disposableStore.add(this._instaService.createInstance(RenameInputField, this.editor, ['acceptRenameInput', 'acceptRenameInputWithPreview']));
156+
this._renameInputField = this._disposableStore.add(this._instaService.createInstance(RenameWidget, this.editor, ['acceptRenameInput', 'acceptRenameInputWithPreview']));
157157
}
158158

159159
dispose(): void {

src/vs/editor/contrib/rename/browser/renameInputField.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ interface IRenameInputField {
100100
focusPreviousRenameSuggestion(): void;
101101
}
102102

103-
export class RenameInputField implements IRenameInputField, IContentWidget, IDisposable {
103+
export class RenameWidget implements IRenameInputField, IContentWidget, IDisposable {
104104

105105
// implement IContentWidget
106106
readonly allowEditorOverflow: boolean = true;

0 commit comments

Comments
 (0)