Skip to content
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

建议添加对远程开发环境的支持,并上架到 open-vsx.org #31

Open
dsy4567 opened this issue Jul 31, 2023 · 3 comments
Open

Comments

@dsy4567
Copy link

dsy4567 commented Jul 31, 2023

https://code.visualstudio.com/api/advanced-topics/remote-extensions
https://open-vsx.org/

@yltx
Copy link
Owner

yltx commented Jul 31, 2023

我们确实也考虑过,但一方面不知道该怎么弄,一方面咕咕咕,就这样了

@dsy4567
Copy link
Author

dsy4567 commented Aug 1, 2023

给点建议:

  1. https://github.com/yltx/vscode-luogu-stable/blob/9278509cfccda81a55a124c6f04ea5ca0f486704/package.json#L37extensionKind 删掉,或者再加个 workspace

  2. 如果 Webview 需要从 localhost 获取资源(比如使用 iframe嵌入网页),则应该使用 await vscode.env.asExternalUri(vscode.Uri.parse('http://localhost:11451/foo/bar'))

  3. 如果扩展里有二进制可执行文件或直接与操作系统接口交互,在无法保证不同平台兼容性的情况下,尽量使用原生 JS 代码替代

  4. 开发时可以使用 code-serverGitHub Codespaces,也可以一般环境测试通过之后打包成 vsix 上传到远程开发环境后安装

  5. 多用 VSCode Api(比如在浏览器打开链接应该使用 vscode.env.openExternal(vscode.Uri.parse(url))

@Mr-Python-in-China
Copy link

远程开发环境支持了;
codespace 由于 luogu 使用 cloudflare 导致来自国外的请求经常失败,难以调试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants