Skip to content

Commit b9038ba

Browse files
committed
feat: add connections when in xpermental mode
1 parent 7bda9f2 commit b9038ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sidebar.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ export class PanelWebview implements vscode.WebviewViewProvider {
284284
.getConfiguration()
285285
?.get<boolean>("refactai.ast") ?? false;
286286

287+
const connections = vscode.workspace.getConfiguration()?.get<boolean>("refactai.xperimental") ?? false;
288+
287289

288290
const apiKey = vscode.workspace.getConfiguration()?.get<string>("refactai.apiKey") ?? "";
289291
const addressURL = vscode.workspace.getConfiguration()?.get<string>("refactai.addressURL") ?? "";
@@ -297,7 +299,7 @@ export class PanelWebview implements vscode.WebviewViewProvider {
297299
addressURL,
298300
lspPort: port,
299301
shiftEnterToSubmit: submitChatWithShiftEnter,
300-
features: {vecdb, ast},
302+
features: {vecdb, ast, connections},
301303
currentWorkspaceName: currentActiveWorkspaceName
302304
});
303305

@@ -1020,6 +1022,8 @@ export class PanelWebview implements vscode.WebviewViewProvider {
10201022
const activeTeamsGroup = this.context.workspaceState.get<TeamsGroup>('refactai.activeGroup') ?? null;
10211023
const currentActiveWorkspaceName = this.getActiveWorkspace();
10221024

1025+
const connections = vscode.workspace.getConfiguration()?.get<boolean>("refactai.xperimental") ?? false;
1026+
10231027
const config: InitialState["config"] = {
10241028
host: "vscode",
10251029
tabbed,
@@ -1035,6 +1039,7 @@ export class PanelWebview implements vscode.WebviewViewProvider {
10351039
ast,
10361040
images: true,
10371041
statistics: true,
1042+
connections,
10381043
},
10391044
keyBindings: {
10401045
completeManual,

0 commit comments

Comments
 (0)