Skip to content

Commit 951e285

Browse files
authored
Sync up with rescript-editor-support c57ed6d (#94)
Sync up with rescript-lang/rescript-editor-support@c57ed6d #### 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... )`. #### 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).
1 parent b8984bd commit 951e285

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed
15.7 KB
Binary file not shown.
21.5 KB
Binary file not shown.

server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ process.on("message", (msg: m.Message) => {
280280
hoverProvider: binaryExists,
281281
definitionProvider: binaryExists,
282282
completionProvider: binaryExists
283-
? { triggerCharacters: ["."] }
283+
? { triggerCharacters: [".", ">", "@", "~"] }
284284
: undefined,
285285
},
286286
};
15.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)