Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove exports of unused types #164943

Merged
merged 1 commit into from Oct 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vs/base/common/dataTransfer.ts
Expand Up @@ -6,7 +6,7 @@
import { URI } from 'vs/base/common/uri';
import { generateUuid } from 'vs/base/common/uuid';

export interface IDataTransferFile {
interface IDataTransferFile {
readonly name: string;
readonly uri?: URI;
data(): Promise<Uint8Array>;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/browser/dnd.ts
Expand Up @@ -28,7 +28,7 @@ export function toVSDataTransfer(dataTransfer: DataTransfer) {
return vsDataTransfer;
}

export function createFileDataTransferItemFromFile(file: File): IDataTransferItem {
function createFileDataTransferItemFromFile(file: File): IDataTransferItem {
const uri = (file as FileAdditionalNativeProperties).path ? URI.parse((file as FileAdditionalNativeProperties).path!) : undefined;
return createFileDataTransferItem(file.name, uri, async () => {
return new Uint8Array(await file.arrayBuffer());
Expand Down
Expand Up @@ -10,7 +10,7 @@ import { codeActionCommandId, fixAllCommandId, organizeImportsCommandId, refacto
import { CodeActionAutoApply, CodeActionCommandArgs, CodeActionKind } from 'vs/editor/contrib/codeAction/common/types';
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';

export interface ResolveCodeActionKeybinding {
interface ResolveCodeActionKeybinding {
readonly kind: CodeActionKind;
readonly preferred: boolean;
readonly resolvedKeybinding: ResolvedKeybinding;
Expand Down
Expand Up @@ -24,7 +24,7 @@ import { CodeActionSet, CodeActionTrigger, CodeActionTriggerSource } from '../co

export const SUPPORTED_CODE_ACTIONS = new RawContextKey<string>('supportedCodeAction', '');

export type TriggeredCodeAction = undefined | {
type TriggeredCodeAction = undefined | {
readonly selection: Selection;
readonly trigger: CodeActionTrigger;
readonly position: Position;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/actions/common/actions.ts
Expand Up @@ -244,7 +244,7 @@ export interface IMenuService {
resetHiddenStates(menuIds: readonly MenuId[] | undefined): void;
}

export type ICommandsMap = Map<string, ICommandAction>;
type ICommandsMap = Map<string, ICommandAction>;

export interface IMenuRegistryChangeEvent {
has(id: MenuId): boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/dnd/browser/dnd.ts
Expand Up @@ -315,7 +315,7 @@ export interface IDragAndDropContributionRegistry {
getAll(): IterableIterator<IDragAndDropContribution>;
}

export interface IDragAndDropContribution {
interface IDragAndDropContribution {
readonly dataFormatKey: string;
getEditorInputs(data: string): IDraggedResourceEditorInput[];
setData(resources: IResourceStat[], event: DragMouseEvent | DragEvent): void;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/extensions/common/extensions.ts
Expand Up @@ -96,7 +96,7 @@ export interface IColor {
defaults: { light: string; dark: string; highContrast: string };
}

export interface IWebviewEditor {
interface IWebviewEditor {
readonly viewType: string;
readonly priority: string;
readonly selector: readonly {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostWebview.ts
Expand Up @@ -259,7 +259,7 @@ export function serializeWebviewOptions(
};
}

export function reviveOptions(options: extHostProtocol.IWebviewContentOptions): vscode.WebviewOptions {
function reviveOptions(options: extHostProtocol.IWebviewContentOptions): vscode.WebviewOptions {
return {
enableCommandUris: options.enableCommandUris,
enableScripts: options.enableScripts,
Expand Down
Expand Up @@ -7,7 +7,7 @@ import * as nls from 'vs/nls';
import { IConfigurationPropertySchema } from 'vs/platform/configuration/common/configurationRegistry';
import { languagesExtPoint } from 'vs/workbench/services/language/common/languageService';

export enum CodeActionExtensionPointFields {
enum CodeActionExtensionPointFields {
languages = 'languages',
actions = 'actions',
kind = 'kind',
Expand Down
Expand Up @@ -7,13 +7,13 @@ import * as nls from 'vs/nls';
import { IConfigurationPropertySchema } from 'vs/platform/configuration/common/configurationRegistry';
import { languagesExtPoint } from 'vs/workbench/services/language/common/languageService';

export enum DocumentationExtensionPointFields {
enum DocumentationExtensionPointFields {
when = 'when',
title = 'title',
command = 'command',
}

export interface RefactoringDocumentationExtensionPoint {
interface RefactoringDocumentationExtensionPoint {
readonly [DocumentationExtensionPointFields.title]: string;
readonly [DocumentationExtensionPointFields.when]: string;
readonly [DocumentationExtensionPointFields.command]: string;
Expand Down
Expand Up @@ -24,7 +24,7 @@ import { IWebviewService, IOverlayWebview } from 'vs/workbench/contrib/webview/b
import { IWebviewWorkbenchService, LazilyResolvedWebviewEditorInput } from 'vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService';
import { IUntitledTextEditorService } from 'vs/workbench/services/untitled/common/untitledTextEditorService';

export interface CustomEditorInputInitInfo {
interface CustomEditorInputInitInfo {
readonly resource: URI;
readonly viewType: string;
readonly id: string;
Expand Down
Expand Up @@ -47,7 +47,7 @@ const NotebookPreloadContribution = Object.freeze({
entrypoint: 'entrypoint',
});

export interface INotebookPreloadContribution {
interface INotebookPreloadContribution {
readonly [NotebookPreloadContribution.type]: string;
readonly [NotebookPreloadContribution.entrypoint]: string;
}
Expand Down
Expand Up @@ -125,7 +125,7 @@ export class ReloadWebviewAction extends Action2 {
}
}

export function getActiveWebviewEditor(accessor: ServicesAccessor): IWebview | undefined {
function getActiveWebviewEditor(accessor: ServicesAccessor): IWebview | undefined {
const editorService = accessor.get(IEditorService);
const activeEditor = editorService.activeEditor;
return activeEditor instanceof WebviewInput ? activeEditor.webview : undefined;
Expand Down
Expand Up @@ -100,7 +100,7 @@ export interface IWebviewWorkbenchService {
/**
* Handles filling in the content of webview before it can be shown to the user.
*/
export interface WebviewResolver {
interface WebviewResolver {
/**
* Returns true if the resolver can resolve the given webview.
*/
Expand Down
Expand Up @@ -61,7 +61,7 @@ export interface WebviewView {
/**
* Fill in the contents of a newly created webview view.
*/
export interface IWebviewViewResolver {
interface IWebviewViewResolver {
/**
* Fill in the contents of a webview view.
*/
Expand Down