C# Класс Microsoft.R.Editor.Completion.RCompletionController

R-specific completion controller. Initiates, commits or dismisses completion, signature and parameter help sessions depending on what was typed and the current editor context.
Наследование: Microsoft.Languages.Editor.Completion.CompletionController
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CommitCompletionSession ( char typedCharacter ) : bool
ConnectSubjectBuffer ( ITextBuffer subjectBuffer ) : void

Called when text buffer becomes visible in the text view. The buffer may not be a top-level buffer in the graph and may be projected into view.

Create ( ITextView textView, IList subjectBuffers, ICompletionBroker completionBroker, IQuickInfoBroker quickInfoBroker, ISignatureHelpBroker signatureBroker, ICoreShell shell ) : RCompletionController
Detach ( ITextView textView ) : void
DisconnectSubjectBuffer ( ITextBuffer subjectBuffer ) : void

Called when text buffer becomes invisible in the text view. The buffer may not be a top-level buffer in the graph and may be projected into view. Typically called when document is closed or buffer is removed from the view buffer graph.

FromTextView ( ITextView textView ) : RCompletionController
IsCommitChar ( char typedChar ) : bool

Should this key commit a completion session?

IsMuteCharacter ( char typedCharacter ) : bool
IsTriggerChar ( char typedCharacter ) : bool

Should this key press trigger a completion session?

OnPostTypeChar ( char typedCharacter ) : void

Called after character is typed. Gives language-specific completion controller has a chance to dismiss or initiate completion and paramenter help sessions depending on the current context.

OnPreTypeChar ( char typedCharacter ) : bool

Called before character type is passed down to the core editor along the controll chain. Gives language-specific controller a chance to initiate different action and potentially 'eat' the character. For example, in R typing 'abc[TAB] should bring up intellisense list rather than actually insert the tab character.

TriggerSignatureHelp ( ) : void

Overrides default session since we want to track signature as caret moves. Default signature session dismisses when caret changes position.

Защищенные методы

Метод Описание
CanDismissSignatureOnCommit ( ) : bool
IsRetriggerChar ( ICompletionSession session, char typedCharacter ) : bool

Determines if character is a re-trigger one. Re-trigger means 'commit and trigger again' such as when user hits $ that commits current session for the class/object and trigger it again for object members.

OnCompletionSessionCommitted ( object sender, EventArgs eventArgs ) : void
UpdateInsertionText ( ) : void

Updates insertion text so it excludes final commit character

Приватные методы

Метод Описание
RCompletionController ( ITextView textView, IList subjectBuffers, ICompletionBroker completionBroker, IQuickInfoBroker quickInfoBroker, ISignatureHelpBroker signatureBroker, ICoreShell shell ) : System
TryInsertRoxygenBlock ( ) : bool

Описание методов

CanDismissSignatureOnCommit() защищенный Метод

protected CanDismissSignatureOnCommit ( ) : bool
Результат bool

CommitCompletionSession() публичный Метод

public CommitCompletionSession ( char typedCharacter ) : bool
typedCharacter char
Результат bool

ConnectSubjectBuffer() публичный Метод

Called when text buffer becomes visible in the text view. The buffer may not be a top-level buffer in the graph and may be projected into view.
public ConnectSubjectBuffer ( ITextBuffer subjectBuffer ) : void
subjectBuffer ITextBuffer
Результат void

Create() публичный статический Метод

public static Create ( ITextView textView, IList subjectBuffers, ICompletionBroker completionBroker, IQuickInfoBroker quickInfoBroker, ISignatureHelpBroker signatureBroker, ICoreShell shell ) : RCompletionController
textView ITextView
subjectBuffers IList
completionBroker ICompletionBroker
quickInfoBroker IQuickInfoBroker
signatureBroker ISignatureHelpBroker
shell ICoreShell
Результат RCompletionController

Detach() публичный Метод

public Detach ( ITextView textView ) : void
textView ITextView
Результат void

DisconnectSubjectBuffer() публичный Метод

Called when text buffer becomes invisible in the text view. The buffer may not be a top-level buffer in the graph and may be projected into view. Typically called when document is closed or buffer is removed from the view buffer graph.
public DisconnectSubjectBuffer ( ITextBuffer subjectBuffer ) : void
subjectBuffer ITextBuffer
Результат void

FromTextView() публичный статический Метод

public static FromTextView ( ITextView textView ) : RCompletionController
textView ITextView
Результат RCompletionController

IsCommitChar() публичный Метод

Should this key commit a completion session?
public IsCommitChar ( char typedChar ) : bool
typedChar char
Результат bool

IsMuteCharacter() публичный Метод

public IsMuteCharacter ( char typedCharacter ) : bool
typedCharacter char
Результат bool

IsRetriggerChar() защищенный Метод

Determines if character is a re-trigger one. Re-trigger means 'commit and trigger again' such as when user hits $ that commits current session for the class/object and trigger it again for object members.
protected IsRetriggerChar ( ICompletionSession session, char typedCharacter ) : bool
session ICompletionSession
typedCharacter char
Результат bool

IsTriggerChar() публичный Метод

Should this key press trigger a completion session?
public IsTriggerChar ( char typedCharacter ) : bool
typedCharacter char
Результат bool

OnCompletionSessionCommitted() защищенный Метод

protected OnCompletionSessionCommitted ( object sender, EventArgs eventArgs ) : void
sender object
eventArgs System.EventArgs
Результат void

OnPostTypeChar() публичный Метод

Called after character is typed. Gives language-specific completion controller has a chance to dismiss or initiate completion and paramenter help sessions depending on the current context.
public OnPostTypeChar ( char typedCharacter ) : void
typedCharacter char
Результат void

OnPreTypeChar() публичный Метод

Called before character type is passed down to the core editor along the controll chain. Gives language-specific controller a chance to initiate different action and potentially 'eat' the character. For example, in R typing 'abc[TAB] should bring up intellisense list rather than actually insert the tab character.
public OnPreTypeChar ( char typedCharacter ) : bool
typedCharacter char
Результат bool

TriggerSignatureHelp() публичный Метод

Overrides default session since we want to track signature as caret moves. Default signature session dismisses when caret changes position.
public TriggerSignatureHelp ( ) : void
Результат void

UpdateInsertionText() защищенный Метод

Updates insertion text so it excludes final commit character
protected UpdateInsertionText ( ) : void
Результат void