Skip to content

Commit dfd849b

Browse files
committed
Remove unused types from monaco.d.ts
1 parent 19587ff commit dfd849b

5 files changed

Lines changed: 39 additions & 247 deletions

File tree

build/monaco/monaco.d.ts.recipe

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export interface ICommandHandler {
6262
#includeAll(vs/editor/common/editorCommon;editorOptions.=>): IScrollEvent
6363
#includeAll(vs/editor/common/model/textModelEvents):
6464
#includeAll(vs/editor/common/controller/cursorEvents):
65-
#include(vs/platform/accessibility/common/accessibility): AccessibilitySupport
6665
#includeAll(vs/editor/common/config/editorOptions):
6766
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>;editorOptions.=>):
6867
#include(vs/editor/common/config/fontInfo): FontInfo, BareFontInfo

src/vs/editor/common/config/editorOptions.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ class EditorAccessibilitySupport extends BaseEditorOption<EditorOption.accessibi
990990

991991
/**
992992
* The kind of animation in which the editor's cursor should be rendered.
993+
* @internal
993994
*/
994995
export const enum TextEditorCursorBlinkingStyle {
995996
/**
@@ -1034,6 +1035,7 @@ function _cursorBlinkingStyleFromString(cursorBlinkingStyle: 'blink' | 'smooth'
10341035

10351036
/**
10361037
* The style in which the editor's cursor should be rendered.
1038+
* @internal
10371039
*/
10381040
export enum TextEditorCursorStyle {
10391041
/**
@@ -1159,6 +1161,9 @@ export interface IEditorFindOptions {
11591161
globalFindClipboard?: boolean;
11601162
}
11611163

1164+
/**
1165+
* @internal
1166+
*/
11621167
export type EditorFindOptions = Readonly<Required<IEditorFindOptions>>;
11631168

11641169
class EditorFind extends BaseEditorOption<EditorOption.find, EditorFindOptions> {
@@ -1346,6 +1351,9 @@ export interface IGotoLocationOptions {
13461351
alternativeReferenceCommand?: string;
13471352
}
13481353

1354+
/**
1355+
* @internal
1356+
*/
13491357
export type GoToLocationOptions = Readonly<Required<IGotoLocationOptions>>;
13501358

13511359
class EditorGoToLocation extends BaseEditorOption<EditorOption.gotoLocation, GoToLocationOptions> {
@@ -1475,6 +1483,9 @@ export interface IEditorHoverOptions {
14751483
sticky?: boolean;
14761484
}
14771485

1486+
/**
1487+
* @internal
1488+
*/
14781489
export type EditorHoverOptions = Readonly<Required<IEditorHoverOptions>>;
14791490

14801491
class EditorHover extends BaseEditorOption<EditorOption.hover, EditorHoverOptions> {
@@ -1851,6 +1862,9 @@ export interface IEditorLightbulbOptions {
18511862
enabled?: boolean;
18521863
}
18531864

1865+
/**
1866+
* @internal
1867+
*/
18541868
export type EditorLightbulbOptions = Readonly<Required<IEditorLightbulbOptions>>;
18551869

18561870
class EditorLightbulb extends BaseEditorOption<EditorOption.lightbulb, EditorLightbulbOptions> {
@@ -1942,6 +1956,9 @@ export interface IEditorMinimapOptions {
19421956
scale?: number;
19431957
}
19441958

1959+
/**
1960+
* @internal
1961+
*/
19451962
export type EditorMinimapOptions = Readonly<Required<IEditorMinimapOptions>>;
19461963

19471964
class EditorMinimap extends BaseEditorOption<EditorOption.minimap, EditorMinimapOptions> {
@@ -2043,6 +2060,9 @@ export interface IEditorParameterHintOptions {
20432060
cycle?: boolean;
20442061
}
20452062

2063+
/**
2064+
* @internal
2065+
*/
20462066
export type InternalParameterHintOptions = Readonly<Required<IEditorParameterHintOptions>>;
20472067

20482068
class EditorParameterHints extends BaseEditorOption<EditorOption.parameterHints, InternalParameterHintOptions> {
@@ -2109,6 +2129,9 @@ export interface IQuickSuggestionsOptions {
21092129
strings: boolean;
21102130
}
21112131

2132+
/**
2133+
* @internal
2134+
*/
21122135
export type ValidQuickSuggestionsOptions = boolean | Readonly<Required<IQuickSuggestionsOptions>>;
21132136

21142137
class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggestions, ValidQuickSuggestionsOptions> {
@@ -2185,6 +2208,9 @@ class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggesti
21852208

21862209
export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
21872210

2211+
/**
2212+
* @internal
2213+
*/
21882214
export const enum RenderLineNumbersType {
21892215
Off = 0,
21902216
On = 1,
@@ -2193,6 +2219,9 @@ export const enum RenderLineNumbersType {
21932219
Custom = 4
21942220
}
21952221

2222+
/**
2223+
* @internal
2224+
*/
21962225
export interface InternalEditorRenderLineNumbersOptions {
21972226
readonly renderType: RenderLineNumbersType;
21982227
readonly renderFn: ((lineNumber: number) => string) | null;
@@ -2348,6 +2377,9 @@ export interface IEditorScrollbarOptions {
23482377
horizontalSliderSize?: number;
23492378
}
23502379

2380+
/**
2381+
* @internal
2382+
*/
23512383
export interface InternalEditorScrollbarOptions {
23522384
readonly arrowSize: number;
23532385
readonly vertical: ScrollbarVisibility;
@@ -2562,6 +2594,9 @@ export interface ISuggestOptions {
25622594
showSnippets?: boolean;
25632595
}
25642596

2597+
/**
2598+
* @internal
2599+
*/
25652600
export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>;
25662601

25672602
class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSuggestOptions> {
@@ -2855,6 +2890,7 @@ class EditorTabFocusMode extends ComputedEditorOption<EditorOption.tabFocusMode,
28552890

28562891
/**
28572892
* Describes how to indent wrapped lines.
2893+
* @internal
28582894
*/
28592895
export const enum WrappingIndent {
28602896
/**
@@ -2888,6 +2924,9 @@ function _wrappingIndentFromString(wrappingIndent: 'none' | 'same' | 'indent' |
28882924

28892925
//#region wrappingInfo
28902926

2927+
/**
2928+
* @internal
2929+
*/
28912930
export interface EditorWrappingInfo {
28922931
readonly isDominatedByLongLines: boolean;
28932932
readonly isWordWrapMinified: boolean;

src/vs/editor/common/standalone/standaloneEnums.ts

Lines changed: 0 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -333,111 +333,12 @@ export enum CursorChangeReason {
333333
Redo = 6
334334
}
335335

336-
export enum AccessibilitySupport {
337-
/**
338-
* This should be the browser case where it is not known if a screen reader is attached or no.
339-
*/
340-
Unknown = 0,
341-
Disabled = 1,
342-
Enabled = 2
343-
}
344-
345-
/**
346-
* The kind of animation in which the editor's cursor should be rendered.
347-
*/
348-
export enum TextEditorCursorBlinkingStyle {
349-
/**
350-
* Hidden
351-
*/
352-
Hidden = 0,
353-
/**
354-
* Blinking
355-
*/
356-
Blink = 1,
357-
/**
358-
* Blinking with smooth fading
359-
*/
360-
Smooth = 2,
361-
/**
362-
* Blinking with prolonged filled state and smooth fading
363-
*/
364-
Phase = 3,
365-
/**
366-
* Expand collapse animation on the y axis
367-
*/
368-
Expand = 4,
369-
/**
370-
* No-Blinking
371-
*/
372-
Solid = 5
373-
}
374-
375-
/**
376-
* The style in which the editor's cursor should be rendered.
377-
*/
378-
export enum TextEditorCursorStyle {
379-
/**
380-
* As a vertical line (sitting between two characters).
381-
*/
382-
Line = 1,
383-
/**
384-
* As a block (sitting on top of a character).
385-
*/
386-
Block = 2,
387-
/**
388-
* As a horizontal line (sitting under a character).
389-
*/
390-
Underline = 3,
391-
/**
392-
* As a thin vertical line (sitting between two characters).
393-
*/
394-
LineThin = 4,
395-
/**
396-
* As an outlined block (sitting on top of a character).
397-
*/
398-
BlockOutline = 5,
399-
/**
400-
* As a thin horizontal line (sitting under a character).
401-
*/
402-
UnderlineThin = 6
403-
}
404-
405336
export enum RenderMinimap {
406337
None = 0,
407338
Text = 1,
408339
Blocks = 2
409340
}
410341

411-
export enum RenderLineNumbersType {
412-
Off = 0,
413-
On = 1,
414-
Relative = 2,
415-
Interval = 3,
416-
Custom = 4
417-
}
418-
419-
/**
420-
* Describes how to indent wrapped lines.
421-
*/
422-
export enum WrappingIndent {
423-
/**
424-
* No indentation => wrapped lines begin at column 1.
425-
*/
426-
None = 0,
427-
/**
428-
* Same => wrapped lines get the same indentation as the parent.
429-
*/
430-
Same = 1,
431-
/**
432-
* Indent => wrapped lines get +1 indentation toward the parent.
433-
*/
434-
Indent = 2,
435-
/**
436-
* DeepIndent => wrapped lines get +2 indentation toward the parent.
437-
*/
438-
DeepIndent = 3
439-
}
440-
441342
/**
442343
* A positioning preference for rendering content widgets.
443344
*/

src/vs/editor/standalone/browser/standaloneEditor.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,7 @@ export function createMonacoEditorAPI(): typeof monaco.editor {
346346
remeasureFonts: remeasureFonts,
347347

348348
// enums
349-
AccessibilitySupport: standaloneEnums.AccessibilitySupport,
350349
ScrollbarVisibility: standaloneEnums.ScrollbarVisibility,
351-
WrappingIndent: standaloneEnums.WrappingIndent,
352350
OverviewRulerLane: standaloneEnums.OverviewRulerLane,
353351
MinimapPosition: standaloneEnums.MinimapPosition,
354352
EndOfLinePreference: standaloneEnums.EndOfLinePreference,
@@ -357,13 +355,10 @@ export function createMonacoEditorAPI(): typeof monaco.editor {
357355
TrackedRangeStickiness: standaloneEnums.TrackedRangeStickiness,
358356
CursorChangeReason: standaloneEnums.CursorChangeReason,
359357
MouseTargetType: standaloneEnums.MouseTargetType,
360-
TextEditorCursorStyle: standaloneEnums.TextEditorCursorStyle,
361-
TextEditorCursorBlinkingStyle: standaloneEnums.TextEditorCursorBlinkingStyle,
362358
ContentWidgetPositionPreference: standaloneEnums.ContentWidgetPositionPreference,
363359
OverlayWidgetPositionPreference: standaloneEnums.OverlayWidgetPositionPreference,
364360
RenderMinimap: standaloneEnums.RenderMinimap,
365361
ScrollType: standaloneEnums.ScrollType,
366-
RenderLineNumbersType: standaloneEnums.RenderLineNumbersType,
367362

368363
// classes
369364
ConfigurationChangedEvent: <any>ConfigurationChangedEvent,

0 commit comments

Comments
 (0)