Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command descriptions #209950

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading