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

Sync rescript-editor-support #99

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Mar 29, 2021

Sync rescript-editor-support to commit rescript-lang/rescript-editor-support@03ee0d9

[Update: don't show deprecation on hover].

Since release 1.0.5:

New features

  • Add support for autocomplete for pipe-first foo->: the type of foo is used to determine the module to take completions from.
  • Add support for autocomplete for decorators such as @module and @val.
  • Add support for autocomplete of labelled arguments foo(~label... ).
  • Add support for @deprecated attributes in autocomplete.
  • Support for upcoming rescript npm package for the compiler. Looks for rescript in addition to bs-platform in node_modules.

Fixes

Sync rescript-editor-support to commit rescript-lang/rescript-editor-support@ae455c7

Since release 1.0.5:

#### New features
- Add support for autocomplete for pipe-first `foo->`: the type of `foo` is used to determine the module to take completions from.
- Add support for autocomplete for decorators such as `@module` and `@val`.
- Add support for autocomplete of labelled arguments `foo(~label... )`.
- Add support for @deprecated attributes in autocomplete and hover.
- Support for upcoming `rescript` npm package for the compiler. Looks for `rescript` in addition to `bs-platform` in `node_modules`.

#### Fixes

- Fix issue for uncurried functions where the internal definition of `Js.Fn.arity` is shown on hover. (See rescript-lang/rescript-editor-support#62).
- Fix type hint when hovering over labeled arguments of components (See rescript-lang/rescript-editor-support#63).
- Fix issue where values declared with type annotation would not show up in autocomplete, and would show no doc comment on hover. (See #72).
- Fix hover on definitions inside a react component module, or whenever multiple definitins for the same value exist in the module (See rescript-lang/rescript-editor-support#67).
- Fix autocomplete issue where multiple open's were considered in the wrong priority order (See rescript-lang/rescript-editor-support#72).
- Autocomplete: add support for `open!` in addition to `open`.
@cristianoc
Copy link
Collaborator Author

Updated: don't show deprecation on hover.
CC @chenglou

@chenglou
Copy link
Member

chenglou commented Mar 29, 2021

For posteriority, this is what it looks like with duplicated warnings:

image

Screen Shot 2021-03-29 at 7 58 02 AM

The rationale to remove it from the editor binary side, instead of on the diagnostics parsing side, is that the latter respects whichever bsconfig setting regarding suppressing deprecation warnings. Although the former looks better in the screenshot...

@chenglou chenglou merged commit 446f838 into master Mar 30, 2021
@chenglou chenglou deleted the rescript-editor-support-ae455c735da3f82dd8cabcd3fe82b3b294ece45c branch March 30, 2021 06:18
@chenglou
Copy link
Member

Thanks

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