-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worksheet mode adds spaces into multiline strings #722
Comments
I wasn't sure how to find the version of metals, but VSCode seems to think it is up to date But the changelog tab of the |
Thanks for reporting! I am not sure if we can fix it properly. The way it's currently done is that we wrap the code in additional objects and in order to make sure that Scala 3 works properly we add indentation. Maybe we could do no indentation for the wrapper and then would the indentation work? Something like the below should probably work:
The fixed needs to be done in mdoc |
In the meantime, we should at least emit a warning saying something like "Please use the pattern with | and .stripMargin" |
Oh and thank you for your reply ^^" |
just saw it, had the most fun trying to recognize whether I broke my keyboard, filesystem, or switched to some strange newline separator in VSCode 😅 |
BTW. @Sporarum you meant it should print 1, right? That's what I get in the REPL. The newline counts. |
Oh yes of course, I'll edit the description Was: "The example should add the comment |
Describe the bug
The worksheet seems to tabulate the inside of multi-line strings, resulting in unexpected spaces
// : Int = 5
Expected behavior
Should not add extra characters inside multiline strings
The example should add the comment
//: Int = 1
Operating system
Windows
Editor/Extension
VS Code
Version of Metals
0.11.9 ?
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: