diff --git a/packages/language-core/src/generators/template.ts b/packages/language-core/src/generators/template.ts index 62975ed8d1..71c2158d26 100644 --- a/packages/language-core/src/generators/template.ts +++ b/packages/language-core/src/generators/template.ts @@ -1319,12 +1319,36 @@ export function generate( } } else if (prop.arg && !prop.exp && prop.arg.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) { + const propVariableName = camelize(prop.arg.content); + const label = [ + { + value: '="' + }, + { + value: propVariableName, + // TODO + // command: vscode.Command | undefined; + }, + { + value: '"' + }, + ]; codes.push( ...createInterpolationCode( - camelize(prop.arg.content), + propVariableName, prop.arg.loc, prop.arg.loc.start.offset, - caps_diagnosticOnly, + { + ...caps_diagnosticOnly, + __hint: { + setting: 'vue.inlayHints.vbindShorthand', + label, + tooltip: [ + // TODO + ].join('\n\n'), + paddingRight: true, + } + } as FileRangeCapabilities, '(', ')', ),