File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/kotlin/com/coder/gateway/cli Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ class CoderCLIManager(
255255 val startBlock = " # --- START CODER JETBRAINS $host "
256256 val endBlock = " # --- END CODER JETBRAINS $host "
257257 val isRemoving = workspaceNames.isEmpty()
258- val proxyArgs =
258+ val baseArgs =
259259 listOfNotNull(
260260 escape(localBinaryPath.toString()),
261261 " --global-config" ,
@@ -265,8 +265,9 @@ class CoderCLIManager(
265265 " ssh" ,
266266 " --stdio" ,
267267 if (settings.disableAutostart && feats.disableAutostart) " --disable-autostart" else null ,
268- if (feats.reportWorkspaceUsage) " --usage-app=jetbrains" else null ,
269268 )
269+ val proxyArgs = baseArgs + listOfNotNull(if (feats.reportWorkspaceUsage) " --usage-app=jetbrains" else null )
270+ val backgroundProxyArgs = baseArgs + listOfNotNull(if (feats.reportWorkspaceUsage) " --usage-app=disable" else null )
270271 val extraConfig =
271272 if (settings.sshConfigOptions.isNotBlank()) {
272273 " \n " + settings.sshConfigOptions.prependIndent(" " )
@@ -293,7 +294,7 @@ class CoderCLIManager(
293294 .plus(
294295 """
295296 Host ${getBackgroundHostName(deploymentURL, it)}
296- ProxyCommand ${proxyArgs .joinToString(" " )} $it
297+ ProxyCommand ${backgroundProxyArgs .joinToString(" " )} $it
297298 ConnectTimeout 0
298299 StrictHostKeyChecking no
299300 UserKnownHostsFile /dev/null
You can’t perform that action at this time.
0 commit comments