Skip to content

Commit

Permalink
Fix broken char reinitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
pkukielka authored and mkondratek committed Jan 17, 2024
1 parent da36ccc commit e17daff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ data class ExtensionMessage(
}

fun toPanelNotFoundError(): PanelNotFoundError? {
// e.g.: "No panel with id 414f6f9c-ed62-4d7b-8ebd-023ded81e9da found"
if (this.errors?.matches(Regex("^No panel with id .* found$")) == true) {
// e.g.: "No panel with ID414f6f9c-ed62-4d7b-8ebd-023ded81e9da"
if (this.errors?.matches(Regex("^No panel with .*$")) == true) {
return PanelNotFoundError(this.errors)
}
return null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ class AccountSettingChangeListener(project: Project) : ChangeListener(project) {
javaToJSBridge?.callJS("pluginSettingsChanged", ConfigUtil.getConfigAsJson(project))

// Notify Cody Agent about config changes.
CodyAgentService.applyAgentOnBackgroundThread(project) { agent ->
if (ConfigUtil.isCodyEnabled()) {
if (ConfigUtil.isCodyEnabled()) {
CodyAgentService.applyAgentOnBackgroundThread(project) { agent ->
agent.server.configurationDidChange(ConfigUtil.getAgentConfiguration(project))
}
CodyAgentService.getInstance(project).restartAgent(project)
}

val codyToolWindowContent = CodyToolWindowContent.getInstance(project)
Expand Down

0 comments on commit e17daff

Please sign in to comment.