Skip to content

Test: Path Completion and Jump to Definition for CSS/SCSS/Less's @import and url() #57309

Closed
@octref

Description

@octref

Testing #51331 and #29899

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 and url()
  • When importing SCSS files, the completion shows the partial's name _foo.scss but completes foo.
  • In CSS, SCSS and Less, all @import and url() show underlines.
  • Clicking into each underlined link brings up either an editor showing the file, or opens the browser for http or https links (e.g., @import url('https://fonts.googleapis.com/css?family=Roboto');).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions