You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-19Lines changed: 18 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,23 @@
1
1
# InterSystems® Server Manager
2
2
3
-
This is a VS Code helper extension that helps configure connections to [InterSystems](https://www.intersystems.com/) servers in VS Code extensions such as the [ObjectScript Extension for VS Code](https://github.com/intersystems-community/vscode-objectscript).
3
+
This is a VS Code helper extension for defining connections to [InterSystems](https://www.intersystems.com/) servers. These connection definitions can used by other VS Code extensions when they make connections. One example is the [ObjectScript extension](https://github.com/intersystems-community/vscode-objectscript).
4
4
5
-
It also enables the secure storage of passwords using the underlying operating system's native keystore.
5
+
In common with the rest of VS Code, Server Manager stores your connection settings in JSON files. VS Code settings are arranged in a hierarchy that you can learn more about [here](https://code.visualstudio.com/docs/getstarted/settings).
6
6
7
-
## Configuring connections
7
+
Using Server Manager you can store connection passwords in the native keystore of your workstation's operating system instead of as plaintext in JSON files.
8
8
9
-
Add server definitions to [user or workspace settings](https://code.visualstudio.com/docs/getstarted/settings) by editing JSON files.
9
+
## Defining a new connection
10
10
11
-
For example:
11
+
1. Open the VS Code [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) by typing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (<kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> on macOS) or <kbd>F1</kbd>.
12
+
2. Start typing "Server Manager" to locate `InterSystems Server Manager: Store Password in Keychain`.
13
+
3. Type the '+' character into the quickpick input field. Alternatively click the '+' button on the top right of the quickpick.
14
+
4. Complete the prompts. By the time you reach the password prompt your connection definition has already been saved in **user-level** JSON. If you prefer to enter your password whenever a VS Code extension connects via Server Manager for the first time in a session, press <kbd>Esc</kbd> here.
15
+
16
+
## Amending and removing definitions
17
+
18
+
To manage your definitions, [edit the relevant JSON file](https://code.visualstudio.com/docs/getstarted/settings). VS Code offers several routes to these files. One way is to type "json" into the Command Palette.
19
+
20
+
In this example two connections have been defined:
12
21
13
22
```json
14
23
"intersystems.servers": {
@@ -34,18 +43,11 @@ For example:
34
43
}
35
44
```
36
45
37
-
## Storing passwords securely
38
-
39
-
This extension adds the command `InterSystems Server Manager: Store Password in Keychain` to the Command Palette, which offers a quickpick of defined servers, then prompts for a password to store. This facility should be used instead of the plaintext `password` property of a server's definition, which has been deprecated.
40
-
41
-
**Usage:**
46
+
The JSON editor offers the usual [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) as you work in this structure.
42
47
43
-
1. Bring up the [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) by typing Ctrl+Shift+P (Cmd+Shift+P on Mac) or F1.
44
-
2. Start typing "Server Manager" to locate the `InterSystems Server Manager: Store Password in Keychain` command.
45
-
3. Pick a server.
46
-
4. Enter your password.
48
+
Notice how you can add a `description` property to each connection. This will be shown alongside its entry in the server quickpick.
47
49
48
-
You will no longer need to supply a password when connecting to the server you selected.
50
+
Servers are displayed in the quickpick in the order they are defined in the JSON file. The exception is that if a server name is set as the value of the `/default` property (see example above) it will be shown first in the list.
49
51
50
52
## Removing a stored password
51
53
@@ -57,7 +59,7 @@ The command `InterSystems Server Manager: Clear Password from Keychain` removes
57
59
2. Start typing "Server Manager" to locate the `InterSystems Server Manager: Clear Password from Keychain` command.
58
60
3. Pick a server.
59
61
60
-
## For Developers: Use By Other Extensions
62
+
## For VS Code Extension Developers: Use By Other Extensions
61
63
62
64
An extension XYZ needing to connect to InterSystems servers can define this extension as a dependency in its `package.json`
63
65
@@ -106,7 +108,4 @@ To obtain an array of server names:
Servers are usually listed in the order they are defined. The exception is that if a server name is set as the value of the `/default` property (see example above) it will be shown first in the list.
111
-
112
111
For details of the API, including result types and available parameters, review the source code of the extension's `activate` method [here](https://github.com/intersystems-community/intersystems-servermanager/blob/master/src/extension.ts).
0 commit comments