Skip to content

Commit

Permalink
Do not set insertText if the same as label (#24581)
Browse files Browse the repository at this point in the history
  • Loading branch information
aocenas committed May 12, 2020
1 parent 8de10a8 commit 20f0ee2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -317,7 +317,7 @@ export class CloudWatchLanguageProvider extends LanguageProvider {
label: 'Fields',
items: fields.map(field => ({
label: field,
insertText: field.match(/@?[_a-zA-Z]+[_.0-9a-zA-Z]*/) ? field : `\`${field}\``,
insertText: field.match(/@?[_a-zA-Z]+[_.0-9a-zA-Z]*/) ? undefined : `\`${field}\``,
})),
},
],
Expand Down

0 comments on commit 20f0ee2

Please sign in to comment.