fix(lsp): correct line numbers in convert species/template tests

The tests were using line: 2 but the character declarations were on
line: 1 (due to the leading newline in the raw string literal). This
caused the cursor position to be outside the character span, making
the code actions fail to trigger.

Fixed by changing line: 2 to line: 1 in both test_convert_species_to_template
and test_convert_template_to_species.
This commit is contained in:
2026-02-14 16:29:22 +00:00
parent b042f81aeb
commit 26bbef58d3
7 changed files with 6812 additions and 4831 deletions

View File

@@ -9,9 +9,9 @@
// Base work schedule (9-5 job)
schedule WorkWeek {
block morning_prep { 08:00 -> 09:00, action: MorningPrep }
block work { 09:00 -> 17:00, action: DailyWork }
block evening_rest { 18:00 -> 22:00, action: Resting }
block morning_prep { 08:00 -> 09:00, action:MorningPrep }
block work { 09:00 -> 17:00, action:DailyWork }
block evening_rest { 18:00 -> 22:00, action:Resting }
}
// Baker's schedule extends WorkWeek
@@ -19,22 +19,22 @@ schedule BakerSchedule extends WorkWeek {
// Bakers start early - override the work block
override work {
05:00 -> 13:00
action: BakingWork
intensity: "high"
action:BakingWork
intensity:"high"
}
// Add pre-dawn prep
block pre_dawn_prep {
04:00 -> 05:00
action: PrepKitchen
action:PrepKitchen
}
// Market day on Saturdays
recurrence MarketDay on Saturday {
block market {
06:00 -> 14:00
action: SellAtMarket
place: "town_square"
action:SellAtMarket
place:"town_square"
}
}
}
@@ -44,12 +44,12 @@ schedule AssistantSchedule extends BakerSchedule {
// Assistant comes in later
override work {
06:00 -> 14:00
action: AssistWithBaking
action:AssistWithBaking
}
// Assistant does a quick prep before work
override pre_dawn_prep {
05:30 -> 06:00
action: QuickPrep
action:QuickPrep
}
}