Skip to content

Add options to include suggestions for variables, mixins and functions defined globally #267

Open
@niksy

Description

@niksy

In which editor is this a problem?

N/A

Describe the bug

There are projects which haven’t fully switched to Sass modules system and use approach where every variable, mixin and function is defined globally, usually using bundler functionality such as injecting imports (e.g. additionalData in Vite).

Currently there isn’t a way where you can say "give me results from these imports every time you query and process Sass file with language server", something like completion.includeFromCurrentDocument but for specific documents.

What's the expected result?

Defining list of imports where language server can query for global values for variables, mixins and functions.

Link to minimal reproducible example

No response

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions