Revert "sort imports" (#6100)
Revert "sort imports (#6094)"
This reverts commit 2fc8cb5376
.
This commit is contained in:
@ -1,23 +1,21 @@
|
||||
import {
|
||||
deleteSelectionPromise,
|
||||
deletionErrorMessage,
|
||||
} from 'lang/modifyAst/deleteSelection'
|
||||
import { getNodePathFromSourceRange } from 'lang/queryAstNodePathUtils'
|
||||
import { Artifact, getArtifactFromRange } from 'lang/std/artifactGraph'
|
||||
import { SourceRange } from 'lang/wasm'
|
||||
import {
|
||||
EnterEditFlowProps,
|
||||
enterAppearanceFlow,
|
||||
enterEditFlow,
|
||||
EnterEditFlowProps,
|
||||
} from 'lib/operations'
|
||||
import { kclManager } from 'lib/singletons'
|
||||
import { err } from 'lib/trap'
|
||||
import toast from 'react-hot-toast'
|
||||
import { assign, fromPromise, setup } from 'xstate'
|
||||
|
||||
import { Operation } from '@rust/kcl-lib/bindings/Operation'
|
||||
|
||||
import { assign, fromPromise, setup } from 'xstate'
|
||||
import { commandBarActor } from './commandBarMachine'
|
||||
import { getNodePathFromSourceRange } from 'lang/queryAstNodePathUtils'
|
||||
import {
|
||||
deleteSelectionPromise,
|
||||
deletionErrorMessage,
|
||||
} from 'lang/modifyAst/deleteSelection'
|
||||
|
||||
type FeatureTreeEvent =
|
||||
| {
|
||||
@ -275,10 +273,10 @@ export const featureTreeMachine = setup({
|
||||
src: 'prepareEditCommand',
|
||||
input: ({ context }) => {
|
||||
const artifact = context.targetSourceRange
|
||||
? (getArtifactFromRange(
|
||||
? getArtifactFromRange(
|
||||
context.targetSourceRange,
|
||||
kclManager.artifactGraph
|
||||
) ?? undefined)
|
||||
) ?? undefined
|
||||
: undefined
|
||||
return {
|
||||
// currentOperation is guaranteed to be defined here
|
||||
@ -329,10 +327,10 @@ export const featureTreeMachine = setup({
|
||||
src: 'prepareAppearanceCommand',
|
||||
input: ({ context }) => {
|
||||
const artifact = context.targetSourceRange
|
||||
? (getArtifactFromRange(
|
||||
? getArtifactFromRange(
|
||||
context.targetSourceRange,
|
||||
kclManager.artifactGraph
|
||||
) ?? undefined)
|
||||
) ?? undefined
|
||||
: undefined
|
||||
return {
|
||||
// currentOperation is guaranteed to be defined here
|
||||
@ -383,10 +381,10 @@ export const featureTreeMachine = setup({
|
||||
src: 'sendDeleteCommand',
|
||||
input: ({ context }) => {
|
||||
const artifact = context.targetSourceRange
|
||||
? (getArtifactFromRange(
|
||||
? getArtifactFromRange(
|
||||
context.targetSourceRange,
|
||||
kclManager.artifactGraph
|
||||
) ?? undefined)
|
||||
) ?? undefined
|
||||
: undefined
|
||||
return {
|
||||
artifact,
|
||||
|
Reference in New Issue
Block a user