@@ -76,11 +76,11 @@ type BraceCompletionSession
7676 let mutable openingPoint : ITrackingPoint = null
7777 let editorOperations = editorOperationsFactoryService.GetEditorOperations( textView)
7878
79- member __ .EndSession() =
79+ member _ .EndSession() =
8080 closingPoint <- null
8181 openingPoint <- null
8282
83- member __ .CreateUndoTransaction() =
83+ member _ .CreateUndoTransaction() =
8484 undoHistory.CreateTransaction( BraceCompletion)
8585
8686 member this.Start ( cancellationToken : CancellationToken ) =
@@ -148,7 +148,7 @@ type BraceCompletionSession
148148
149149 undo.Complete()
150150
151- member __ .HasNoForwardTyping( caretPoint : SnapshotPoint , endPoint : SnapshotPoint ) =
151+ member _ .HasNoForwardTyping( caretPoint : SnapshotPoint , endPoint : SnapshotPoint ) =
152152 Debug.Assert( caretPoint.Snapshot = endPoint.Snapshot, " snapshots do not match" )
153153
154154 if caretPoint.Snapshot = endPoint.Snapshot then
@@ -173,7 +173,7 @@ type BraceCompletionSession
173173 else
174174 false
175175
176- member __ .MoveCaretToClosingPoint() =
176+ member _ .MoveCaretToClosingPoint() =
177177 let closingSnapshotPoint = closingPoint.GetPoint( subjectBuffer.CurrentSnapshot)
178178
179179 // find the position just after the closing brace in the view's text buffer
@@ -217,7 +217,7 @@ type BraceCompletionSession
217217 undo.Complete()
218218 this.EndSession()
219219
220- member __ .PostBackspace() = ()
220+ member _ .PostBackspace() = ()
221221
222222 member this.PreOverType handledCommand =
223223 handledCommand <- false
@@ -259,7 +259,7 @@ type BraceCompletionSession
259259 undo.Complete()
260260 | _ -> ()
261261
262- member __ .PostOverType() = ()
262+ member _ .PostOverType() = ()
263263
264264 member this.PreTab handledCommand =
265265 handledCommand <- false
@@ -274,7 +274,7 @@ type BraceCompletionSession
274274 editorOperations.AddAfterTextBufferChangePrimitive()
275275 undo.Complete()
276276
277- member __ .PreReturn handledCommand =
277+ member _ .PreReturn handledCommand =
278278 handledCommand <- false
279279
280280 member this.PostReturn () =
@@ -286,26 +286,26 @@ type BraceCompletionSession
286286 session.AfterReturn( this, CancellationToken.None)
287287 | _ -> ()
288288
289- member __ .Finish() = ()
289+ member _ .Finish() = ()
290290
291- member __ .PostTab() = ()
291+ member _ .PostTab() = ()
292292
293- member __ .PreDelete handledCommand =
293+ member _ .PreDelete handledCommand =
294294 handledCommand <- false
295295
296- member __ .PostDelete() = ()
296+ member _ .PostDelete() = ()
297297
298- member __ .OpeningBrace = openingBrace
298+ member _ .OpeningBrace = openingBrace
299299
300- member __ .ClosingBrace = closingBrace
300+ member _ .ClosingBrace = closingBrace
301301
302- member __ .OpeningPoint = openingPoint
302+ member _ .OpeningPoint = openingPoint
303303
304- member __ .ClosingPoint = closingPoint
304+ member _ .ClosingPoint = closingPoint
305305
306- member __ .SubjectBuffer = subjectBuffer
306+ member _ .SubjectBuffer = subjectBuffer
307307
308- member __ .TextView = textView
308+ member _ .TextView = textView
309309
310310module Parenthesis =
311311
@@ -372,88 +372,88 @@ type ParenthesisCompletionSession() =
372372
373373 interface IEditorBraceCompletionSession with
374374
375- member __ .AfterReturn( _session , _cancellationToken ) =
375+ member _ .AfterReturn( _session , _cancellationToken ) =
376376 ()
377377
378- member __ .AfterStart( _session , _cancellationToken ) =
378+ member _ .AfterStart( _session , _cancellationToken ) =
379379 ()
380380
381- member __ .AllowOverType( _session , _cancellationToken ) =
381+ member _ .AllowOverType( _session , _cancellationToken ) =
382382 true
383383
384- member __ .CheckOpeningPoint( _session , _cancellationToken ) =
384+ member _ .CheckOpeningPoint( _session , _cancellationToken ) =
385385 true
386386
387387type DoubleQuoteCompletionSession () =
388388
389389 interface IEditorBraceCompletionSession with
390390
391- member __ .AfterReturn( _session , _cancellationToken ) =
391+ member _ .AfterReturn( _session , _cancellationToken ) =
392392 ()
393393
394- member __ .AfterStart( _session , _cancellationToken ) =
394+ member _ .AfterStart( _session , _cancellationToken ) =
395395 ()
396396
397- member __ .AllowOverType( _session , _cancellationToken ) =
397+ member _ .AllowOverType( _session , _cancellationToken ) =
398398 true
399399
400- member __ .CheckOpeningPoint( _session , _cancellationToken ) =
400+ member _ .CheckOpeningPoint( _session , _cancellationToken ) =
401401 true
402402
403403type VerticalBarCompletionSession () =
404404
405405 interface IEditorBraceCompletionSession with
406406
407- member __ .AfterReturn( _session , _cancellationToken ) =
407+ member _ .AfterReturn( _session , _cancellationToken ) =
408408 ()
409409
410- member __ .AfterStart( _session , _cancellationToken ) =
410+ member _ .AfterStart( _session , _cancellationToken ) =
411411 ()
412412
413- member __ .AllowOverType( _session , _cancellationToken ) =
413+ member _ .AllowOverType( _session , _cancellationToken ) =
414414 true
415415
416416 (* This is for [| |] and {| |} , since the implementation deals with chars only.
417417 We have to test if there is a { or [ before the cursor position and insert the closing '|'. *)
418- member __ .CheckOpeningPoint( session , _cancellationToken ) =
418+ member _ .CheckOpeningPoint( session , _cancellationToken ) =
419419 tryInsertAdditionalBracePair session CurlyBrackets.OpenCharacter CurlyBrackets.CloseCharacter ||
420420 tryInsertAdditionalBracePair session SquareBrackets.OpenCharacter SquareBrackets.CloseCharacter
421421
422422type AngleBracketCompletionSession () =
423423
424424 interface IEditorBraceCompletionSession with
425425
426- member __ .AfterReturn( _session , _cancellationToken ) =
426+ member _ .AfterReturn( _session , _cancellationToken ) =
427427 ()
428428
429- member __ .AfterStart( _session , _cancellationToken ) =
429+ member _ .AfterStart( _session , _cancellationToken ) =
430430 ()
431431
432- member __ .AllowOverType( _session , _cancellationToken ) =
432+ member _ .AllowOverType( _session , _cancellationToken ) =
433433 true
434434
435435 (* This is for attributes [< >] , since the implementation deals with chars only.
436436 We have to test if there is a [ before the cursor position and insert the closing '>'. *)
437- member __ .CheckOpeningPoint( session , _cancellationToken ) =
437+ member _ .CheckOpeningPoint( session , _cancellationToken ) =
438438 tryInsertAdditionalBracePair session SquareBrackets.OpenCharacter SquareBrackets.CloseCharacter
439439
440440(* For multi-line comments, test if it is between "()" *)
441441type AsteriskCompletionSession () =
442442
443443 interface IEditorBraceCompletionSession with
444444
445- member __ .AfterReturn( _session , _cancellationToken ) =
445+ member _ .AfterReturn( _session , _cancellationToken ) =
446446 ()
447447
448- member __ .AfterStart( _session , _cancellationToken ) =
448+ member _ .AfterStart( _session , _cancellationToken ) =
449449 ()
450450
451- member __ .AllowOverType( _session , _cancellationToken ) =
451+ member _ .AllowOverType( _session , _cancellationToken ) =
452452 true
453453
454454 (* This is for attributes [< >] , since the implementation deals with chars only.
455455 We have to test if there is a [ before the cursor position and insert the closing '>'. *)
456- member __ .CheckOpeningPoint( session , _cancellationToken ) =
456+ member _ .CheckOpeningPoint( session , _cancellationToken ) =
457457 tryInsertAdditionalBracePair session Parenthesis.OpenCharacter Parenthesis.CloseCharacter
458458
459459[<ExportLanguageService( typeof< IEditorBraceCompletionSessionFactory>, FSharpConstants.FSharpLanguageName) >]
@@ -465,14 +465,14 @@ type EditorBraceCompletionSessionFactory() =
465465 | ClassificationTypeNames.StringLiteral -> false
466466 | _ -> true
467467
468- member __ .IsSupportedOpeningBrace openingBrace =
468+ member _ .IsSupportedOpeningBrace openingBrace =
469469 match openingBrace with
470470 | Parenthesis.OpenCharacter | CurlyBrackets.OpenCharacter | SquareBrackets.OpenCharacter
471471 | DoubleQuote.OpenCharacter | VerticalBar.OpenCharacter | AngleBrackets.OpenCharacter
472472 | Asterisk.OpenCharacter -> true
473473 | _ -> false
474474
475- member __ .CheckCodeContext( document : Document , position : int , _openingBrace : char , cancellationToken ) =
475+ member _ .CheckCodeContext( document : Document , position : int , _openingBrace : char , cancellationToken ) =
476476 // We need to know if we are inside a F# string or comment. If we are, then don't do automatic completion.
477477 let sourceCodeTask = document.GetTextAsync( cancellationToken)
478478 sourceCodeTask.Wait( cancellationToken)
@@ -504,7 +504,7 @@ type EditorBraceCompletionSessionFactory() =
504504 // classifiedSpan.TextSpan.IntersectsWith position &&
505505 // not (spanIsString classifiedSpan)))))
506506
507- member __ .CreateEditorSession( _document , _openingPosition , openingBrace , _cancellationToken ) =
507+ member _ .CreateEditorSession( _document , _openingPosition , openingBrace , _cancellationToken ) =
508508 match openingBrace with
509509 | Parenthesis.OpenCharacter -> ParenthesisCompletionSession() :> IEditorBraceCompletionSession
510510 | CurlyBrackets.OpenCharacter -> ParenthesisCompletionSession() :> IEditorBraceCompletionSession
@@ -541,7 +541,7 @@ type BraceCompletionSessionProvider
541541
542542 interface IBraceCompletionSessionProvider with
543543
544- member __ .TryCreateSession( textView , openingPoint , openingBrace , closingBrace , session ) =
544+ member _ .TryCreateSession( textView , openingPoint , openingBrace , closingBrace , session ) =
545545 session <-
546546 maybe {
547547 let! document = openingPoint.Snapshot.GetOpenDocumentInCurrentContextWithChanges() |> Option.ofObj
0 commit comments