Skip to content

Commit

Permalink
No commit on : (#3050)
Browse files Browse the repository at this point in the history
Intellisense should not commit completion when user type name of property in Record
  • Loading branch information
sergey-tihon authored and KevinRansom committed May 15, 2017
1 parent 43c90f8 commit 56a586d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type internal FSharpCompletionProvider
let documentationBuilder = XmlDocumentation.CreateDocumentationBuilder(xmlMemberIndexService, serviceProvider.DTE)

static let noCommitOnSpaceRules =
CompletionItemRules.Default.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' ', '.', '<', '>', '(', ')', '!'))
CompletionItemRules.Default.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' ', '.', '<', '>', '(', ')', '!', ':'))

static let getRules() = if Settings.IntelliSense.ShowAfterCharIsTyped then noCommitOnSpaceRules else CompletionItemRules.Default

Expand Down Expand Up @@ -287,4 +287,4 @@ type internal FSharpCompletionProvider
}
|> Async.map (Option.defaultValue (CompletionChange.Create(TextChange(item.Span, nameInCode))))

} |> RoslynHelpers.StartAsyncAsTask cancellationToken
} |> RoslynHelpers.StartAsyncAsTask cancellationToken

0 comments on commit 56a586d

Please sign in to comment.