Minor change to comments/string.

This commit is contained in:
Sean McManus 2023-09-25 15:17:13 -07:00
Родитель a94662e72c
Коммит a38002655d
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -60,7 +60,7 @@ export class DocumentRangeFormattingEditProvider implements vscode.DocumentRange
}
}
// TODO: This is needed for Extract to Function formatting.
// TODO: This is needed for Extract to function formatting.
/*
public async provideDocumentRangesFormattingEdits(_document: vscode.TextDocument, _ranges: vscode.Range[],
_options: vscode.FormattingOptions, _token: vscode.CancellationToken): Promise<vscode.TextEdit[]> {

Просмотреть файл

@ -24,7 +24,7 @@ export class RenameProvider implements vscode.RenameProvider {
}
public async provideRenameEdits(document: vscode.TextDocument, position: vscode.Position, newName: string, _token: vscode.CancellationToken): Promise<vscode.WorkspaceEdit | undefined> {
// By pass the normal rename processing during Extract to Function,
// By pass the normal rename processing during Extract to function,
// since we already know the locations of the required edits.
if (this.client.renameDataForExtractToFunction.length > 0) {
const workspaceEditResult: vscode.WorkspaceEdit = new vscode.WorkspaceEdit();

Просмотреть файл

@ -3794,7 +3794,7 @@ export class DefaultClient implements Client {
if (rangeStartCharacter < 0) {
// newFunctionString is missing -- unexpected error.
void vscode.window.showErrorMessage(`${localize("invalid.edit",
"Extract to Function failed. An invalid edit was generated: '{0}'", edit.newText)}`);
"Extract to function failed. An invalid edit was generated: '{0}'", edit.newText)}`);
continue;
}
const currentEditRange: vscode.Range = new vscode.Range(