### Install Dependencies with mise Source: https://github.com/hverlin/mise-vscode/blob/main/CONTRIBUTING.md Use this command to install all necessary project dependencies using mise. Ensure mise is installed first. ```shell mise install ``` -------------------------------- ### Initialize Swift Project and Install Latest Swift Version Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/swift.mdx Commands to create a new Swift project directory, initialize it with the latest Swift version using mise, and then create a new Swift package. ```shell mkdir my-swift-project && cd my-swift-project ``` ```shell mise use swift@latest ``` ```shell swift package init ``` -------------------------------- ### Install Git Hooks with hk Source: https://github.com/hverlin/mise-vscode/blob/main/CONTRIBUTING.md Installs git hooks for the project using the 'hk' tool, with specific integration for mise. ```shell hk install --mise ``` -------------------------------- ### Project Configuration with mise.toml Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/swift.mdx Example of a mise.toml file to specify the Swift tool version for a project. This file is automatically detected by the mise-vscode extension. ```toml [tools] swift = "latest" ``` -------------------------------- ### Use vfox-php toolchain with mise Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Installs the latest version of PHP using the vfox-php toolchain via mise. This command compiles and installs PHP, which may take a few minutes. ```shell mise use vfox:version-fox/vfox-php ``` -------------------------------- ### Install PHP dependencies on Mac (Homebrew) Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Installs necessary system dependencies for PHP development on macOS using Homebrew. Ensure these are installed before proceeding with PHP installation. ```shell brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip pkg-config re2c zlib ``` -------------------------------- ### Run Tests with mise Source: https://github.com/hverlin/mise-vscode/blob/main/CONTRIBUTING.md This command executes the project's test suite using mise. Ensure all dependencies are installed before running. ```shell mise run test ``` -------------------------------- ### Install PHP dependencies on Debian/Ubuntu Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Installs required system packages for PHP development on Debian-based systems like Ubuntu. These are prerequisites for compiling PHP. ```shell sudo apt-get update && sudo apt-get install -y autoconf bison build-essential curl gettext git libgd-dev libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libxslt-dev libzip-dev openssl pkg-config re2c zlib1g-dev ``` -------------------------------- ### Use asdf-php plugin with mise Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Installs PHP using the default asdf-php plugin managed by mise. This command compiles and installs the latest PHP version, which can take several minutes. ```shell mise use asdf:asdf-community/asdf-php ``` -------------------------------- ### Globally use vfox-php toolchain with mise Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Installs the latest version of PHP globally using the vfox-php toolchain via mise. This command compiles and installs PHP system-wide. ```shell mise use -g vfox:version-fox/vfox-php ``` -------------------------------- ### Install Xdebug via PECL Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Installs the Xdebug extension for PHP using the PECL package manager. This is a necessary step for debugging PHP applications in VS Code. ```shell pecl install xdebug ``` -------------------------------- ### Install Delve Debugger Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/golang.mdx Installs the Delve debugger for Go, which is necessary for debugging Go programs in VS Code. This can also be triggered by a notification in VS Code. ```shell go install -v github.com/go-delve/delve/cmd/dlv@latest ``` -------------------------------- ### Get Swift Toolchain Path Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/swift.mdx Shell command to display the path of the currently selected Xcode developer directory, used for configuring the Swift extension. ```shell xcode-select -p ``` -------------------------------- ### Initialize Deno project Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/deno.mdx Use these commands to create a new Deno project directory and initialize it with the latest Deno version. This will also create a `mise.toml` file. ```shell mkdir my-deno-project && cd my-deno-project ``` ```shell mise use deno@latest ``` ```shell deno init . ``` -------------------------------- ### Create and Navigate to Go Project Directory Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/golang.mdx Use these commands to create a new directory for your Go project and change into it. ```shell mkdir my-go-project && cd my-go-project ``` -------------------------------- ### Initialize a new Bun project Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/bun.mdx Use these shell commands to create a new Bun project directory, set the Bun version using mise, and initialize the project. ```shell mkdir my-bun-project && cd my-bun-project ``` ```shell mise use bun@latest ``` ```shell bun init . -y ``` -------------------------------- ### Go Hello World Program Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/golang.mdx A basic 'Hello, World!' program in Go. Ensure the Go extension is configured by mise to use the correct Go version. ```go package main import "fmt" func main() { fmt.Println("Hello, World!") } ``` -------------------------------- ### Create and Run Laravel Project Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Use `mise exec` to create a new Laravel project with a specific PHP version, then serve the application. ```shell mise exec vfox:version-fox/vfox-php -- composer create-project laravel/laravel example-app cd example-app mise use vfox:version-fox/vfox-php php artisan serve ``` -------------------------------- ### Initialize Go Module Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/golang.mdx Initializes a new Go module for your project, essential for managing dependencies. ```shell go mod init example/hello ``` -------------------------------- ### Configure Extensions Automatically with Include and Ignore Lists Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/tutorials/SettingUpTheExtension.mdx Use these settings to specify which extensions should be configured automatically and which should be ignored. The ignore list takes precedence. ```json { "mise.configureExtensionsAutomaticallyIncludeList": ["ms-python.python", "golang.go"], "mise.configureExtensionsAutomaticallyIgnoreList": ["denoland.vscode-deno"] } ``` -------------------------------- ### Configure Custom Binary Extension with Array Path Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/custom-extensions.mdx Configure extensions that expect an array of paths instead of a single string using `vscodeSetting.asArray: true`. This ensures compatibility with extensions that manage multiple tool versions or configurations. ```json { "mise.customBinaryExtensions": [ { "extensionId": "astral-sh.ty", "toolSources": ["ty"], "vscodeSetting": { "key": "ty.path", "asArray": true } } ] } ``` -------------------------------- ### Configure Deno in mise.toml Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/deno.mdx Add this to your `mise.toml` file to specify the Deno version for your project. `mise-vscode` will automatically detect this. ```toml [tools] deno = "2" ``` -------------------------------- ### Configure Custom Binary Extension Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/custom-extensions.mdx Use `mise.customBinaryExtensions` to specify a binary path for an extension. This is useful when an extension requires a direct path to an executable. ```json { "mise.customBinaryExtensions": [ { "extensionId": "example.my-extension", "toolSources": ["aqua:mytool"], "vscodeSetting": { "key": "myExtension.toolPath" } } ] } ``` -------------------------------- ### List Available Tasks with mise Source: https://github.com/hverlin/mise-vscode/blob/main/CONTRIBUTING.md Displays a list of all available tasks that can be executed using the mise command-line tool. ```shell mise tasks ``` -------------------------------- ### Configure Bun in mise.toml Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/bun.mdx Specify the desired Bun version in your `mise.toml` file. `mise-vscode` will automatically detect this and configure your workspace. ```toml [tools] bun = "latest" ``` -------------------------------- ### Set Go Version with mise Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/golang.mdx Instructs mise to use the latest available Go version for the current project. ```shell mise use go@latest ``` -------------------------------- ### Run Development Build with mise Source: https://github.com/hverlin/mise-vscode/blob/main/CONTRIBUTING.md Execute this command to build the extension and continuously watch for code changes. This command automatically updates the extension in a new VS Code window. ```shell mise run dev ``` -------------------------------- ### Configure VS Code tasks with mise Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/reference/Tasks.md Integrate mise tasks into your VS Code launch.json for custom shortcuts. Supported parameters include task name, watch, miseEnv, glob, runArgs, and watchexecArgs. ```json { "version": "2.0.0", "tasks": [ { "type": "mise", "task": "build-my-app", "label": "Build my app", "watch": true } ] } ``` -------------------------------- ### Python Virtual Environment Configuration in mise.toml Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/python.mdx Configure mise to create and use a virtual environment for Python. This ensures project-specific dependencies are managed. ```toml [tools] python = 'latest' [env] _.python.venv = { create = true, path = '.venv' } ``` -------------------------------- ### Configure mise-vscode to Use Symlinks Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/swift.mdx JSON configuration for VS Code settings to enable symlinks for mise extension configuration, which can silence warnings about Swift path changes. ```json { "mise.configureExtensionsUseSymLinks": true } ``` -------------------------------- ### Configure Custom Folder Extension Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/custom-extensions.mdx Use `mise.customFolderExtensions` to specify a folder path for an extension, such as a JDK home directory. This allows extensions to locate necessary SDKs or toolchains. ```json { "mise.customFolderExtensions": [ { "extensionId": "example.java-extension", "toolSources": ["jfox:java", "asdf:openjdk"], "vscodeSetting": { "key": "java.jdkHome" }, "folderName": "custom-jdk" } ] } ``` -------------------------------- ### Run Comprehensive Checks with mise Source: https://github.com/hverlin/mise-vscode/blob/main/CONTRIBUTING.md These commands perform combined linting, testing, and end-to-end tests. 'check' runs lint-fix and tests, while 'check-all' includes end-to-end tests. ```shell mise run check ``` ```shell mise run check-all ``` -------------------------------- ### Configure Julia Version in mise.toml Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/julia.mdx Use this TOML snippet in your `mise.toml` file to specify the desired Julia version for your project. The `mise-vscode` extension will automatically use this to configure the Julia extension. ```toml [tools] julia = "1" ``` -------------------------------- ### Basic Python Tool Configuration in mise.toml Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/python.mdx Configure the desired Python version in your mise.toml file. mise-vscode will automatically detect this setting. ```toml [tools] python = "3.13" ``` -------------------------------- ### Configure Swift DEVELOPER_DIR Environment Variable Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/swift.mdx JSON configuration for VS Code settings to explicitly set the DEVELOPER_DIR environment variable, ensuring the Swift VS Code extension correctly locates the Xcode developer directory. ```json { "swift.swiftEnvironmentVariables": { "DEVELOPER_DIR": "/Applications/Xcode.app/Contents/Developer" } } ``` -------------------------------- ### Set User-Level Default for Automatic Extension Configuration Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/tutorials/SettingUpTheExtension.mdx Configure an empty include list at the user level to disable automatic configuration by default. This can be overridden by workspace settings. ```json { "mise.configureExtensionsAutomaticallyIncludeList": [] } ``` -------------------------------- ### Configure Xdebug for VS Code Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/php.mdx Update your `php.ini` file with these settings to enable Xdebug for VS Code debugging. Ensure the `zend_extension` path is correct. ```text zend_extension=... # same as in the `PHP debugger setup` section xdebug.start_with_request=yes ; xdebug.mode=develop,gcstats,coverage,profile,debug xdebug.idekey=VSCODE xdebug.client_port=9003 ; ``` -------------------------------- ### Override Automatic Extension Configuration at Workspace Level Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/tutorials/SettingUpTheExtension.mdx Specify desired extensions at the workspace level to override the user-level default. This allows for project-specific automatic configuration. ```json { "mise.configureExtensionsAutomaticallyIncludeList": [ "denoland.vscode-deno" ] } ``` -------------------------------- ### TOML Schema for Task Configuration Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/reference/mise.toml-language-support.md Include this schema at the top of your `mise.toml` file to enable auto-completion and validation for task configurations when using TOML extensions like Tombi or Even Better TOML. ```toml #:schema https://mise.jdx.dev/schema/mise-task.json [build] run = "echo Hello, World!" ``` -------------------------------- ### Lint and Fix Code Issues with mise Source: https://github.com/hverlin/mise-vscode/blob/main/CONTRIBUTING.md Commands for linting the codebase and automatically fixing linting issues. The '-a' flag applies fixes to all files, including those not recently updated. ```shell mise run lint ``` ```shell mise run lint-fix ``` ```shell mise run lint-fix -a ``` -------------------------------- ### VS Code Settings for Python Interpreter Path Source: https://github.com/hverlin/mise-vscode/blob/main/docs/src/content/docs/guides/python.mdx VS Code settings to specify the default Python interpreter path, typically pointing to a virtual environment managed by mise. ```json { "python.defaultInterpreterPath": "${workspaceFolder}/.venv" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.