Skip to content

Commit 5861c75

Browse files
committed
Fix to CL statements not executing
Signed-off-by: worksofliam <[email protected]>
1 parent 8d8a112 commit 5861c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/results/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async function runHandler(options?: StatementInfo) {
132132
const group = statementDetail.group;
133133
editor.selection = new vscode.Selection(editor.document.positionAt(group.range.start), editor.document.positionAt(group.range.end));
134134

135-
if (group.statements.length === 1 && statementDetail.embeddedInfo.changed) {
135+
if (group.statements.length === 1 && statementDetail.embeddedInfo && statementDetail.embeddedInfo.changed) {
136136
editor.insertSnippet(new SnippetString(statementDetail.embeddedInfo.content));
137137
return;
138138
}

0 commit comments

Comments
 (0)