Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
dfd849b9
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
GitCode(gitcode.net)2024年7月9日维护升级公告
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
dfd849b9
编写于
12月 12, 2019
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unused types from monaco.d.ts
上级
19587ff1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
39 addition
and
247 deletion
+39
-247
build/monaco/monaco.d.ts.recipe
build/monaco/monaco.d.ts.recipe
+0
-1
src/vs/editor/common/config/editorOptions.ts
src/vs/editor/common/config/editorOptions.ts
+39
-0
src/vs/editor/common/standalone/standaloneEnums.ts
src/vs/editor/common/standalone/standaloneEnums.ts
+0
-99
src/vs/editor/standalone/browser/standaloneEditor.ts
src/vs/editor/standalone/browser/standaloneEditor.ts
+0
-5
src/vs/monaco.d.ts
src/vs/monaco.d.ts
+0
-142
未找到文件。
build/monaco/monaco.d.ts.recipe
浏览文件 @
dfd849b9
...
...
@@ -62,7 +62,6 @@ export interface ICommandHandler {
#includeAll(vs/editor/common/editorCommon;editorOptions.=>): IScrollEvent
#includeAll(vs/editor/common/model/textModelEvents):
#includeAll(vs/editor/common/controller/cursorEvents):
#include(vs/platform/accessibility/common/accessibility): AccessibilitySupport
#includeAll(vs/editor/common/config/editorOptions):
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>;editorOptions.=>):
#include(vs/editor/common/config/fontInfo): FontInfo, BareFontInfo
...
...
src/vs/editor/common/config/editorOptions.ts
浏览文件 @
dfd849b9
...
...
@@ -990,6 +990,7 @@ class EditorAccessibilitySupport extends BaseEditorOption<EditorOption.accessibi
/**
* The kind of animation in which the editor's cursor should be rendered.
* @internal
*/
export
const
enum
TextEditorCursorBlinkingStyle
{
/**
...
...
@@ -1034,6 +1035,7 @@ function _cursorBlinkingStyleFromString(cursorBlinkingStyle: 'blink' | 'smooth'
/**
* The style in which the editor's cursor should be rendered.
* @internal
*/
export
enum
TextEditorCursorStyle
{
/**
...
...
@@ -1159,6 +1161,9 @@ export interface IEditorFindOptions {
globalFindClipboard
?:
boolean
;
}
/**
* @internal
*/
export
type
EditorFindOptions
=
Readonly
<
Required
<
IEditorFindOptions
>>
;
class
EditorFind
extends
BaseEditorOption
<
EditorOption
.
find
,
EditorFindOptions
>
{
...
...
@@ -1346,6 +1351,9 @@ export interface IGotoLocationOptions {
alternativeReferenceCommand
?:
string
;
}
/**
* @internal
*/
export
type
GoToLocationOptions
=
Readonly
<
Required
<
IGotoLocationOptions
>>
;
class
EditorGoToLocation
extends
BaseEditorOption
<
EditorOption
.
gotoLocation
,
GoToLocationOptions
>
{
...
...
@@ -1475,6 +1483,9 @@ export interface IEditorHoverOptions {
sticky
?:
boolean
;
}
/**
* @internal
*/
export
type
EditorHoverOptions
=
Readonly
<
Required
<
IEditorHoverOptions
>>
;
class
EditorHover
extends
BaseEditorOption
<
EditorOption
.
hover
,
EditorHoverOptions
>
{
...
...
@@ -1851,6 +1862,9 @@ export interface IEditorLightbulbOptions {
enabled
?:
boolean
;
}
/**
* @internal
*/
export
type
EditorLightbulbOptions
=
Readonly
<
Required
<
IEditorLightbulbOptions
>>
;
class
EditorLightbulb
extends
BaseEditorOption
<
EditorOption
.
lightbulb
,
EditorLightbulbOptions
>
{
...
...
@@ -1942,6 +1956,9 @@ export interface IEditorMinimapOptions {
scale
?:
number
;
}
/**
* @internal
*/
export
type
EditorMinimapOptions
=
Readonly
<
Required
<
IEditorMinimapOptions
>>
;
class
EditorMinimap
extends
BaseEditorOption
<
EditorOption
.
minimap
,
EditorMinimapOptions
>
{
...
...
@@ -2043,6 +2060,9 @@ export interface IEditorParameterHintOptions {
cycle
?:
boolean
;
}
/**
* @internal
*/
export
type
InternalParameterHintOptions
=
Readonly
<
Required
<
IEditorParameterHintOptions
>>
;
class
EditorParameterHints
extends
BaseEditorOption
<
EditorOption
.
parameterHints
,
InternalParameterHintOptions
>
{
...
...
@@ -2109,6 +2129,9 @@ export interface IQuickSuggestionsOptions {
strings
:
boolean
;
}
/**
* @internal
*/
export
type
ValidQuickSuggestionsOptions
=
boolean
|
Readonly
<
Required
<
IQuickSuggestionsOptions
>>
;
class
EditorQuickSuggestions
extends
BaseEditorOption
<
EditorOption
.
quickSuggestions
,
ValidQuickSuggestionsOptions
>
{
...
...
@@ -2185,6 +2208,9 @@ class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggesti
export
type
LineNumbersType
=
'
on
'
|
'
off
'
|
'
relative
'
|
'
interval
'
|
((
lineNumber
:
number
)
=>
string
);
/**
* @internal
*/
export
const
enum
RenderLineNumbersType
{
Off
=
0
,
On
=
1
,
...
...
@@ -2193,6 +2219,9 @@ export const enum RenderLineNumbersType {
Custom
=
4
}
/**
* @internal
*/
export
interface
InternalEditorRenderLineNumbersOptions
{
readonly
renderType
:
RenderLineNumbersType
;
readonly
renderFn
:
((
lineNumber
:
number
)
=>
string
)
|
null
;
...
...
@@ -2348,6 +2377,9 @@ export interface IEditorScrollbarOptions {
horizontalSliderSize
?:
number
;
}
/**
* @internal
*/
export
interface
InternalEditorScrollbarOptions
{
readonly
arrowSize
:
number
;
readonly
vertical
:
ScrollbarVisibility
;
...
...
@@ -2562,6 +2594,9 @@ export interface ISuggestOptions {
showSnippets
?:
boolean
;
}
/**
* @internal
*/
export
type
InternalSuggestOptions
=
Readonly
<
Required
<
ISuggestOptions
>>
;
class
EditorSuggest
extends
BaseEditorOption
<
EditorOption
.
suggest
,
InternalSuggestOptions
>
{
...
...
@@ -2855,6 +2890,7 @@ class EditorTabFocusMode extends ComputedEditorOption<EditorOption.tabFocusMode,
/**
* Describes how to indent wrapped lines.
* @internal
*/
export
const
enum
WrappingIndent
{
/**
...
...
@@ -2888,6 +2924,9 @@ function _wrappingIndentFromString(wrappingIndent: 'none' | 'same' | 'indent' |
//#region wrappingInfo
/**
* @internal
*/
export
interface
EditorWrappingInfo
{
readonly
isDominatedByLongLines
:
boolean
;
readonly
isWordWrapMinified
:
boolean
;
...
...
src/vs/editor/common/standalone/standaloneEnums.ts
浏览文件 @
dfd849b9
...
...
@@ -333,111 +333,12 @@ export enum CursorChangeReason {
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
{
None
=
0
,
Text
=
1
,
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.
*/
...
...
src/vs/editor/standalone/browser/standaloneEditor.ts
浏览文件 @
dfd849b9
...
...
@@ -346,9 +346,7 @@ export function createMonacoEditorAPI(): typeof monaco.editor {
remeasureFonts
:
remeasureFonts
,
// enums
AccessibilitySupport
:
standaloneEnums
.
AccessibilitySupport
,
ScrollbarVisibility
:
standaloneEnums
.
ScrollbarVisibility
,
WrappingIndent
:
standaloneEnums
.
WrappingIndent
,
OverviewRulerLane
:
standaloneEnums
.
OverviewRulerLane
,
MinimapPosition
:
standaloneEnums
.
MinimapPosition
,
EndOfLinePreference
:
standaloneEnums
.
EndOfLinePreference
,
...
...
@@ -357,13 +355,10 @@ export function createMonacoEditorAPI(): typeof monaco.editor {
TrackedRangeStickiness
:
standaloneEnums
.
TrackedRangeStickiness
,
CursorChangeReason
:
standaloneEnums
.
CursorChangeReason
,
MouseTargetType
:
standaloneEnums
.
MouseTargetType
,
TextEditorCursorStyle
:
standaloneEnums
.
TextEditorCursorStyle
,
TextEditorCursorBlinkingStyle
:
standaloneEnums
.
TextEditorCursorBlinkingStyle
,
ContentWidgetPositionPreference
:
standaloneEnums
.
ContentWidgetPositionPreference
,
OverlayWidgetPositionPreference
:
standaloneEnums
.
OverlayWidgetPositionPreference
,
RenderMinimap
:
standaloneEnums
.
RenderMinimap
,
ScrollType
:
standaloneEnums
.
ScrollType
,
RenderLineNumbersType
:
standaloneEnums
.
RenderLineNumbersType
,
// classes
ConfigurationChangedEvent
:
<
any
>
ConfigurationChangedEvent
,
...
...
src/vs/monaco.d.ts
浏览文件 @
dfd849b9
...
...
@@ -2419,15 +2419,6 @@ declare namespace monaco.editor {
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
*/
...
...
@@ -2988,66 +2979,6 @@ declare namespace monaco.editor {
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
*/
...
...
@@ -3063,8 +2994,6 @@ declare namespace monaco.editor {
addExtraSpaceOnTop
?:
boolean
;
}
export
type
EditorFindOptions
=
Readonly
<
Required
<
IEditorFindOptions
>>
;
export
type
GoToLocationValues
=
'
peek
'
|
'
gotoAndPeek
'
|
'
goto
'
;
/**
...
...
@@ -3084,8 +3013,6 @@ declare namespace monaco.editor {
alternativeReferenceCommand
?:
string
;
}
export
type
GoToLocationOptions
=
Readonly
<
Required
<
IGotoLocationOptions
>>
;
/**
* Configuration options for editor hover
*/
...
...
@@ -3107,8 +3034,6 @@ declare namespace monaco.editor {
sticky
?:
boolean
;
}
export
type
EditorHoverOptions
=
Readonly
<
Required
<
IEditorHoverOptions
>>
;
/**
* A description for the overview ruler position.
*/
...
...
@@ -3238,8 +3163,6 @@ declare namespace monaco.editor {
enabled
?:
boolean
;
}
export
type
EditorLightbulbOptions
=
Readonly
<
Required
<
IEditorLightbulbOptions
>>
;
/**
* Configuration options for editor minimap
*/
...
...
@@ -3275,8 +3198,6 @@ declare namespace monaco.editor {
scale
?:
number
;
}
export
type
EditorMinimapOptions
=
Readonly
<
Required
<
IEditorMinimapOptions
>>
;
/**
* Configuration options for parameter hints
*/
...
...
@@ -3293,8 +3214,6 @@ declare namespace monaco.editor {
cycle
?:
boolean
;
}
export
type
InternalParameterHintOptions
=
Readonly
<
Required
<
IEditorParameterHintOptions
>>
;
/**
* Configuration options for quick suggestions
*/
...
...
@@ -3304,23 +3223,8 @@ declare namespace monaco.editor {
strings
:
boolean
;
}
export
type
ValidQuickSuggestionsOptions
=
boolean
|
Readonly
<
Required
<
IQuickSuggestionsOptions
>>
;
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
*/
...
...
@@ -3387,21 +3291,6 @@ declare namespace monaco.editor {
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
*/
...
...
@@ -3540,37 +3429,6 @@ declare namespace monaco.editor {
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.
* 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录