mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-16 23:36:13 +00:00
reveal only when tree is visible
This commit is contained in:
parent
a3081a6774
commit
fe7874af90
3 changed files with 29 additions and 12 deletions
|
@ -125,11 +125,6 @@ export function isDocumentInWorkspace(document: RustDocument): boolean {
|
|||
return false;
|
||||
}
|
||||
|
||||
export async function closeDocument(document: RustDocument) {
|
||||
await vscode.window.showTextDocument(document, { preview: true, preserveFocus: false });
|
||||
await vscode.commands.executeCommand("workbench.action.closeActiveEditor");
|
||||
}
|
||||
|
||||
export function isValidExecutable(path: string): boolean {
|
||||
log.debug("Checking availability of a binary at", path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue