Skip to content

fix(BREAKING): only let plugins change the global config of process plugins when formatting - #1397

Merged
dsherret merged 1 commit into
mainfrom
fix/process-plugin-request-overrides
Oct 23, 2026
Merged

dsherret merged 1 commit into
mainfrom
fix/process-plugin-request-overrides

Conversation

@dsherret

Copy link
Copy Markdown
Member

Stacked on #1396, so merge that first.

A plugin formatting text with another plugin (ex. a code block) can pass override config for it. For a process plugin, that override config now only changes the global configuration (lineWidth, indentWidth, useTabs and newLineKind). Requests from the CLI, editor service, and LSP are unchanged.

@dsherret
dsherret added this pull request to stack #1399 October 23, 2026 14:29
@dsherret
dsherret force-pushed the fix/process-plugin-request-overrides branch from 6c22aad to 32dd567 Compare October 23, 2026 14:29
Base automatically changed from fix/remote-process-plugin-config to main October 23, 2026 14:50
…n formatting

A plugin formatting text with another plugin (ex. a code block) can pass
override config for it. That plugin may be a Wasm plugin specified in
remote configuration, so for a process plugin, which doesn't run
sandboxed, the override config could otherwise replace something like the
commands of dprint-plugin-exec.

Override config from a plugin's request now only changes the global
configuration (lineWidth, indentWidth, useTabs and newLineKind) of a
process plugin. Requests from editors are unchanged.
@dsherret
dsherret force-pushed the fix/process-plugin-request-overrides branch from 32dd567 to d3fce76 Compare October 23, 2026 14:50
@dsherret
dsherret merged commit 1fdaf2b into main Oct 23, 2026
4 checks passed
@dsherret
dsherret deleted the fix/process-plugin-request-overrides branch October 23, 2026 14:52
@dsherret dsherret changed the title fix: only let plugins change the global config of process plugins when formatting fix(BREAKING): only let plugins change the global config of process plugins when formatting Oct 23, 2026
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