Closed
Description
- macOS @RMacfarlane
- linux @isidorn
- windows @bpasero
Complexity: 2
Path completion and jump to definition has been added to css/scss's @import
and url()
.
Note that in SCSS, @import 'foo';
actually imports _foo.scss
, which is a partial. See: https://sass-lang.com/guide
MDN Link for @import
: https://developer.mozilla.org/en-US/docs/Web/CSS/@import
Test:
- File path completions work for both CSS, SCSS and Less's
@import
andurl()
- When importing SCSS files, the completion shows the partial's name
_foo.scss
but completesfoo
. - In CSS, SCSS and Less, all
@import
andurl()
show underlines. - Clicking into each underlined link brings up either an editor showing the file, or opens the browser for
http
orhttps
links (e.g.,@import url('https://fonts.googleapis.com/css?family=Roboto');
).