mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 17:23:53 -05:00
* Merge from vscode a5cf1da01d5db3d2557132be8d30f89c38019f6c * remove files we don't want * fix hygiene * update distro * update distro * fix hygiene * fix strict nulls * distro * distro * fix tests * fix tests * add another edit * fix viewlet icon * fix azure dialog * fix some padding * fix more padding issues
23 lines
1.1 KiB
TypeScript
23 lines
1.1 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { ITunnelService, RemoteTunnel } from 'vs/platform/remote/common/tunnel';
|
|
import { Event, Emitter } from 'vs/base/common/event';
|
|
|
|
export class NoOpTunnelService implements ITunnelService {
|
|
_serviceBrand: undefined;
|
|
|
|
public readonly tunnels: Promise<readonly RemoteTunnel[]> = Promise.resolve([]);
|
|
private _onTunnelOpened: Emitter<RemoteTunnel> = new Emitter();
|
|
public onTunnelOpened: Event<RemoteTunnel> = this._onTunnelOpened.event;
|
|
private _onTunnelClosed: Emitter<number> = new Emitter();
|
|
public onTunnelClosed: Event<number> = this._onTunnelClosed.event;
|
|
openTunnel(_remotePort: number): Promise<RemoteTunnel> | undefined {
|
|
return undefined;
|
|
}
|
|
async closeTunnel(_remotePort: number): Promise<void> {
|
|
}
|
|
}
|