vsc

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2025 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

vsc

go.dev reference License

$ go install github.com/btwiuse/vsc/cmd/vsc@latest
$ vsc -h
Usage of serveWebArgs:
  -connection-token string
        A secret that must be included with all requests.
  -connection-token-file string
        A file containing a secret that must be included with all requests.
  -extensions-dir string
        Set the root path for extensions.
  -host string
        Host to listen on, defaults to '127.0.0.1' (default "127.0.0.1")
  -log string
        Log level: {off,critical,error,warn,info,debug,trace}, defaults to 'off'. (default "off")
  -port int
        Port to listen on, defaults to 0. If 0 is passed a random free port is picked.
  -quality string
        Quality: {insider,stable,exploration}, defaults to 'insider' (default "insider")
  -relay value
        Relay URL, can be specified multiple times.
  -server-base-path string
        Specifies the path under which the web UI and the code server is provided.
  -server-data-dir string
        Specifies the directory that server data is kept in.
  -socket-path string
        The path to a socket file for the server to listen to.
  -user-data-dir string
        Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code.
  -verbose
        Verbose logging.
  -version
        Show version.
  -without-connection-token
        Run without a connection token. Only use this if the connection is secured by other means.

Documentation

Index

Constants

View Source
const VSCODE_UPDATE_URL = "https://update.code.visualstudio.com"

Variables

View Source
var DefaultRelay = tags.SpaceSeparatedStrings{
	"https://pub.webtransport.fun",
}

Functions

func Run

func Run(args []string) error

Types

type ServeWebArgs

type ServeWebArgs struct {
	Relay                    *tags.SpaceSeparatedStrings `json:"relay"`
	Log                      *string                     `json:"log"`
	Verbose                  *bool                       `json:"verbose"`
	Version                  *bool                       `json:"version"`
	Quality                  *string                     `json:"quality"`
	Host                     *string                     `json:"host"`
	SocketPath               *string                     `json:"socketPath"`
	Port                     *int                        `json:"port"`
	ConnectionToken          *string                     `json:"connectionToken"`
	ConnectionTokenFile      *string                     `json:"connectionTokenFile"`
	WithoutConnectionToken   *bool                       `json:"withoutConnectionToken"`
	AcceptServerLicenseTerms *bool                       `json:"acceptServerLicenseTerms"` // ignored
	ServerBasePath           *string                     `json:"serverBasePath"`
	ServerDataDir            *string                     `json:"serverDataDir"`
	UserDataDir              *string                     `json:"userDataDir"`
	ExtensionsDir            *string                     `json:"extensionsDir"`
}

func Parse

func Parse(args []string) (*ServeWebArgs, error)

type VersionInfo

type VersionInfo struct {
	Name           string `json:"name"`
	Version        string `json:"version"`
	ProductVersion string `json:"productVersion"`
	Timestamp      int64  `json:"timestamp"`
}

Directories

Path Synopsis
cmd
vsc command

Jump to

Keyboard shortcuts

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