gazugafan / vscode-indent-on-paste

Visual Studio Code extension to re-indent pasted code to match the destination
7 stars 3 forks source link

Incorrect indentation with .sass files #8

Open saminton opened 4 years ago

saminton commented 4 years ago

Title pretty much says it all. I prefer to use the older .sass format instead of .scss. I guess the extension can't calculate the proper indentation due to the lack of brackets.

The possibility to disable the extension for certain languages would also do. It works like a charm in php files.

gazugafan commented 4 years ago

Yeah, unfortunately the generic indentation algorithm needs some sort of closing block to work off of. So stuff like SASS and Python won't really work with this. They need a proper language server extension that understands the language.

I'll see about getting an extension exclusion feature added soon, though!