Skip to content

Commit

Permalink
Fix Foyle language id on cells
Browse files Browse the repository at this point in the history
* See jlewi/foyle#125 the language id isn't being set on cells inserted from Foyle
* As a result the language gets set to `text` and they aren't runnable.
  • Loading branch information
jlewi committed May 28, 2024
1 parent 4420562 commit dcb8128
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extension/ai/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function addAIGeneratedCells(index: number, response: GenerateCellsResponse): vs
value: cell.value,
metadata: cell.metadata,
kind: kind,
languageId: cell.languageId,
// TODO(jeremy): Should we include outputs? The generate response should never contain outputs so we shouldn't
// have to worry about them.
}
Expand Down

0 comments on commit dcb8128

Please sign in to comment.