Skip to content

Commit

Permalink
Clean up for review
Browse files Browse the repository at this point in the history
  • Loading branch information
pierremtb committed Jan 10, 2025
1 parent 44490da commit 0bfb6bc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/lang/std/engineConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2098,7 +2098,6 @@ export class EngineCommandManager extends EventTarget {
ast,
execStateArtifacts,
})
console.log(this.artifactGraph)
// TODO check if these still need to be deferred once e2e tests are working again.
if (this.artifactGraph.size) {
this.deferredArtifactEmptied(null)
Expand Down
2 changes: 2 additions & 0 deletions src/lib/commandBarConfigs/modelingCommandConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
selectionTypes: ['solid2D'],
required: true,
skip: true,
multiple: false,
// TODO: add dry-run validation
warningMessage:
'The sweep workflow is new and under tested. Please break it and report issues.',
Expand All @@ -317,6 +318,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
selectionTypes: ['segment', 'path'],
required: true,
skip: true,
multiple: false,
// TODO: add dry-run validation
},
},
Expand Down
1 change: 0 additions & 1 deletion src/lib/selections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export async function getEventForSelectWithPoint({
}

let _artifact = engineCommandManager.artifactGraph.get(data.entity_id)
console.log('_artifact', _artifact)
const codeRefs = getCodeRefsByArtifactId(
data.entity_id,
engineCommandManager.artifactGraph
Expand Down
5 changes: 0 additions & 5 deletions src/machines/modelingMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1572,11 +1572,6 @@ export const modelingMachine = setup({
}
const profileDeclarator = profileNode.node

// TODO: add better validation on selection
if (!profileDeclarator) {
trap('Not enough sketches selected')
}

// Find the path declaration
const pathNodePath = getNodePathFromSourceRange(
ast,
Expand Down

0 comments on commit 0bfb6bc

Please sign in to comment.