mcfunction-langserver icon indicating copy to clipboard operation
mcfunction-langserver copied to clipboard

Add Atom support

Open MSpaceDev opened this issue 7 years ago • 4 comments

Hey Levertion,

Firstly, been watching this project for a few months now. Looks like it's getting there. Excited for it.

So, I've pulled the master branch of the repo, created the project in Visual Studio, and compiled the package. npm run compile

I then moved the entire cloned folder into the packages section of Atom. I can see the package there, and it is working without errors, though I cannot select is as a language.

In Atom image

Folder structure after compile screenshot-12

Language Selection image

MSpaceDev avatar Aug 17 '18 18:08 MSpaceDev

This is not an atom extension, it's a general language server for any editor. The fact that it loaded at all without errors shocks me and seems like an atom bug.

For it to work in atom, you would need a project similar to vscode-mcfunction, but for atom.

May I ask what is the mcfunction-langserver folder is, because I don't think that's because of something I've made.

Levertion avatar Aug 21 '18 18:08 Levertion

The mcfunction-langserver was created when I loaded up the NJS project in VS. It's empty.

So, that begs the question, how would I use the language server with Atom? The structure of that vscode-mcfunction looks similar to the compiled structure from your repo. Or shall I just wait till' full release?

MSpaceDev avatar Aug 21 '18 18:08 MSpaceDev

You would create an atom extension which used https://github.com/atom/atom-languageclient and relied upon https://atom.io/packages/atom-ide-ui, similarly to vscode-mcfunction.

Levertion avatar Aug 21 '18 20:08 Levertion

I've renamed this issue to track creating an Atom extension

Levertion avatar Sep 03 '18 12:09 Levertion