feat(editor): add Save As for existing files (#6534)

File > Save As opens the existing Copy dialog for the active file with Open copy in editor forced on. A single-file copy of an open editor uses the new doc_copy_as, which writes the current buffer with its encoding, BOM and line endings and refuses a target that is open in another editor.

Co-authored-by: muutot <[email protected]>
Цей коміт міститься в:
Muuтаmuutot authored and GitHub committed 2026-11-29 10:35:25 +08:00
1 джерело 2cce84ad2c
коміт c709844c04
33 files changed
+396 -20

No files matched your search

+1
Переглянути файл
@@ -191,6 +191,7 @@ describe(":action ids", () => {
expect(resolveActionId("GotoDeclaration")).toBe("navigate.declaration");
expect(resolveActionId("ReformatCode")).toBe("code.reformat");
expect(resolveActionId("FindInPath")).toBe("find.inPath");
expect(resolveActionId("SaveAs")).toBe("file.saveAs");
expect(resolveActionId("code.commentLine")).toBe("code.commentLine");
});