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

Commit2948313

Browse files
forkiKevinRansom
authored andcommitted
cleanup in service (dotnet#5724)
1 parent933352a commit2948313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/fsharp/service/service.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ type TypeCheckInfo
690690
// These come through as an empty plid and residue "". Otherwise we try an environment lookup
691691
// and then return to the qualItems. This is because the expression typings are a little inaccurate, primarily because
692692
// it appears we're getting some typings recorded for non-atomic expressions like "f x"
693-
when(match plidwith[]->true|_->false)->
693+
whenisNil plid->
694694
// lookup based on expression typings successful
695695
Some(items|> List.map(CompletionItem(tryDestAppTy g ty) None), denv, m)
696696
| GetPreciseCompletionListFromExprTypingsResult.NoneBecauseThereWereTypeErrors,_->
@@ -700,7 +700,7 @@ type TypeCheckInfo
700700
| GetPreciseCompletionListFromExprTypingsResult.NoneBecauseTypecheckIsStaleAndTextChanged,_->
701701
// we want to report no result and let second-chance intellisense kick in
702702
None
703-
|_,truewhen(match plidwith[]->true|_->false)->
703+
|_,truewhenisNil plid->
704704
// If the user just pressed '.' after an _expression_ (not a plid), it is never right to show environment-lookup top-level completions.
705705
// The user might by typing quickly, and the LS didn't have an expression type right before the dot yet.
706706
// Second-chance intellisense will bring up the correct list in a moment.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp