6
6
import { Emitter } from 'vs/base/common/event' ;
7
7
import { Disposable , DisposableMap } from 'vs/base/common/lifecycle' ;
8
8
import { URI } from 'vs/base/common/uri' ;
9
- import { ILogService } from 'vs/platform/log/common/log' ;
10
- import { IProductService } from 'vs/platform/product/common/productService' ;
11
9
import { ExtHostChatShape , ExtHostContext , IChatRequestDto , MainContext , MainThreadChatShape } from 'vs/workbench/api/common/extHost.protocol' ;
12
10
import { IChatWidgetService } from 'vs/workbench/contrib/chat/browser/chat' ;
13
11
import { IChatContributionService } from 'vs/workbench/contrib/chat/common/chatContributionService' ;
@@ -28,8 +26,6 @@ export class MainThreadChat extends Disposable implements MainThreadChatShape {
28
26
@IChatService private readonly _chatService : IChatService ,
29
27
@IChatWidgetService private readonly _chatWidgetService : IChatWidgetService ,
30
28
@IChatContributionService private readonly chatContribService : IChatContributionService ,
31
- @IProductService private readonly productService : IProductService ,
32
- @ILogService private readonly logService : ILogService ,
33
29
) {
34
30
super ( ) ;
35
31
this . _proxy = extHostContext . getProxy ( ExtHostContext . ExtHostChat ) ;
@@ -40,11 +36,6 @@ export class MainThreadChat extends Disposable implements MainThreadChatShape {
40
36
}
41
37
42
38
async $registerSlashCommandProvider ( handle : number , chatProviderId : string ) : Promise < void > {
43
- if ( this . productService . quality === 'stable' ) {
44
- this . logService . trace ( `The interactive session API is not supported in stable VS Code.` ) ;
45
- return ;
46
- }
47
-
48
39
const unreg = this . _chatService . registerSlashCommandProvider ( {
49
40
chatProviderId,
50
41
provideSlashCommands : async token => {
@@ -63,11 +54,6 @@ export class MainThreadChat extends Disposable implements MainThreadChatShape {
63
54
}
64
55
65
56
async $registerChatProvider ( handle : number , id : string ) : Promise < void > {
66
- if ( this . productService . quality === 'stable' ) {
67
- this . logService . trace ( `The interactive session API is not supported in stable VS Code.` ) ;
68
- return ;
69
- }
70
-
71
57
const registration = this . chatContribService . registeredProviders . find ( staticProvider => staticProvider . id === id ) ;
72
58
if ( ! registration ) {
73
59
throw new Error ( `Provider ${ id } must be declared in the package.json.` ) ;
0 commit comments