in Backend/Core/ForTea.Core/Services/CodeCompletion/AutopopupInDirective.cs [23:52]
public bool AcceptTyping(char c, ITextControl textControl, IContextBoundSettingsStore boundSettingsStore)
=> Char.IsLetterOrDigit(c) || c == ' ' || c == '"';
public bool ProcessSubsequentTyping(char c, ITextControl textControl)
=> Char.IsLetterOrDigit(c);
public bool AcceptsFile(IFile file, ITextControl textControl)
=> file is IT4File && this.MatchTokenType(file, textControl, IsSupportedTokenType);
private static bool IsSupportedTokenType(TokenNodeType tokenType)
=> tokenType == T4TokenNodeTypes.TOKEN
|| tokenType == T4TokenNodeTypes.WHITE_SPACE
|| tokenType == T4TokenNodeTypes.DIRECTIVE_START
|| tokenType == T4TokenNodeTypes.QUOTE
|| tokenType == T4TokenNodeTypes.RAW_ATTRIBUTE_VALUE;
public AutopopupType IsEnabledInSettings(IContextBoundSettingsStore settingsStore, ITextControl textControl)
=> (AutopopupType)settingsStore.GetValue(_settingsEntry, null);
public PsiLanguageType Language
=> T4Language.Instance;
public bool ForceHideCompletion
=> false;
public AutopopupInDirective([NotNull] ISettingsStore settingsStore)
{
_settingsEntry
= settingsStore.Schema.GetScalarEntry<T4AutopopupSettingsKey, AutopopupType>(key => key.InDirectives);
}