Skip to content

Commit

Permalink
go to both definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Nov 9, 2023
1 parent 686ddc0 commit 9b26126
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions packages/language-core/src/generators/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1320,35 +1320,12 @@ 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(
propVariableName,
prop.arg.loc,
prop.arg.loc.start.offset,
{
...caps_diagnosticOnly,
__hint: {
setting: 'vue.inlayHints.vbindShorthand',
label,
tooltip: [
// TODO
].join('\n\n'),
paddingRight: true,
}
} as FileRangeCapabilities,
caps_all,
'(',
')',
),
Expand Down

0 comments on commit 9b26126

Please sign in to comment.