From 0ab36b31466c9c124d678c9f499af87fc95307a7 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Tue, 1 Nov 2022 18:43:26 +0100 Subject: [PATCH] Remove unneeded `export` Part of #164933 --- src/vs/workbench/api/common/extHostComments.ts | 2 +- src/vs/workbench/api/node/extHostTunnelService.ts | 2 +- .../workbench/contrib/comments/browser/commentService.ts | 2 +- .../contrib/comments/browser/commentThreadZoneWidget.ts | 2 +- .../contrib/comments/browser/commentsTreeViewer.ts | 4 ++-- .../contrib/comments/browser/commentsViewActions.ts | 2 +- .../workbench/contrib/remote/browser/explorerViewItems.ts | 2 +- src/vs/workbench/contrib/remote/browser/remote.ts | 4 ++-- src/vs/workbench/contrib/remote/browser/tunnelView.ts | 8 ++++---- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/vs/workbench/api/common/extHostComments.ts b/src/vs/workbench/api/common/extHostComments.ts index 0c757e5ccdd33..e66c60290f9f7 100644 --- a/src/vs/workbench/api/common/extHostComments.ts +++ b/src/vs/workbench/api/common/extHostComments.ts @@ -23,7 +23,7 @@ import { ExtHostCommands } from './extHostCommands'; type ProviderHandle = number; -export interface ExtHostComments { +interface ExtHostComments { createCommentController(extension: IExtensionDescription, id: string, label: string): vscode.CommentController; } diff --git a/src/vs/workbench/api/node/extHostTunnelService.ts b/src/vs/workbench/api/node/extHostTunnelService.ts index d7abe11a16dc4..2df2828d9ad73 100644 --- a/src/vs/workbench/api/node/extHostTunnelService.ts +++ b/src/vs/workbench/api/node/extHostTunnelService.ts @@ -61,7 +61,7 @@ export function loadListeningPorts(...stdouts: string[]): { socket: number; ip: ]; } -export function parseIpAddress(hex: string): string { +function parseIpAddress(hex: string): string { let result = ''; if (hex.length === 8) { for (let i = hex.length - 2; i >= 0; i -= 2) { diff --git a/src/vs/workbench/contrib/comments/browser/commentService.ts b/src/vs/workbench/contrib/comments/browser/commentService.ts index 4efc5d1a825a1..454ac5f64087c 100644 --- a/src/vs/workbench/contrib/comments/browser/commentService.ts +++ b/src/vs/workbench/contrib/comments/browser/commentService.ts @@ -17,7 +17,7 @@ import { IWorkbenchLayoutService } from 'vs/workbench/services/layout/browser/la export const ICommentService = createDecorator('commentService'); -export interface IResourceCommentThreadEvent { +interface IResourceCommentThreadEvent { resource: URI; commentInfos: ICommentInfo[]; } diff --git a/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts b/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts index a55d509800c5e..fd493a4644190 100644 --- a/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts +++ b/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts @@ -26,7 +26,7 @@ import { ICellRange } from 'vs/workbench/contrib/notebook/common/notebookRange'; import { commentThreadStateBackgroundColorVar, commentThreadStateColorVar, getCommentThreadStateColor } from 'vs/workbench/contrib/comments/browser/commentColors'; import { peekViewBorder } from 'vs/editor/contrib/peekView/browser/peekView'; -export function getCommentThreadWidgetStateColor(thread: languages.CommentThreadState | undefined, theme: IColorTheme): Color | undefined { +function getCommentThreadWidgetStateColor(thread: languages.CommentThreadState | undefined, theme: IColorTheme): Color | undefined { return getCommentThreadStateColor(thread, theme) ?? theme.getColor(peekViewBorder); } diff --git a/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.ts b/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.ts index c03920630e173..a6222c2da7291 100644 --- a/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.ts +++ b/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.ts @@ -73,7 +73,7 @@ interface ICommentThreadTemplateData { disposables: IDisposable[]; } -export class CommentsModelVirualDelegate implements IListVirtualDelegate { +class CommentsModelVirualDelegate implements IListVirtualDelegate { private static readonly RESOURCE_ID = 'resource-with-comments'; private static readonly COMMENT_ID = 'comment-node'; @@ -269,7 +269,7 @@ interface CommentFilterData { textMatches: IMatch[]; } -export type FilterData = ResourceFilterData | CommentFilterData; +type FilterData = ResourceFilterData | CommentFilterData; export class Filter implements ITreeFilter { diff --git a/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts b/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts index 7720d37c9e38e..e6fd43f4b918a 100644 --- a/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts +++ b/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts @@ -25,7 +25,7 @@ export interface CommentsFiltersChangeEvent { showUnresolved?: boolean; } -export interface CommentsFiltersOptions { +interface CommentsFiltersOptions { showResolved: boolean; showUnresolved: boolean; } diff --git a/src/vs/workbench/contrib/remote/browser/explorerViewItems.ts b/src/vs/workbench/contrib/remote/browser/explorerViewItems.ts index 5bc415b7516a4..aa8ed9355e7e1 100644 --- a/src/vs/workbench/contrib/remote/browser/explorerViewItems.ts +++ b/src/vs/workbench/contrib/remote/browser/explorerViewItems.ts @@ -20,7 +20,7 @@ import { Action2, MenuId } from 'vs/platform/actions/common/actions'; import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation'; import { VIEWLET_ID } from 'vs/workbench/contrib/remote/browser/remoteExplorer'; -export interface IRemoteSelectItem extends ISelectOptionItem { +interface IRemoteSelectItem extends ISelectOptionItem { authority: string[]; } diff --git a/src/vs/workbench/contrib/remote/browser/remote.ts b/src/vs/workbench/contrib/remote/browser/remote.ts index c8aa533f6541a..325f5e35b6c9d 100644 --- a/src/vs/workbench/contrib/remote/browser/remote.ts +++ b/src/vs/workbench/contrib/remote/browser/remote.ts @@ -53,7 +53,7 @@ import { ITimerService } from 'vs/workbench/services/timer/browser/timerService' import { getRemoteName } from 'vs/platform/remote/common/remoteHosts'; import { IActionViewItem } from 'vs/base/browser/ui/actionbar/actionbar'; -export interface HelpInformation { +interface HelpInformation { extensionDescription: IExtensionDescription; getStarted?: string; documentation?: string; @@ -457,7 +457,7 @@ class HelpPanelDescriptor implements IViewDescriptor { } } -export class RemoteViewPaneContainer extends FilterViewPaneContainer implements IViewModel { +class RemoteViewPaneContainer extends FilterViewPaneContainer implements IViewModel { private helpPanelDescriptor = new HelpPanelDescriptor(this); helpInformation: HelpInformation[] = []; private hasSetSwitchForConnection: boolean = false; diff --git a/src/vs/workbench/contrib/remote/browser/tunnelView.ts b/src/vs/workbench/contrib/remote/browser/tunnelView.ts index 4234e53009ac5..e01d95ec63ac2 100644 --- a/src/vs/workbench/contrib/remote/browser/tunnelView.ts +++ b/src/vs/workbench/contrib/remote/browser/tunnelView.ts @@ -69,7 +69,7 @@ class TunnelTreeVirtualDelegate implements ITableVirtualDelegate { } } -export interface ITunnelViewModel { +interface ITunnelViewModel { readonly onForwardedPortsChanged: Event; readonly all: TunnelItem[]; readonly input: TunnelItem; @@ -728,8 +728,8 @@ class TunnelItem implements ITunnelItem { } } -export const TunnelTypeContextKey = new RawContextKey('tunnelType', TunnelType.Add, true); -export const TunnelCloseableContextKey = new RawContextKey('tunnelCloseable', false, true); +const TunnelTypeContextKey = new RawContextKey('tunnelType', TunnelType.Add, true); +const TunnelCloseableContextKey = new RawContextKey('tunnelCloseable', false, true); const TunnelPrivacyContextKey = new RawContextKey('tunnelPrivacy', undefined, true); const TunnelPrivacyEnabledContextKey = new RawContextKey('tunnelPrivacyEnabled', false, true); const TunnelProtocolContextKey = new RawContextKey('tunnelProtocol', TunnelProtocol.Http, true); @@ -1778,7 +1778,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelLocalAddressInline, ({ isForwardedOrDetectedExpr) })); -export const portWithRunningProcessForeground = registerColor('ports.iconRunningProcessForeground', { +const portWithRunningProcessForeground = registerColor('ports.iconRunningProcessForeground', { light: STATUS_BAR_HOST_NAME_BACKGROUND, dark: STATUS_BAR_HOST_NAME_BACKGROUND, hcDark: STATUS_BAR_HOST_NAME_BACKGROUND,