Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add init to command palette when there is no DVC project in the workspace #1861

Merged
merged 2 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[F] Matches the welcome view when:

      {
        "view": "dvc.views.welcome",
        "contents": "The currently open folder does not contain a DVC project. You can initialize a project which will enable features powered by DVC.\n[Initialize Project](command:dvc.init)\nTo learn more about how to use DVC please read [our docs](https://dvc.org/doc).",
        "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",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[F] Deleted a long time ago. May bring it back at some point but not now.

"command.init": "Initialize a DVC Project",
"command.openToTheSide": "Open to the Side",
"command.moveTargets": "Add Data",
"command.pull": "Pull",
Expand Down