Skip to content

Make ServerManager extension as optional, do not prevent this extension working. #188

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

Merged
merged 3 commits into from
Jul 9, 2020

Conversation

daimor
Copy link
Member

@daimor daimor commented Jul 7, 2020

resolves #187

@daimor daimor force-pushed the servermanager_optional branch from 3ad0f7d to 7effe96 Compare July 7, 2020 09:36
Copy link
Contributor

@gjsjohnmurray gjsjohnmurray left a comment

Choose a reason for hiding this comment

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

@daimor are you only removing the extensionDependency because it is causing a problem with your CI pipeline. Isn't there another way of solving this? It seems an unnecessary complication for the user to be given this choice the first time they install. Why would they not be willing to receive the intersystems-community.servermanager helper extension automatically and silently?

But in case the verdict is that the simple extensionDependency isn't acceptable I have requested a few changes to your alternative mechanism.

src/extension.ts Outdated
case "Install":
await vscode.commands.executeCommand("workbench.extensions.installExtension", extId);
// eslint-disable-next-line no-fallthrough
case "View":
Copy link
Contributor

Choose a reason for hiding this comment

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

showInformationMessage doesn't offer "View" option

Copy link
Member Author

Choose a reason for hiding this comment

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

My thoughts were, do not offer too many buttons, and was not sure if it's a good idea to install it from information message, not from extension page

Copy link
Contributor

Choose a reason for hiding this comment

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

In which case why is case "View": here?

@daimor
Copy link
Member Author

daimor commented Jul 7, 2020

This extension still can work without servermanager, but with extensiondependency, it does not work at all, until servermanager installed. And it’s not silently, it asks user for installation approval.

Copy link
Contributor

@gjsjohnmurray gjsjohnmurray left a comment

Choose a reason for hiding this comment

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

LGTM

@isc-rsingh isc-rsingh merged commit e136337 into master Jul 9, 2020
@daimor daimor deleted the servermanager_optional branch July 28, 2020 13:14
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.

Strict extension dependency
3 participants