Skip to content

Commit 6f43e1c

Browse files
authored
Add init to command palette when there is no DVC project in the workspace (#1861)
1 parent 9657ffa commit 6f43e1c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
},
602602
{
603603
"command": "dvc.init",
604-
"when": "false"
604+
"when": "dvc.commands.available && !dvc.cli.incompatible && !dvc.project.available"
605605
},
606606
{
607607
"command": "dvc.moveTargets",

extension/package.nls.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"command.getStarted": "Get Started",
2121
"command.gitStageAll": "Stage All Git Tracked",
2222
"command.gitUnstageAll": "Unstage All Git Tracked",
23-
"command.init": "Init DVC",
24-
"command.initNoScm": "Init DVC --no-scm",
23+
"command.init": "Initialize a DVC Project",
2524
"command.openToTheSide": "Open to the Side",
2625
"command.moveTargets": "Add Data",
2726
"command.pull": "Pull",

0 commit comments

Comments
 (0)