Skip to content

Commit f0f2c10

Browse files
Vincent Berthouxakosyakov
authored andcommitted
When the langage server doesn't provide a resolve option, return the original code lens
In browser test shown that monaco still call the resolver in all cases, so we can't use undefined.
1 parent bc5b308 commit f0f2c10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/languages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export class MonacoLanguages implements Languages {
271271
}
272272
const protocolCodeLens = this.m2p.asCodeLens(codeLens);
273273
return provider.resolveCodeLens!(protocolCodeLens, token).then(result => this.p2m.asCodeLens(result))
274-
} : undefined
274+
} : ((m, codeLens, t) => codeLens)
275275
}
276276
}
277277

0 commit comments

Comments
 (0)