Skip to content

Test: New Integrated Terminal Proposed APIs #48434

Closed

Description

@Tyriar

#13267 & #46192

Complexity: 3

Authors: Daniel Imms (@Tyriar)

The terminal has the following new APIs:

declare module 'vscode' {

	export namespace window {
		/**
		 * The currently active terminals or an empty array.
		 *
		 * @readonly
		 */
		export let terminals: Terminal[];

		/**
		 * An [event](#Event) which fires when a terminal has been created, either through the
		 * [createTerminal](#window.createTerminal) API or commands.
		 */
		export const onDidOpenTerminal: Event<Terminal>;
	}

	export interface Terminal {
		onData: Event<string>;
	}
}

Please test them out to ensure they're working as expected. https://github.com/Microsoft/vscode-extension-samples/tree/master/terminal-sample has some usage examples.

Activity

  1. removed their assignment
    on Apr 24, 2018
  2. johnbendi commented on May 31, 2018

    @johnbendi

    Daniel Imms (@Tyriar) is there a getActiveTerminal api or some such?

    Also can there really be a list of active terminals? I assumed that only one terminal can be active at a time.

  3. Tyriar commented on May 31, 2018

    @Tyriar
    ContributorAuthor

    John Chijioke (@johnbendi) active here is used differently to elsewhere, I'll change the wording. There is no way to get the currently active terminal right now, there's no issue tracking this either to my knowledge.

  4. locked and limited conversation to collaborators on Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions