Skip to content

Commit

Permalink
Chore: add tab before the string so the bitbake syntax can apply
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Feb 5, 2024
1 parent 6ba81b1 commit 0b88382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/src/__tests__/hover.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,15 +639,15 @@ describe('on hover', () => {
expect(shouldShow1).toEqual(
expect.objectContaining({
contents: expect.objectContaining({
value: expect.stringContaining('**Final Value**\n___\n`this is the final value for FINAL_VALUE`')
value: expect.stringContaining('**Final Value**\n___\n\t\'this is the final value for FINAL_VALUE\'')
})
})
)

expect(shouldShow2).toEqual(
expect.objectContaining({
contents: expect.objectContaining({
value: expect.stringContaining('**Final Value**\n___\n`this is the final value for FINAL_VALUE with override o1`')
value: expect.stringContaining('**Final Value**\n___\n\t\'this is the final value for FINAL_VALUE with override o1\'')
})
})
)
Expand Down
2 changes: 1 addition & 1 deletion server/src/connectionHandlers/onHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function onHoverHandler (params: HoverParams): Promise<Hover | null
const exactSymbol = analyzer.getGlobalDeclarationSymbols(textDocument.uri).find((symbol) => symbol.name === word && analyzer.positionIsInRange(position.line, position.character, symbol.location.range))

if (exactSymbol?.finalValue !== undefined) {
hoverValue += `**Final Value**\n___\n\`${exactSymbol.finalValue}\``
hoverValue += `**Final Value**\n___\n\t'${exactSymbol.finalValue}'`
}
}

Expand Down

0 comments on commit 0b88382

Please sign in to comment.