diff --git a/libs/remix-ui/editor/src/lib/providers/hoverProvider.ts b/libs/remix-ui/editor/src/lib/providers/hoverProvider.ts index b2c5c55b52..ab2074b9a6 100644 --- a/libs/remix-ui/editor/src/lib/providers/hoverProvider.ts +++ b/libs/remix-ui/editor/src/lib/providers/hoverProvider.ts @@ -151,7 +151,7 @@ export class RemixHoverProvider implements languages.HoverProvider { const global = await this.props.plugin.call('debugger', 'globalContext') if (global !== null && global[nodeAtPosition?.name]) { contents.push({ - value: `${nodeAtPosition.name} = ${JSON.stringify(global[nodeAtPosition?.name], null, '\t')}` + value: `GLOBAL VARIABLE ${nodeAtPosition.name}: ${JSON.stringify(global[nodeAtPosition?.name], null, '\t')}` }) } } @@ -162,7 +162,7 @@ export class RemixHoverProvider implements languages.HoverProvider { const global = await this.props.plugin.call('debugger', 'globalContext') if (global !== null && global[nodeAtPosition?.expression?.name][nodeAtPosition.memberName] && global[nodeAtPosition?.expression?.name][nodeAtPosition.memberName]) { contents.push({ - value: `${nodeAtPosition.memberName} = ${global[nodeAtPosition?.expression?.name][nodeAtPosition.memberName]}` + value: `GLOBAL VARIABLE msg.${nodeAtPosition.memberName}: ${global[nodeAtPosition?.expression?.name][nodeAtPosition.memberName]}` }) } }