Skip to content

Commit

Permalink
Bump version to 7.21.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd committed Sep 21, 2024
1 parent 2de6103 commit 95d6092
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
4 changes: 4 additions & 0 deletions release/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion release/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1812,5 +1812,5 @@
"type": "git",
"url": "https://github.com/ionide/ionide-vscode-fsharp.git"
},
"version": "7.21.1"
"version": "7.21.2"
}
25 changes: 11 additions & 14 deletions src/Components/CodeLensHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,5 +48,8 @@ module CodeLensHelpers =

let activate (context: ExtensionContext) =
(unbox<CustomIExports> 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

0 comments on commit 95d6092

Please sign in to comment.