Skip to content

Commit

Permalink
Simplify Snippets
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr authored and fbricon committed Apr 30, 2021
1 parent ff29f3c commit 399d860
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 69 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to `Tools for Apache Kafka®` are documented in this file.
- Show cluster state in kafka file. See [#175](https://github.com/jlandersen/vscode-kafka/pull/175).
- Hide internal [strimzi](https://strimzi.io/) topics/consumers by default. See [#176](https://github.com/jlandersen/vscode-kafka/pull/176).
- Validation for available topics in `.kafka` files. See [#153](https://github.com/jlandersen/vscode-kafka/issues/153).
- Simplify snippets. See [#180](https://github.com/jlandersen/vscode-kafka/pull/180).

## [0.12.0] - 2021-04-26
### Added
Expand Down
36 changes: 1 addition & 35 deletions snippets/consumers.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,5 @@
"from: ${3|earliest,latest,0|}"
],
"description": "A simple consumer"
},
"partition-consumer": {
"prefix": [
"partitions-consumer"
],
"body": [
"CONSUMER ${1:consumer-group-id}",
"topic: ${2:topic_name}",
"from: ${3|earliest,latest,0|}",
"partitions: ${4|0|}"
],
"description": "A consumer with a partitions filter"
},
"key-format-consumer": {
"prefix": [
"key-format-consumer"
],
"body": [
"CONSUMER ${1:consumer-group-id}",
"topic: ${2:topic_name}",
"key-format: ${3|none,string,double,float,integer,long,short|}"
],
"description": "A consumer with a key format"
},
"value-format-consumer": {
"prefix": [
"value-format-consumer"
],
"body": [
"CONSUMER ${1:consumer-group-id}",
"topic: ${2:topic_name}",
"value-format: ${3|none,string,double,float,integer,long,short|}"
],
"description": "A consumer with a value format"
}
}
}
35 changes: 1 addition & 34 deletions snippets/producers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"producer": {
"prefix": [
Expand Down Expand Up @@ -32,38 +31,6 @@
],
"description": "A producer generating keyed JSON records"
},
"key-format-producer": {
"prefix": [
"producer"
],
"body": [
"PRODUCER ${1:key-formatted-message}",
"topic: ${2:topic_name}",
"key: ${3:mykeyq}",
"key-format: ${3|string,double,float,integer,long,short|}",
"${4:{{random.words}}}",
"",
"###",
""
],
"description": "A producer generating formatted keyed records"
},
"value-format-producer": {
"prefix": [
"producer"
],
"body": [
"PRODUCER ${1:formatted-message}",
"topic: ${2:topic_name}",
"key: ${3:mykeyq}",
"value-format: ${3|string,double,float,integer,long,short|}",
"${4:{{random.words}}}",
"",
"###",
""
],
"description": "A producer generating formatted value records"
},
"comment": {
"prefix": [
"comment"
Expand All @@ -83,4 +50,4 @@
],
"description": "Adds a producer separator"
}
}
}

0 comments on commit 399d860

Please sign in to comment.