Skip to content

LanguageServiceDefaults

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.css.LanguageServiceDefaults.html

ts
interface LanguageServiceDefaults {
    diagnosticsOptions: languages.css.Options;
    languageId: string;
    modeConfiguration: languages.css.ModeConfiguration;
    onDidChange: IEvent<languages.css.LanguageServiceDefaults>;
    options: languages.css.Options;
    setDiagnosticsOptions(options): void;
    setModeConfiguration(modeConfiguration): void;
    setOptions(options): void;
}

diagnosticsOptions

languageId

  • 类型:string

modeConfiguration

  • 类型:

onDidChange

options

setDiagnosticsOptions

  • 语法:setDiagnosticsOptions(options): void
  • 参数:options: languages.css.Options
  • 描述:设置诊断选项

setModeConfiguration

setOptions