agda-mode-vscode icon indicating copy to clipboard operation
agda-mode-vscode copied to clipboard

`C-c` `C-s` and `C-c` `C-a` inserts `\n` instead of newlines

Open fredrik-bakke opened this issue 2 years ago • 3 comments

What the title says. For instance, in the following case image Using C-c C-s will give image

For this issue to be resolved, #159 should probably be resolved first, as otherwise the hole brackets must be manually removed.

fredrik-bakke avatar Aug 24 '23 09:08 fredrik-bakke

Please reopen this and provide an file for reproducing the problem if it still persists

banacorn avatar Dec 16 '23 08:12 banacorn

This problem seems to still persist. I will try to make an example when I'm at my computer and have the time.

fredrik-bakke avatar Dec 17 '23 15:12 fredrik-bakke

The issue also occurs with C-c C-r. Here's a minimal reproducing example:

module Bug where

postulate
  A : Set

record Foo : Set where
  field
    very-long-field-name-1 : A
    very-long-field-name-2 : A
    very-long-field-name-3 : A

foo : Foo
foo = {! C-c C-r !}
-- foo = record\n{ very-long-field-name-1 = {!   !}\n; very-long-field-name-2 = {!   !}\n; very-long-field-name-3 = {!   !}\n}

ncfavier avatar Feb 24 '24 12:02 ncfavier