mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-15 21:01:05 +01:00
Revert to using any to avoid weird selection behavior for *
This commit is contained in:
@@ -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 + ' ';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user