mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
rename suggestions: refactor: formatting
This commit is contained in:
parent
d6474a0560
commit
6efb7ca55b
|
@ -245,7 +245,15 @@ class RenameController implements IEditorContribution {
|
|||
|
||||
trace('creating rename input field and awaiting its result');
|
||||
const supportPreview = this._bulkEditService.hasPreviewHandler() && this._configService.getValue<boolean>(this.editor.getModel().uri, 'editor.rename.enablePreview');
|
||||
const inputFieldResult = await this._renameInputField.getInput(loc.range, loc.text, selectionStart, selectionEnd, supportPreview, newSymbolNameProvidersResults, renameCandidatesCts);
|
||||
const inputFieldResult = await this._renameInputField.getInput(
|
||||
loc.range,
|
||||
loc.text,
|
||||
selectionStart,
|
||||
selectionEnd,
|
||||
supportPreview,
|
||||
newSymbolNameProvidersResults,
|
||||
renameCandidatesCts
|
||||
);
|
||||
trace('received response from rename input field');
|
||||
|
||||
if (newSymbolNamesProviders.length > 0) { // @ulugbekna: we're interested only in telemetry for rename suggestions currently
|
||||
|
|
|
@ -346,7 +346,15 @@ export class RenameInputField implements IRenameInputField, IContentWidget, IDis
|
|||
}
|
||||
}
|
||||
|
||||
getInput(where: IRange, currentName: string, selectionStart: number, selectionEnd: number, supportPreview: boolean, candidates: ProviderResult<NewSymbolName[]>[], cts: CancellationTokenSource): Promise<RenameInputFieldResult | boolean> {
|
||||
getInput(
|
||||
where: IRange,
|
||||
currentName: string,
|
||||
selectionStart: number,
|
||||
selectionEnd: number,
|
||||
supportPreview: boolean,
|
||||
candidates: ProviderResult<NewSymbolName[]>[],
|
||||
cts: CancellationTokenSource
|
||||
): Promise<RenameInputFieldResult | boolean> {
|
||||
|
||||
this._isEditingRenameCandidate = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue