Skip to content

Commit

Permalink
Remove exports of unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Oct 28, 2022
1 parent 12ada73 commit 8d61a32
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/vs/base/common/dataTransfer.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 8d61a32

Please sign in to comment.