-
Notifications
You must be signed in to change notification settings - Fork 5.9k
command to open file at line number #3106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for creating the follow-up issue. It's a modest enhancement of #1964 My use case is for the "protocol" or url version of My goal is to support opening the relevant file at the correct line number in whatever editor the user prefers, so having (e.g.) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
I hope this gets implemented some day, since it was deemed relatively easy and it would be great for integration |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
Oh well. Disappointing. |
At long last implemented in #5620 released in v4.8.0. |
This is exciting! What's the protocol syntax version of "open folder/file[at line]"? |
If you are using the integrated terminal we delegate to Code's own CLI so it will look like:
If you are running outside code-server in an external terminal it goes through our own CLI and we just always assume
We should eventually remove our CLI and directly delegate to Code's in external terminals to remove the disparity at some point. |
Sorry for not being clear. By "protocol" I meant URL syntax |
Ahh my bad, this is only for the command-line |
I think I am just being dumb, seems this issue was originally for the URL method but I misread the first post. Sorry for the noise. Still, I think we can keep this in #1964 since I think it would make sense to implement it all at once. |
No worries at all! Thanks for the reply and the work
…On Mon, Feb 13, 2023, 12:58 PM Asher ***@***.***> wrote:
I think I am just being dumb, seems this issue was originally for the URL
method but I misread the first post. Sorry for the noise.
Still, I think we can keep this in #1964
<#1964> since I think it would
make sense to implement it all at once.
—
Reply to this email directly, view it on GitHub
<#3106 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABORGASV64F4GNPEGAG6YVLWXKN6TANCNFSM42ZNZSAQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
suggested by @jkaster
Currently a file can be opened in an existing window: #1994
VS Code itself supports opening a file with line number with the -g (goto?) flag (see microsoft/vscode#39891):
It would probably make sense to reuse this schema.
The text was updated successfully, but these errors were encountered: