vscode-scss
vscode-scss copied to clipboard
Support tsconfig paths alias
Most frontend project use tsconfig paths. And import scss like this @import '@/style/theme';.
// tsconfig.json
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}
jsconfig would be nice too
Yes please add the tsconfig !
Please add support for the tsconfig.json path alias.
Is this possible? I can't Ctrl-click / Command-click any aliased imports. VSCode tries to create a new file.
Although I like the other features, I installed this extension to solve this particular annoyance specifically. I'm really bummed that it doesn't.
Apparently Visual Studio Code assumes all @import files are relative by default and doesn't recognize aliases defined in tsconfig or jsconfig even though webpack does and correctly resolves them. I hoped this extension would override VS Code's default behavior and fix this annoyance.