Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai eb81cbfd99 feat(vcs): add File › New › Project from Version Control
The clone dialog was only reachable from the Git menu and the welcome
screen. File › New now lists it too, as its own action
(vcs.cloneProject) since a menu bar holds each action id once.

Closes #4100
2026-11-19 10:34:56 +08:00
5 змінених файлів з 21 додано та 1 видалено

No files matched your search

+9 -1
Переглянути файл
@@ -223,6 +223,7 @@ pub fn spec(os: Os) -> Vec<Entry> {
vec![
act("file.newProject", "Project…"),
act("workspace.create", "Workspace…"),
act("vcs.cloneProject", "Project from Version Control…"),
SEP,
act("file.new", "File…"),
act("file.newScratchFile", "Scratch File"),
@@ -2014,7 +2015,14 @@ mod tests {
};
assert_eq!(
action_ids(new),
["file.newProject", "workspace.create", "file.new", "file.newScratchFile", "file.newUntitled"],
[
"file.newProject",
"workspace.create",
"vcs.cloneProject",
"file.new",
"file.newScratchFile",
"file.newUntitled"
],
"{os:?}"
);
}
+9
Переглянути файл
@@ -291,6 +291,15 @@ export function registerVcsActions(): () => void {
keywords: ["clone", "checkout", "git"],
run: (c) => showCloneDialog(typeof c.arg === "string" ? c.arg : ""),
},
{
// File › New › Project from Version Control: the same dialog, under the name the File menu uses.
id: "vcs.cloneProject",
title: "Project from Version Control…",
category: "File",
icon: "git-pull",
keywords: ["clone", "checkout", "git", "new project"],
run: () => showCloneDialog(""),
},
{
id: "vcs.push",
title: "Push…",
+1
Переглянути файл
@@ -201,6 +201,7 @@
"menu.file.newScratchFile": "Scratch File",
"menu.new": "New",
"menu.workspace.create": "Workspace…",
"menu.vcs.cloneProject": "Project from Version Control…",
"menu.workspace.open": "Open Workspace…",
"menu.workspace.manage": "Manage Workspace…",
"menu.file.newUntitled": "Untitled File",
+1
Переглянути файл
@@ -1514,6 +1514,7 @@
"Generate Requests for Controller": "为控制器生成请求",
"Generate…": "生成…",
"Get from Version Control…": "从版本控制获取…",
"Project from Version Control…": "来自版本控制的项目…",
"Gevent compatible": "兼容 Gevent",
"Git Branches": "Git 分支",
"Git Log": "Git 日志",
+1
Переглянути файл
@@ -201,6 +201,7 @@
"menu.file.newScratchFile": "临时文件",
"menu.new": "新建",
"menu.workspace.create": "工作区…",
"menu.vcs.cloneProject": "来自版本控制的项目…",
"menu.workspace.open": "打开工作区…",
"menu.workspace.manage": "管理工作区…",
"menu.file.newUntitled": "无标题文件",