mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 13:03:42 +01:00
make goto error widget action a menu and contribute navigation commands to it, #96708
This commit is contained in:
@@ -21,6 +21,8 @@ import { IKeybindings, KeybindingsRegistry } from 'vs/platform/keybinding/common
|
||||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||
import { withNullAsUndefined, assertType } from 'vs/base/common/types';
|
||||
import { ThemeIcon } from 'vs/platform/theme/common/themeService';
|
||||
|
||||
|
||||
export type ServicesAccessor = InstantiationServicesAccessor;
|
||||
export type IEditorContributionCtor = IConstructorSignature1<ICodeEditor, IEditorContribution>;
|
||||
@@ -48,6 +50,7 @@ export interface ICommandMenuOptions {
|
||||
order: number;
|
||||
when?: ContextKeyExpression;
|
||||
title: string;
|
||||
icon?: ThemeIcon
|
||||
}
|
||||
export interface ICommandOptions {
|
||||
id: string;
|
||||
@@ -118,6 +121,7 @@ export abstract class Command {
|
||||
command: {
|
||||
id: this.id,
|
||||
title: item.title,
|
||||
icon: item.icon
|
||||
// precondition: this.precondition
|
||||
},
|
||||
when: item.when,
|
||||
|
||||
Reference in New Issue
Block a user