conwnet / github1s

One second to read GitHub code with VS Code.
https://github1s.com
MIT License
22.88k stars 871 forks source link

is it possible to support language server's extensions #26

Open Sean10 opened 3 years ago

Sean10 commented 3 years ago

I think if the web vscode could provide features of language servers, it would be extremely great.

I don't know whether there is some tech which could provide language server without a personal server to realize like use microsoft/vscode-cpptools: Official repository for the Microsoft C/C++ extension for VS Code. to index c++ code use microsoft/vscode-python: Python extension for Visual Studio Code to support python.

Or support any other language server.

Any ideas?

Looking forward to yours feedback.

conwnet commented 3 years ago

I look for it too, and I think it will would not be a simple work...

JustinGrote commented 3 years ago

@conwnet I would think maybe there's some way for me to specify some sort of configuration file (e.g. github1s.json) that you could just import as a sort of workspace.json?

Great work BTW, this is awesome.

ntindle commented 3 years ago

There is a public facing extension list for use in projects like this. I can’t find it for the life of me right now though. It’s fundamentally an extension marketplace for vs code like programs

wfjsw commented 3 years ago

There is a public facing extension list for use in projects like this. I can’t find it for the life of me right now though. It’s fundamentally an extension marketplace for vs code like programs

Guess you want to say: https://open-vsx.org/

notpushkin commented 3 years ago

Please note that this would probably only work with JavaScript-based language servers (so that they can run in browser). For Python, that would be https://github.com/microsoft/pyright, for example.

Trolldemorted commented 3 years ago

Please note that this would probably only work with JavaScript-based language servers (so that they can run in browser). For Python, that would be https://github.com/microsoft/pyright, for example.

Wouldn't anything that can be compiled to webassembly work (under the assumption you can put a virtual file system underneath the implementation)?

And does the language server necessarily have to run in the browser?

JustinGrote commented 3 years ago

Please note that this would probably only work with JavaScript-based language servers (so that they can run in browser). For Python, that would be https://github.com/microsoft/pyright, for example.

Wouldn't anything that can be compiled to webassembly work (under the assumption you can put a virtual file system underneath the implementation)?

And does the language server necessarily have to run in the browser?

I mean theoretically you could drop a vsagent on the local host and communicate with it locally, but if you're going to do that you might as well just install code :)