Skip to content

Commit b62ed04

Browse files
committed
Add API signature info to @intersystems-community/intersystems-servermanager
1 parent d3dc80f commit b62ed04

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

types/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Package defining the interfaces used in the API that is published by the `inters
66

77
# Changelog
88

9+
### v3.8.0
10+
11+
- Add function signatures, including `getAccount` which was introduced in Server Manager 3.8.0.
12+
913
### v3.4.1
1014

1115
- Add optional `superServer` object.

types/index.d.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as vscode from 'vscode';
2+
13
export const EXTENSION_ID: string;
24
export const AUTHENTICATION_PROVIDER: string;
35

@@ -30,3 +32,34 @@ export interface IJSONServerSpec {
3032
export interface IServerSpec extends IJSONServerSpec {
3133
name: string;
3234
}
35+
36+
export interface ServerManagerAPI {
37+
pickServer(
38+
scope?: vscode.ConfigurationScope,
39+
options?: vscode.QuickPickOptions,
40+
): Promise<string | undefined>;
41+
42+
getServerNames(
43+
scope?: vscode.ConfigurationScope,
44+
sorted?: boolean,
45+
): IServerName[];
46+
47+
getServerSummary(
48+
name: string,
49+
scope?: vscode.ConfigurationScope,
50+
): IServerName | undefined;
51+
52+
getServerSpec(
53+
name: string,
54+
scope?: vscode.ConfigurationScope,
55+
flushCredentialCache?: boolean,
56+
options?: { hideFromRecents?: boolean, /* Obsolete */ noCredentials?: boolean },
57+
): Promise<IServerSpec | undefined>;
58+
59+
getAccount(
60+
serverSpec: IServerSpec
61+
): vscode.AuthenticationSessionAccountInformation | undefined;
62+
63+
onDidChangePassword(
64+
): vscode.Event<string>;
65+
}

0 commit comments

Comments
 (0)