File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,8 @@ export class PanelWebview implements vscode.WebviewViewProvider {
284
284
. getConfiguration ( )
285
285
?. get < boolean > ( "refactai.ast" ) ?? false ;
286
286
287
+ const connections = vscode . workspace . getConfiguration ( ) ?. get < boolean > ( "refactai.xperimental" ) ?? false ;
288
+
287
289
288
290
const apiKey = vscode . workspace . getConfiguration ( ) ?. get < string > ( "refactai.apiKey" ) ?? "" ;
289
291
const addressURL = vscode . workspace . getConfiguration ( ) ?. get < string > ( "refactai.addressURL" ) ?? "" ;
@@ -297,7 +299,7 @@ export class PanelWebview implements vscode.WebviewViewProvider {
297
299
addressURL,
298
300
lspPort : port ,
299
301
shiftEnterToSubmit : submitChatWithShiftEnter ,
300
- features : { vecdb, ast} ,
302
+ features : { vecdb, ast, connections } ,
301
303
currentWorkspaceName : currentActiveWorkspaceName
302
304
} ) ;
303
305
@@ -1020,6 +1022,8 @@ export class PanelWebview implements vscode.WebviewViewProvider {
1020
1022
const activeTeamsGroup = this . context . workspaceState . get < TeamsGroup > ( 'refactai.activeGroup' ) ?? null ;
1021
1023
const currentActiveWorkspaceName = this . getActiveWorkspace ( ) ;
1022
1024
1025
+ const connections = vscode . workspace . getConfiguration ( ) ?. get < boolean > ( "refactai.xperimental" ) ?? false ;
1026
+
1023
1027
const config : InitialState [ "config" ] = {
1024
1028
host : "vscode" ,
1025
1029
tabbed,
@@ -1035,6 +1039,7 @@ export class PanelWebview implements vscode.WebviewViewProvider {
1035
1039
ast,
1036
1040
images : true ,
1037
1041
statistics : true ,
1042
+ connections,
1038
1043
} ,
1039
1044
keyBindings : {
1040
1045
completeManual,
You can’t perform that action at this time.
0 commit comments