Skip to content

Sync template: enhance get_cwd() variable substitution#639

Merged
edvilme merged 3 commits intomainfrom
sync/template-cwd-variable-substitution-6f1b0669f01fe835
Feb 27, 2026
Merged

Sync template: enhance get_cwd() variable substitution#639
edvilme merged 3 commits intomainfrom
sync/template-cwd-variable-substitution-6f1b0669f01fe835

Conversation

@edvilme
Copy link
Contributor

@edvilme edvilme commented Feb 27, 2026

Sync changes from microsoft/vscode-python-tools-extension-template PRs:

The get_cwd() function now supports substring replacement for: ${file}, ${fileBasename}, ${fileBasenameNoExtension}, ${fileExtname}, ${fileDirname}, ${fileDirnameBasename}, ${relativeFile}, ${relativeFileDirname}, ${fileWorkspaceFolder}

Also adds unit tests for get_cwd() from the template.

GitHub Copilot and others added 2 commits February 27, 2026 00:57
Sync changes from microsoft/vscode-python-tools-extension-template PRs:
- #260: Add configurable cwd setting (cwd tracking in checkIfConfigurationChanged)
- #262: Expand get_cwd() to resolve 9 VS Code file-related variables

The get_cwd() function now supports substring replacement for:
${file}, ${fileBasename}, ${fileBasenameNoExtension}, ${fileExtname},
${fileDirname}, ${fileDirnameBasename}, ${relativeFile},
${relativeFileDirname}, ${fileWorkspaceFolder}

Also adds unit tests for get_cwd() from the template.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edvilme edvilme added bug Issue identified by VS Code Team member as probable bug debt Technical debt or repo cleanup and removed bug Issue identified by VS Code Team member as probable bug labels Feb 27, 2026
@edvilme edvilme enabled auto-merge (squash) February 27, 2026 01:15
@edvilme
Copy link
Contributor Author

edvilme commented Feb 27, 2026

Fixes microsoft/vscode-isort#141

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

@edvilme edvilme merged commit 24020dd into main Feb 27, 2026
19 checks passed
@edvilme edvilme deleted the sync/template-cwd-variable-substitution-6f1b0669f01fe835 branch February 27, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Technical debt or repo cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants