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

Commit0b65191

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
do not provide completion after ' (#3911)
1 parent72a14e1 commit0b65191

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

‎src/fsharp/vs/service.fs‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,17 @@ type TypeCheckInfo
872872

873873
// Other completions
874874
| cc->
875-
letisInRangeOperator=(match ccwith Some(CompletionContext.RangeOperator)->true|_->false)
876-
GetDeclaredItems(parseResultsOpt, lineStr, origLongIdentOpt, colAtEndOfNamesAndResidue, residueOpt, lastDotPos, line, loc, filterCtors,resolveOverloads, hasTextChangedSinceLastTypecheck, isInRangeOperator, getAllSymbols)
875+
match residueOpt|> Option.bind Seq.tryHeadwith
876+
| Some'''->
877+
// The last token in
878+
// let x = 'E
879+
// is Ident with text "'E", however it's either unfinished char literal or generic parameter.
880+
// We should not provide any completion in the former case, and we don't provide it for the latter one for now
881+
// because providing generic parameters list is context aware, which we don't have here (yet).
882+
None
883+
|_->
884+
letisInRangeOperator=(match ccwith Some(CompletionContext.RangeOperator)->true|_->false)
885+
GetDeclaredItems(parseResultsOpt, lineStr, origLongIdentOpt, colAtEndOfNamesAndResidue, residueOpt, lastDotPos, line, loc, filterCtors,resolveOverloads, hasTextChangedSinceLastTypecheck, isInRangeOperator, getAllSymbols)
877886

878887
res|> Option.map(fun(items,denv,m)-> items, denv, completionContext, m)
879888

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp