prettier / prettier-vscode

Visual Studio Code extension for Prettier
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
MIT License
5.05k stars 447 forks source link

in bash file a piece of code is treated like a comment #3408

Open SorinGFS opened 2 weeks ago

SorinGFS commented 2 weeks ago

Summary

I tried to find the related prettier plugin for bash/sh but I couldn't. So please forgive me if this is the wrong place for this issue.

Actual result

result

Expected result

expected

Additional information

Any vscode, any os. As I said in the title, the last part of the first code line is treated like a commend. It doesn't throw errors in console since is valid piece of code. The second image shows how the code would look like if I break that #* by placing a dot between the 2 characters. That comment format is wrongfully applied to a piece of code, while in fact should be applied only if the # is at the begginning of the line.