We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c78611 commit 0247fdcCopy full SHA for 0247fdc
packages/shared-utils/src/util.ts
@@ -353,13 +353,14 @@ export function getCustomFunctionDetails (func: Function): CustomState {
353
// Trim any excess whitespace from the argument string
354
const match = matches && matches[0]
355
const args = typeof match === 'string'
356
- ? `(${match.substring(1, match.length - 2).split(',').map(a => a.trim()).join(', ')})`
+ ? match
357
: '(?)'
358
const name = typeof func.name === 'string' ? func.name : ''
359
return {
360
_custom: {
361
type: 'function',
362
- display: `<span>f</span> ${escape(name)}${args}`,
+ display: `<span style="opacity:.5;">function</span> ${escape(name)}${args}`,
363
+ tooltip: string.trim() ? `<pre>${string}</pre>` : null,
364
_reviveId: reviveCache.cache(func),
365
},
366
}
0 commit comments