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

Rename extension - Part 1 - New name #56

Merged
merged 9 commits into from
May 29, 2024
Merged

Rename extension - Part 1 - New name #56

merged 9 commits into from
May 29, 2024

Conversation

gadenbuie
Copy link
Collaborator

@gadenbuie gadenbuie commented May 21, 2024

Updates the extension ID to be Posit.shiny and moves the extension to v1.0.0.

The outdated extension points to this extension as a dependency and uninstalls itself upon activation.

For #53

package.json Outdated Show resolved Hide resolved
@gadenbuie gadenbuie requested a review from jcheng5 May 21, 2024 15:43
Comment on lines +545 to +548
const language: ShinyliveLanguage = pathParts.includes("py") ? "py" : "r";
const mode: ShinyliveMode = pathParts.includes("editor") ? "editor" : "app";

return {
language: pathParts[1] as ShinyliveLanguage,
files: files as ShinyliveFile[],
mode: pathParts[2] as ShinyliveMode,
};
return { language, mode, files: files as ShinyliveFile[] };
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, technically this is an unrelated change and normally I'd do it in a separate PR. But this is small, easy, and actually has no impact other than making sure I don't forget. (We don't actually use language or mode, we only need files downstream of this function.)

@gadenbuie
Copy link
Collaborator Author

Now that the old extension handles removing itself, if users install Posit.shiny with the current version of Posit.shiny-python, they won't see errors but the Posit.shiny-python extension will likely fail to load. (At least that's what happened for me and I'm hoping it's an alphabetical sorting that decides which one wins.)

If users even realize that there's an issue, they could go to the old extension's setting page where they would see the page below. That said, once we send out the shell Posit.shiny-python extension they'd also be able to update from this screen, eventually leading to the old extension removing itself.

image

@@ -181,7 +181,7 @@ export async function shinyliveSaveAppFromUrl(): Promise<void> {

const doc = await vscode.workspace.openTextDocument(localFiles[0]);

await vscode.window.showTextDocument(doc, 2, false);
await vscode.window.showTextDocument(doc, undefined, false);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Another small quality of life change that's worth getting in: when we open the primary file of a Shinylive app after saving it locally, we now open the file in the current column (instead of the 2nd column).

@gadenbuie gadenbuie merged commit 79c821c into main May 29, 2024
1 check passed
@gadenbuie gadenbuie deleted the rename-extension branch May 29, 2024 13:48
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