Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf15c15d

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
show Add Open code fix if the unresolved symbol is in the middle of the long ident (dotnet#2166)
1 parent2dc9f6f commitf15c15d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/fsharp/vs/ServiceAssemblyContent.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ module internal Entity =
467467
|_->
468468
partiallyQualifiedName
469469
|> Array.heads
470-
//the last partmustbeunresolved, otherwise we show false positive suggestions like
470+
//long identmustcontain anunresolved part, otherwise we show false positive suggestions like
471471
// "open System" for `let _ = System.DateTime.Naaaw`. Here only "Naaw" is unresolved.
472-
|> Array.filter(fun x->not(x.[x.Length-1].Resolved))
472+
|> Array.filter(fun x->x|> Array.exists(fun x->not x.Resolved))
473473
|> Array.choose(fun parts->
474474
letparts= parts|> Array.map(fun x-> x.Ident)
475475
ifnot(candidate|> Array.endsWith parts)then None

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp