diff --git a/CHANGELOG.md b/CHANGELOG.md index c1e5a6240..8dc01a08a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ - Docstring template Code Action. https://github.com/rescript-lang/rescript-vscode/pull/764 +#### :bug: Bug Fix + +- Fix URL scheme for Code Action. https://github.com/rescript-lang/rescript-vscode/pull/748 + ## 1.16.0 #### :rocket: New Feature diff --git a/analysis/src/CodeActions.ml b/analysis/src/CodeActions.ml index 844e25bce..0d383685c 100644 --- a/analysis/src/CodeActions.ml +++ b/analysis/src/CodeActions.ml @@ -6,6 +6,7 @@ let stringifyCodeActions codeActions = (codeActions |> List.map Protocol.stringifyCodeAction |> Protocol.array) let make ~title ~kind ~uri ~newText ~range = + let uri = uri |> Uri.fromPath |> Uri.toString in { Protocol.title; codeActionKind = kind;