generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
1fd2c1e
commit 7246c94
Showing
42 changed files
with
376 additions
and
361 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
rootProject.name = "doki-theme-icons-jetbrains" | ||
|
||
include(":doki-theme") | ||
project(":doki-theme").projectDir = file("../doki-theme-jetbrains") | ||
// include(":doki-theme") | ||
// project(":doki-theme").projectDir = file("../doki-theme-jetbrains") |
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
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 |
---|---|---|
|
@@ -39,24 +39,24 @@ class ErrorReporter : ErrorReportSubmitter() { | |
events: Array<out IdeaLoggingEvent>, | ||
additionalInfo: String?, | ||
parentComponent: Component, | ||
consumer: Consumer<in SubmittedReportInfo> | ||
consumer: Consumer<in SubmittedReportInfo>, | ||
): Boolean { | ||
ApplicationManager.getApplication() | ||
.executeOnPooledThread { | ||
Sentry.setUser( | ||
User().apply { | ||
this.id = Config.instance.userId | ||
} | ||
}, | ||
) | ||
runSafely({ | ||
Sentry.init { options: SentryOptions -> | ||
options.dsn = | ||
RestClient.performGet( | ||
"https://jetbrains.assets.unthrottled.io/doki-theme-icons/sentry-dsn.txt" | ||
"https://jetbrains.assets.unthrottled.io/doki-theme-icons/sentry-dsn.txt", | ||
) | ||
.map { it.trim() } | ||
.orElse( | ||
"https://[email protected]/6684182" | ||
"https://[email protected]/6684182", | ||
) | ||
} | ||
}) { | ||
|
@@ -71,12 +71,13 @@ class ErrorReporter : ErrorReportSubmitter() { | |
this.level = SentryLevel.ERROR | ||
this.serverName = getAppName().second | ||
this.setExtra("Additional Info", additionalInfo ?: "None") | ||
} | ||
}, | ||
).apply { | ||
this.message = Message().apply { | ||
this.message = it.throwableText | ||
} | ||
} | ||
this.message = | ||
Message().apply { | ||
this.message = it.throwableText | ||
} | ||
}, | ||
) | ||
} | ||
consumer.consume(SubmittedReportInfo(SubmittedReportInfo.SubmissionStatus.NEW_ISSUE)) | ||
|
@@ -103,10 +104,11 @@ class ErrorReporter : ErrorReportSubmitter() { | |
} | ||
|
||
private fun getJRE(properties: Properties): String { | ||
val javaVersion = properties.getProperty( | ||
"java.runtime.version", | ||
properties.getProperty("java.version", "unknown") | ||
) | ||
val javaVersion = | ||
properties.getProperty( | ||
"java.runtime.version", | ||
properties.getProperty("java.version", "unknown"), | ||
) | ||
val arch = properties.getProperty("os.arch", "") | ||
return IdeBundle.message("about.box.jre", javaVersion, arch) | ||
} | ||
|
@@ -117,8 +119,9 @@ class ErrorReporter : ErrorReportSubmitter() { | |
return IdeBundle.message("about.box.vm", vmVersion, vmVendor) | ||
} | ||
|
||
private fun getGC() = ManagementFactory.getGarbageCollectorMXBeans().stream() | ||
.map { it.name }.collect(Collectors.joining(",")) | ||
private fun getGC() = | ||
ManagementFactory.getGarbageCollectorMXBeans().stream() | ||
.map { it.name }.collect(Collectors.joining(",")) | ||
|
||
private fun getBuildInfo(appInfo: ApplicationInfo): String { | ||
var buildInfo = IdeBundle.message("about.box.build.number", appInfo.build.asString()) | ||
|
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
Oops, something went wrong.