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

nixd/Server: move rename to controller #200

Merged
merged 1 commit into from Jul 2, 2023
Merged

Conversation

inclyc
Copy link
Member

@inclyc inclyc commented Jul 2, 2023

No description provided.

@@ -153,6 +153,18 @@ class ParseAST {
return rename(def(Var), NewName);
};

[[nodiscard]] std::optional<TextEdits>
rename(lspserver::Position Pos, const std::string &NewName) const {
Copy link
Member Author

Choose a reason for hiding this comment

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

maybe try-catch here and mark the method as "noexcept"

nixd/include/nixd/Server/Server.h Outdated Show resolved Hide resolved
nixd/include/nixd/Server/Server.h Show resolved Hide resolved
@inclyc inclyc enabled auto-merge July 2, 2023 22:51
@inclyc inclyc merged commit 7ef4651 into main Jul 2, 2023
28 checks passed
@inclyc inclyc deleted the nixd/static-controller branch July 2, 2023 23:00
@inclyc inclyc added the NFC No functional change label Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NFC No functional change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant