mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
add restore default values button for ports and container settings (#4195)
* add restore default values button for ports and container settings * change some resource strings
This commit is contained in:
@@ -16,23 +16,23 @@ export enum TargetClusterType {
|
||||
}
|
||||
|
||||
export interface Succeeded<T> {
|
||||
readonly succeeded: true;
|
||||
readonly result: T;
|
||||
readonly succeeded: true;
|
||||
readonly result: T;
|
||||
}
|
||||
|
||||
export interface Failed {
|
||||
readonly succeeded: false;
|
||||
readonly error: string[];
|
||||
readonly succeeded: false;
|
||||
readonly error: string[];
|
||||
}
|
||||
|
||||
export type Errorable<T> = Succeeded<T> | Failed;
|
||||
|
||||
export function succeeded<T>(e: Errorable<T>): e is Succeeded<T> {
|
||||
return e.succeeded;
|
||||
return e.succeeded;
|
||||
}
|
||||
|
||||
export function failed<T>(e: Errorable<T>): e is Failed {
|
||||
return !e.succeeded;
|
||||
return !e.succeeded;
|
||||
}
|
||||
export interface ClusterPorts {
|
||||
sql: string;
|
||||
@@ -59,7 +59,13 @@ export interface TargetClusterTypeInfo {
|
||||
}
|
||||
|
||||
export interface ToolInfo {
|
||||
name: string,
|
||||
description: string,
|
||||
isInstalled: boolean
|
||||
name: string;
|
||||
description: string;
|
||||
status: ToolInstallationStatus;
|
||||
}
|
||||
|
||||
export enum ToolInstallationStatus {
|
||||
Installed,
|
||||
NotInstalled,
|
||||
Installing
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user