This extensions adds language support for inkle's ink.
- Syntax highlighting using the updated TextMate grammar.
- Diagnostics (errors, warning and author's notes) through inklecate (inklecate must be installed separately).
The server supports three configuration settings.
ink.useLanguageServer
: use the experimental language server (this feature requires a version of inklecate with LSP support, see Quickstart for more information).ink.languageServer.mainFilePath
: the path to the main ink file, used by inklecate to build the story. If it's not provided, the extension will treat the current file in isolation.ink.languageServer.inklecatePath
: the path to the inklecate. If inklecate is accessible in$PATH
, you can set it toinklecate
.ink.languageServer.useSpecificRuntime
: whether to use a .NET runtime to executeinklecate
; possible values are:none
: use no specific runtime (only available on Windows);mono
: use Mono runtime;dotnet
: use .NET Core runtime.
- Clone the project
- Run
npm install
- Run the configuration named
Run Extension (Debug)
- Set the configuration settings (see below)
- Clone this fork of ink.
- Check out the branch named
language-server
. - Build the project (using the Debug configuration).
- Grab the path to
inklecate.dll
and set it toink.languageServer.inklecatePath
. By default it should be at:
<root-of-repository>/inklecate/bin/Debug/netcoreapp3.1/inklecate.dll
- If you're building using Visual Studio for Mac and keeping the default configuration,
dotnet
is a better choice thanmono
forink.languageServer.useSpecificRuntime
(although both should work). - Enable
ink.useLanguageServer
.
This extension is released under the MIT license. See LICENSE for details.