|
47 | 47 | "@types/glob": "^7.1.1", |
48 | 48 | "@types/mocha": "^5.2.6", |
49 | 49 | "@types/node": "^8.10.60", |
| 50 | + "@types/keytar": "^4.4.2", |
50 | 51 | "glob": "^7.1.6", |
51 | 52 | "mocha": "^7.1.2", |
52 | 53 | "ts-loader": "^6.2.2", |
|
56 | 57 | "vscode-test": "^1.3.0" |
57 | 58 | }, |
58 | 59 | "main": "./out/extension", |
59 | | - "activationEvents": [], |
| 60 | + "activationEvents": [ |
| 61 | + "onCommand:intersystems-community.servermanager.testPickServer", |
| 62 | + "onCommand:intersystems-community.servermanager.testPickServerFlushingCachedCredentials", |
| 63 | + "onCommand:intersystems-community.servermanager.testPickServerDetailed", |
| 64 | + "onCommand:intersystems-community.servermanager.storePassword", |
| 65 | + "onCommand:intersystems-community.servermanager.clearPassword" |
| 66 | + ], |
60 | 67 | "contributes": { |
61 | 68 | "configuration": { |
62 | 69 | "title": "InterSystems® Server Manager", |
|
73 | 80 | "host": "127.0.0.1", |
74 | 81 | "port": 52773 |
75 | 82 | }, |
76 | | - "description": "Connection to default local InterSystems IRIS™ installation. Delete if unwanted." |
| 83 | + "description": "Connection to local InterSystems IRIS™ installed with default settings." |
77 | 84 | }, |
78 | 85 | "cache": { |
79 | 86 | "webServer": { |
80 | 87 | "scheme": "http", |
81 | 88 | "host": "127.0.0.1", |
82 | 89 | "port": 57772 |
83 | 90 | }, |
84 | | - "description": "Connection to default local InterSystems Caché® installation. Delete if unwanted." |
| 91 | + "description": "Connection to local InterSystems Caché® installed with default settings." |
85 | 92 | }, |
86 | 93 | "ensemble": { |
87 | 94 | "webServer": { |
88 | 95 | "scheme": "http", |
89 | 96 | "host": "127.0.0.1", |
90 | 97 | "port": 57772 |
91 | 98 | }, |
92 | | - "description": "Connection to default local InterSystems Ensemble® installation. Delete if unwanted." |
| 99 | + "description": "Connection to local InterSystems Ensemble® installed with default settings." |
93 | 100 | }, |
94 | 101 | "/default": "iris" |
95 | 102 | }, |
|
151 | 158 | }, |
152 | 159 | "password": { |
153 | 160 | "type": "string", |
154 | | - "description": "Password of username. If not set here it must be provided when connecting." |
| 161 | + "description": "Password of username.", |
| 162 | + "deprecationMessage": "Storing password in plaintext is not recommended. Instead, use the Command Palette command to store it in your keychain." |
155 | 163 | }, |
156 | 164 | "description": { |
157 | 165 | "type": "string", |
|
173 | 181 | "additionalProperties": false |
174 | 182 | } |
175 | 183 | } |
176 | | - } |
| 184 | + }, |
| 185 | + "commands": [ |
| 186 | + { |
| 187 | + "command": "intersystems-community.servermanager.storePassword", |
| 188 | + "category": "InterSystems Server Manager", |
| 189 | + "title": "Store Password in Keychain" |
| 190 | + }, |
| 191 | + { |
| 192 | + "command": "intersystems-community.servermanager.clearPassword", |
| 193 | + "category": "InterSystems Server Manager", |
| 194 | + "title": "Clear Password from Keychain" |
| 195 | + }, |
| 196 | + { |
| 197 | + "command": "intersystems-community.servermanager.testPickServer", |
| 198 | + "category": "InterSystems Server Manager", |
| 199 | + "title": "Test Server Selection" |
| 200 | + }, |
| 201 | + { |
| 202 | + "command": "intersystems-community.servermanager.testPickServerFlushingCachedCredentials", |
| 203 | + "category": "InterSystems Server Manager", |
| 204 | + "title": "Test Server Selection (flush cached credentials)" |
| 205 | + }, |
| 206 | + { |
| 207 | + "command": "intersystems-community.servermanager.testPickServerDetailed", |
| 208 | + "category": "InterSystems Server Manager", |
| 209 | + "title": "Test Server Selection with Details" |
| 210 | + } |
| 211 | + ] |
177 | 212 | } |
178 | 213 | } |
0 commit comments