Skip to content

Commit 07b1a72

Browse files
committed
build and comments
1 parent e58d53d commit 07b1a72

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

build/lib/i18n.resources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,10 @@
707707
{
708708
"name": "vs/sessions/contrib/chatDebug",
709709
"project": "vscode-sessions"
710+
},
711+
{
712+
"name": "vs/sessions/contrib/tunnelHost",
713+
"project": "vscode-sessions"
710714
}
711715
]
712716
}

src/vs/platform/agentHost/node/tunnelHostMainService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Disposable, MutableDisposable } from '../../../base/common/lifecycle.js
1212
import { joinPath } from '../../../base/common/resources.js';
1313
import { IConfigurationService } from '../../configuration/common/configuration.js';
1414
import { INativeEnvironmentService } from '../../environment/common/environment.js';
15-
import { ILogger, ILoggerService, ILogService } from '../../log/common/log.js';
15+
import { ILogger, ILoggerService } from '../../log/common/log.js';
1616
import { localize } from '../../../nls.js';
1717
import { CONFIGURATION_KEY_HOST_NAME } from '../../remoteTunnel/common/remoteTunnel.js';
1818
import {
@@ -47,7 +47,6 @@ export class TunnelHostMainService extends Disposable implements ITunnelAgentHos
4747
private readonly _logger: ILogger;
4848

4949
constructor(
50-
@ILogService _logService: ILogService,
5150
@IConfigurationService private readonly _configurationService: IConfigurationService,
5251
@ILoggerService loggerService: ILoggerService,
5352
@INativeEnvironmentService environmentService: INativeEnvironmentService,

src/vs/sessions/contrib/tunnelHost/electron-browser/toggleRemoteConnectionsActionViewItem.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ export class ToggleRemoteConnectionsActionViewItem extends BaseActionViewItem {
108108
this._toastElement.textContent = localize('tunnelHost.toast', "Remote session access is now enabled");
109109
this._toastElement.classList.add('visible');
110110

111-
const timeout = this._register(disposableTimeout(() => {
111+
disposableTimeout(() => {
112112
this._hideToast();
113-
this._store.delete(timeout);
114-
}, 3000));
113+
}, 3000, this._store);
115114
}
116115

117116
private _hideToast(): void {
@@ -136,7 +135,7 @@ export class ToggleRemoteConnectionsActionViewItem extends BaseActionViewItem {
136135

137136
lines.push(`[${localize('tunnelHost.hover.showOutput', "Show Output")}](command:${SHOW_TUNNEL_HOST_OUTPUT_ID})`);
138137

139-
const md = new MarkdownString(lines.join('\n\n'), { isTrusted: true });
138+
const md = new MarkdownString(lines.join('\n\n'), { isTrusted: { enabledCommands: [SHOW_TUNNEL_HOST_OUTPUT_ID] } });
140139
return { markdown: md, markdownNotSupportedFallback: lines[0] };
141140
}
142141

0 commit comments

Comments
 (0)