vscode

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package vscode provides a file-based signal mechanism for opening VSCode from inside a container on the host machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupSignalDir

func CleanupSignalDir(dir string)

CleanupSignalDir removes the signal directory and its contents.

func EnsureSignalDir

func EnsureSignalDir(dir string) error

EnsureSignalDir creates the signal directory if it doesn't exist.

func SignalDirName

func SignalDirName(containerName string) string

SignalDirName returns the signal directory name for a container.

func StartWatcher

func StartWatcher(ctx context.Context, signalDir string)

StartWatcher watches a signal directory for VSCode open requests. When a file appears, it reads the path from the file, opens it with the code command on the host, and deletes the signal file. Returns when ctx is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL