Skip to content

Commit

Permalink
Specify the VSCode language client transport kind
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Oct 30, 2023
1 parent 09a67ee commit 9075070
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/vscode-mdx/src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {DiagnosticModel} from '@volar/language-server'
import * as languageServerProtocol from '@volar/language-server/protocol.js'
import {activateAutoInsertion, getTsdk, supportLabsVersion} from '@volar/vscode'
import {languages, workspace} from 'vscode'
import {LanguageClient} from 'vscode-languageclient/node.js'
import {LanguageClient, TransportKind} from 'vscode-languageclient/node.js'
import {documentDropEditProvider} from './document-drop-edit-provider.js'

/**
Expand All @@ -34,7 +34,10 @@ export async function activate(context) {

client = new LanguageClient(
'MDX',
{module: context.asAbsolutePath('out/language-server.js')},
{
module: context.asAbsolutePath('out/language-server.js'),
transport: TransportKind.ipc
},
{
documentSelector: [{language: 'mdx'}],
initializationOptions: {
Expand Down

0 comments on commit 9075070

Please sign in to comment.