Commit 20f0ee2f by Andrej Ocenas Committed by GitHub

Do not set insertText if the same as label (#24581)

parent 8de10a8b
......@@ -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}\``,
})),
},
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment