[PT Run][VS Code Workspaces] Do not check WSL paths #31351
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
This was caused because of the permission issues. If WSL VS Code workspace is located on Windows file system partitions (e.g. C:/), checking WSL paths as \wsl.localhost\Ubuntu\mnt\c<...> are inaccessible from Windows file system. Reason and more info microsoft/WSL#8512 (comment)
Same happens if you try to open C partition from Explorer within WSL File system:
![image](https://private-user-images.githubusercontent.com/57057282/303290547-75071940-a7d7-40d1-a8c0-6d632b59da3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Njc1NDgsIm5iZiI6MTczODk2NzI0OCwicGF0aCI6Ii81NzA1NzI4Mi8zMDMyOTA1NDctNzUwNzE5NDAtYTdkNy00MGQxLWE4YzAtNmQ2MzJiNTlkYTNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIyMjcyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIyZGFiMzBiZDY1ODRmOTY1YmU1MTYxNmQxYWZhOWQ1M2Q2ZjdkY2M4ZTBjNTY0YzhiODNjNjU1ZDExMTFjNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7XsoHqKDUIOeXtFqnLqnCWllXnU4dM9IrXoLjxWJ0vw)
As a result, these paths were considered non-existent which is not true. Therefore, skipping this check for WSL workspaces. This will still show some WSL workspaces that were possibly removed in the meantime but this is better than not showing existing workspaces
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed