Skip to content

Commit

Permalink
Use the ipc transport
Browse files Browse the repository at this point in the history
This way there’s not change of any console output causing invalid
responses.
  • Loading branch information
remcohaszing committed Apr 16, 2024
1 parent 00695da commit 512cded
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/extension.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {workspace} from 'vscode'
import {LanguageClient} from 'vscode-languageclient/node.js'
import {LanguageClient, TransportKind} from 'vscode-languageclient/node.js'

/**
* @type {LanguageClient}
Expand All @@ -12,7 +12,10 @@ let client
export async function activate(context) {
client = new LanguageClient(
'remark',
{module: context.asAbsolutePath('out/remark-language-server.js')},
{
module: context.asAbsolutePath('out/remark-language-server.js'),
transport: TransportKind.ipc
},
{
documentSelector: [{scheme: 'file', language: 'markdown'}],
synchronize: {
Expand Down

0 comments on commit 512cded

Please sign in to comment.