We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bffa2e commit 77ffa63Copy full SHA for 77ffa63
clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/client/ManagedClient.kt
@@ -57,6 +57,10 @@ class ManagedClient(val project: Project) : Disposable {
57
})
58
subscribe(ConnectionSettingsListener.TOPIC, object : ConnectionSettingsListener {
59
override fun connectionSettingsChanged(newPort: Int, newServerName: String) {
60
+ // Connection settings are global for all projects, so when they are changed in one project
61
+ // we should not start the client
62
+ if (!project.settings.storedSettings.isPluginEnabled)
63
+ return
64
if (newPort != client?.port || newServerName != client?.serverName) {
65
project.logger.trace { "Connection settings changed. Setting up new client." }
66
client?.dispose()
0 commit comments