Skip to content

fix: do not exit the editor service when the config fails to resolve on a format request - #1342

Merged
dsherret merged 1 commit into
mainfrom
fix-editor-service-config-error
Oct 11, 2026
Merged

dsherret merged 1 commit into
mainfrom
fix-editor-service-config-error

Conversation

@dsherret

Copy link
Copy Markdown
Member

When a format request arrived before the configuration had been resolved (ex. it's the first message the editor sends, or a previous attempt to resolve the configuration failed) and resolving it failed, the error propagated out of the message loop and dprint editor-service exited. The editor never got a response to the request and had to restart the service after the config file was fixed.

Now the service responds to the format request with the error, the same as it already does for a "can format" request, and keeps running. The configuration is resolved again on the next request, so formatting starts working once the config file is fixed.

@dsherret
dsherret merged commit f3a2e8b into main Oct 11, 2026
23 checks passed
@dsherret
dsherret deleted the fix-editor-service-config-error branch October 11, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant