Rewrap icon indicating copy to clipboard operation
Rewrap copied to clipboard

Nix support broken after v1.9.1

Open datafoo opened this issue 3 years ago • 1 comments

I used to run version v1.9.1 to rewrap some nix code and it was working fine. Example:

test.nix

''
  This is the first line.
  This is the second line.
    This is the third line.
''

rewrapped at column 80:

''
  This is the first line. This is the second line.
    This is the third line.
''

After migrating to recent version v1.16.1, I cannot wrap nix code anymore.

Tested on Visual Studio Code:

Version: 1.63.2 Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3 Date: 2021-12-15T09:39:46.686Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Linux x64 5.10.89

and Visual Studio Code:

Version: 1.64.0 (user setup) Commit: 5554b12acf27056905806867f251c859323ff7e9 Date: 2022-02-03T04:22:20.678Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19044

datafoo avatar Feb 07 '22 11:02 datafoo

Hi, unfortunately the behavior you were seeing before was apparently accidental. In the current version you can only wrap comments (# or /* ... */) in nix files, with a Nix language extension installed. I will be adding back the ability to wrap anything (#96); it's currently high on my priority list of large changes.

stkb avatar Feb 07 '22 12:02 stkb