Skip to content

Commit fa19ee2

Browse files
authored
Set system properties to suppress warnings (#679)
* Set system properties to suppress warnings Add default values from https://github.com/JetBrains/intellij-community/blob/master/platform/util/resources/misc/registry.properties * Update CHANGELOG.md
1 parent e154522 commit fa19ee2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
Nothing yet!
5+
- Fix unwanted environment log warnings https://github.com/sqldelight/sql-psi/pull/679
66

77
## [0.5.2] - 2025-05-16
88
[0.5.2]: https://github.com/sqldelight/sql-psi/releases/tag/0.5.2

environment/src/main/kotlin/com/alecstrong/sql/psi/core/SqlCoreEnvironment.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ private class ApplicationEnvironment {
4040
val disposable = Disposer.newDisposable()
4141

4242
val coreApplicationEnvironment: CoreApplicationEnvironment = CoreApplicationEnvironment(disposable).apply {
43+
44+
System.setProperty("ide.hide.excluded.files", "false")
45+
System.setProperty("psi.sleep.in.validity.check", "false")
46+
System.setProperty("psi.incremental.reparse.depth.limit", "1000")
47+
4348
CoreApplicationEnvironment.registerApplicationExtensionPoint(
4449
MetaLanguage.EP_NAME,
4550
MetaLanguage::class.java,

0 commit comments

Comments
 (0)