30 references to MetadataAsSource
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (17)
Structure\MetadataAsSource\AccessorDeclarationStructureTests.cs (1)
17
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\ConstructorDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\ConversionOperatorDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\DelegateDeclarationStructureTests.cs (1)
17
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\DestructorDeclarationStructureTests.cs (1)
17
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\EnumDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\EnumMemberDeclarationStructureTests.cs (1)
17
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\EventDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\EventFieldDeclarationStructureTests.cs (1)
17
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\FieldDeclarationStructureTests.cs (1)
17
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\IndexerDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\InvalidIdentifierStructureTests.cs (1)
27
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\MethodDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\OperatorDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\PropertyDeclarationStructureTests.cs (1)
16
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\RegionDirectiveStructureTests.cs (1)
17
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Structure\MetadataAsSource\TypeDeclarationStructureTests.cs (1)
18
protected override string WorkspaceKind => CodeAnalysis.WorkspaceKind.
MetadataAsSource
;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxStructureProviderTests.cs (1)
30
IsMetadataAsSource = WorkspaceKind == CodeAnalysis.WorkspaceKind.
MetadataAsSource
,
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\SymbolMappingServiceFactory.cs (2)
15
[ExportWorkspaceServiceFactory(typeof(ISymbolMappingService), [WorkspaceKind.
MetadataAsSource
])]
34
if (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)
16
WorkspaceKind.
MetadataAsSource
,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Definitions\GoToTypeDefinitionTests.cs (1)
246
Assert.Equal(WorkspaceKind.
MetadataAsSource
, (await GetWorkspaceForDocument(testLspServer, results.Single().Uri)).Kind);
Metadata\LspMetadataAsSourceWorkspaceTests.cs (2)
50
Assert.Equal(WorkspaceKind.
MetadataAsSource
, (await GetWorkspaceForDocument(testLspServer, definition.Single().Uri)).Kind);
97
Assert.Equal(WorkspaceKind.
MetadataAsSource
, workspaceForDocument.Kind);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\WorkspaceKind.cs (1)
15
public const string MetadataAsSource = nameof(
MetadataAsSource
);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
262
return registration.Workspace != null && registration.Workspace.Kind != WorkspaceKind.
MetadataAsSource
&& registration.Workspace.Kind != WorkspaceKind.MiscellaneousFiles;
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Help\VisualBasicHelpContextService.vb (1)
48
Dim visitor = New Visitor(token.Span, Await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(False), document.Project.Solution.WorkspaceKind <> WorkspaceKind.
MetadataAsSource
, Me, cancellationToken)