develop.vscode #
visual studio code
import freeflowuniverse.crystallib.develop.vscode
vscode.open(path:'/tmp/something')!
- if path not specified will chose current path
fn new #
fn new(path string) VSCodeHelper
struct VSCodeHelper #
struct VSCodeHelper {
pub mut:
install_if_not_exists bool
path string
}
fn (VSCodeHelper) open #
fn (self VSCodeHelper) open() !
Open Visual Studio Code at the specified path. If the path is not provided, it defaults to the current working directory.
fn (VSCodeHelper) is_installed #
fn (self VSCodeHelper) is_installed() bool
Check if Visual Studio Code is installed.
fn (VSCodeHelper) check_installation #
fn (self VSCodeHelper) check_installation() !
Check the installation status of Visual Studio Code. If not installed and the flag is set, attempt to install it.