File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ The ``esbonio.server.pythonPath `` setting now accepts paths relative to ``${workspaceFolder} ``.
2+
3+ **Note ** This is simply an alias for the existing ``${workspaceRoot} `` functionality.
Original file line number Diff line number Diff line change @@ -48,16 +48,16 @@ export class PythonManager {
4848 if ( userPython ) {
4949
5050 // Support for ${workspaceRoot}/...
51- let match = userPython . match ( / ^ \$ { ( \w + ) } . * / )
52- if ( match && match [ 1 ] === 'workspaceRoot' ) {
51+ let match = userPython . match ( / ^ \$ { ( \w + ) } / )
52+ if ( match && ( match [ 1 ] === 'workspaceRoot' || match [ 1 ] === 'workspaceFolder' ) ) {
5353 let workspaceRoot = ""
5454 let workspaceFolders = vscode . workspace . workspaceFolders
5555
5656 if ( workspaceFolders ) {
5757 workspaceRoot = workspaceFolders [ 0 ] . uri . fsPath
5858 }
5959
60- userPython = userPython . replace ( "${workspaceRoot}" , workspaceRoot )
60+ userPython = userPython . replace ( match [ 0 ] , workspaceRoot )
6161 }
6262
6363 this . logger . debug ( `Using user configured Python: ${ userPython } ` )
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ The following options are available.
1717
1818 - ``/path/to/python/ `` - An absolute path
1919 - ``${workspaceRoot}/../venv/bin/python `` - A path relative to the root of your workspace
20+ - ``${workspaceFolder}/../venv/bin/python `` - Same as ``${workspaceRoot} ``, placeholder for true multi-root workspace support.
2021
2122.. confval :: esbonio.server.installBehavior (string)
2223
You can’t perform that action at this time.
0 commit comments