Skip to content

Commit 760984c

Browse files
Merge pull request #27 from gjsjohnmurray/prepare-0.0.7
README and CHANGELOG for 0.0.7
2 parents 6b6ff48 + 7ead06f commit 760984c

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.0.7 (11-Sep-2020)
2+
* Enhance server selector quickpick so new entries can be added User Settings.
3+
14
## 0.0.6 (04-Sep-2020)
25
* New icon.
36
* Upgrade vulnerable dependency.

README.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
# InterSystems® Server Manager
22

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).
44

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).
66

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.
88

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
1010

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:
1221

1322
```json
1423
"intersystems.servers": {
@@ -34,18 +43,11 @@ For example:
3443
}
3544
```
3645

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.
4247

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.
4749

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.
4951

5052
## Removing a stored password
5153

@@ -57,7 +59,7 @@ The command `InterSystems Server Manager: Clear Password from Keychain` removes
5759
2. Start typing "Server Manager" to locate the `InterSystems Server Manager: Clear Password from Keychain` command.
5860
3. Pick a server.
5961

60-
## For Developers: Use By Other Extensions
62+
## For VS Code Extension Developers: Use By Other Extensions
6163

6264
An extension XYZ needing to connect to InterSystems servers can define this extension as a dependency in its `package.json`
6365

@@ -106,7 +108,4 @@ To obtain an array of server names:
106108
```ts
107109
const allServerNames = await serverManagerApi.getServerNames();
108110
```
109-
110-
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-
112111
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

Comments
 (0)