mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Better maintain original tunnel source
This commit is contained in:
@@ -7,7 +7,7 @@ import * as nls from 'vs/nls';
|
||||
import { MainThreadTunnelServiceShape, IExtHostContext, MainContext, ExtHostContext, ExtHostTunnelServiceShape, CandidatePortSource, PortAttributesProviderSelector } from 'vs/workbench/api/common/extHost.protocol';
|
||||
import { TunnelDto } from 'vs/workbench/api/common/extHostTunnelService';
|
||||
import { extHostNamedCustomer } from 'vs/workbench/api/common/extHostCustomers';
|
||||
import { CandidatePort, IRemoteExplorerService, makeAddress, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_SOURCE_SETTING_PROCESS } from 'vs/workbench/services/remote/common/remoteExplorerService';
|
||||
import { CandidatePort, IRemoteExplorerService, makeAddress, PORT_AUTO_FORWARD_SETTING, PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_OUTPUT, PORT_AUTO_SOURCE_SETTING_PROCESS, TunnelSource } from 'vs/workbench/services/remote/common/remoteExplorerService';
|
||||
import { ITunnelProvider, ITunnelService, TunnelCreationOptions, TunnelProviderFeatures, TunnelOptions, RemoteTunnel, isPortPrivileged, ProvidedPortAttributes, PortAttributesProvider, TunnelProtocol } from 'vs/platform/remote/common/tunnel';
|
||||
import { Disposable } from 'vs/base/common/lifecycle';
|
||||
import type { TunnelDescription } from 'vs/platform/remote/common/remoteAuthorityResolver';
|
||||
@@ -101,7 +101,10 @@ export class MainThreadTunnelService extends Disposable implements MainThreadTun
|
||||
remote: tunnelOptions.remoteAddress,
|
||||
local: tunnelOptions.localAddressPort,
|
||||
name: tunnelOptions.label,
|
||||
source,
|
||||
source: {
|
||||
source: TunnelSource.Extension,
|
||||
description: source
|
||||
},
|
||||
elevateIfNeeded: false
|
||||
});
|
||||
if (tunnel) {
|
||||
@@ -131,7 +134,10 @@ export class MainThreadTunnelService extends Disposable implements MainThreadTun
|
||||
remote: tunnelOptions.remoteAddress,
|
||||
local: tunnelOptions.localAddressPort,
|
||||
name: tunnelOptions.label,
|
||||
source,
|
||||
source: {
|
||||
source: TunnelSource.Extension,
|
||||
description: source
|
||||
},
|
||||
elevateIfNeeded: true
|
||||
});
|
||||
this.elevateionRetry = false;
|
||||
|
||||
Reference in New Issue
Block a user