Revert to using any to avoid weird selection behavior for *

This commit is contained in:
Matt Bierner
2017-02-23 14:56:24 -08:00
parent e279041b8e
commit 1ad0809980
@@ -135,8 +135,8 @@ export default class JsDocCompletionHelper implements CompletionItemProvider {
template = template.replace(/^(\/\*\*\s*\*[ ]*)$/m, (x) => x + `\$0`);
template = template.replace(/\* @param([ ]\{\S+\})?\s+(\S+)\s*$/gm, (_param, type, post) => {
let out = '* @param ';
if (type === ' {any}' || type === ' {*}') {
out += `{\$\{${snippetIndex++}:*\}} `;
if (type === ' {any}') {
out += `{\$\{${snippetIndex++}:\any\}} `;
} else if (type) {
out += type + ' ';
}