You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ok(getIsRelatedFilesApiEnabledStub.calledOnce,'getIsRelatedFilesApiEnabled should be called once');
116
101
ok(vscodeGetExtensionsStub.calledOnce,'vscode.extensions.getExtension should be called once');
117
102
ok(mockCopilotApi.registerRelatedFilesProvider.calledWithMatch(sinon.match({extensionId: 'test-extension-id',languageId: sinon.match.in(['c','cpp','cuda-cpp'])})),'registerRelatedFilesProvider should be called with the correct providerId and languageId');
118
103
});
119
104
120
105
it('should not add #cpp traits when ChatContext isn\'t available.',async()=>{
ok(getIsRelatedFilesApiEnabledStub.calledOnce,'getIsRelatedFilesApiEnabled should be called once');
134
117
ok(vscodeGetExtensionsStub.calledOnce,'vscode.extensions.getExtension should be called once');
135
118
ok(mockCopilotApi.registerRelatedFilesProvider.calledWithMatch(sinon.match({extensionId: 'test-extension-id',languageId: sinon.match.in(['c','cpp','cuda-cpp'])})),'registerRelatedFilesProvider should be called with the correct providerId and languageId');
136
119
ok(getActiveClientStub.callCount!==0,'getActiveClient should be called');
ok(getIsRelatedFilesApiEnabledStub.calledOnce,'getIsRelatedFilesApiEnabled should be called once');
164
145
ok(vscodeGetExtensionsStub.calledOnce,'vscode.extensions.getExtension should be called once');
165
146
ok(mockCopilotApi.registerRelatedFilesProvider.calledWithMatch(sinon.match({extensionId: 'test-extension-id',languageId: sinon.match.in(['c','cpp','cuda-cpp'])})),'registerRelatedFilesProvider should be called with the correct providerId and languageId');
166
147
ok(getActiveClientStub.callCount!==0,'getActiveClient should be called');
ok(getIsRelatedFilesApiEnabledStub.calledOnce,'getIsRelatedFilesApiEnabled should be called once');
194
173
ok(vscodeGetExtensionsStub.calledOnce,'vscode.extensions.getExtension should be called once');
195
174
ok(mockCopilotApi.registerRelatedFilesProvider.calledThrice,'registerRelatedFilesProvider should be called three times');
196
175
ok(mockCopilotApi.registerRelatedFilesProvider.calledWithMatch(sinon.match({extensionId: 'test-extension-id',languageId: sinon.match.in(['c','cpp','cuda-cpp'])})),'registerRelatedFilesProvider should be called with the correct providerId and languageId');
ok(getIsRelatedFilesApiEnabledStub.calledOnce,'getIsRelatedFilesApiEnabled should be called once');
247
224
ok(vscodeGetExtensionsStub.calledOnce,'vscode.extensions.getExtension should be called once');
248
225
ok(mockCopilotApi.registerRelatedFilesProvider.calledThrice,'registerRelatedFilesProvider should be called three times');
249
226
ok(mockCopilotApi.registerRelatedFilesProvider.calledWithMatch(sinon.match({extensionId: 'test-extension-id',languageId: sinon.match.in(['c','cpp','cuda-cpp'])})),'registerRelatedFilesProvider should be called with the correct providerId and languageId');
ok(getIsRelatedFilesApiEnabledStub.calledOnce,'getIsRelatedFilesApiEnabled should be called once');
320
-
ok(registerCommandStub.calledOnce,'registerCommand should be called once');
321
-
ok(commandDisposables.length===1,'commandDisposables should have one disposable');
322
-
ok(registerCommandStub.calledWithMatch('C_Cpp.getIncludes',sinon.match.func),'registerCommand should be called with "C_Cpp.getIncludes" and a function');
323
-
});
324
-
325
-
it('should register C_Cpp.getIncludes command that can handle requests properly',async()=>{
ok(getIsRelatedFilesApiEnabledStub.calledOnce,'getIsRelatedFilesApiEnabled should be called once');
366
-
ok(registerCommandStub.calledOnce,'registerCommand should be called once');
367
-
ok(commandDisposables.length===1,'commandDisposables should have one disposable');
368
-
ok(includesResult===undefined,'includesResult should be undefined');
369
-
ok(registerCommandStub.calledWithMatch('C_Cpp.getIncludes',sinon.match.func),'registerCommand should be called with "C_Cpp.getIncludes" and a function');
0 commit comments