-
Notifications
You must be signed in to change notification settings - Fork 84
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
Fix interface handling to support renaming across interface files #87
Comments
Could you detail the situations where it doesn't work? This feature is supported, but might have some bugs :) |
@jaredly Okay found it! Here's a quick SSCCE // foo.re
let ask = (question: string) => Js.log(question);
let inquire = (question: string) => Js.log(inquire); // foo.rei
// do not expose "ask" function.
let inquire: string => (); // bar.re
Foo.ask("Howdy");
// ^ rename the "ask" token Now when I try to rename the Also, when I remove the |
hmmm if foo.rei doesn't expose |
My bad, I've got it wrong for which module the /* foo.re */
let ask = (question: string) => Js.log(question);
let inquire = (question: string) => Js.log(question); /* bar.re */
let greet1 = () => Foo.ask("Howdy");
/* ^ rename the "ask" symbol */
let greet2 = () => Foo.inquire("Howdy"); /* bar.rei */
/* do not expose "greet1" function. */
let greet2: () => (); |
ah yes, I definitely need better support for interfaces |
Partially fixed -- there's still a bug if you have bucklescript's namespacing turned on... |
Hi there, I'm using
reason-langauge-server
along withvscode
and so far it's been a solid experience. When using symbol renaming (F2
), it seems to only work in the scope of a single file / module. It would be so nice if renaming could be propagated to the entire project.I know this feature isn't easy, so just want to put in a request to keep on the backlog : )
The text was updated successfully, but these errors were encountered: