confluentinc / confluentinc/vscode

Add "RESOURCES_WITH_TEMPLATES" to values.ts

Open
#1,574 1 comment 0 reactions 0 assignees View on GitHub
project generation
Dominant language
TypeScript
Stars
34
Forks
17
Avg merge
1d 22h
Merged PRs (30d)
8

Description

`values.ts` sets up an enum for ease of registration in `package.json`.

Would be good to explore adding `RESOURCES_WITH_TEMPLATES` for ease of registering resources with templates.

```
export enum ContextValues {
// -- CONTEXT VALUES ONLY SET DURING EXTENSION ACTIVATION --
/** Array of resources that support the "View in CCloud" action. */
CCLOUD_RESOURCES = "confluent.ccloudResources",
/** Array of view IDs that contain Confluent/Kafka resources. */
VIEWS_WITH_RESOURCES = "confluent.viewsWithResources",
/** Array of resources that have an `id` property for enabling the `Copy ID` action. */
RESOURCES_WITH_ID = "confluent.resourcesWithIDs",
/** Array of resources that have a `name` property for enabling the `Copy Name` action. */
RESOURCES_WITH_NAMES = "confluent.resourcesWithNames",
/** Array of resources that have a `uri` property for enabling the `Copy URI` action. */
RESOURCES_WITH_URIS = "confluent.resourcesWithURIs",
/** Array of resources that can be selected for comparison and presented in a diff view. */
DIFFABLE_RESOURCES = "confluent.diffableResources",
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.