7 instantiations of LanguageInformation
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
LanguageInfoProvider.cs (6)
18private static readonly LanguageInformation s_csharpLanguageInformation = new(LanguageNames.CSharp, ".csx"); 19private static readonly LanguageInformation s_fsharpLanguageInformation = new(LanguageNames.FSharp, ".fsx"); 20private static readonly LanguageInformation s_vbLanguageInformation = new(LanguageNames.VisualBasic, ".vbx"); 21private static readonly LanguageInformation s_typeScriptLanguageInformation = new LanguageInformation(InternalLanguageNames.TypeScript, string.Empty); 22private static readonly LanguageInformation s_razorLanguageInformation = new(RazorLanguageName, string.Empty); 23private static readonly LanguageInformation s_xamlLanguageInformation = new("XAML", string.Empty);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
107=> _languageInformationByLanguageGuid.Add(languageGuid, new LanguageInformation(languageName, scriptExtension));
18 references to LanguageInformation
Microsoft.CodeAnalysis.Features (1)
Workspace\MiscellaneousFileUtilities.cs (1)
22LanguageInformation languageInformation,
Microsoft.CodeAnalysis.LanguageServer (1)
FileBasedPrograms\FileBasedProgramsProjectSystem.cs (1)
73if (!languageInfoProvider.TryGetLanguageInformation(uri, languageId, out var languageInformation))
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
ILanguageInfoProvider.cs (1)
23bool TryGetLanguageInformation(DocumentUri uri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation);
LanguageInfoProvider.cs (8)
18private static readonly LanguageInformation s_csharpLanguageInformation = new(LanguageNames.CSharp, ".csx"); 19private static readonly LanguageInformation s_fsharpLanguageInformation = new(LanguageNames.FSharp, ".fsx"); 20private static readonly LanguageInformation s_vbLanguageInformation = new(LanguageNames.VisualBasic, ".vbx"); 21private static readonly LanguageInformation s_typeScriptLanguageInformation = new LanguageInformation(InternalLanguageNames.TypeScript, string.Empty); 22private static readonly LanguageInformation s_razorLanguageInformation = new(RazorLanguageName, string.Empty); 23private static readonly LanguageInformation s_xamlLanguageInformation = new("XAML", string.Empty); 25private static readonly Dictionary<string, LanguageInformation> s_extensionToLanguageInformation = new() 47public bool TryGetLanguageInformation(DocumentUri requestUri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation)
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (1)
57if (!languageInfoProvider.TryGetLanguageInformation(uri, languageId, out var languageInformation))
Workspaces\LspWorkspaceManager.cs (1)
549if (_languageInfoProvider.TryGetLanguageInformation(uri, languageId, out var languageInfo))
Microsoft.VisualStudio.LanguageServices (5)
ProjectSystem\MiscellaneousFilesWorkspace.cs (5)
37private readonly ConcurrentDictionary<Guid, LanguageInformation> _languageInformationByLanguageGuid = []; 109private LanguageInformation? TryGetLanguageInformation(string filename) 113LanguageInformation? languageInformation = null; 146var languageInformation = TryGetLanguageInformation(moniker); 295var languageInformation = TryGetLanguageInformation(filePath);