Module e_findmain

Source

Functions§

compute_vscode_args
Computes the arguments for VSCode given a sample target. Returns a tuple (folder_str, goto_arg).
find_main_file
Given an Example, attempts to locate the main file.
find_main_line
Searches the given file for “fn main” and returns (line, column) where it is first found. Both line and column are 1-indexed.
open_vscode_for_sample
Asynchronously opens VSCode for the given sample target. It computes the VSCode arguments using compute_vscode_args and then launches VSCode.