When providing an IDE (Code-Server) to the user we can control several things in the IDE via this simple API.
The plugin will create an endpoint at localhost:7331
providing several available functionalities
file
: Path to the fileline
: Number of the line (Input1
equals Line 1)
file
: Path to the filestart
line
Line Number of positionchar
Character in the line:0
is the start of the line.
end
[optional] - if a selection should be madeline
Select until line.char
Select until char.0
is the start of the line.
Currently not implemented
Same input parameters as goto/position
with extra parameter text
for the text that should be placed at the position or replace the selection made.
Currently not implemented
See src/extension.ts
for more info about the input parameters.
Initial release of HobbyFarm API for VSCode