Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 70df8ef

Browse files
Winston LiuWinston Liu
Winston Liu
authored and
Winston Liu
committed
Add migration for old classpath setting
1 parent 9ee85af commit 70df8ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ class JavaLanguageClient extends AutoLanguageClient {
3636
atom.config.set('ide-java.server.errors.incompleteClasspath.severity', 'ignore')
3737
},
3838
'java.ignoreIncompleteClasspath.help': () => { shell.openExternal('https://github.com/atom/ide-java/wiki/Incomplete-Classpath-Warning') },
39+
40+
// Migrate ide-java.errors.incompleteClasspathSeverity -> ide-java.server.errors.incompleteClasspath.severity
41+
// Migration added in v0.10.0; feel free to remove after a few versions
42+
const severity = atom.config.get('ide-java.errors.incompleteClasspathSeverity')
43+
if (severity) {
44+
atom.config.unset('ide-java.errors.incompleteClasspathSeverity')
45+
atom.config.unset('ide-java.errors')
46+
atom.config.set('ide-java.server.errors.incompleteClasspath.severity', severity)
3947
}
4048
}
4149

0 commit comments

Comments
 (0)