final case class MetalsServerConfig(globSyntax: GlobSyntaxConfig = GlobSyntaxConfig.default, statusBar: StatusBarConfig = StatusBarConfig.default, slowTask: SlowTaskConfig = SlowTaskConfig.default, executeClientCommand: ExecuteClientCommandConfig = ExecuteClientCommandConfig.default, snippetAutoIndent: Boolean = ..., isExitOnShutdown: Boolean = ..., isHttpEnabled: Boolean = ..., isCommandInHtmlSupported: Boolean = ..., isInputBoxEnabled: Boolean = ..., isVerbose: Boolean = ..., isAutoServer: Boolean = ..., remoteTimeout: String = ..., openFilesOnRenames: Boolean = false, renameFileThreshold: Int = 300, askToReconnect: Boolean = ..., icons: Icons = ..., statistics: StatisticsConfig = StatisticsConfig.default, compilers: PresentationCompilerConfigImpl = CompilersConfig(), allowMultilineStringFormatting: Boolean = ..., bloopPort: Option[Int] = ...) extends Product with Serializable
Configuration parameters for the Metals language server.
While these can be used to configure Metals, it's preferable
that instead you configure Metals via InitializationOptions.
- globSyntax
pattern used for
DidChangeWatchedFilesRegistrationOptions.- statusBar
how to handle metals/status notifications.
- slowTask
how to handle metals/slowTask requests.
- executeClientCommand
whether client provides the ability to support the
metals/executeClientCommandcommand.- snippetAutoIndent
if the client defaults to adding the identation of the reference line that the operation started on (relevant for multiline textEdits)
- isExitOnShutdown
whether the client needs Metals to shut down manually on exit.
- isHttpEnabled
whether to start the Metals HTTP client interface. This is needed for clients with limited support for UI dialogues that don't implement window/showMessageRequest yet.
- isInputBoxEnabled
whether the client supports the
metals/inputBoxextension.- isVerbose
turn on verbose logging.
- isAutoServer
whether or not
AUTO_SERVERshould be set for h2.* http://www.h2database.com/html/features.html#auto_mixed_mode- remoteTimeout
timeout period for retrieving references while using
RemoteLanguageServer.- openFilesOnRenames
whether or not file should be opened when a rename occurs in an unopened file.
- renameFileThreshold
amount of files that should be opened during a rename if the
openFilesOnRenamesis enabled.- askToReconnect
whether the user should be prompted to reconnect after a BuildServer connection is lost.
- icons
what icon set to use for messages.
- statistics
if all statistics in Metals should be enabled.
- compilers
configuration for the
PresentationCompilerConfig.- allowMultilineStringFormatting
whether or not
multilineStringFormattingshould be turned off. By default this is on, but Metals only supports a small subset of this, so it may be problematic for certain clients.
- Alphabetic
- By Inheritance
- MetalsServerConfig
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MetalsServerConfig(globSyntax: GlobSyntaxConfig = GlobSyntaxConfig.default, statusBar: StatusBarConfig = StatusBarConfig.default, slowTask: SlowTaskConfig = SlowTaskConfig.default, executeClientCommand: ExecuteClientCommandConfig = ExecuteClientCommandConfig.default, snippetAutoIndent: Boolean = ..., isExitOnShutdown: Boolean = ..., isHttpEnabled: Boolean = ..., isCommandInHtmlSupported: Boolean = ..., isInputBoxEnabled: Boolean = ..., isVerbose: Boolean = ..., isAutoServer: Boolean = ..., remoteTimeout: String = ..., openFilesOnRenames: Boolean = false, renameFileThreshold: Int = 300, askToReconnect: Boolean = ..., icons: Icons = ..., statistics: StatisticsConfig = StatisticsConfig.default, compilers: PresentationCompilerConfigImpl = CompilersConfig(), allowMultilineStringFormatting: Boolean = ..., bloopPort: Option[Int] = ...)
- globSyntax
pattern used for
DidChangeWatchedFilesRegistrationOptions.- statusBar
how to handle metals/status notifications.
- slowTask
how to handle metals/slowTask requests.
- executeClientCommand
whether client provides the ability to support the
metals/executeClientCommandcommand.- snippetAutoIndent
if the client defaults to adding the identation of the reference line that the operation started on (relevant for multiline textEdits)
- isExitOnShutdown
whether the client needs Metals to shut down manually on exit.
- isHttpEnabled
whether to start the Metals HTTP client interface. This is needed for clients with limited support for UI dialogues that don't implement window/showMessageRequest yet.
- isInputBoxEnabled
whether the client supports the
metals/inputBoxextension.- isVerbose
turn on verbose logging.
- isAutoServer
whether or not
AUTO_SERVERshould be set for h2.* http://www.h2database.com/html/features.html#auto_mixed_mode- remoteTimeout
timeout period for retrieving references while using
RemoteLanguageServer.- openFilesOnRenames
whether or not file should be opened when a rename occurs in an unopened file.
- renameFileThreshold
amount of files that should be opened during a rename if the
openFilesOnRenamesis enabled.- askToReconnect
whether the user should be prompted to reconnect after a BuildServer connection is lost.
- icons
what icon set to use for messages.
- statistics
if all statistics in Metals should be enabled.
- compilers
configuration for the
PresentationCompilerConfig.- allowMultilineStringFormatting
whether or not
multilineStringFormattingshould be turned off. By default this is on, but Metals only supports a small subset of this, so it may be problematic for certain clients.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowMultilineStringFormatting: Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val askToReconnect: Boolean
- val bloopPort: Option[Int]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val compilers: PresentationCompilerConfigImpl
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val executeClientCommand: ExecuteClientCommandConfig
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val globSyntax: GlobSyntaxConfig
- val icons: Icons
- val isAutoServer: Boolean
- val isCommandInHtmlSupported: Boolean
- val isExitOnShutdown: Boolean
- val isHttpEnabled: Boolean
- val isInputBoxEnabled: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isVerbose: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val openFilesOnRenames: Boolean
- val remoteTimeout: String
- val renameFileThreshold: Int
- val slowTask: SlowTaskConfig
- val snippetAutoIndent: Boolean
- val statistics: StatisticsConfig
- val statusBar: StatusBarConfig
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- MetalsServerConfig → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()