Skip to content

Commit b5bcc09

Browse files
authored
timeline - make command to restore any entry more discoverable (microsoft#185553)
1 parent 637fdea commit b5bcc09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/localHistory/browser/localHistoryCommands.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { API_OPEN_DIFF_EDITOR_COMMAND_ID } from 'vs/workbench/browser/parts/edit
1414
import { LocalHistoryFileSystemProvider } from 'vs/workbench/contrib/localHistory/browser/localHistoryFileSystemProvider';
1515
import { ContextKeyExpr, IContextKeyService, RawContextKey } from 'vs/platform/contextkey/common/contextkey';
1616
import { ServicesAccessor } from 'vs/editor/browser/editorExtensions';
17-
import { registerAction2, Action2, MenuId } from 'vs/platform/actions/common/actions';
17+
import { registerAction2, Action2, MenuId, MenuRegistry } from 'vs/platform/actions/common/actions';
1818
import { basename, basenameOrAuthority, dirname } from 'vs/base/common/resources';
1919
import { ICommandService } from 'vs/platform/commands/common/commands';
2020
import { EditorResourceAccessor, SaveSourceRegistry, SideBySideEditor } from 'vs/workbench/common/editor';
@@ -402,6 +402,8 @@ registerAction2(class extends Action2 {
402402
}
403403
});
404404

405+
MenuRegistry.appendMenuItem(MenuId.TimelineTitle, { command: { id: 'workbench.action.localHistory.restoreViaPicker', title: { value: localize('localHistory.restoreViaPickerMenu', "Local History: Find Entry to Restore..."), original: 'Local History: Find Entry to Restore...' } }, group: 'submenu', order: 1 });
406+
405407
//#endregion
406408

407409
//#region Rename

0 commit comments

Comments
 (0)