Skip to content

Commit

Permalink
Allow untitled tab uris in tab view
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Sep 17, 2023
1 parent 8817b8a commit 07d7771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "andreas-talon",
"displayName": "Andreas Talon",
"description": "VSCode extension used by Talon Voice",
"version": "3.35.0",
"version": "3.35.1",
"publisher": "AndreasArvidsson",
"license": "MIT",
"main": "./out/extension.js",
Expand Down
9 changes: 2 additions & 7 deletions src/tabView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,13 @@ function createItem(tab: vscode.Tab, index: number): vscode.TreeItem {
}
const label = labelParts.join(" ");

const uri = tab.input instanceof vscode.TabInputText ? tab.input.uri : undefined;
const resourceUri = uri != null && uri.scheme !== "untitled" ? uri : undefined;
const resourceUri = tab.input instanceof vscode.TabInputText ? tab.input.uri : undefined;

const command: vscode.Command = {
title: `Focus tab ${hint}`,
command: getFullCommand("focusTab"),
arguments: [hint]
};

return {
label,
resourceUri,
command
};
return { label, resourceUri, command };
}

0 comments on commit 07d7771

Please sign in to comment.