Skip to content

Commit 79c7a00

Browse files
committed
Fallback item to follow top level pin command
1 parent 43c4829 commit 79c7a00

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

WorkspaceLauncherForVSCode/Pages/FallbackWorkspaceItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public override void UpdateQuery(string query)
4646
}
4747

4848
var best = filtered[_index];
49-
var listItem = _page.GetOrCreateListItem(best);
49+
var listItem = _page.GetOrCreateListItem(best, true);
5050

5151
Title = listItem.Title;
5252
Subtitle = listItem.Subtitle;

WorkspaceLauncherForVSCode/Pages/VisualStudioCodePage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public override void LoadMore()
268268
RaiseItemsChanged(_visibleItems.Count);
269269
}
270270

271-
public ListItem GetOrCreateListItem(VisualStudioCodeWorkspace workspace, bool isTopLevelPinCommand = false)
271+
public ListItem GetOrCreateListItem(VisualStudioCodeWorkspace workspace, bool isTopLevelCommand = false)
272272
{
273273
lock (_itemsLock)
274274
{
@@ -277,7 +277,7 @@ public ListItem GetOrCreateListItem(VisualStudioCodeWorkspace workspace, bool is
277277
listItem = WorkspaceItemFactory.Create(workspace, this, _workspaceStorage, _settingsManager, _refreshWorkspacesCommandContextItem, _pinService, _visualStudioInstanceList);
278278
_listItemCache[workspace.Id] = listItem;
279279
}
280-
if (isTopLevelPinCommand)
280+
if (isTopLevelCommand)
281281
{
282282
var newMoreCommands = new List<ICommandContextItem>();
283283
if (listItem.MoreCommands != null)

0 commit comments

Comments
 (0)