-
Notifications
You must be signed in to change notification settings - Fork 254
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
"Rename Symbol" doesn't work on C++ #3894
Comments
Hey @akira-okumura , this is a supported scenario, so it looks like you uncovered a bug. @aletsdelarosa , can you take a look? I wasn't able to repro with a TypeScript project, so it might be specific to how the C++ extension handles renames. |
The extensions installed are
|
@daytonellwanger Did we ever have a chance to narrow this down to just C++? |
@lostintangent I confirmed that it didn't repro with TS, but that was all. |
Sorry for my very late reply. I gave up using Live Share for refactoring and I did not retry it after my last post. Again today, I tried VS Code 1.56.2 (Universal) on mac OS Big Sur 11.3.1, together with ms-vscode.cpptools 1.3.1 and ms-vsliveshare.vsliveshare 1.0.4272. The host (logging in with my GitHub account) and guest (anonymous, on a virtual machine on the host) have almost the same configuration. Refactoring, i.e., "Rename Symbol" does not work on the guest side, but it works on the host. int main() {
int a = 0;
a = 2;
return 0;
} Renaming |
@akira-okumura I have tried reproducing this issue by joining a session as a guest with the same installed extensions, but I have not encountered any issues to "Rename Symbol". Let me know if this is fixed for you or if I am missing some repro steps. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically in 2 days. |
I'm experiencing a more serious bug! If you do a refactoring of a symbol, it replaces all string occurrences in the current file! |
The "Rename Symbol" feature is working perfectly fine on the latest version of VS Code on Windows |
Describe what happened:
Right clicking
a
and choosing "Rename Symbol" usually allows the user to refactor the variable name in normal off-line sessions.But during a live-share session, the client side user cannot use this functionality and nothing happens after entering a new variable name.
What was your system configuration?
Product and Version [VSCode]: 1.49.2
OS Version[macOS]: 10.15.7
Live Share Extension Version: v1.0.2902
Target Platform or Language [e.g. Node.js]:
Commit: e5e9e69aed6e1984f7499b7af85b3d05f9a6883a
Date: 2020-09-24T16:23:52.277Z (5 days ago)
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0
Steps to Reproduce / Scenario:
The text was updated successfully, but these errors were encountered: