File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
language-service/lib/plugins Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -140,15 +140,15 @@ connection.onInitialize(params => {
140
140
) ;
141
141
} ,
142
142
async getQuickInfoAtPosition ( fileName , { line, character } ) {
143
- const result = await sendTsServerRequest < ts . QuickInfo > (
143
+ const result = await sendTsServerRequest < ts . server . protocol . QuickInfoResponseBody > (
144
144
'_vue:' + ts . server . protocol . CommandTypes . Quickinfo ,
145
145
{
146
146
file : fileName ,
147
147
line : line + 1 ,
148
148
offset : character + 1 ,
149
149
} satisfies ts . server . protocol . FileLocationRequestArgs ,
150
150
) ;
151
- return ts . displayPartsToString ( result ?. displayParts ?? [ ] ) ;
151
+ return result ?. displayString ;
152
152
} ,
153
153
} ) ,
154
154
) ;
Original file line number Diff line number Diff line change @@ -46,12 +46,13 @@ export function create(
46
46
] ) ;
47
47
}
48
48
49
+ const sourceDocument = context . documents . get ( decoded ! [ 0 ] , sourceScript . languageId , sourceScript . snapshot ) ;
49
50
for ( const [ pointerPosition , hoverOffset ] of hoverOffsets ) {
50
51
const map = context . language . maps . get ( virtualCode , sourceScript ) ;
51
52
for ( const [ sourceOffset ] of map . toSourceLocation ( hoverOffset ) ) {
52
53
const quickInfo = await tsPluginClient ?. getQuickInfoAtPosition (
53
54
root . fileName ,
54
- document . positionAt ( sourceOffset ) ,
55
+ sourceDocument . positionAt ( sourceOffset ) ,
55
56
) ;
56
57
if ( quickInfo ) {
57
58
inlayHints . push ( {
You can’t perform that action at this time.
0 commit comments