From 160a201b1d6b64a7e7c853106fa3d98c7cfc5fe4 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Tue, 31 Oct 2023 21:44:36 +0800 Subject: [PATCH] fix: Push diagnostics from server (#347) This also updates diagnostics if changes in one file affect another. Co-authored-by: Remco Haszing --- packages/vscode-mdx/src/extension.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/vscode-mdx/src/extension.js b/packages/vscode-mdx/src/extension.js index 8b01d835..4887cb79 100644 --- a/packages/vscode-mdx/src/extension.js +++ b/packages/vscode-mdx/src/extension.js @@ -3,7 +3,6 @@ * @typedef {import('vscode').ExtensionContext} ExtensionContext */ -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' @@ -41,8 +40,7 @@ export async function activate(context) { { documentSelector: [{language: 'mdx'}], initializationOptions: { - typescript: {tsdk}, - diagnosticModel: DiagnosticModel.Pull + typescript: {tsdk} } } )