exceedsystem / vscode-macros

This extension gives the macro features to your vscode.
https://marketplace.visualstudio.com/items?itemName=EXCEEDSYSTEM.vscode-macros
MIT License
38 stars 2 forks source link

can `vscodemacros.macroFilePath` config supports `{workspaceRoot}/.vscode/macro.js`? #3

Closed chen19901225 closed 2 years ago

exceedsystem commented 3 years ago

Thanks for your advice. I think it's possible and I'll just think about it.

exceedsystem commented 3 years ago

@chen19901225 If possible, please give me an additional information(for example, brief use case) for this request. Best regards.

rcx1 commented 2 years ago

I suppose something like this:

        if (vscode.workspace.workspaceFolders) {
            macroModPath = macroModPath.replace('${workspaceFolder}', vscode.workspace.workspaceFolders[0].uri)
        }
exceedsystem commented 2 years ago

@rcx1 Thank for the information. However, I know how to do it, but I'll have to consider other things.

exceedsystem commented 2 years ago

I am currently testing a version that supports Multi-root, Workspace(Folders), and environment variables. Please wait a little longer.

exceedsystem commented 2 years ago

@chen19901225 Version 1.3.0 has been released with support for multi-root, workspace and workspace folders.

https://code.visualstudio.com/docs/getstarted/settings https://code.visualstudio.com/docs/editor/multi-root-workspaces