提交 afb5ee12 编写于 作者: D David Barbet

Make abstract

上级 333b5ece
......@@ -118,5 +118,7 @@ private void AddItems(ImmutableArray<INamedTypeSymbol> inferredTypes, int index,
selectedItem.Span,
selectedItem.DisplayText));
}
internal override ImmutableHashSet<char> TriggerCharacters => ImmutableHashSet<char>.Empty;
}
}
......@@ -12,6 +12,6 @@ internal abstract class LSPCompletionProvider : CommonCompletionProvider
/// Defines the set of possible non-identifier trigger characters for this completion provider.
/// Used by the LSP server to determine the trigger character set for completion.
/// </summary>
internal virtual ImmutableHashSet<char> TriggerCharacters { get; } = ImmutableHashSet<char>.Empty;
internal abstract ImmutableHashSet<char> TriggerCharacters { get; }
}
}
......@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Options;
......@@ -23,5 +24,7 @@ protected CompletionItem CreateEmptySuggestionModeItem()
=> CreateSuggestionModeItem(displayText: null, description: null);
internal override bool IsInsertionTrigger(SourceText text, int position, OptionSet options) => false;
internal override ImmutableHashSet<char> TriggerCharacters => ImmutableHashSet<char>.Empty;
}
}
......@@ -2,6 +2,7 @@
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Collections.Immutable
Imports System.Composition
Imports System.Threading
Imports Microsoft.CodeAnalysis
......@@ -150,5 +151,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.SuggestionMode
Return Nothing
End Function
Friend Overrides ReadOnly Property TriggerCharacters As ImmutableHashSet(Of Char) = ImmutableHashSet(Of Char).Empty
End Class
End Namespace
......@@ -92,6 +92,8 @@ Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Snippets
options.GetOption(CompletionOptions.TriggerOnTypingLetters, LanguageNames.VisualBasic)
End Function
Friend Overrides ReadOnly Property TriggerCharacters As ImmutableHashSet(Of Char) = ImmutableHashSet(Of Char).Empty
Public Sub Commit(completionItem As CompletionItem,
textView As ITextView,
subjectBuffer As ITextBuffer,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册