microsoft / vscode-css-languageservice

CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
MIT License
317 stars 176 forks source link

import alias #321

Open andelkocvjetkovic opened 1 year ago

andelkocvjetkovic commented 1 year ago

Hello, I use this in my nvim lsp, but I'm having a hard time setting up this plugin to use my alias from tsconfig.json.

@import '@app/styles/mixins/_transition.scss'

Although this works and compiles, autocomplete for paths is broken and does not work. Example:

angrybacon commented 10 months ago

This is now a year old issue. Are there plans to support TypeScript alias?

I'm not new to SCSS nor TypeScript in general, but new to using LSP in SCSS files specifically and I was wondering why/how SCSS depending on TS aliases paths is a thing at all 😮

Drumstix42 commented 3 weeks ago

Still having troubles with this to this day. Normal local @import statements work fine for Jump-To, but @alias prefix breaks it.