Commit 57e3061
authored
Add `:safe t` and `:local t` properties to `lsp-format-buffer-on-save` to enable
project-specific configuration through `.dir-locals.el` without security prompts.
Thanks to PR #4753 for implementing the `format-on-save` functionality.
This enhancement allows keeping automatic formatting disabled by default
(avoiding unwanted diffs in third-party projects)
while enabling it for personal or team projects with established formatting standards.
The security implications are minimal
since LSP formatting capabilities are limited to code reformatting,
and any project where you're running an LSP server
already has significant execution privileges.
1 parent d9d4a5a commit 57e3061
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
| 583 | + | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
| |||
0 commit comments