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

Catch Ctrl + click on import

Open dmeij opened this issue 5 months ago • 3 comments

When I Ctrl + click an import statement in the editor, I get:

FileOperationError: Unable to read file '*****.extension' (Error: Unable to resolve nonexistent file ''*****.extension')

That makes sense, because the referenced file isn’t present in the virtual file system. Is there a way to intercept this—perhaps via a callback that gives me the model or URI of the file the editor is trying to open?

dmeij avatar May 16 '25 13:05 dmeij