question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: define include paths

See original GitHub issue

I would like to be able to configure include paths so that @import statements can reference the correct file.

Consider the following configuration:

"scss.includePaths": ["src", "global/lib"]

And a .scss-file:

@import 'variables';

The following paths (relative to project root) would be considered as valid imports (and the intellisense would also recognize the first match as the actual import):

src/variables.scss
src/_variables.scss
global/lib/variables.scss
global/lib/_variables.scss

Does this seem reasonable?

PS. Discovered this extension today, loving it so far. Keep up the good work!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:48
  • Comments:13

github_iconTop GitHub Comments

9reactions
savilafcommented, Dec 23, 2019

We need this for projects made with Angular. We define in the configuration file the folder where SASS has to resolve all the imports. Example (angular.json):

"stylePreprocessorOptions": {
  "includePaths": [
    "src/styles"
  ]
 }

On a component style:

@import 'utils/variables';
5reactions
mathiasrwcommented, Jan 18, 2021

4 years and this is still a feature request?

This is so important for scss development!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: uVision Automatically add header file to group
Feature Request : uVision When I am writing an application I like to have the ... Yes, like there are Include Paths that...
Read more >
allow include search path to propagate upward from ...
[SOLVED] Feature request: allow include search path to propagate upward from dependencies (i.e., be like cmake).
Read more >
GitLab CI/CD include examples
The following example shows an include file that is customized in the .gitlab-ci.yml file. Specific YAML-defined variables and details of the production job...
Read more >
c_cpp_properties.json reference - Visual Studio Code
includePath An include path is a folder that contains header files (such as #include "myHeaderFile.h" ) that are included in a source file....
Read more >
Feature Request: target_include_files() - Development
First post so please let me know if I've broken some rule. Is there any way to add files in the same manner...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found