diff --git a/packages/vscode-tailwindcss/src/extension.ts b/packages/vscode-tailwindcss/src/extension.ts index 62861fe2642da8b38df20621226ada10e8b70372..b7d49a51119a9d09f77081e7c448ac5665a7d4aa 100755 --- a/packages/vscode-tailwindcss/src/extension.ts +++ b/packages/vscode-tailwindcss/src/extension.ts @@ -212,6 +212,15 @@ workspaceFolder: folder, outputChannel: outputChannel, revealOutputChannelOn: RevealOutputChannelOn.Never, middleware: { + async provideHover(document, position, token, next) { + let result = await next(document, position, token) + result.contents = result.contents.map((content) => { + // @ts-ignore + content.isTrusted = true + return content + }) + return result + }, async resolveCompletionItem(item, token, next) { let result = await next(item, token) let selections = Window.activeTextEditor.selections