Skip to content

Commit

Permalink
Add init to command palette when there is no DVC project in the works…
Browse files Browse the repository at this point in the history
…pace (#1861)
  • Loading branch information
mattseddon committed Jun 10, 2022
1 parent 9d24a05 commit 8d47971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@
},
{
"command": "dvc.init",
"when": "false"
"when": "dvc.commands.available && !dvc.cli.incompatible && !dvc.project.available"
},
{
"command": "dvc.moveTargets",
Expand Down
3 changes: 1 addition & 2 deletions extension/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"command.getStarted": "Get Started",
"command.gitStageAll": "Stage All Git Tracked",
"command.gitUnstageAll": "Unstage All Git Tracked",
"command.init": "Init DVC",
"command.initNoScm": "Init DVC --no-scm",
"command.init": "Initialize a DVC Project",
"command.openToTheSide": "Open to the Side",
"command.moveTargets": "Add Data",
"command.pull": "Pull",
Expand Down

0 comments on commit 8d47971

Please sign in to comment.