-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
3ad0f7d
to
7effe96
Compare
There was a problem hiding this 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": |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
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. |
Co-authored-by: John Murray <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolves #187