You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Embed links to workspace documents like <a href="vscode-resource:///d%3A/code/Sample.java#L123">test</a>, using #L123 to anchor on a specific line.
Try to click on link
Nothing happens -- the document is not opened
I can't figure out how to link to a workspace document in the WebView API. With previewHtml, a link with a file: uri works. I've tried file: and vscode-resource:, but neither work. I use this code in localResourceRoots to whitelist the workspace:
Please ask your question on StackOverflow. We have a great community over there. They have already answered thousands of questions and are happy to answer yours as well. See also our issue reporting guidelines.
vscode-resource is not intended for clickable links. Either use a command: uri in the link to fire a vscode command that opens the resource or use postMessage to tell your extension to open that resource when the link is clicked
Issue Type: Bug
<a href="vscode-resource:///d%3A/code/Sample.java#L123">test</a>
, using #L123 to anchor on a specific line.I can't figure out how to link to a workspace document in the WebView API. With previewHtml, a link with a file: uri works. I've tried file: and vscode-resource:, but neither work. I use this code in localResourceRoots to whitelist the workspace:
VS Code version: Code 1.28.2 (7f3ce96, 2018-10-17T00:23:12.403Z)
OS version: Windows_NT ia32 10.0.17763
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: