Closed Alecton4 closed 8 months ago
Not sure this is even possible to override, I think the URL thing is built-in to VSCode.
Assuming this is a fragment of a Dockerfile, what you describe would require that the VS Code editor/Dockerfile language service performs full Dockerfile evaluation, including variable substitution, and that on top of what @bwateratmsft describes. I do not think any of this is planned at this time.
It looks like the URL recognition is built into VSCode itself, so there's nothing we can do about this. Can you try opening an issue in the VSCode repository
Not sure whether this is extension scope or VSCode scope but there is a conflict between go to definition and go to URL. Take the following snippet as an example:
Ctrl
+click
on$foo
inside the URL will go to the URL. Since go to URL will usehttps://$foo.bar
as the address instead ofhttps://foo.bar
, it doesn't make much sense to go to URL. Is there a way to prioritize go to definition over go to URL?