Commit 432b383
committed
Improve document content replacement in AcodePrettier
- Replaced the use of setValue() with session.replace() to update the entire document content.
- This change preserves the editor state more effectively.
- Added logic to calculate the full document range for replacement.
- Ensured the cursor position is restored after formatting.1 parent a6cb7af commit 432b383
10 files changed
Lines changed: 16 additions & 840 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments