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
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
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