mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user