mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
git ignore: save after apply edit
This commit is contained in:
parent
5adc152eca
commit
cdb8a86fd0
|
@ -1102,7 +1102,8 @@ export class Repository implements Disposable {
|
|||
const text = lastLine.isEmptyOrWhitespace ? `${textToAppend}\n` : `\n${textToAppend}\n`;
|
||||
|
||||
edit.insert(document.uri, lastLine.range.end, text);
|
||||
workspace.applyEdit(edit);
|
||||
await workspace.applyEdit(edit);
|
||||
await document.save();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue