ModeConfiguration
原文链接
https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.css.ModeConfiguration.html
ts
interface ModeConfiguration {
colors?: boolean;
completionItems?: boolean;
definitions?: boolean;
diagnostics?: boolean;
documentFormattingEdits?: boolean;
documentHighlights?: boolean;
documentRangeFormattingEdits?: boolean;
documentSymbols?: boolean;
foldingRanges?: boolean;
hovers?: boolean;
references?: boolean;
rename?: boolean;
selectionRanges?: boolean;
}
colors
- 类型:
boolean
- 描述: 启用/禁用颜色
completionItems
- 类型:
boolean
- 描述: 启用/禁用自动完成
definitions
- 类型:
boolean
- 描述: 启用/禁用定义
diagnostics
- 类型:
boolean
- 描述: 启用/禁用诊断
documentFormattingEdits
- 类型:
boolean
- 描述: 启用/禁用格式化
documentHighlights
- 类型:
boolean
- 描述: 启用/禁用高亮
documentRangeFormattingEdits
- 类型:
boolean
- 描述: 启用/禁用格式化范围
documentSymbols
- 类型:
boolean
- 描述: 启用/禁用符号
foldingRanges
- 类型:
boolean
- 描述: 启用/禁用折叠
hovers
- 类型:
boolean
- 描述: 启用/禁用悬停
references
- 类型:
boolean
- 描述: 启用/禁用引用
rename
- 类型:
boolean
- 描述: 启用/禁用重命名
selectionRanges
- 类型:
boolean
- 描述: 启用/禁用选择范围