Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(lsp-rust): Mnior clean up #4398

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Conversation

jcs090218
Copy link
Member

@jcs090218 jcs090218 commented Mar 28, 2024

~/ home directory under Windows is c:/Users/USERPROFILE/AppData/Roaming, but .cargo/registry/src and .rustup/toolchains is under c:/Users/USERPROFILE/. This patch fixes this issue.

Just minor clean up.

@github-actions github-actions bot added rust client One or more of lsp-mode language clients labels Mar 28, 2024
@jcs090218 jcs090218 requested a review from yyoncho March 28, 2024 07:32
(defcustom lsp-rust-library-directories '("~/.cargo/registry/src" "~/.rustup/toolchains")
(defcustom lsp-rust-library-directories
(let ((home-dir (pcase system-type
('windows-nt (getenv "USERPROFILE"))
Copy link
Member

Choose a reason for hiding this comment

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

The ~ should expand to %USERPROFILE% under windows, why do we need this change? Just to expand the path?

Copy link
Member Author

@jcs090218 jcs090218 Mar 28, 2024

Choose a reason for hiding this comment

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

You are right. Sorry for the noisy. 😓

I've reverted!

@jcs090218 jcs090218 changed the title fix(lsp-rust): Library path on Windows style(lsp-rust): Mnior clean up Mar 28, 2024
@jcs090218 jcs090218 merged commit 82eaf6a into emacs-lsp:master Mar 28, 2024
11 of 14 checks passed
@jcs090218 jcs090218 deleted the fix/rust-path branch March 28, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client One or more of lsp-mode language clients rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants