Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create real API for "debug.logToDebugConsole" command #36753

Closed
weinand opened this issue Oct 23, 2017 · 1 comment
Closed

create real API for "debug.logToDebugConsole" command #36753

weinand opened this issue Oct 23, 2017 · 1 comment
Assignees
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality on-testplan
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Oct 23, 2017

Currently we support a 'debug.logToDebugConsole' command to send output to the debug console.

We should introduce real API for this.

@weinand weinand added api debug Debug viewlet, configurations, breakpoints, adapter issues labels Oct 23, 2017
@weinand weinand added this to the October 2017 milestone Oct 23, 2017
@weinand weinand self-assigned this Oct 23, 2017
@weinand
Copy link
Contributor Author

weinand commented Oct 24, 2017

I've added this proposed API:

	/**
	 * Represents the debug console.
	 */
	export interface DebugConsole {
		/**
		 * Append the given value to the debug console.
		 *
		 * @param value A string, falsy values will not be printed.
		 */
		append(value: string): void;

		/**
		 * Append the given value and a line feed character
		 * to the debug console.
		 *
		 * @param value A string, falsy values will be printed.
		 */
		appendLine(value: string): void;
	}

	export namespace debug {
		/**
		 * The [debug console](#DebugConsole) singleton.
		 */
		export let console: DebugConsole;
	}

@weinand weinand added the feature-request Request for new features or functionality label Oct 24, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

No branches or pull requests

1 participant