@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/empty.js +1 -0
- package/package.json +41 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +167 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +847 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +24 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.d.ts +189 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1745 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +110 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare const getStartedIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
2
|
+
export declare const documentationIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
3
|
+
export declare const feedbackIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
4
|
+
export declare const reviewIssuesIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
5
|
+
export declare const reportIssuesIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
6
|
+
export declare const remoteExplorerViewIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
7
|
+
export declare const portsViewIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
8
|
+
export declare const portIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
9
|
+
export declare const privatePortIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
10
|
+
export declare const forwardPortIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
11
|
+
export declare const stopForwardIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
12
|
+
export declare const openBrowserIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
13
|
+
export declare const openPreviewIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
14
|
+
export declare const copyAddressIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
15
|
+
export declare const labelPortIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
16
|
+
export declare const forwardedPortWithoutProcessIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
17
|
+
export declare const forwardedPortWithProcessIcon: import("vscode/vscode/vs/base/common/themables").ThemeIcon;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
3
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
4
|
+
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
5
|
+
|
6
|
+
const getStartedIcon = registerIcon('remote-explorer-get-started', Codicon.star, ( localize(8265, 'Getting started icon in the remote explorer view.')));
|
7
|
+
const documentationIcon = registerIcon('remote-explorer-documentation', Codicon.book, ( localize(8266, 'Documentation icon in the remote explorer view.')));
|
8
|
+
registerIcon('remote-explorer-feedback', Codicon.twitter, ( localize(8267, 'Feedback icon in the remote explorer view.')));
|
9
|
+
const reviewIssuesIcon = registerIcon('remote-explorer-review-issues', Codicon.issues, ( localize(8268, 'Review issue icon in the remote explorer view.')));
|
10
|
+
const reportIssuesIcon = registerIcon('remote-explorer-report-issues', Codicon.comment, ( localize(8269, 'Report issue icon in the remote explorer view.')));
|
11
|
+
const remoteExplorerViewIcon = registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer, ( localize(8270, 'View icon of the remote explorer view.')));
|
12
|
+
const portsViewIcon = registerIcon('ports-view-icon', Codicon.plug, ( localize(8271, 'View icon of the remote ports view.')));
|
13
|
+
registerIcon('ports-view-icon', Codicon.plug, ( localize(8272, 'Icon representing a remote port.')));
|
14
|
+
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock, ( localize(8273, 'Icon representing a private remote port.')));
|
15
|
+
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus, ( localize(8274, 'Icon for the forward action.')));
|
16
|
+
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x, ( localize(8275, 'Icon for the stop forwarding action.')));
|
17
|
+
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe, ( localize(8276, 'Icon for the open browser action.')));
|
18
|
+
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview, ( localize(8277, 'Icon for the open preview action.')));
|
19
|
+
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy, ( localize(8278, 'Icon for the copy local address action.')));
|
20
|
+
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag, ( localize(8279, 'Icon for the label port action.')));
|
21
|
+
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, ( localize(8280, 'Icon for forwarded ports that don\'t have a running process.')));
|
22
|
+
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, ( localize(8281, 'Icon for forwarded ports that do have a running process.')));
|
23
|
+
|
24
|
+
export { copyAddressIcon, documentationIcon, forwardPortIcon, forwardedPortWithProcessIcon, forwardedPortWithoutProcessIcon, getStartedIcon, labelPortIcon, openBrowserIcon, openPreviewIcon, portsViewIcon, privatePortIcon, remoteExplorerViewIcon, reportIssuesIcon, reviewIssuesIcon, stopForwardIcon };
|
@@ -0,0 +1,189 @@
|
|
1
|
+
import { IViewDescriptor } from "vscode/vscode/vs/workbench/common/views";
|
2
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
3
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
4
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
5
|
+
import { IContextViewService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
6
|
+
import { RawContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
7
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
8
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
9
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
10
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
11
|
+
import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
|
12
|
+
import { ICommandHandler } from "vscode/vscode/vs/platform/commands/common/commands";
|
13
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
14
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
15
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
16
|
+
import { IMenuService } from "vscode/vscode/vs/platform/actions/common/actions.service";
|
17
|
+
import { ILocalizedString } from "vscode/vscode/vs/platform/action/common/action";
|
18
|
+
import { TunnelType, ITunnelItem } from "vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService";
|
19
|
+
import { IRemoteExplorerService } from "vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService.service";
|
20
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
21
|
+
import { ThemeIcon } from "vscode/vscode/vs/base/common/themables";
|
22
|
+
import { ViewPane, IViewPaneOptions } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
23
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
24
|
+
import { TunnelPrivacyId, TunnelProtocol } from "vscode/vscode/vs/platform/tunnel/common/tunnel";
|
25
|
+
import { ITunnelService } from "vscode/vscode/vs/platform/tunnel/common/tunnel.service";
|
26
|
+
import { TunnelPrivacy } from "vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver";
|
27
|
+
import { SyncDescriptor } from "vscode/vscode/vs/platform/instantiation/common/descriptors";
|
28
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
29
|
+
import { IExternalUriOpenerService } from "vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service";
|
30
|
+
import { Tunnel, TunnelModel, TunnelSource } from "vscode/vscode/vs/workbench/services/remote/common/tunnelModel";
|
31
|
+
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
32
|
+
export declare const openPreviewEnabledContext: RawContextKey<boolean>;
|
33
|
+
interface ITunnelViewModel {
|
34
|
+
readonly onForwardedPortsChanged: Event<void>;
|
35
|
+
readonly all: TunnelItem[];
|
36
|
+
readonly input: TunnelItem;
|
37
|
+
isEmpty(): boolean;
|
38
|
+
}
|
39
|
+
export declare class TunnelViewModel implements ITunnelViewModel {
|
40
|
+
private readonly remoteExplorerService;
|
41
|
+
private readonly tunnelService;
|
42
|
+
readonly onForwardedPortsChanged: Event<void>;
|
43
|
+
private model;
|
44
|
+
private _candidates;
|
45
|
+
readonly input: {
|
46
|
+
label: string;
|
47
|
+
icon: undefined;
|
48
|
+
tunnelType: TunnelType;
|
49
|
+
hasRunningProcess: boolean;
|
50
|
+
remoteHost: string;
|
51
|
+
remotePort: number;
|
52
|
+
processDescription: string;
|
53
|
+
tooltipPostfix: string;
|
54
|
+
iconTooltip: string;
|
55
|
+
portTooltip: string;
|
56
|
+
processTooltip: string;
|
57
|
+
originTooltip: string;
|
58
|
+
privacyTooltip: string;
|
59
|
+
source: {
|
60
|
+
source: TunnelSource;
|
61
|
+
description: string;
|
62
|
+
};
|
63
|
+
protocol: TunnelProtocol;
|
64
|
+
privacy: {
|
65
|
+
id: TunnelPrivacyId;
|
66
|
+
themeIcon: string;
|
67
|
+
label: string;
|
68
|
+
};
|
69
|
+
strip: () => undefined;
|
70
|
+
};
|
71
|
+
constructor(remoteExplorerService: IRemoteExplorerService, tunnelService: ITunnelService);
|
72
|
+
get all(): TunnelItem[];
|
73
|
+
private addProcessInfoFromCandidate;
|
74
|
+
private get forwarded();
|
75
|
+
private get detected();
|
76
|
+
isEmpty(): boolean;
|
77
|
+
}
|
78
|
+
declare class TunnelItem implements ITunnelItem {
|
79
|
+
tunnelType: TunnelType;
|
80
|
+
remoteHost: string;
|
81
|
+
remotePort: number;
|
82
|
+
source: {
|
83
|
+
source: TunnelSource;
|
84
|
+
description: string;
|
85
|
+
};
|
86
|
+
hasRunningProcess: boolean;
|
87
|
+
protocol: TunnelProtocol;
|
88
|
+
localUri?: URI | undefined;
|
89
|
+
localAddress?: string | undefined;
|
90
|
+
localPort?: number | undefined;
|
91
|
+
closeable?: boolean | undefined;
|
92
|
+
name?: string | undefined;
|
93
|
+
private runningProcess?;
|
94
|
+
private pid?;
|
95
|
+
private _privacy?;
|
96
|
+
private remoteExplorerService?;
|
97
|
+
private tunnelService?;
|
98
|
+
static createFromTunnel(remoteExplorerService: IRemoteExplorerService, tunnelService: ITunnelService, tunnel: Tunnel, type?: TunnelType, closeable?: boolean): TunnelItem;
|
99
|
+
strip(): TunnelItem | undefined;
|
100
|
+
constructor(tunnelType: TunnelType, remoteHost: string, remotePort: number, source: {
|
101
|
+
source: TunnelSource;
|
102
|
+
description: string;
|
103
|
+
}, hasRunningProcess: boolean, protocol: TunnelProtocol, localUri?: URI | undefined, localAddress?: string | undefined, localPort?: number | undefined, closeable?: boolean | undefined, name?: string | undefined, runningProcess?: string | undefined, pid?: number | undefined, _privacy?: (TunnelPrivacyId | string) | undefined, remoteExplorerService?: IRemoteExplorerService | undefined, tunnelService?: ITunnelService | undefined);
|
104
|
+
get label(): string;
|
105
|
+
set processDescription(description: string | undefined);
|
106
|
+
get processDescription(): string | undefined;
|
107
|
+
get tooltipPostfix(): string;
|
108
|
+
get iconTooltip(): string;
|
109
|
+
get portTooltip(): string;
|
110
|
+
get processTooltip(): string;
|
111
|
+
get originTooltip(): string;
|
112
|
+
get privacy(): TunnelPrivacy;
|
113
|
+
}
|
114
|
+
export declare class TunnelPanel extends ViewPane {
|
115
|
+
protected viewModel: ITunnelViewModel;
|
116
|
+
protected quickInputService: IQuickInputService;
|
117
|
+
protected commandService: ICommandService;
|
118
|
+
private readonly menuService;
|
119
|
+
private readonly remoteExplorerService;
|
120
|
+
private readonly tunnelService;
|
121
|
+
private readonly contextViewService;
|
122
|
+
static readonly ID = "~remote.forwardedPorts";
|
123
|
+
static readonly TITLE: ILocalizedString;
|
124
|
+
private panelContainer;
|
125
|
+
private table;
|
126
|
+
private readonly tableDisposables;
|
127
|
+
private tunnelTypeContext;
|
128
|
+
private tunnelCloseableContext;
|
129
|
+
private tunnelPrivacyContext;
|
130
|
+
private tunnelPrivacyEnabledContext;
|
131
|
+
private tunnelProtocolContext;
|
132
|
+
private tunnelViewFocusContext;
|
133
|
+
private tunnelViewSelectionContext;
|
134
|
+
private tunnelViewMultiSelectionContext;
|
135
|
+
private portChangableContextKey;
|
136
|
+
private protocolChangableContextKey;
|
137
|
+
private isEditing;
|
138
|
+
private titleActions;
|
139
|
+
private lastFocus;
|
140
|
+
constructor(viewModel: ITunnelViewModel, options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, openerService: IOpenerService, quickInputService: IQuickInputService, commandService: ICommandService, menuService: IMenuService, themeService: IThemeService, remoteExplorerService: IRemoteExplorerService, telemetryService: ITelemetryService, hoverService: IHoverService, tunnelService: ITunnelService, contextViewService: IContextViewService);
|
141
|
+
private registerPrivacyActions;
|
142
|
+
get portCount(): number;
|
143
|
+
private createTable;
|
144
|
+
protected renderBody(container: HTMLElement): void;
|
145
|
+
shouldShowWelcome(): boolean;
|
146
|
+
focus(): void;
|
147
|
+
private onFocusChanged;
|
148
|
+
private hasOpenLinkModifier;
|
149
|
+
private onSelectionChanged;
|
150
|
+
private onContextMenu;
|
151
|
+
private onMouseDblClick;
|
152
|
+
private height;
|
153
|
+
private width;
|
154
|
+
protected layoutBody(height: number, width: number): void;
|
155
|
+
}
|
156
|
+
export declare class TunnelPanelDescriptor implements IViewDescriptor {
|
157
|
+
readonly id = "~remote.forwardedPorts";
|
158
|
+
readonly name: ILocalizedString;
|
159
|
+
readonly ctorDescriptor: SyncDescriptor<TunnelPanel>;
|
160
|
+
readonly canToggleVisibility = true;
|
161
|
+
readonly hideByDefault = false;
|
162
|
+
readonly group = "details@0";
|
163
|
+
readonly order = -500;
|
164
|
+
readonly remoteAuthority?: string | string[];
|
165
|
+
readonly canMoveView = true;
|
166
|
+
readonly containerIcon: ThemeIcon;
|
167
|
+
constructor(viewModel: ITunnelViewModel, environmentService: IWorkbenchEnvironmentService);
|
168
|
+
}
|
169
|
+
export declare namespace ForwardPortAction {
|
170
|
+
const INLINE_ID = "remote.tunnel.forwardInline";
|
171
|
+
const COMMANDPALETTE_ID = "remote.tunnel.forwardCommandPalette";
|
172
|
+
const LABEL: ILocalizedString;
|
173
|
+
const TREEITEM_LABEL: string;
|
174
|
+
function inlineHandler(): ICommandHandler;
|
175
|
+
function commandPaletteHandler(): ICommandHandler;
|
176
|
+
}
|
177
|
+
export declare namespace OpenPortInBrowserAction {
|
178
|
+
const ID = "remote.tunnel.open";
|
179
|
+
const LABEL: string;
|
180
|
+
function handler(): ICommandHandler;
|
181
|
+
function run(model: TunnelModel, openerService: IOpenerService, key: string): Promise<void> | Promise<boolean>;
|
182
|
+
}
|
183
|
+
export declare namespace OpenPortInPreviewAction {
|
184
|
+
const ID = "remote.tunnel.openPreview";
|
185
|
+
const LABEL: string;
|
186
|
+
function handler(): ICommandHandler;
|
187
|
+
function run(model: TunnelModel, openerService: IOpenerService, externalOpenerService: IExternalUriOpenerService, key: string): Promise<boolean | void>;
|
188
|
+
}
|
189
|
+
export {};
|