Skip to content

[Feature request] Remove only some extensions #13

@kristofferremback

Description

@kristofferremback

Thanks for an awesome plugin!

When working with files of different types, for instance in Webpack when importing/requiring .html, .js and .scss files, it'd be nice to remove some extensions, while having others remain through the settings file, similar to how the relativePath.ignore setting works (possibly with include/exclude capabilities?).

Example from code:

const template = require('./app.template.html') // ./app.template.html
const helper = require('./app.helper') // ./app.helper.js

Example settings:

{
    "relativePath.ignore": [
        "**/node_modules/**",
        "**/*.dll",
        "**/obj/**",
        "**/objd/**",
        "**/dist/**"
    ],
    "relativePath.removeLeadingDot": true,
    "relativePath.removeExtension": false,
    "relativePath.removeExtensions": [
        ".js",
        ".jsx"
    ],
    ...
  }

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