Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/release-notes/.VisualStudio/18.vNext.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Build a single-file project's `OtherOptions` reference flags with one array comprehension instead of two `Array.ofSeq` calls and an `Array.append`. ([PR #20499](https://github.com/dotnet/fsharp/pull/20499))
* Fix syntax coloring being lost for a whole file when one symbol resolves into metadata that could not be read. ([Issue #20269](https://github.com/dotnet/fsharp/issues/20269), [PR #20274](https://github.com/dotnet/fsharp/pull/20274))
* Go To Definition into an F# project built with a path map (`DeterministicSourcePaths` or `PathMap`) opens its source instead of a generated signature: the IDE no longer applies `--pathmap` to the project options it checks with. ([PR #20470](https://github.com/dotnet/fsharp/pull/20470))
* Fix completion after a closed backticked identifier on the same line. ([PR #20785](https://github.com/dotnet/fsharp/issues/20785))

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,13 @@ module internal CompletionUtils =
&& Tokenizer.isDoubleBacktickIdent (sourceText.ToString(classifiedSpan.TextSpan))

let inline isUnclosedBacktick (classifiedSpan: ClassifiedSpan) =
classifiedSpan.ClassificationType = ClassificationTypeNames.Identifier
&& sourceText.ToString(classifiedSpan.TextSpan).StartsWith "``"
if classifiedSpan.ClassificationType = ClassificationTypeNames.Identifier then
let text = sourceText.ToString(classifiedSpan.TextSpan)

text.StartsWith("``", System.StringComparison.Ordinal)
&& not (Tokenizer.isDoubleBacktickIdent text)
else
false

match
classifiedSpans
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,13 @@ let x = A.``B C``

VerifyCompletionListSpan(fileContents, "A.``B C``", "``B C``")

[<Fact>]
let ``Completion after backticked binding name`` () =
let fileContents = "let ``what is this`` = System.DateTime.N"

VerifyCompletionList(fileContents, "System.DateTime.N", [ "Now" ], [])
VerifyCompletionListSpan(fileContents, "System.DateTime.N", "N")

[<Fact>]
let ``Completion list span works with partial backtick identifier`` () =
let fileContents =
Expand Down
Loading