Skip to content

Commit 432b383

Browse files
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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
test.mjs
3-
dist.zip
3+
dist.zip
4+
dist/

dist/748.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/748.js.LICENSE.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/810.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/810.js.LICENSE.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)