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-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,25 +220,32 @@ Embedded entries (built-in default ones) are demoted to the end of the list, or
220
220
221
221
## Information for VS Code Extension Developers - How To Leverage Server Manager
222
222
223
-
An extension XYZ needing to connect to InterSystems servers can define Server Manager as a dependency in its `package.json` like this:
223
+
The NPM package [`@intersystems-community/intersystems-servermanager`](https://www.npmjs.com/package/@intersystems-community/intersystems-servermanager) defines the types used by the API which this extension exports. It also declares some constants.
224
+
225
+
An extension XYZ needing to connect to InterSystems servers should include `"@intersystems-community/intersystems-servermanager": "latest"` in the `"devDependencies"` object in its `package.json`.
226
+
227
+
It might also define Server Manager as a dependency in its `package.json` like this:
224
228
225
229
```json
226
230
"extensionDependencies": [
227
231
"intersystems-community.servermanager"
228
232
],
229
233
```
230
234
231
-
Alternatively the `activate` method of XYZ can detect whether the extension is already available, then offer to install it if necessary:
235
+
Alternatively the `activate` method of XYZ can detect whether the extension is already available, then offer to install it if not:
For up-to-date 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