Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

IDontHaveBrain
Copy link
Contributor

When using the TypeScriptLanguageServer on Windows environments, users encounter a No module named 'pwd' error.
This occurs because the pwd module is only available on Unix-like systems but was being imported unconditionally.

This PR adds a conditional import for the pwd module that only executes on non-Windows platforms.

@IDontHaveBrain
Copy link
Contributor Author

@microsoft-github-policy-service agree

@LakshyAAAgrawal
Copy link
Collaborator

Great catch, and thanks a lot for the PR!

@LakshyAAAgrawalP LakshyAAAgrawalP merged commit 627841c into microsoft:main Mar 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.