-
Notifications
You must be signed in to change notification settings - Fork 57
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
Additional completion tests #1062
Additional completion tests #1062
Conversation
These have moved to the compiler. |
No we need to keep it around for the foreseeable future, the extension will still ship this code and we need to be able to make fixes to it too since it affects all currently released versions of ReScript. This particular PR is about the dot-completion feature, which I'll port to the compiler repo once we've merged it. So it's fine. |
* Add Rxjs completion test * Add Rxjs binding example * Extend Rxjs test with fully qualified access * Add@editor.completeFrom and incomplete test output * Add passing test for property completion * Test still works when types are not named t. * Add test for @editor.completeFrom
* wip complete pipeable functions from dot completion on record when record is type t of module * correctly insert completion item text removing the dot when selecting a pipe function * add experimental mainTypeForModule annotation * complete modules in payload of mainTypeForModule * rename attribute * hover for new decorator * allow extra module completions also for pipe * make sure completions work across files * filter pipe completions to only applicable functions * pipe complete only for functions that take the expected type as the first argument * start refactoring dot completion everywhere * refactor dot completion * add a few more synthetic * disable verbose log * cleanup * pipe dot completion for builtins * Add example case (#1058) * Additional completion tests (#1062) * Add Rxjs completion test * Add Rxjs binding example * Extend Rxjs test with fully qualified access * Add@editor.completeFrom and incomplete test output * Add passing test for property completion * Test still works when types are not named t. * Add test for @editor.completeFrom * make dot completion everywhere actually work * do not care about ExtractedType now that we have incremental type checking * refactor to share pipe completion code logic * cleanup * cleanup * fix debug command * up rescript in test project * change strategy for removing dot on completion * contonous dot completion * handle dot completions on piped idents * handle scope * inline pipe completion logic again * refactor * more compl spec * refactor * changelog --------- Co-authored-by: Florian Verdonck <florian.verdonck@outlook.com>
Hi @zth, I've added a few more test cases based on my last project I'm working on:
RxjsCompletion.res
it should complete from the parent moduleCompletionPipeProperty.res
already works, could be interested to add for regression sake.CompletionMultipleEditorCompleteFrom.res
didn't work a single attribute either. Seems interesting to have regression-wise.