Currently we are integrating Java Language Server to Monaco Editor. There when I am trying to import unknown modules or packages it is not throwing warning or errors.. Tried using Tokenizer but didn't worked out.
When I am importing any unknown package or error I want error some thing red lines below the package name. Similar to how we will get for typescript. I want to know how to add these type to monaco editor for a new language that we are registering.
After you did the semantic validation send diagnostics back, which your extension can use to add such information. For example:
(from my extension antlr4-vscode).