monaco-languageclient icon indicating copy to clipboard operation
monaco-languageclient copied to clipboard

No type error indication on typescript example

Open p-buddy opened this issue 6 months ago • 7 comments

Hello! Thank you for creating and maintaining this library.

I've successfully replicated the typescript example, but I notice both in my implementation and the hosted example type errors are not highlighted.

Specifically, the following code displays no errors:

const takesString = (x: string) => {};

takesString(0);

Screenshot (from hosted example):

Image

However, a standard instance of monaco editor (instantiated via the "@monaco-editor/react" component) does highlight this error:

Screenshot:

Image

Is this expected, and perhaps just a limitation of the typescript service? Or is this an error?

p-buddy avatar Apr 14 '25 22:04 p-buddy