mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-07 23:36:03 +01:00
Merge pull request #189607 from SevenOutman/issue186399
Add "Peek Call Hierarchy" and "Peek Type Hierarchy" actions to Command Palette
This commit is contained in:
@@ -174,7 +174,7 @@ class CallHierarchyController implements IEditorContribution {
|
||||
|
||||
registerEditorContribution(CallHierarchyController.Id, CallHierarchyController, EditorContributionInstantiation.Eager); // eager because it needs to define a context key
|
||||
|
||||
registerAction2(class extends EditorAction2 {
|
||||
registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
@@ -197,7 +197,8 @@ registerAction2(class extends EditorAction2 {
|
||||
precondition: ContextKeyExpr.and(
|
||||
_ctxHasCallHierarchyProvider,
|
||||
PeekContext.notInPeekEditor
|
||||
)
|
||||
),
|
||||
f1: true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ class TypeHierarchyController implements IEditorContribution {
|
||||
registerEditorContribution(TypeHierarchyController.Id, TypeHierarchyController, EditorContributionInstantiation.Eager); // eager because it needs to define a context key
|
||||
|
||||
// Peek
|
||||
registerAction2(class extends EditorAction2 {
|
||||
registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
@@ -190,7 +190,8 @@ registerAction2(class extends EditorAction2 {
|
||||
precondition: ContextKeyExpr.and(
|
||||
_ctxHasTypeHierarchyProvider,
|
||||
PeekContext.notInPeekEditor
|
||||
)
|
||||
),
|
||||
f1: true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user