Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/mo-ide/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules

/dist
/pkg
35 changes: 35 additions & 0 deletions packages/mo-ide/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# mo-ide · [![npm version](https://img.shields.io/npm/v/mo-ide.svg?logo=npm)](https://www.npmjs.com/package/mo-ide) [![GitHub license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

> #### The official [Language Server Protocol (LSP)](https://microsoft.github.io/language-server-protocol/) implementation for [Motoko](https://github.com/dfinity/motoko).

---

`mo-ide` exists for developers interested in using features from the [Motoko VS Code extension](https://github.com/dfinity/vscode-motoko) in an IDE without official Motoko language support.

## Setup

Ensure that [Node.js](https://nodejs.org/en/download/) is installed on your system, and run the following command:

```bash
npm install -g mo-ide
```

This will add the `mo-ide` command to your path, which you can then use in your supported IDE of choice.

For environments without Node.js, you can also download a portable executable from the [GitHub releases](https://github.com/dfinity/vscode-motoko/releases) page.

## Getting Started

IDE-specific setup instructions are currently a work in progress.

## Advanced Usage

Start the language server using the following commands:

```bash
mo-ide --stdio # standard I/O transport (when in doubt, try this option)

mo-ide --node-ipc # Node.js IPC transport (used in VS Code)

mo-ide --socket={number} # TCP socket transport
```
Loading