Skip to content

Commit f54ef3a

Browse files
committed
use tab.label to differentiate untitled notebook vs. native repl as suggested
1 parent 3a0c4fd commit f54ef3a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/client/repl/nativeRepl.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,9 @@ function getOpenTabNames(): string[] {
205205

206206
for (const tabGroup of tabGroups) {
207207
for (const tab of tabGroup.tabs) {
208-
if (tab.input instanceof TabInputText) {
209-
tabNames.push(tab.input.uri.fsPath);
210-
} else if (tab.input instanceof TabInputTextDiff) {
211-
if (tab.input.modified instanceof Uri) {
212-
tabNames.push(tab.input.modified.fsPath);
213-
}
214-
} else if (tab.input instanceof TabInputNotebook) {
215-
tabNames.push(tab.input.uri.fsPath);
216-
}
208+
tabNames.push(tab.label);
217209
}
218210
}
219-
const tabGroupTemp = tabGroups;
220211

221212
return tabNames;
222213
}

0 commit comments

Comments
 (0)