-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
119 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,3 @@ object TelemetryLevel { | |
} | ||
} | ||
} | ||
|
10 changes: 4 additions & 6 deletions
10
telemetry-interfaces/src/main/scala/scala/meta/internal/telemetry/Environment.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
package scala.meta.internal.telemetry | ||
|
||
|
||
|
||
case class Environment(java: JavaInfo, system: SystemInfo) | ||
object Environment { | ||
val java: JavaInfo = JavaInfo( | ||
System.getProperty("java.version", "unknown"), | ||
System.getProperty("java.vendor", "unknown") | ||
System.getProperty("java.vendor", "unknown"), | ||
) | ||
val system: SystemInfo = SystemInfo( | ||
System.getProperty("os.arch", "unknown"), | ||
System.getProperty("os.arch", "unknown"), | ||
System.getProperty("os.name", "unknown"), | ||
System.getProperty("os.version", "unknown") | ||
System.getProperty("os.version", "unknown"), | ||
) | ||
|
||
val instance: Environment = Environment(java, system) | ||
} | ||
|
||
case class JavaInfo(version: String, distribution: String) | ||
case class SystemInfo(architecture: String, name: String, version: String) | ||
case class SystemInfo(architecture: String, name: String, version: String) |
37 changes: 26 additions & 11 deletions
37
telemetry-interfaces/src/main/scala/scala/meta/internal/telemetry/Exception.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 22 additions & 24 deletions
46
telemetry-interfaces/src/main/scala/scala/meta/internal/telemetry/MetalsConfiguration.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
package scala.meta.internal.telemetry | ||
|
||
|
||
case class MetalsUserConfiguration( | ||
symbolPrefixes: Map[String, String], | ||
bloopSbtAlreadyInstalled: Boolean, | ||
bloopVersion: Option[String], | ||
bloopJvmProperties: List[String], | ||
ammoniteJvmProperties: List[String], | ||
superMethodLensesEnabled: Boolean, | ||
showInferredType: Option[String], | ||
showImplicitArguments: Boolean, | ||
showImplicitConversionsAndClasses: Boolean, | ||
enableStripMarginOnTypeFormatting: Boolean, | ||
enableIndentOnPaste: Boolean, | ||
enableSemanticHighlighting: Boolean, | ||
excludedPackages: List[String], | ||
fallbackScalaVersion: Option[String], | ||
testUserInterface: String | ||
symbolPrefixes: Map[String, String], | ||
bloopSbtAlreadyInstalled: Boolean, | ||
bloopVersion: Option[String], | ||
bloopJvmProperties: List[String], | ||
ammoniteJvmProperties: List[String], | ||
superMethodLensesEnabled: Boolean, | ||
showInferredType: Option[String], | ||
showImplicitArguments: Boolean, | ||
showImplicitConversionsAndClasses: Boolean, | ||
enableStripMarginOnTypeFormatting: Boolean, | ||
enableIndentOnPaste: Boolean, | ||
enableSemanticHighlighting: Boolean, | ||
excludedPackages: List[String], | ||
fallbackScalaVersion: Option[String], | ||
testUserInterface: String, | ||
) | ||
|
||
case class MetalsServerConfiguration( | ||
executeClientCommand: String, | ||
snippetAutoIndent: Boolean, | ||
isHttpEnabled: Boolean, | ||
isInputBoxEnabled: Boolean, | ||
askToReconnect: Boolean, | ||
allowMultilineStringFormatting: Boolean, | ||
compilers: PresentationCompilerConfig | ||
executeClientCommand: String, | ||
snippetAutoIndent: Boolean, | ||
isHttpEnabled: Boolean, | ||
isInputBoxEnabled: Boolean, | ||
askToReconnect: Boolean, | ||
allowMultilineStringFormatting: Boolean, | ||
compilers: PresentationCompilerConfig, | ||
) | ||
|
27 changes: 13 additions & 14 deletions
27
...-interfaces/src/main/scala/scala/meta/internal/telemetry/PresentationCompilerConfig.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
package scala.meta.internal.telemetry | ||
|
||
|
||
case class PresentationCompilerConfig( | ||
symbolPrefixes: Map[String, String], | ||
completionCommand: Option[String], | ||
parameterHintsCommand: Option[String], | ||
overrideDefFormat: String, | ||
isDefaultSymbolPrefixes: Boolean, | ||
isCompletionItemDetailEnabled: Boolean, | ||
isStripMarginOnTypeFormattingEnabled: Boolean, | ||
isCompletionItemDocumentationEnabled: Boolean, | ||
isHoverDocumentationEnabled: Boolean, | ||
snippetAutoIndent: Boolean, | ||
isSignatureHelpDocumentationEnabled: Boolean, | ||
isCompletionSnippetsEnabled: Boolean, | ||
semanticdbCompilerOptions: List[String] | ||
symbolPrefixes: Map[String, String], | ||
completionCommand: Option[String], | ||
parameterHintsCommand: Option[String], | ||
overrideDefFormat: String, | ||
isDefaultSymbolPrefixes: Boolean, | ||
isCompletionItemDetailEnabled: Boolean, | ||
isStripMarginOnTypeFormattingEnabled: Boolean, | ||
isCompletionItemDocumentationEnabled: Boolean, | ||
isHoverDocumentationEnabled: Boolean, | ||
snippetAutoIndent: Boolean, | ||
isSignatureHelpDocumentationEnabled: Boolean, | ||
isCompletionSnippetsEnabled: Boolean, | ||
semanticdbCompilerOptions: List[String], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters