fix hover error
parent
dc7502c900
commit
f2372c9120
|
@ -212,15 +212,6 @@ export async function activate(context: ExtensionContext) {
|
||||||
outputChannel: outputChannel,
|
outputChannel: outputChannel,
|
||||||
revealOutputChannelOn: RevealOutputChannelOn.Never,
|
revealOutputChannelOn: RevealOutputChannelOn.Never,
|
||||||
middleware: {
|
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) {
|
async resolveCompletionItem(item, token, next) {
|
||||||
let result = await next(item, token)
|
let result = await next(item, token)
|
||||||
let selections = Window.activeTextEditor.selections
|
let selections = Window.activeTextEditor.selections
|
||||||
|
|
Loading…
Reference in New Issue