-
Notifications
You must be signed in to change notification settings - Fork 3
Tools
Welcome to the tour of the Wollok LSP IDE's features.
You can execute Wollok code using Wollok-CLI.
Before anything, maybe you want to play with some objects.
Commands are available from the editor with the shortcut Ctrl + Shift + P
o from the menu View -> Commands Palette..
.
You can search by Wollok
:
You can open a Wollok terminal (or REPL) and evaluate expressions in a session.
Screen.Recording.2023-03-19.at.19.57.16.mp4
For more information see https://github.com/uqbar-project/wollok-ts-cli.
You can run Wollok tests from the Editor.
Screen.Recording.2023-03-19.at.19.43.56.mov
Screen.Recording.2023-03-19.at.19.45.06.mov
Screen.Recording.2023-03-19.at.19.45.43.mov
Screen.Recording.2023-03-19.at.19.51.28.mov
Analogous to tests, you can run Wollok programs, including Wollok Game 🕹️.
Screen.Recording.2023-03-19.at.20.05.19.mp4
All validations are visible in the text editor and the Problems
panel.
- Document symbols, which can be navigated by
-
Triggering the document symbol search (
Ctrl+Shift+O
) -
Navigating the document outline
Ctrol+Shift+P
+ 'View: Focus on Outline view'. More on outline view here -
Navigating the symbol tree
-
- Workspace symbols (triggered by
Ctrl+T
) - Go to definition:
Ctrl+Click
on any symbol will take you to its definition or list all the places where it was defined
overview_navegacion.mp4
dynamicDiagram2.mp4
Every time you start a REPL session it will activate the Dynamic Diagram: it will show objects references.
- Built-in objects (strings, numbers, dates, in general: library definitions) appear in one color, and there's another color for custom definitions (the one that you code)
- Root references have a thicker line (eg:
seed
andpepita
)
Objects can be
- pinned: layout is not fully recreated, so its faster but you have to manually locate them
- or free: objects are relocated when a change is made to best fit the screen
dynamicDiagramPin.mp4
You can configure dynamic diagram options in Settings:
- opening light mode/dark mode by default
- whether dynamic diagram should be activated when starting a REPL session
- and whether dynamic diagram should open in an external browser or inside Wollok LSP IDE (the default choice).
Using the shortcut Ctrl + Space
on the Editor you can access some auto-completion options. Once you select an autocomplete option, you can move using Tab key and complete every placeholder.
autocomplete.mp4
It also works for message autocompletion when you write a .
character:
06-autocomplete-messages.mp4
Autocomplete tools works for describe, tests, object, classes, imports, class initializers, etc. Try it!
List what we want but do not have yet. 🏃
We accept Pull Requests!
- Develop Quick fixes & Refactors
- Develop a Debugger
And less priority:
- Develop a Static Diagram view
- Integrate VSCode Test Runner Tool
- Enhance validation messages: data interpolation, a better explanation of what's going on and how can you solve it, etc.
- Enhance autocomplete tool (connect with the type system and WollokDOC)
- Develop a Snippet extension
- Develop a new highlighter based on AST
- Develop a Type system
- Develop a Rename refactor
- Develop a Formatter (based on AST)