Skip to content

Commit

Permalink
Fix bug with Execute request not sending the blockId if there is one.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewi committed Apr 17, 2024
1 parent fe679d9 commit d6572b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/foyle/src/web/controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as vscode from "vscode";
import { promisify } from 'util';
import * as constants from './constants';
import * as converters from './converters';
import * as client from './client';
import * as agentpb from "../gen/foyle/v1alpha1/agent_pb";
import * as docpb from "../gen/foyle/v1alpha1/doc_pb";
Expand Down Expand Up @@ -75,10 +76,8 @@ async function callExecute(cell: vscode.NotebookCell, client: client.FoyleClient

const request = new agentpb.ExecuteRequest();

request.block = new docpb.Block();
request.block.kind = docpb.BlockKind.CODE;
request.block.contents = cell.document.getText();

request.block = converters.cellDataToBlock(converters.cellToCellData(cell));

return client.Execute(request).then((response) => {
let output: vscode.NotebookCellOutput[] = [];

Expand Down

0 comments on commit d6572b7

Please sign in to comment.