From 0b883827b3f527a1504491c3c609d8c088078a90 Mon Sep 17 00:00:00 2001 From: Ziwei Wang Date: Fri, 2 Feb 2024 18:58:49 -0500 Subject: [PATCH] Chore: add tab before the string so the bitbake syntax can apply --- server/src/__tests__/hover.test.ts | 4 ++-- server/src/connectionHandlers/onHover.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/__tests__/hover.test.ts b/server/src/__tests__/hover.test.ts index eb0f7881..1c017fd5 100644 --- a/server/src/__tests__/hover.test.ts +++ b/server/src/__tests__/hover.test.ts @@ -639,7 +639,7 @@ 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\'') }) }) ) @@ -647,7 +647,7 @@ describe('on hover', () => { 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\'') }) }) ) diff --git a/server/src/connectionHandlers/onHover.ts b/server/src/connectionHandlers/onHover.ts index e4a0e766..624822dc 100644 --- a/server/src/connectionHandlers/onHover.ts +++ b/server/src/connectionHandlers/onHover.ts @@ -52,7 +52,7 @@ export async function onHoverHandler (params: HoverParams): Promise 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}'` } }