Class LanguageServerConfiguration
java.lang.Object
com.github._1c_syntax.bsl.languageserver.configuration.LanguageServerConfiguration
Корневой класс конфигурации BSL Language Server.
В обычном режиме работы провайдеры и прочие классы могут расчитывать на единственность объекта конфигурации и безопасно сохранять ссылку на конфигурацию или ее части.
-
Constructor Summary
ConstructorDescriptionLanguageServerConfiguration
(Language language, DiagnosticsOptions diagnosticsOptions, CodeLensOptions codeLensOptions, DocumentLinkOptions documentLinkOptions, InlayHintOptions inlayHintOptions, FormattingOptions formattingOptions, String siteRoot, boolean useDevSite, SendErrorsMode sendErrors, File traceLog, Path configurationRoot, File configurationFile, String configurationFilePath, String globalConfigPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
static Path
getCustomConfigurationRoot
(LanguageServerConfiguration configuration, Path srcDir) int
hashCode()
boolean
void
reset()
void
setConfigurationFilePath
(String configurationFilePath) void
setConfigurationRoot
(Path configurationRoot) void
setGlobalConfigPath
(String globalConfigPath) void
setLanguage
(Language language) void
setSendErrors
(SendErrorsMode sendErrors) void
setSiteRoot
(String siteRoot) void
setTraceLog
(File traceLog) void
setUseDevSite
(boolean useDevSite) toString()
void
-
Constructor Details
-
LanguageServerConfiguration
@ConstructorProperties({"language","diagnosticsOptions","codeLensOptions","documentLinkOptions","inlayHintOptions","formattingOptions","siteRoot","useDevSite","sendErrors","traceLog","configurationRoot","configurationFile","configurationFilePath","globalConfigPath"}) public LanguageServerConfiguration(Language language, DiagnosticsOptions diagnosticsOptions, CodeLensOptions codeLensOptions, DocumentLinkOptions documentLinkOptions, InlayHintOptions inlayHintOptions, FormattingOptions formattingOptions, String siteRoot, boolean useDevSite, SendErrorsMode sendErrors, @Nullable File traceLog, @Nullable Path configurationRoot, File configurationFile, String configurationFilePath, String globalConfigPath) -
LanguageServerConfiguration
public LanguageServerConfiguration()
-
-
Method Details
-
update
-
reset
public void reset() -
getCustomConfigurationRoot
public static Path getCustomConfigurationRoot(LanguageServerConfiguration configuration, Path srcDir) -
getLanguage
-
getDiagnosticsOptions
-
getCodeLensOptions
-
getDocumentLinkOptions
-
getInlayHintOptions
-
getFormattingOptions
-
getSiteRoot
-
isUseDevSite
public boolean isUseDevSite() -
getSendErrors
-
getTraceLog
-
getConfigurationRoot
-
getConfigurationFile
-
getConfigurationFilePath
-
getGlobalConfigPath
-
setLanguage
-
setSiteRoot
-
setUseDevSite
public void setUseDevSite(boolean useDevSite) -
setSendErrors
-
setTraceLog
-
setConfigurationRoot
-
setConfigurationFilePath
-
setGlobalConfigPath
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-