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

VSCode Editor alongside emacs/vim #2483

Closed
SeyyedKhandon opened this issue Sep 17, 2021 · 6 comments
Closed

VSCode Editor alongside emacs/vim #2483

SeyyedKhandon opened this issue Sep 17, 2021 · 6 comments

Comments

@SeyyedKhandon
Copy link

Hi,
typing and formatting the code manually is really time consuming and annoying.

Is there any plan to integrate an editor with IntelliSense/autocompletion like vscode integration in the browser like github editor, typescript playground, codesandbox etc. ?

It would be great if the vscode integration can be used in the codewars😍
like this ( just press dot key on the keyboard (.) to see it):
https://github.dev/?redirect=%2Fcodewars%2Fcodewars.com

@SeyyedKhandon
Copy link
Author

SeyyedKhandon commented Sep 17, 2021

I've found an interesting editor which supports all language, monaco-editor:
https://github.com/Microsoft/monaco-editor
It has a good react component too:
https://github.com/suren-atoyan/monaco-react

@SeyyedKhandon
Copy link
Author

SeyyedKhandon commented Sep 17, 2021

It seems other platforms are using monaco:
hackerrank :
image
typescript playground:
image

@kazk
Copy link
Member

kazk commented May 27, 2022

Emacs/Vim are just keybindings provided by CodeMirror. We don't have any plan to switch to Monaco at the moment.

Also, enabling autocompletion for the languages we support is not as easy as switching to Monaco. Language Servers must be started in the correct context for each user, and the editor must communicate with them over WebSocket. Some languages like JavaScript and TypeScript have Language Servers that can work in browser, but those won't work as expected in our case because we're using Node.js.

We support autocompletion for main languages at Qualified, but I doubt we'll enable it for free users on Codewars. Maybe as a paid feature in the future.

@kazk kazk closed this as completed May 27, 2022
@SeyyedKhandon
Copy link
Author

Thanks for the answer, but It's a basic feature that almost every platform supports, and it's kind of annoying to code on codewars
without it. I think soon you need to consider it because of users.

@kazk
Copy link
Member

kazk commented May 28, 2022

We know it's nice to have, and we'd love to support it, but it's not cheap. Like I wrote above, we might introduce autocompletion as a paid feature.

It's a basic feature that almost every platform supports

I disagree. It's definitely not a basic feature when you need remote Language Servers. I also disagree about almost every platform supporting it. It's probably more limited than you think. Incomplete autocompletion ignoring context is more annoying than not having any.

  • VS Code for the Web (github.dev) works entirely in browser, and has limited language support because of it. Autocompletion in many languages only show existing tokens. It's also by Microsoft, who owns VS Code.
  • TypeScript playground is only for TypeScript in the browser context.
  • Services like CodeSandbox and Replit are great, but I don't think it's fair to be compared against teams focused on providing the best in-browser coding experience.
  • HackerRank's free problem is a single main file, which is much cheaper to support. We have multiple files with more complex setup. I don't think they have more complex challenges for free.
  • LeetCode supports it as a paid feature.

I wrote some technical details in codewars/runner#42 (comment) if interested.

@SeyyedKhandon
Copy link
Author

Thanks, I hope to see this feature soon👍

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

No branches or pull requests

2 participants