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

Add example case #1058

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Nov 29, 2024

Hi @zth, I think this reproduces the problem I saw with the webapi bindings.

@zth zth merged commit ec9dab9 into rescript-lang:pipe-completion-on-dot-completion Nov 29, 2024
zth pushed a commit that referenced this pull request Jan 2, 2025
zth added a commit that referenced this pull request Jan 2, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants