42 references to Create
Microsoft.AspNetCore.App.Analyzers (3)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
271context.AddItem(CompletionItem.Create( 280context.SuggestionModeItem = CompletionItem.Create(
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
150context.AddItem(CompletionItem.Create(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (6)
46CompletionItem.Create("SomeText0"), 48CompletionItem.Create("SomeText1"), 49CompletionItem.Create("\uffdcStartWith_FFDC_Identifier"), // http://www.fileformat.info/info/unicode/char/ffdc/index.htm 50CompletionItem.Create("SomeText2"), 51CompletionItem.Create("\uD884\uDF4AStartWith_3134A_Identifier"), // http://www.fileformat.info/info/unicode/char/3134a/index.htm 52CompletionItem.Create("SomeText3"),
Completion\CompletionServiceTests.cs (1)
59var item = CompletionItem.Create("ThirdPartyCompletionProviderItem");
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
81completionItems.Add(CompletionItem.Create(callingConvention, tags: GlyphTags.GetTags(Glyph.Keyword)));
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\CompletionItemData.cs (1)
34=> RoslynCompletionItem.Create(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
114var completionItem = CompletionItem.Create(displayText: nameof(DebugAssertTestCompletionProvider), displayTextSuffix: "", rules: CompletionItemRules.Default);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (22)
IntelliSense\CompletionRulesTests.vb (2)
66Dim item = CompletionItem.Create(word) 84Dim item = CompletionItem.Create(word)
IntelliSense\CompletionServiceTests.vb (2)
82context.AddItem(CompletionItem.Create("Completion Item From Test Completion Provider")) 120Public Shared Item As CompletionItem = CompletionItem.Create("MyRoleItem")
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (1)
91context.AddItem(CompletionItem.Create(String.Format(s_itemText, s_index)))
IntelliSense\CSharpCompletionCommandHandlerTests.vb (14)
8219context.AddItem(CompletionItem.Create( 8258Dim intelliCodeItem = CompletionItem.Create(displayText:="★ Length", filterText:="Length") 8262context.AddItem(CompletionItem.Create(displayText:="★ Normalize", filterText:="Normalize", displayTextSuffix:="()")) 8263context.AddItem(CompletionItem.Create(displayText:="Normalize", filterText:="Normalize")) 8264context.AddItem(CompletionItem.Create(displayText:="Length", filterText:="Length")) 8265context.AddItem(CompletionItem.Create(displayText:="ToString", filterText:="ToString", displayTextSuffix:="()")) 8266context.AddItem(CompletionItem.Create(displayText:="First", filterText:="First", displayTextSuffix:="()")) 9601builder.Add(CompletionItem.Create(displayText:=item.displayText, rules:=CompletionItemRules.Default.WithMatchPriority(item.matchPriority))) 9686context.AddItem(CompletionItem.Create(displayText:="★ Length2", filterText:="Length")) 10269context.AddItem(CompletionItem.Create(displayText:="★ length", filterText:="length", rules:=rules)) 10342context.AddItem(CompletionItem.Create(displayText:=DisplayText, filterText:=DisplayText)) 10769context.AddItem(CompletionItem.Create(displayText:="Consolation")) 10770context.AddItem(CompletionItem.Create(displayText:="Add code that write to console", filterText:="cw").WithAdditionalFilterTexts(ImmutableArray.Create("Console", "Write"))) 10771context.AddItem(CompletionItem.Create(displayText:="Add code that write line to console", filterText:="cwl").WithAdditionalFilterTexts(ImmutableArray.Create("Console", "WriteLine")))
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (3)
430context.AddItem(CompletionItem.Create(displayText:="★ FirstStarred", filterText:="FirstStarred", sortText:=GetSortText(1), rules:=rules)) 431context.AddItem(CompletionItem.Create(displayText:="★ SecondStarred", filterText:="SecondStarred", sortText:=GetSortText(2), rules:=rules)) 715builder.Add(CompletionItem.Create($"ItemRegular{i}"))
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionItem.cs (1)
252return Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (6)
Completion\CompletionFeaturesTests.cs (5)
603builder.Add(CodeAnalysis.Completion.CompletionItem.Create($"ItemWithDefaultChar{i}", rules: CompletionItemRules.Default)); 606builder.Add(CodeAnalysis.Completion.CompletionItem.Create($"ItemNonDefaultChar{i}", rules: NonDefaultRule)); 931builder.Add(CodeAnalysis.Completion.CompletionItem.Create("SimpleItem")); 933var importItem = CodeAnalysis.Completion.CompletionItem.Create("ExpandedItem"); 937builder.Add(CodeAnalysis.Completion.CompletionItem.Create("ComplexItem", isComplexTextEdit: true));
Completion\CompletionResolveTests.cs (1)
184var selectedItem = CodeAnalysis.Completion.CompletionItem.Create(displayText: "M", isComplexTextEdit: true);