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 capabilities to text mentioning storage provider extensions #4015

Merged
merged 3 commits into from
May 31, 2023
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
6 changes: 5 additions & 1 deletion webview/src/setup/components/remotes/AmazonS3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export const AmazonS3 = () => (
</a>
. This reads the default AWS credentials file (if available) or env vars.
</p>
<ShowExtension id="AmazonWebServices.aws-toolkit-vscode" name="AWS" />
<ShowExtension
id="AmazonWebServices.aws-toolkit-vscode"
name="AWS Toolkit"
capabilities="manage AWS profiles and S3 buckets"
/>
<InfoText>
The AWS user needs the following permissions: s3:ListBucket, s3:GetObject,
s3:PutObject, s3:DeleteObject.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const AzureBlobStorage = () => (
for details on how to authenticate.
</p>
<ShowExtension
capabilities="create storage accounts and manage blob containers"
id="ms-azuretools.vscode-azurestorage"
name="Azure Storage"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export const GoogleCloudStorage: React.FC = () => (
</a>
. This reads the default GCP key file.
</p>
<ShowExtension id="GoogleCloudTools.cloudcode" name="Google Cloud Code" />
<ShowExtension
id="GoogleCloudTools.cloudcode"
name="Google Cloud Code"
capabilities="create projects and provides snippets for working with the Cloud Storage API"
/>
<p>
<Icon icon={Warning} width={16} height={16} className={styles.warnIcon} />{' '}
Make sure to run{' '}
Expand Down
13 changes: 7 additions & 6 deletions webview/src/setup/components/remotes/ShowExtension.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import styles from './styles.module.scss'
import { Icon } from '../../../shared/components/Icon'
import { Extensions } from '../../../shared/components/icons'

export const ShowExtension: React.FC<{ id: string; name: string }> = ({
id,
name
}) => {
export const ShowExtension: React.FC<{
capabilities: string
id: string
name: string
}> = ({ capabilities, id, name }) => {
const idQuery = `"@id:${id}"`

return (
Expand All @@ -17,15 +18,15 @@ export const ShowExtension: React.FC<{ id: string; name: string }> = ({
height={16}
className={styles.infoIcon}
/>{' '}
View the{' '}
The{' '}
<a
href={`command:workbench.extensions.search?${encodeURIComponent(
idQuery
)}`}
>
{name}
</a>{' '}
extension.
extension can be used to <span>{capabilities}</span>.
</p>
)
}