Skip to content

Commit 8f6d2e9

Browse files
committed
setting tooltip to view expression on hover
1 parent f9a0329 commit 8f6d2e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/views/live-watch/live-watch.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
5656
const item = new vscode.TreeItem(element.expression + ' = ', vscode.TreeItemCollapsibleState.None);
5757
item.description = element.value || '';
5858
item.contextValue = 'expression';
59+
item.tooltip = element.expression;
5960
return item;
6061
}
6162

@@ -73,7 +74,9 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
7374
const onStackTrace = tracker.onDidChangeActiveStackItem(async () => await this.refresh());
7475
// Clearing active session on closing the session
7576
const onWillStopSession = tracker.onWillStopSession(async (session) => {
76-
this._activeSession = session;
77+
if (this.activeSession?.session.id && this.activeSession?.session.id === session.session.id) {
78+
this._activeSession = undefined;
79+
}
7780
await this.refresh();
7881
await this.save();
7982
});

0 commit comments

Comments
 (0)