Skip to content

Commit 3e4fefe

Browse files
committed
Add setting to keep wireshark window active in background
1 parent 897e7d0 commit 3e4fefe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,11 @@
11761176
"Light"
11771177
],
11781178
"description": "The theme, or colour scheme of the wireshark application."
1179+
},
1180+
"containerlab.capture.wireshark.stayOpenInBackground": {
1181+
"type": "boolean",
1182+
"default": "true",
1183+
"description": "Keep Wireshark VNC sessions alive, even when the capture tab is not active. Enabling this will consume more memory on both the client and remote containerlab host system."
11791184
}
11801185
}
11811186
}

src/commands/capture.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export async function captureEdgesharkVNC(
237237
const dockerPullPolicy = wsConfig.get<string>("capture.wireshark.pullPolicy", "always")
238238
const extraDockerArgs = wsConfig.get<string>("capture.wireshark.extraDockerArgs")
239239
const wiresharkThemeSetting = wsConfig.get<string>("capture.wireshark.theme")
240+
const keepOpenInBackground = wsConfig.get<boolean>("capture.wireshark.stayOpenInBackground")
240241

241242
let darkModeEnabled = false;
242243

@@ -324,6 +325,7 @@ export async function captureEdgesharkVNC(
324325
vscode.ViewColumn.One,
325326
{
326327
enableScripts: true,
328+
retainContextWhenHidden: keepOpenInBackground
327329
}
328330
);
329331

0 commit comments

Comments
 (0)