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

v0.3.0 - Deprecated Extension #57

Closed
wants to merge 7 commits into from
Closed

Conversation

gadenbuie
Copy link
Collaborator

@gadenbuie gadenbuie commented May 21, 2024

This replaces the Posit.shiny-python extension with a shell extension that

  1. Directly depends on the new Posit.shiny extension to ensure updating users get the new extension.
  2. Checks that the new extension is installed on activation in case somebody slips through the cracks.
  3. Points to the new extension in the README and CHANGELOG

For #53

@gadenbuie gadenbuie requested a review from jcheng5 May 21, 2024 15:42
README.md Outdated Show resolved Hide resolved
src/extension.ts Outdated
"shiny.shinylive.createFromExplorer",
shinyliveCreateFromExplorer
)
export async function activate(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Either don't do this at all, or, unconditionally offer to uninstall yourself. (And remove that offer from Posit.shiny)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be crazy to unconditionally uninstall, without even asking?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I went with the unconditional uninstall. I thought about including an informational message telling the user about the action but decided against it. Let me know if you'd like to add that back in.

export async function activate(): Promise<void> {
// If the Posit.shiny extension is installed, this old shell extension is no
// longer needed.
if (!vscode.extensions.getExtension("Posit.shiny")) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we have a dependency on Posit.shiny, is it even possible to get into this state?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so? Or at least it's very unlikely. So this is purely defensive.

@gadenbuie gadenbuie changed the title Rename extension - Part 2 - Deprecate old v0.3.0 - Deprecated Extension May 29, 2024
@gadenbuie gadenbuie closed this May 29, 2024
@gadenbuie
Copy link
Collaborator Author

I've closed this PR but left the deprecate-shiny-python branch, as this was the last version of Posit.shiny-python that we deployed to the marketplace.

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.

None yet

2 participants