coder / coder/code-server

Ability to open a file directly using a URL

オープン
#1,964 コメント 34 件 リアクション 20 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
79.3k
フォーク
6.8k
平均マージ
2日 6時間
マージ済み PR(30日)
41

説明

We're trying to setup a online developmenr environment for our users - and are trying code-server.

We're using it for static HTML pages for website development, and I was hoping to add a button on the HTML pages which says "Edit this page on code-server".

I was hoping to setup that up, I could provide the path / URL to code-server ... something like:
`mycodeserver.domain.com/?file=project/README.md`
And it would open that particular file in the code-server when the button is clicked..

I couldn't find any documentation or notes about whether this is possible right now

NOTE: I did see https://github.com/cdr/code-server/issues/1960 - but it didn't seem the similar

*Edit*: Should also support line and column syntax, for example: `http://code-server:port/path=/dir/sub/file.ext:line:col`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。