未验证 提交 dfd849b9 编写于 作者: A Alex Dima

Remove unused types from monaco.d.ts

上级 19587ff1
...@@ -62,7 +62,6 @@ export interface ICommandHandler { ...@@ -62,7 +62,6 @@ export interface ICommandHandler {
#includeAll(vs/editor/common/editorCommon;editorOptions.=>): IScrollEvent #includeAll(vs/editor/common/editorCommon;editorOptions.=>): IScrollEvent
#includeAll(vs/editor/common/model/textModelEvents): #includeAll(vs/editor/common/model/textModelEvents):
#includeAll(vs/editor/common/controller/cursorEvents): #includeAll(vs/editor/common/controller/cursorEvents):
#include(vs/platform/accessibility/common/accessibility): AccessibilitySupport
#includeAll(vs/editor/common/config/editorOptions): #includeAll(vs/editor/common/config/editorOptions):
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>;editorOptions.=>): #includeAll(vs/editor/browser/editorBrowser;editorCommon.=>;editorOptions.=>):
#include(vs/editor/common/config/fontInfo): FontInfo, BareFontInfo #include(vs/editor/common/config/fontInfo): FontInfo, BareFontInfo
......
...@@ -990,6 +990,7 @@ class EditorAccessibilitySupport extends BaseEditorOption<EditorOption.accessibi ...@@ -990,6 +990,7 @@ class EditorAccessibilitySupport extends BaseEditorOption<EditorOption.accessibi
/** /**
* The kind of animation in which the editor's cursor should be rendered. * The kind of animation in which the editor's cursor should be rendered.
* @internal
*/ */
export const enum TextEditorCursorBlinkingStyle { export const enum TextEditorCursorBlinkingStyle {
/** /**
...@@ -1034,6 +1035,7 @@ function _cursorBlinkingStyleFromString(cursorBlinkingStyle: 'blink' | 'smooth' ...@@ -1034,6 +1035,7 @@ function _cursorBlinkingStyleFromString(cursorBlinkingStyle: 'blink' | 'smooth'
/** /**
* The style in which the editor's cursor should be rendered. * The style in which the editor's cursor should be rendered.
* @internal
*/ */
export enum TextEditorCursorStyle { export enum TextEditorCursorStyle {
/** /**
...@@ -1159,6 +1161,9 @@ export interface IEditorFindOptions { ...@@ -1159,6 +1161,9 @@ export interface IEditorFindOptions {
globalFindClipboard?: boolean; globalFindClipboard?: boolean;
} }
/**
* @internal
*/
export type EditorFindOptions = Readonly<Required<IEditorFindOptions>>; export type EditorFindOptions = Readonly<Required<IEditorFindOptions>>;
class EditorFind extends BaseEditorOption<EditorOption.find, EditorFindOptions> { class EditorFind extends BaseEditorOption<EditorOption.find, EditorFindOptions> {
...@@ -1346,6 +1351,9 @@ export interface IGotoLocationOptions { ...@@ -1346,6 +1351,9 @@ export interface IGotoLocationOptions {
alternativeReferenceCommand?: string; alternativeReferenceCommand?: string;
} }
/**
* @internal
*/
export type GoToLocationOptions = Readonly<Required<IGotoLocationOptions>>; export type GoToLocationOptions = Readonly<Required<IGotoLocationOptions>>;
class EditorGoToLocation extends BaseEditorOption<EditorOption.gotoLocation, GoToLocationOptions> { class EditorGoToLocation extends BaseEditorOption<EditorOption.gotoLocation, GoToLocationOptions> {
...@@ -1475,6 +1483,9 @@ export interface IEditorHoverOptions { ...@@ -1475,6 +1483,9 @@ export interface IEditorHoverOptions {
sticky?: boolean; sticky?: boolean;
} }
/**
* @internal
*/
export type EditorHoverOptions = Readonly<Required<IEditorHoverOptions>>; export type EditorHoverOptions = Readonly<Required<IEditorHoverOptions>>;
class EditorHover extends BaseEditorOption<EditorOption.hover, EditorHoverOptions> { class EditorHover extends BaseEditorOption<EditorOption.hover, EditorHoverOptions> {
...@@ -1851,6 +1862,9 @@ export interface IEditorLightbulbOptions { ...@@ -1851,6 +1862,9 @@ export interface IEditorLightbulbOptions {
enabled?: boolean; enabled?: boolean;
} }
/**
* @internal
*/
export type EditorLightbulbOptions = Readonly<Required<IEditorLightbulbOptions>>; export type EditorLightbulbOptions = Readonly<Required<IEditorLightbulbOptions>>;
class EditorLightbulb extends BaseEditorOption<EditorOption.lightbulb, EditorLightbulbOptions> { class EditorLightbulb extends BaseEditorOption<EditorOption.lightbulb, EditorLightbulbOptions> {
...@@ -1942,6 +1956,9 @@ export interface IEditorMinimapOptions { ...@@ -1942,6 +1956,9 @@ export interface IEditorMinimapOptions {
scale?: number; scale?: number;
} }
/**
* @internal
*/
export type EditorMinimapOptions = Readonly<Required<IEditorMinimapOptions>>; export type EditorMinimapOptions = Readonly<Required<IEditorMinimapOptions>>;
class EditorMinimap extends BaseEditorOption<EditorOption.minimap, EditorMinimapOptions> { class EditorMinimap extends BaseEditorOption<EditorOption.minimap, EditorMinimapOptions> {
...@@ -2043,6 +2060,9 @@ export interface IEditorParameterHintOptions { ...@@ -2043,6 +2060,9 @@ export interface IEditorParameterHintOptions {
cycle?: boolean; cycle?: boolean;
} }
/**
* @internal
*/
export type InternalParameterHintOptions = Readonly<Required<IEditorParameterHintOptions>>; export type InternalParameterHintOptions = Readonly<Required<IEditorParameterHintOptions>>;
class EditorParameterHints extends BaseEditorOption<EditorOption.parameterHints, InternalParameterHintOptions> { class EditorParameterHints extends BaseEditorOption<EditorOption.parameterHints, InternalParameterHintOptions> {
...@@ -2109,6 +2129,9 @@ export interface IQuickSuggestionsOptions { ...@@ -2109,6 +2129,9 @@ export interface IQuickSuggestionsOptions {
strings: boolean; strings: boolean;
} }
/**
* @internal
*/
export type ValidQuickSuggestionsOptions = boolean | Readonly<Required<IQuickSuggestionsOptions>>; export type ValidQuickSuggestionsOptions = boolean | Readonly<Required<IQuickSuggestionsOptions>>;
class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggestions, ValidQuickSuggestionsOptions> { class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggestions, ValidQuickSuggestionsOptions> {
...@@ -2185,6 +2208,9 @@ class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggesti ...@@ -2185,6 +2208,9 @@ class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggesti
export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string); export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
/**
* @internal
*/
export const enum RenderLineNumbersType { export const enum RenderLineNumbersType {
Off = 0, Off = 0,
On = 1, On = 1,
...@@ -2193,6 +2219,9 @@ export const enum RenderLineNumbersType { ...@@ -2193,6 +2219,9 @@ export const enum RenderLineNumbersType {
Custom = 4 Custom = 4
} }
/**
* @internal
*/
export interface InternalEditorRenderLineNumbersOptions { export interface InternalEditorRenderLineNumbersOptions {
readonly renderType: RenderLineNumbersType; readonly renderType: RenderLineNumbersType;
readonly renderFn: ((lineNumber: number) => string) | null; readonly renderFn: ((lineNumber: number) => string) | null;
...@@ -2348,6 +2377,9 @@ export interface IEditorScrollbarOptions { ...@@ -2348,6 +2377,9 @@ export interface IEditorScrollbarOptions {
horizontalSliderSize?: number; horizontalSliderSize?: number;
} }
/**
* @internal
*/
export interface InternalEditorScrollbarOptions { export interface InternalEditorScrollbarOptions {
readonly arrowSize: number; readonly arrowSize: number;
readonly vertical: ScrollbarVisibility; readonly vertical: ScrollbarVisibility;
...@@ -2562,6 +2594,9 @@ export interface ISuggestOptions { ...@@ -2562,6 +2594,9 @@ export interface ISuggestOptions {
showSnippets?: boolean; showSnippets?: boolean;
} }
/**
* @internal
*/
export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>; export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>;
class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSuggestOptions> { class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSuggestOptions> {
...@@ -2855,6 +2890,7 @@ class EditorTabFocusMode extends ComputedEditorOption<EditorOption.tabFocusMode, ...@@ -2855,6 +2890,7 @@ class EditorTabFocusMode extends ComputedEditorOption<EditorOption.tabFocusMode,
/** /**
* Describes how to indent wrapped lines. * Describes how to indent wrapped lines.
* @internal
*/ */
export const enum WrappingIndent { export const enum WrappingIndent {
/** /**
...@@ -2888,6 +2924,9 @@ function _wrappingIndentFromString(wrappingIndent: 'none' | 'same' | 'indent' | ...@@ -2888,6 +2924,9 @@ function _wrappingIndentFromString(wrappingIndent: 'none' | 'same' | 'indent' |
//#region wrappingInfo //#region wrappingInfo
/**
* @internal
*/
export interface EditorWrappingInfo { export interface EditorWrappingInfo {
readonly isDominatedByLongLines: boolean; readonly isDominatedByLongLines: boolean;
readonly isWordWrapMinified: boolean; readonly isWordWrapMinified: boolean;
......
...@@ -333,111 +333,12 @@ export enum CursorChangeReason { ...@@ -333,111 +333,12 @@ export enum CursorChangeReason {
Redo = 6 Redo = 6
} }
export enum AccessibilitySupport {
/**
* This should be the browser case where it is not known if a screen reader is attached or no.
*/
Unknown = 0,
Disabled = 1,
Enabled = 2
}
/**
* The kind of animation in which the editor's cursor should be rendered.
*/
export enum TextEditorCursorBlinkingStyle {
/**
* Hidden
*/
Hidden = 0,
/**
* Blinking
*/
Blink = 1,
/**
* Blinking with smooth fading
*/
Smooth = 2,
/**
* Blinking with prolonged filled state and smooth fading
*/
Phase = 3,
/**
* Expand collapse animation on the y axis
*/
Expand = 4,
/**
* No-Blinking
*/
Solid = 5
}
/**
* The style in which the editor's cursor should be rendered.
*/
export enum TextEditorCursorStyle {
/**
* As a vertical line (sitting between two characters).
*/
Line = 1,
/**
* As a block (sitting on top of a character).
*/
Block = 2,
/**
* As a horizontal line (sitting under a character).
*/
Underline = 3,
/**
* As a thin vertical line (sitting between two characters).
*/
LineThin = 4,
/**
* As an outlined block (sitting on top of a character).
*/
BlockOutline = 5,
/**
* As a thin horizontal line (sitting under a character).
*/
UnderlineThin = 6
}
export enum RenderMinimap { export enum RenderMinimap {
None = 0, None = 0,
Text = 1, Text = 1,
Blocks = 2 Blocks = 2
} }
export enum RenderLineNumbersType {
Off = 0,
On = 1,
Relative = 2,
Interval = 3,
Custom = 4
}
/**
* Describes how to indent wrapped lines.
*/
export enum WrappingIndent {
/**
* No indentation => wrapped lines begin at column 1.
*/
None = 0,
/**
* Same => wrapped lines get the same indentation as the parent.
*/
Same = 1,
/**
* Indent => wrapped lines get +1 indentation toward the parent.
*/
Indent = 2,
/**
* DeepIndent => wrapped lines get +2 indentation toward the parent.
*/
DeepIndent = 3
}
/** /**
* A positioning preference for rendering content widgets. * A positioning preference for rendering content widgets.
*/ */
......
...@@ -346,9 +346,7 @@ export function createMonacoEditorAPI(): typeof monaco.editor { ...@@ -346,9 +346,7 @@ export function createMonacoEditorAPI(): typeof monaco.editor {
remeasureFonts: remeasureFonts, remeasureFonts: remeasureFonts,
// enums // enums
AccessibilitySupport: standaloneEnums.AccessibilitySupport,
ScrollbarVisibility: standaloneEnums.ScrollbarVisibility, ScrollbarVisibility: standaloneEnums.ScrollbarVisibility,
WrappingIndent: standaloneEnums.WrappingIndent,
OverviewRulerLane: standaloneEnums.OverviewRulerLane, OverviewRulerLane: standaloneEnums.OverviewRulerLane,
MinimapPosition: standaloneEnums.MinimapPosition, MinimapPosition: standaloneEnums.MinimapPosition,
EndOfLinePreference: standaloneEnums.EndOfLinePreference, EndOfLinePreference: standaloneEnums.EndOfLinePreference,
...@@ -357,13 +355,10 @@ export function createMonacoEditorAPI(): typeof monaco.editor { ...@@ -357,13 +355,10 @@ export function createMonacoEditorAPI(): typeof monaco.editor {
TrackedRangeStickiness: standaloneEnums.TrackedRangeStickiness, TrackedRangeStickiness: standaloneEnums.TrackedRangeStickiness,
CursorChangeReason: standaloneEnums.CursorChangeReason, CursorChangeReason: standaloneEnums.CursorChangeReason,
MouseTargetType: standaloneEnums.MouseTargetType, MouseTargetType: standaloneEnums.MouseTargetType,
TextEditorCursorStyle: standaloneEnums.TextEditorCursorStyle,
TextEditorCursorBlinkingStyle: standaloneEnums.TextEditorCursorBlinkingStyle,
ContentWidgetPositionPreference: standaloneEnums.ContentWidgetPositionPreference, ContentWidgetPositionPreference: standaloneEnums.ContentWidgetPositionPreference,
OverlayWidgetPositionPreference: standaloneEnums.OverlayWidgetPositionPreference, OverlayWidgetPositionPreference: standaloneEnums.OverlayWidgetPositionPreference,
RenderMinimap: standaloneEnums.RenderMinimap, RenderMinimap: standaloneEnums.RenderMinimap,
ScrollType: standaloneEnums.ScrollType, ScrollType: standaloneEnums.ScrollType,
RenderLineNumbersType: standaloneEnums.RenderLineNumbersType,
// classes // classes
ConfigurationChangedEvent: <any>ConfigurationChangedEvent, ConfigurationChangedEvent: <any>ConfigurationChangedEvent,
......
...@@ -2419,15 +2419,6 @@ declare namespace monaco.editor { ...@@ -2419,15 +2419,6 @@ declare namespace monaco.editor {
readonly reason: CursorChangeReason; readonly reason: CursorChangeReason;
} }
export enum AccessibilitySupport {
/**
* This should be the browser case where it is not known if a screen reader is attached or no.
*/
Unknown = 0,
Disabled = 1,
Enabled = 2
}
/** /**
* Configuration options for auto closing quotes and brackets * Configuration options for auto closing quotes and brackets
*/ */
...@@ -2988,66 +2979,6 @@ declare namespace monaco.editor { ...@@ -2988,66 +2979,6 @@ declare namespace monaco.editor {
export class ConfigurationChangedEvent { export class ConfigurationChangedEvent {
} }
/**
* The kind of animation in which the editor's cursor should be rendered.
*/
export enum TextEditorCursorBlinkingStyle {
/**
* Hidden
*/
Hidden = 0,
/**
* Blinking
*/
Blink = 1,
/**
* Blinking with smooth fading
*/
Smooth = 2,
/**
* Blinking with prolonged filled state and smooth fading
*/
Phase = 3,
/**
* Expand collapse animation on the y axis
*/
Expand = 4,
/**
* No-Blinking
*/
Solid = 5
}
/**
* The style in which the editor's cursor should be rendered.
*/
export enum TextEditorCursorStyle {
/**
* As a vertical line (sitting between two characters).
*/
Line = 1,
/**
* As a block (sitting on top of a character).
*/
Block = 2,
/**
* As a horizontal line (sitting under a character).
*/
Underline = 3,
/**
* As a thin vertical line (sitting between two characters).
*/
LineThin = 4,
/**
* As an outlined block (sitting on top of a character).
*/
BlockOutline = 5,
/**
* As a thin horizontal line (sitting under a character).
*/
UnderlineThin = 6
}
/** /**
* Configuration options for editor find widget * Configuration options for editor find widget
*/ */
...@@ -3063,8 +2994,6 @@ declare namespace monaco.editor { ...@@ -3063,8 +2994,6 @@ declare namespace monaco.editor {
addExtraSpaceOnTop?: boolean; addExtraSpaceOnTop?: boolean;
} }
export type EditorFindOptions = Readonly<Required<IEditorFindOptions>>;
export type GoToLocationValues = 'peek' | 'gotoAndPeek' | 'goto'; export type GoToLocationValues = 'peek' | 'gotoAndPeek' | 'goto';
/** /**
...@@ -3084,8 +3013,6 @@ declare namespace monaco.editor { ...@@ -3084,8 +3013,6 @@ declare namespace monaco.editor {
alternativeReferenceCommand?: string; alternativeReferenceCommand?: string;
} }
export type GoToLocationOptions = Readonly<Required<IGotoLocationOptions>>;
/** /**
* Configuration options for editor hover * Configuration options for editor hover
*/ */
...@@ -3107,8 +3034,6 @@ declare namespace monaco.editor { ...@@ -3107,8 +3034,6 @@ declare namespace monaco.editor {
sticky?: boolean; sticky?: boolean;
} }
export type EditorHoverOptions = Readonly<Required<IEditorHoverOptions>>;
/** /**
* A description for the overview ruler position. * A description for the overview ruler position.
*/ */
...@@ -3238,8 +3163,6 @@ declare namespace monaco.editor { ...@@ -3238,8 +3163,6 @@ declare namespace monaco.editor {
enabled?: boolean; enabled?: boolean;
} }
export type EditorLightbulbOptions = Readonly<Required<IEditorLightbulbOptions>>;
/** /**
* Configuration options for editor minimap * Configuration options for editor minimap
*/ */
...@@ -3275,8 +3198,6 @@ declare namespace monaco.editor { ...@@ -3275,8 +3198,6 @@ declare namespace monaco.editor {
scale?: number; scale?: number;
} }
export type EditorMinimapOptions = Readonly<Required<IEditorMinimapOptions>>;
/** /**
* Configuration options for parameter hints * Configuration options for parameter hints
*/ */
...@@ -3293,8 +3214,6 @@ declare namespace monaco.editor { ...@@ -3293,8 +3214,6 @@ declare namespace monaco.editor {
cycle?: boolean; cycle?: boolean;
} }
export type InternalParameterHintOptions = Readonly<Required<IEditorParameterHintOptions>>;
/** /**
* Configuration options for quick suggestions * Configuration options for quick suggestions
*/ */
...@@ -3304,23 +3223,8 @@ declare namespace monaco.editor { ...@@ -3304,23 +3223,8 @@ declare namespace monaco.editor {
strings: boolean; strings: boolean;
} }
export type ValidQuickSuggestionsOptions = boolean | Readonly<Required<IQuickSuggestionsOptions>>;
export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string); export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
export enum RenderLineNumbersType {
Off = 0,
On = 1,
Relative = 2,
Interval = 3,
Custom = 4
}
export interface InternalEditorRenderLineNumbersOptions {
readonly renderType: RenderLineNumbersType;
readonly renderFn: ((lineNumber: number) => string) | null;
}
/** /**
* Configuration options for editor scrollbars * Configuration options for editor scrollbars
*/ */
...@@ -3387,21 +3291,6 @@ declare namespace monaco.editor { ...@@ -3387,21 +3291,6 @@ declare namespace monaco.editor {
horizontalSliderSize?: number; horizontalSliderSize?: number;
} }
export interface InternalEditorScrollbarOptions {
readonly arrowSize: number;
readonly vertical: ScrollbarVisibility;
readonly horizontal: ScrollbarVisibility;
readonly useShadows: boolean;
readonly verticalHasArrows: boolean;
readonly horizontalHasArrows: boolean;
readonly handleMouseWheel: boolean;
readonly alwaysConsumeMouseWheel: boolean;
readonly horizontalScrollbarSize: number;
readonly horizontalSliderSize: number;
readonly verticalScrollbarSize: number;
readonly verticalSliderSize: number;
}
/** /**
* Configuration options for editor suggest widget * Configuration options for editor suggest widget
*/ */
...@@ -3540,37 +3429,6 @@ declare namespace monaco.editor { ...@@ -3540,37 +3429,6 @@ declare namespace monaco.editor {
showSnippets?: boolean; showSnippets?: boolean;
} }
export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>;
/**
* Describes how to indent wrapped lines.
*/
export enum WrappingIndent {
/**
* No indentation => wrapped lines begin at column 1.
*/
None = 0,
/**
* Same => wrapped lines get the same indentation as the parent.
*/
Same = 1,
/**
* Indent => wrapped lines get +1 indentation toward the parent.
*/
Indent = 2,
/**
* DeepIndent => wrapped lines get +2 indentation toward the parent.
*/
DeepIndent = 3
}
export interface EditorWrappingInfo {
readonly isDominatedByLongLines: boolean;
readonly isWordWrapMinified: boolean;
readonly isViewportWrapping: boolean;
readonly wrappingColumn: number;
}
/** /**
* A view zone is a full horizontal rectangle that 'pushes' text down. * A view zone is a full horizontal rectangle that 'pushes' text down.
* The editor reserves space for view zones when rendering. * The editor reserves space for view zones when rendering.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册