mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
Fix on article update
This commit is contained in:
@@ -127,6 +127,11 @@ export class Article {
|
||||
|
||||
const update = ArticleHelper.generateUpdate(document, updatedArticle);
|
||||
|
||||
if (update) {
|
||||
const editor = window.activeTextEditor;
|
||||
await editor?.edit((builder) => builder.replace(update.range, update.newText));
|
||||
}
|
||||
|
||||
return [update];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user