29 references to MetadataAsSource
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (17)
Structure\MetadataAsSource\AccessorDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\ConstructorDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\ConversionOperatorDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\DelegateDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\DestructorDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EnumDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EnumMemberDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EventDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\EventFieldDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\FieldDeclarationStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\IndexerDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\InvalidIdentifierStructureTests.cs (1)
27protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\MethodDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\OperatorDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\PropertyDeclarationStructureTests.cs (1)
16protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\RegionDirectiveStructureTests.cs (1)
17protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Structure\MetadataAsSource\TypeDeclarationStructureTests.cs (1)
18protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.MetadataAsSource;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxStructureProviderTests.cs (1)
30IsMetadataAsSource = WorkspaceKind == CodeAnalysis.WorkspaceKind.MetadataAsSource,
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\SymbolMappingServiceFactory.cs (2)
15[ExportWorkspaceServiceFactory(typeof(ISymbolMappingService), [WorkspaceKind.MetadataAsSource])] 34if (document.Project.Solution.WorkspaceKind is not WorkspaceKind.MetadataAsSource)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\Options\BlockStructureOptionsStorage.cs (1)
12=> GetBlockStructureOptions(globalOptions, project.Language, isMetadataAsSource: project.Solution.WorkspaceKind == WorkspaceKind.MetadataAsSource);
Features\Options\ClientFallbackAnalyzerConfigOptionsProvider.cs (1)
20[WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch, WorkspaceKind.MetadataAsSource, WorkspaceKind.MiscellaneousFiles, WorkspaceKind.Debugger, WorkspaceKind.Preview])]
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
27[WorkspaceKind.Host, WorkspaceKind.Interactive, WorkspaceKind.SemanticSearch, WorkspaceKind.MetadataAsSource, WorkspaceKind.MiscellaneousFiles, WorkspaceKind.Debugger, WorkspaceKind.Preview]), Shared]
Workspaces\LspWorkspaceRegistrationEventListener.cs (1)
16WorkspaceKind.MetadataAsSource,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Metadata\LspMetadataAsSourceWorkspaceTests.cs (2)
50Assert.Equal(WorkspaceKind.MetadataAsSource, (await GetWorkspaceForDocument(testLspServer, definition.Single().Uri)).Kind); 97Assert.Equal(WorkspaceKind.MetadataAsSource, workspaceForDocument.Kind);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\WorkspaceKind.cs (1)
15public const string MetadataAsSource = nameof(MetadataAsSource);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
262return registration.Workspace != null && registration.Workspace.Kind != WorkspaceKind.MetadataAsSource && registration.Workspace.Kind != WorkspaceKind.MiscellaneousFiles;
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Help\VisualBasicHelpContextService.vb (1)
48Dim visitor = New Visitor(token.Span, Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False), document.Project.Solution.WorkspaceKind <> WorkspaceKind.MetadataAsSource, Me, cancellationToken)