Test in Thonny¶
Create test.algo:
# language: fr
Fonction double(x: entier) -> entier:
Renvoyer x * 2
Fin
Afficher double(21)
Then:
- open the file and verify Pseudocode coloring and that Diagnostics is selected automatically;
- type an undefined variable and verify the live diagnostic underline, then click its
Lxxlink in Diagnostics and verify Thonny jumps to the exact source line; - press
Ctrl+Spaceand inspect localized completions; - Ctrl+click
doublein the call; - use Pseudocode → Formater or
Ctrl+Shift+I(Ctrl+Shift+Falso works); - verify that diagnostics refresh automatically while editing;
- verify that Pseudocode → Exécuter shows
F5 / Ctrl+Rand that both shortcuts run the file; - switch to a
.pyor other non-Pseudocode editor and verify the Pseudocode menu plus the four companion tabs are disabled; switch back and verify they reactivate.
Document changes are synchronized automatically with the language server. Diagnostics from an older document version are discarded, so edits must not leave underlines shifted onto another line. Pseudocode → Restart language server remains an emergency/manual recovery action rather than a normal workflow step.