mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Nasc/delete instance code removal (#12307)
* Formatted page * Removed ResourceHealthPage from the dashboard * Deleted files that no longer applies to the public preview backend * shouldn't be able to open the postgres dashboard
This commit is contained in:
@@ -78,6 +78,9 @@ export class AzdataTool implements IAzdataTool {
|
||||
},
|
||||
postgres: {
|
||||
server: {
|
||||
delete: async (name: string) => {
|
||||
return this.executeCommand<void>(['arc', 'postgres', 'server', 'delete', '-n', name]);
|
||||
},
|
||||
list: async () => {
|
||||
return this.executeCommand<azdataExt.PostgresServerListResult[]>(['arc', 'postgres', 'server', 'list']);
|
||||
},
|
||||
|
||||
@@ -85,6 +85,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<azdata
|
||||
},
|
||||
postgres: {
|
||||
server: {
|
||||
delete: async (name: string) => {
|
||||
await throwIfNoAzdataOrEulaNotAccepted();
|
||||
return localAzdata!.arc.postgres.server.delete(name);
|
||||
},
|
||||
list: async () => {
|
||||
await throwIfNoAzdataOrEulaNotAccepted();
|
||||
return localAzdata!.arc.postgres.server.list();
|
||||
|
||||
@@ -228,6 +228,7 @@ declare module 'azdata-ext' {
|
||||
},
|
||||
postgres: {
|
||||
server: {
|
||||
delete(name: string): Promise<AzdataOutput<void>>,
|
||||
list(): Promise<AzdataOutput<PostgresServerListResult[]>>,
|
||||
show(name: string): Promise<AzdataOutput<PostgresServerShowResult>>,
|
||||
edit(args: {
|
||||
|
||||
Reference in New Issue
Block a user