We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab32e85 commit 3a9f36eCopy full SHA for 3a9f36e
1 file changed
src/extension.ts
@@ -4,6 +4,7 @@ import * as vscode from "vscode";
4
import { importFromRegistry } from "./commands/importFromRegistry";
5
import { ServerManagerView } from "./ui/serverManagerView";
6
import { commonActivate, extensionId } from "./commonActivate";
7
+import { logout, serverSessions } from "./makeRESTRequest";
8
9
export function activate(context: vscode.ExtensionContext) {
10
const view = new ServerManagerView(context);
@@ -20,4 +21,9 @@ export function activate(context: vscode.ExtensionContext) {
20
21
return commonActivate(context, view);
22
}
23
-export function deactivate() { }
24
+export async function deactivate() {
25
+ // Do our best to log out of all sessions
26
+ for (const serverSession of serverSessions) {
27
+ await logout(serverSession[1].serverName);
28
+ }
29
+}
0 commit comments