Skip to content

Commit

Permalink
rename: createFromActiveEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed May 1, 2024
1 parent a6ca953 commit 753ff5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
},
{
"category": "Shiny",
"command": "shiny.shinylive.createFromActiveFile",
"title": "Create ShinyLive Link from Active File",
"command": "shiny.shinylive.createFromActiveEditor",
"title": "Create ShinyLive Link from Active Editor",
"icon": "$(cloud-upload)",
"enablement": "editorLangId == python || editorLangId == r"
},
Expand Down
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as vscode from "vscode";
import * as path from "path";
import { pyRunApp, rRunApp, pyDebugApp, onDidStartDebugSession } from "./run";
import {
shinyliveCreateFromActiveFile,
shinyliveCreateFromActiveEditor,
shinyliveSaveAppFromUrl,
shinyliveCreateFromExplorer,
} from "./shinylive";
Expand All @@ -13,8 +13,8 @@ export function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand("shiny.python.debugApp", pyDebugApp),
vscode.commands.registerCommand("shiny.r.runApp", rRunApp),
vscode.commands.registerCommand(
"shiny.shinylive.createFromActiveFile",
shinyliveCreateFromActiveFile
"shiny.shinylive.createFromActiveEditor",
shinyliveCreateFromActiveEditor
),
vscode.commands.registerCommand(
"shiny.shinylive.saveAppFromUrl",
Expand Down
2 changes: 1 addition & 1 deletion src/shinylive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type ShinyliveBundle = {
* @export
* @async
*/
export async function shinyliveCreateFromActiveFile(): Promise<void> {
export async function shinyliveCreateFromActiveEditor(): Promise<void> {
if (!vscode.window.activeTextEditor) {
vscode.window.showErrorMessage("No active file");
return;
Expand Down

0 comments on commit 753ff5d

Please sign in to comment.