CommentLinks icon indicating copy to clipboard operation
CommentLinks copied to clipboard

Request: CommentLinks for vscode

Open magebot1 opened this issue 4 years ago • 6 comments

Hi, mrlacey any chance to the CommentLinks extension also supports vscode?

magebot1 avatar Oct 18 '21 12:10 magebot1

Hi, mrlacey any chance to the CommentLinks extension also supports vscode?

It would likely take a complete rewrite and so is not something I expect to have time for in the foreseeable future. I will leave this open for further feedback and allow others to express an interest in this request also.

mrlacey avatar Oct 18 '21 14:10 mrlacey

+1

There isn't a common infrastructure/API for extensions that support both VS and VS Code is there? Wouldn't there just need to be a parallel version that knows the schema written in JS or something (not sure how good C# -> JS transpiling is these days or if .NET standard assemblies can be run via WASM or something now in VS Code...)?

michael-hawker avatar May 11 '22 19:05 michael-hawker

There isn't a common infrastructure/API for extensions that support both VS and VS Code is there? Wouldn't there just need to be a parallel version that knows the schema written in JS or something (not sure how good C# -> JS transpiling is these days or if .NET standard assemblies can be run via WASM or something now in VS Code...)?

Sadly they're based on different technologies for the UI integration (HTML/CSS & WPF) and the backing code (C# vs Javascript). They also have completely different extensibility APIs relating to the editor. VSCode support would require a completely new implementation.

For wider background: VSforMac is being adapted to eventually have a similar (the same?) editor extensibility API but it's not there yet and it doesn't help with VSCode.

mrlacey avatar May 12 '22 10:05 mrlacey

Stumbled upon this on my latest GitHub search: https://github.com/jcace/commentlinks

Unfortunately, they don't provide a license on the code, could be a good starting introduction though for an issue and to potentially collaborate in the future?

michael-hawker avatar May 17 '22 17:05 michael-hawker

Stumbled upon this on my latest GitHub search: https://github.com/jcace/commentlinks

Good finding @michael-hawker, but there even better solution for VSCode: https://github.com/StarlaneStudios/vscode-comment-anchors. Not totally sure, but seems that it is possible to create own link there to mimic the style.

Another option:

How about to create a specification for current @mrlacey's standard!

So other modders would be able to produce their own extensions that follow common standard for file links

Challanger524 avatar Feb 08 '24 11:02 Challanger524

One more: https://marketplace.visualstudio.com/items?itemName=Fr43nk.seito-openfile

No underline highlight but an ability to open any (existing) files

Challanger524 avatar Feb 08 '24 13:02 Challanger524