Skip to content

Commit 2cc237d

Browse files
authored
Add command descriptions (microsoft#209950)
1 parent f955407 commit 2cc237d

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

src/vs/workbench/contrib/files/browser/fileActions.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,10 @@ export class FocusFilesExplorer extends Action2 {
620620
id: FocusFilesExplorer.ID,
621621
title: FocusFilesExplorer.LABEL,
622622
f1: true,
623-
category: Categories.File
623+
category: Categories.File,
624+
metadata: {
625+
description: nls.localize2('focusFilesExplorerMetadata', "Moves focus to the file explorer view container.")
626+
}
624627
});
625628
}
626629

@@ -640,7 +643,10 @@ export class ShowActiveFileInExplorer extends Action2 {
640643
id: ShowActiveFileInExplorer.ID,
641644
title: ShowActiveFileInExplorer.LABEL,
642645
f1: true,
643-
category: Categories.File
646+
category: Categories.File,
647+
metadata: {
648+
description: nls.localize2('showInExplorerMetadata', "Reveals and selects the active file within the explorer view.")
649+
}
644650
});
645651
}
646652

@@ -666,7 +672,10 @@ export class OpenActiveFileInEmptyWorkspace extends Action2 {
666672
title: OpenActiveFileInEmptyWorkspace.LABEL,
667673
f1: true,
668674
category: Categories.File,
669-
precondition: EmptyWorkspaceSupportContext
675+
precondition: EmptyWorkspaceSupportContext,
676+
metadata: {
677+
description: nls.localize2('openFileInEmptyWorkspaceMetadata', "Opens the active file in a new window with no folders open.")
678+
}
670679
});
671680
}
672681

src/vs/workbench/contrib/files/browser/views/explorerView.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,9 @@ registerAction2(class extends Action2 {
10311031
group: 'navigation',
10321032
when: ContextKeyExpr.equals('view', VIEW_ID),
10331033
order: 30
1034+
},
1035+
metadata: {
1036+
description: nls.localize2('refreshExplorerMetadata', "Forces a refresh of the Explorer.")
10341037
}
10351038
});
10361039
}
@@ -1055,6 +1058,9 @@ registerAction2(class extends Action2 {
10551058
group: 'navigation',
10561059
when: ContextKeyExpr.equals('view', VIEW_ID),
10571060
order: 40
1061+
},
1062+
metadata: {
1063+
description: nls.localize2('collapseExplorerFoldersMetadata', "Folds all folders in the Explorer.")
10581064
}
10591065
});
10601066
}

src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export class EditorWalkThroughAction extends Action2 {
3636
id: EditorWalkThroughAction.ID,
3737
title: EditorWalkThroughAction.LABEL,
3838
category: Categories.Help,
39-
f1: true
39+
f1: true,
40+
metadata: {
41+
description: localize2('editorWalkThroughMetadata', "Opens an interactive playground for learning about the editor.")
42+
}
4043
});
4144
}
4245

0 commit comments

Comments
 (0)