Skip to content

Commit

Permalink
remove launch command (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
devhawk authored Mar 21, 2024
1 parent f598a0a commit 2f59861
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
11 changes: 0 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@
"title": "Delete Stored Passwords",
"category": "DBOS"
},
{
"command": "dbos-ttdbg.launch-dbos-app",
"title": "Launch DBOS Application",
"category": "DBOS",
"icon": "$(globe)"
},
{
"command": "dbos-ttdbg.shutdown-debug-proxy",
"title": "Shutdown Debug Proxy",
Expand Down Expand Up @@ -98,11 +92,6 @@
{
"command": "dbos-ttdbg.delete-app-db-password",
"when": "view == dbos-ttdbg.views.resources && viewItem == cloudApp"
},
{
"command": "dbos-ttdbg.launch-dbos-app",
"when": "view == dbos-ttdbg.views.resources && viewItem == cloudApp",
"group": "inline"
}
]
},
Expand Down
15 changes: 0 additions & 15 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,6 @@ export async function deleteStoredPasswords() {
}
}

export const launchDbosAppCommandName = "dbos-ttdbg.launch-dbos-app";
export async function launchDbosApp(node?: CloudAppNode) {
logger.debug("launchDbosApp", { node: node ?? null });
if (node) {
try {
const opened = await vscode.env.openExternal(vscode.Uri.parse(node.app.AppURL));
if (!opened) {
vscode.window.showErrorMessage(`Failed to open ${node.app.Name} app`);
}
} catch (e) {
logger.error("launchDbosApp", e);
}
}
}

export const getProxyUrlCommandName = "dbos-ttdbg.get-proxy-url";
export async function getProxyUrl(cfg?: vscode.DebugConfiguration & { rootPath?: string }) {
try {
Expand Down
3 changes: 1 addition & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import { S3CloudStorage } from './CloudStorage';
import { TTDbgCodeLensProvider } from './codeLensProvider';
import { deleteStoredPasswords, deleteStoredPasswordsCommandName, shutdownDebugProxyCommandName, shutdownDebugProxy, cloudLoginCommandName, cloudLogin, startDebuggingCodeLensCommandName, startDebuggingFromCodeLens, startDebuggingFromUri, startDebuggingUriCommandName, getProxyUrl, getProxyUrlCommandName, pickWorkflowIdCommandName, pickWorkflowId, deleteDomainCredentials, deleteDomainCredentialsCommandName, deleteAppDatabasePassword, deleteAppDatabasePasswordCommandName, launchDbosApp, launchDbosAppCommandName } from './commands';
import { deleteStoredPasswords, deleteStoredPasswordsCommandName, shutdownDebugProxyCommandName, shutdownDebugProxy, cloudLoginCommandName, cloudLogin, startDebuggingCodeLensCommandName, startDebuggingFromCodeLens, startDebuggingFromUri, startDebuggingUriCommandName, getProxyUrl, getProxyUrlCommandName, pickWorkflowIdCommandName, pickWorkflowId, deleteDomainCredentials, deleteDomainCredentialsCommandName, deleteAppDatabasePassword, deleteAppDatabasePasswordCommandName } from './commands';
import { Configuration } from './configuration';
import { DebugProxy, } from './DebugProxy';
import { LogOutputChannelTransport, Logger, createLogger } from './logger';
Expand Down Expand Up @@ -36,7 +36,6 @@ export async function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand(deleteDomainCredentialsCommandName, deleteDomainCredentials),
vscode.commands.registerCommand(deleteAppDatabasePasswordCommandName, deleteAppDatabasePassword),
vscode.commands.registerCommand(deleteStoredPasswordsCommandName, deleteStoredPasswords),
vscode.commands.registerCommand(launchDbosAppCommandName, launchDbosApp),
vscode.commands.registerCommand(shutdownDebugProxyCommandName, shutdownDebugProxy),
vscode.commands.registerCommand(startDebuggingCodeLensCommandName, startDebuggingFromCodeLens),
vscode.commands.registerCommand(startDebuggingUriCommandName, startDebuggingFromUri),
Expand Down

0 comments on commit 2f59861

Please sign in to comment.