From 95d6092bdcc54533f5e8f2f495f36f703fb60515 Mon Sep 17 00:00:00 2001 From: TheAngryByrd Date: Sat, 21 Sep 2024 21:20:28 +0000 Subject: [PATCH] Bump version to 7.21.2 --- release/CHANGELOG.md | 4 ++++ release/package.json | 2 +- src/Components/CodeLensHelpers.fs | 25 +++++++++++-------------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/release/CHANGELOG.md b/release/CHANGELOG.md index 011875ef..fdb656f4 100644 --- a/release/CHANGELOG.md +++ b/release/CHANGELOG.md @@ -1,3 +1,7 @@ +### 7.21.2 - 21.09.2024 + +* FIXED: [Fix Find References in CodeLens](https://github.com/ionide/ionide-vscode-fsharp/pull/2042) from @PaigeM80 + ### 7.21.1 - 07.09.2024 * Updated to FSAC 0.74.1. This release includes fixes for the floating codelens issue users have reported, updates to the Fantomas integration to allow usage with the global-tool installation of fantomas, and an enhancement to the 'generate cases' code action for DU matches that allows it to generate cases even when no matches have been entered. diff --git a/release/package.json b/release/package.json index 8ce9f508..5bbbb771 100644 --- a/release/package.json +++ b/release/package.json @@ -1812,5 +1812,5 @@ "type": "git", "url": "https://github.com/ionide/ionide-vscode-fsharp.git" }, - "version": "7.21.1" + "version": "7.21.2" } \ No newline at end of file diff --git a/src/Components/CodeLensHelpers.fs b/src/Components/CodeLensHelpers.fs index 29692004..76e2d237 100644 --- a/src/Components/CodeLensHelpers.fs +++ b/src/Components/CodeLensHelpers.fs @@ -11,24 +11,18 @@ module CodeLensHelpers = type LspUri = string - type LspPosition = { - line : uint32 - character : uint32 - } + type LspPosition = { line: uint32; character: uint32 } - type LspRange = { - start : LspPosition - ``end`` : LspPosition - } + type LspRange = + { start: LspPosition + ``end``: LspPosition } - type LspLocation = { - uri : string - range : LspRange - } + type LspLocation = { uri: string; range: LspRange } type CustomIExports = abstract registerCommand: - command: string * callback: (LspUri -> LspPosition -> LspLocation seq -> obj option) * ?thisArg: obj -> Disposable + command: string * callback: (LspUri -> LspPosition -> LspLocation seq -> obj option) * ?thisArg: obj -> + Disposable let showReferences (uri: LspUri) (args2: LspPosition) (args3: LspLocation seq) = let uri = vscode.Uri.parse !!uri @@ -54,5 +48,8 @@ module CodeLensHelpers = let activate (context: ExtensionContext) = (unbox commands) - .registerCommand ("fsharp.showReferences", unbox<(LspUri -> LspPosition -> LspLocation seq -> obj option)> (showReferences)) + .registerCommand ( + "fsharp.showReferences", + unbox<(LspUri -> LspPosition -> LspLocation seq -> obj option)> (showReferences) + ) |> context.Subscribe