priv-kweihmann / oelint-vscode

vscode extension for oelint-adv
Other
6 stars 1 forks source link

constantmods settings not working #9

Closed jankraing closed 1 year ago

jankraing commented 1 year ago

https://github.com/priv-kweihmann/oelint-vscode/blob/e53c867dd7f04603f1afe4a241bd3eb8ff257d72/src/linter.ts#L84-L92

Needs to use backticks to enable template strings:

    for (var opt of config.get("oelint-vscode.run.constmodadd")) {
        res.push(`--constantmods=+${opt}`);
    }
    for (var opt of config.get("oelint-vscode.run.constmodrem")) {
        res.push(`--constantmods=-${opt}`);
    }
    for (var opt of config.get("oelint-vscode.run.constmodovr")) {
        res.push(`--constantmods=${opt}`);
    }
priv-kweihmann commented 1 year ago

Thanks for spotting this - a new release including the fix is now available in the marketplace