本文整理汇总了TypeScript中vscode.OutputChannel.append方法的典型用法代码示例。如果您正苦于以下问题:TypeScript OutputChannel.append方法的具体用法?TypeScript OutputChannel.append怎么用?TypeScript OutputChannel.append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vscode.OutputChannel
的用法示例。
在下文中一共展示了OutputChannel.append方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
readable.on('data', chunk => {
const chunkAsString = typeof chunk === 'string' ? chunk : chunk.toString();
outputChannel.append(chunkAsString);
if (saveData) {
dataStorage += chunkAsString;
}
});
示例2:
result.stdout.on("data", (data: Buffer) => {
if (outputChannel) {
outputChannel.append(data.toString());
} else {
process.stdout.write(data);
}
});
示例3: execPythonFile
execPythonFile(pythonSettings.pythonPath, [testLauncherFile].concat(nosetestlauncherargs).concat(noseTestArgs.concat(testPaths)), rootDirectory, true, (data: string) => {
if (data === 'READY' + os.EOL) {
// debug socket server has started
launchDef.resolve();
}
else {
if (!outputChannelShown) {
outputChannelShown = true;
outChannel.show();
}
outChannel.append(data);
}
}, token).catch(reason => {
示例4: execPythonFile
execPythonFile(pythonSettings.pythonPath, testArgs, rootDirectory, true, (data: string) => {
if (data.startsWith('READY' + os.EOL)) {
// debug socket server has started.
launchDef.resolve();
data = data.substring(('READY' + os.EOL).length);
}
if (!outputChannelShown) {
outputChannelShown = true;
outChannel.show();
}
outChannel.append(data);
}, token).catch(reason => {
示例5:
const onOutput = (str: string) => outputChannel.append(str);
示例6:
p.stdout.on('data', (data: string) => {
outputChannel.append(data);
});
示例7:
}, error => {
outputChannel.append(error);
outputChannel.show();
});
示例8: execPythonFile
execPythonFile(command, args, this.workspaceRootPath, this.includeErrorAsResponse).then(data => {
outputChannel.append(data);
outputChannel.show();
}, error => {
示例9: append
public append(message: string): void {
this.channel.append(message);
}
示例10: sendCommand
sendCommand(commandLine, workspace.rootPath, this.includeErrorAsResponse).then(data => {
outputChannel.append(data);
outputChannel.show();
}, error=> {