12
12
using Microsoft . AspNetCore . Razor . Test . Common . Mef ;
13
13
using Microsoft . CodeAnalysis ;
14
14
using Microsoft . CodeAnalysis . ExternalAccess . Razor . Cohost ;
15
+ using Microsoft . CodeAnalysis . Razor . Cohost ;
15
16
using Microsoft . CodeAnalysis . Razor . Workspaces ;
16
17
using Microsoft . VisualStudio . LanguageServer . Client ;
17
18
using Microsoft . VisualStudio . LanguageServer . ContainedLanguage ;
@@ -58,7 +59,9 @@ public void RegistrationsProvideFilter()
58
59
. AddExcludedPartTypes ( typeof ( IWorkspaceProvider ) )
59
60
. AddParts ( typeof ( TestWorkspaceProvider ) )
60
61
. AddExcludedPartTypes ( typeof ( ILspEditorFeatureDetector ) )
61
- . AddParts ( typeof ( TestLspEditorFeatureDetector ) ) ;
62
+ . AddParts ( typeof ( TestLspEditorFeatureDetector ) )
63
+ . AddExcludedPartTypes ( typeof ( IIncompatibleProjectService ) )
64
+ . AddParts ( typeof ( TestIncompatibleProjectService ) ) ;
62
65
63
66
using var exportProvider = testComposition . ExportProviderFactory . CreateExportProvider ( ) ;
64
67
@@ -120,7 +123,7 @@ public void RegistrationsProvideFilter()
120
123
}
121
124
}
122
125
123
- [ Export ( typeof ( ILanguageServiceBroker2 ) ) ]
126
+ [ Export ( typeof ( ILanguageServiceBroker2 ) ) , PartNotDiscoverable ]
124
127
private class TestILanguageServiceBroker2 : ILanguageServiceBroker2
125
128
{
126
129
public IEnumerable < ILanguageClientInstance > ActiveLanguageClients => throw new NotImplementedException ( ) ;
@@ -154,13 +157,13 @@ public event AsyncEventHandler<LanguageClientNotifyEventArgs> ClientNotifyAsync
154
157
public Task < IEnumerable < ( ILanguageClient , TOut ) > > RequestMultipleAsync < TIn , TOut > ( string [ ] contentTypes , Func < VSLSP . ServerCapabilities , bool > capabilitiesFilter , VSLSP . LspRequest < TIn , TOut > method , TIn parameters , CancellationToken cancellationToken ) => throw new NotImplementedException ( ) ;
155
158
}
156
159
157
- [ Export ( typeof ( IWorkspaceProvider ) ) ]
160
+ [ Export ( typeof ( IWorkspaceProvider ) ) , PartNotDiscoverable ]
158
161
private class TestWorkspaceProvider : IWorkspaceProvider
159
162
{
160
163
public CodeAnalysis . Workspace GetWorkspace ( ) => throw new NotImplementedException ( ) ;
161
164
}
162
165
163
- [ Export ( typeof ( ILspEditorFeatureDetector ) ) ]
166
+ [ Export ( typeof ( ILspEditorFeatureDetector ) ) , PartNotDiscoverable ]
164
167
private class TestLspEditorFeatureDetector : ILspEditorFeatureDetector
165
168
{
166
169
public bool IsLiveShareHost ( ) => throw new NotImplementedException ( ) ;
@@ -170,7 +173,7 @@ private class TestLspEditorFeatureDetector : ILspEditorFeatureDetector
170
173
public bool IsRemoteClient ( ) => throw new NotImplementedException ( ) ;
171
174
}
172
175
173
- [ Export ( typeof ( IRazorSemanticTokensRefreshQueue ) ) ]
176
+ [ Export ( typeof ( IRazorSemanticTokensRefreshQueue ) ) , PartNotDiscoverable ]
174
177
private class TestRazorSemanticTokensRefreshQueue : IRazorSemanticTokensRefreshQueue
175
178
{
176
179
public void Initialize ( string clientCapabilitiesString ) => throw new NotImplementedException ( ) ;
0 commit comments