本文整理匯總了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=> {