Skip to content

Commit

Permalink
Add command descriptions (#209950)
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 authored Apr 9, 2024
1 parent f955407 commit 2cc237d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
15 changes: 12 additions & 3 deletions src/vs/workbench/contrib/files/browser/fileActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,10 @@ export class FocusFilesExplorer extends Action2 {
id: FocusFilesExplorer.ID,
title: FocusFilesExplorer.LABEL,
f1: true,
category: Categories.File
category: Categories.File,
metadata: {
description: nls.localize2('focusFilesExplorerMetadata', "Moves focus to the file explorer view container.")
}
});
}

Expand All @@ -640,7 +643,10 @@ export class ShowActiveFileInExplorer extends Action2 {
id: ShowActiveFileInExplorer.ID,
title: ShowActiveFileInExplorer.LABEL,
f1: true,
category: Categories.File
category: Categories.File,
metadata: {
description: nls.localize2('showInExplorerMetadata', "Reveals and selects the active file within the explorer view.")
}
});
}

Expand All @@ -666,7 +672,10 @@ export class OpenActiveFileInEmptyWorkspace extends Action2 {
title: OpenActiveFileInEmptyWorkspace.LABEL,
f1: true,
category: Categories.File,
precondition: EmptyWorkspaceSupportContext
precondition: EmptyWorkspaceSupportContext,
metadata: {
description: nls.localize2('openFileInEmptyWorkspaceMetadata', "Opens the active file in a new window with no folders open.")
}
});
}

Expand Down
6 changes: 6 additions & 0 deletions src/vs/workbench/contrib/files/browser/views/explorerView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,9 @@ registerAction2(class extends Action2 {
group: 'navigation',
when: ContextKeyExpr.equals('view', VIEW_ID),
order: 30
},
metadata: {
description: nls.localize2('refreshExplorerMetadata', "Forces a refresh of the Explorer.")
}
});
}
Expand All @@ -1055,6 +1058,9 @@ registerAction2(class extends Action2 {
group: 'navigation',
when: ContextKeyExpr.equals('view', VIEW_ID),
order: 40
},
metadata: {
description: nls.localize2('collapseExplorerFoldersMetadata', "Folds all folders in the Explorer.")
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export class EditorWalkThroughAction extends Action2 {
id: EditorWalkThroughAction.ID,
title: EditorWalkThroughAction.LABEL,
category: Categories.Help,
f1: true
f1: true,
metadata: {
description: localize2('editorWalkThroughMetadata', "Opens an interactive playground for learning about the editor.")
}
});
}

Expand Down

0 comments on commit 2cc237d

Please sign in to comment.