UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

19 lines (18 loc) 1.18 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { createDecorator } from '../../instantiation/common/instantiation.mjs'; export const IRemoteTunnelService = createDecorator('IRemoteTunnelService'); export var TunnelStates; (function (TunnelStates) { TunnelStates.disconnected = { type: 'disconnected' }; TunnelStates.uninitialized = { type: 'uninitialized' }; TunnelStates.connected = (info) => ({ type: 'connected', info }); TunnelStates.connecting = (progress) => ({ type: 'connecting', progress }); })(TunnelStates || (TunnelStates = {})); export const CONFIGURATION_KEY_PREFIX = 'remote.tunnels.access'; export const CONFIGURATION_KEY_HOST_NAME = CONFIGURATION_KEY_PREFIX + '.hostNameOverride'; export const LOG_FILE_NAME = 'remoteTunnelService.log'; export const LOGGER_NAME = 'remoteTunnelService'; export const LOG_CHANNEL_ID = 'remoteTunnelServiceLog';