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

Extension can be activated and opened when no workspace folder is open #194

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

miketalley
Copy link
Contributor

@miketalley miketalley commented Jan 20, 2023

The extension activitybar item was disabled when no workspace folder is open (!workbench.explorer.emptyView.active). This PR allows the extension to be activated and opened and adds a notification section to notify the user that they need to open a folder.

The content of the section mimics the one displayed in the explorer activity bar item provided with VSCode. The "Open Folder" button opens the file picker and reloads the extension when a folder is selected/opened. The "Clone Repository" button runs the "Git: Clone"(git.clone) command, which will allow a repository to be opened instead.

image

Note: The ability to mirror the workbench.explorer.emptyView by embedding it into our menu does not work. I filed a bug for this in vscode -> microsoft/vscode#171859

Once this bug is fixed, we can remove our hubspot.viewsWelcome.noFolderOpened welcome view in favor of embedding workbench.explorer.emptyView.

@miketalley miketalley requested a review from a team January 20, 2023 19:00
@miketalley miketalley mentioned this pull request Jan 20, 2023
@miketalley miketalley merged commit 11943a7 into v1.0.0 Jan 23, 2023
@TanyaScales TanyaScales deleted the no-workspace-state branch July 14, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants