Merge pull request #936 from Perlence/fix/extension-editor-padding-x

fix(coding-agent): propagate paddingX to custom editors
This commit is contained in:
Mario Zechner 2026-01-24 20:48:41 +01:00 committed by GitHub
commit 79ded84d46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -1555,6 +1555,9 @@ export class InteractiveMode {
if (newEditor.borderColor !== undefined) {
newEditor.borderColor = this.defaultEditor.borderColor;
}
if (newEditor.setPaddingX !== undefined) {
newEditor.setPaddingX(this.defaultEditor.getPaddingX());
}
// Set autocomplete if supported
if (newEditor.setAutocompleteProvider && this.autocompleteProvider) {
@ -3030,6 +3033,9 @@ export class InteractiveMode {
onEditorPaddingXChange: (padding) => {
this.settingsManager.setEditorPaddingX(padding);
this.defaultEditor.setPaddingX(padding);
if (this.editor !== this.defaultEditor && this.editor.setPaddingX !== undefined) {
this.editor.setPaddingX(padding);
}
},
onCancel: () => {
done();