mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Remove unused test channel (#6710)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// This code is originally from https://github.com/DonJayamanne/bowerVSCode
|
// This code is originally from https://github.com/DonJayamanne/bowerVSCode
|
||||||
// License: https://github.com/DonJayamanne/bowerVSCode/blob/master/LICENSE
|
// License: https://github.com/DonJayamanne/bowerVSCode/blob/master/LICENSE
|
||||||
|
|
||||||
import { window, OutputChannel } from 'vscode';
|
import { window } from 'vscode';
|
||||||
import PromptFactory from './factory';
|
import PromptFactory from './factory';
|
||||||
import EscapeException from '../escapeException';
|
import EscapeException from '../escapeException';
|
||||||
import { IQuestion, IPrompter, IPromptCallback } from './question';
|
import { IQuestion, IPrompter, IPromptCallback } from './question';
|
||||||
@@ -9,26 +9,7 @@ import { IQuestion, IPrompter, IPromptCallback } from './question';
|
|||||||
// Supports simple pattern for prompting for user input and acting on this
|
// Supports simple pattern for prompting for user input and acting on this
|
||||||
export default class CodeAdapter implements IPrompter {
|
export default class CodeAdapter implements IPrompter {
|
||||||
|
|
||||||
private outChannel: OutputChannel;
|
constructor() { }
|
||||||
constructor() {
|
|
||||||
// TODO Decide whether output channel logging should be saved here?
|
|
||||||
this.outChannel = window.createOutputChannel('test');
|
|
||||||
// this.outChannel.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
public logError(message: any): void {
|
|
||||||
let line = `error: ${message.message}\n Code - ${message.code}`;
|
|
||||||
|
|
||||||
this.outChannel.appendLine(line);
|
|
||||||
}
|
|
||||||
|
|
||||||
public clearLog(): void {
|
|
||||||
this.outChannel.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
public showLog(): void {
|
|
||||||
this.outChannel.show();
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO define question interface
|
// TODO define question interface
|
||||||
private fixQuestion(question: any): any {
|
private fixQuestion(question: any): any {
|
||||||
|
|||||||
Reference in New Issue
Block a user