astrochili / vscode-defold

A toolkit for Visual Studio Code to develop games with Defold
https://marketplace.visualstudio.com/items?itemName=astronachos.defold
MIT License
160 stars 10 forks source link

Clickable file links in log #41

Open zendorx opened 2 months ago

zendorx commented 2 months ago
sc

I have issue that file links in log not clickable. I use VSCode 2 on Mac os.

astrochili commented 2 months ago

I'm not sure it's ever worked this way before. Is it possible to implement this, are there any example logs in vscode where this works?

zendorx commented 2 months ago
Снимок экрана 2024-04-12 в 12 51 45

It does work for output window. I assume it possible do the same for log

zendorx commented 2 months ago
Снимок экрана 2024-04-12 в 13 02 37

BTW it does work in debug console. But if path is full. Maybe there some way to specify some regex for it

astrochili commented 2 months ago

Stack traceback paths are different from full paths and it's something we have no influence on in this case, it's the text that is returned by the game engine. Yeap, VS Code is not ready to accept such paths as links 😀 No idea yet on how to make it work 😔

I mean that Defold Kit is not involved in mediating this output in any way, it's output directly from running dmengine to the console. Well, maybe there is some kind of a pass through the local lua debugger, but that won't help us much for the solution either (about integrating regex parsing and replacing paths).