VS Code API
    Preparing search index...

    Function createTerminal

    • Creates a Terminal with a backing shell process. The cwd of the terminal will be the workspace directory if it exists.

      Parameters

      • Optionalname: string

        Optional human-readable string which will be used to represent the terminal in the UI.

      • OptionalshellPath: string

        Optional path to a custom shell executable to be used in the terminal.

      • OptionalshellArgs: string | readonly string[]

        Optional args for the custom shell executable. A string can be used on Windows only which allows specifying shell args in command-line format.

      Returns Terminal

      A new Terminal.

      When running in an environment where a new process cannot be started.

    • Creates a Terminal with a backing shell process.

      Parameters

      • options: TerminalOptions

        A TerminalOptions object describing the characteristics of the new terminal.

      Returns Terminal

      A new Terminal.

      When running in an environment where a new process cannot be started.

    • Creates a Terminal where an extension controls its input and output.

      Parameters

      Returns Terminal

      A new Terminal.