Skip to content

Command Center With Help - #163635

Merged
TylerLeonhardt merged 2 commits into
mainfrom
tyler/command-center-with-modes
Oct 14, 2022
Merged

TylerLeonhardt merged 2 commits into
mainfrom
tyler/command-center-with-modes

Conversation

@TylerLeonhardt

@TylerLeonhardt TylerLeonhardt commented Oct 14, 2022 •

Copy link
Copy Markdown
Member

Fixes #158638

Now when you launch the command center you get:
image
Additionally, if you go into a provider (say >) and then backspace out of it, thus returning to Go to file... you still get the Help.

To be clear, this only shows when you click on the command center. Cmd+P is not impacted at all.

we can improve on this later with pills and whatnot, but this gives the command center a bit more utility than just launching Cmd+P.

cc David Dossett (@daviddossett)

gonna cc Benjamin Pasero (@bpasero) for a late review when you're back from being OOF

@TylerLeonhardt
TylerLeonhardt enabled auto-merge (squash) October 14, 2022 10:18
@TylerLeonhardt TylerLeonhardt self-assigned this Oct 14, 2022
@TylerLeonhardt
TylerLeonhardt merged commit 5e8b680 into main Oct 14, 2022
@TylerLeonhardt
TylerLeonhardt deleted the tyler/command-center-with-modes branch October 14, 2022 11:16
});
}
}
public getQuickAccessProviders(): IHelpQuickAccessPickItem[] {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TylerLeonhardt personal taste is to not use public but have it removed

// do not rewrite value from user typing!
preserveValue: true,
// persist the value of the providerOptions from the original showing
providerOptions: providerOptions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TylerLeonhardt easier as just providerOptions

import { stripIcons } from 'vs/base/common/iconLabels';
import { HelpQuickAccessProvider } from 'vs/platform/quickinput/browser/helpQuickAccess';
import { CommandsQuickAccessProvider } from 'vs/workbench/contrib/quickaccess/browser/commandsQuickAccess';
import { DEBUG_QUICK_ACCESS_PREFIX } from 'vs/workbench/contrib/debug/browser/debugCommands';

@bpasero Benjamin Pasero (bpasero) Nov 8, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TylerLeonhardt not super happy with a dependency of search to debug and task component only to get this working. Would be great if this can be done only by depending on the help provider.

@bpasero

Copy link
Copy Markdown
Contributor

👏 , lets sync today on this change for some feedback I have.

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce a "home" command center view

3 participants