提交 e78a0ab3 编写于 作者: M Matt Bierner

Open TS Server logs in editor if possible

In most cases, were are only interested in the tsserver.log file, not the additional typings installer logs
上级 6401390a
......@@ -413,6 +413,14 @@ export default class TypeScriptServiceClient extends Disposable implements IType
return false;
}
try {
const doc = await vscode.workspace.openTextDocument(vscode.Uri.file(this.serverState.server.tsServerLogFile));
await vscode.window.showTextDocument(doc);
return true;
} catch {
// noop
}
try {
await vscode.commands.executeCommand('revealFileInOS', vscode.Uri.file(this.serverState.server.tsServerLogFile));
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册