提交 1cb65ce8 编写于 作者: M Matt Bierner

Extract and lift constant

上级 29acd113
......@@ -71,8 +71,9 @@ export namespace WorkspaceEdit {
edits: Iterable<Proto.FileCodeEdits>
): vscode.WorkspaceEdit {
for (const edit of edits) {
const resource = client.toResource(edit.fileName);
for (const textChange of edit.textChanges) {
workspaceEdit.replace(client.toResource(edit.fileName),
workspaceEdit.replace(resource,
Range.fromTextSpan(textChange),
textChange.newText);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册