Skip to content

Commit

Permalink
Properly fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Feb 4, 2025
1 parent 6de2e62 commit 5d9d5fc
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions data/fixtures/recorded/actions/snippets/tryWrapThis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ command:
snippetDescription:
type: custom
variableName: try
body: "try {\n\t$try\n} catch (err) {\n\tcatch\n}"
scopeTypes:
- {type: statement}
body: "try {\n\t$try\n} catch (err) {\n\t$catch\n}"
scopeType: {type: statement}
target:
type: primitive
mark: {type: cursor}
Expand All @@ -24,17 +23,10 @@ initialState:
finalState:
documentContents: |-
try {
const
const foo = "bar";
} catch (err) {
catch
} foo = "bar";
}
selections:
- anchor: {line: 4, character: 1}
active: {line: 4, character: 1}
thatMark:
- type: UntypedTarget
contentRange:
start: {line: 0, character: 0}
end: {line: 4, character: 1}
isReversed: false
hasExplicitRange: true
- anchor: {line: 3, character: 4}
active: {line: 3, character: 4}

0 comments on commit 5d9d5fc

Please sign in to comment.