mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
git ignore: save after apply edit
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user