Skip to content

Commit

Permalink
fix: Push diagnostics from server (#347)
Browse files Browse the repository at this point in the history
This also updates diagnostics if changes in one file affect another.

Co-authored-by: Remco Haszing <[email protected]>
  • Loading branch information
johnsoncodehk and remcohaszing authored Oct 31, 2023
1 parent 9075070 commit 160a201
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vscode-mdx/src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -41,8 +40,7 @@ export async function activate(context) {
{
documentSelector: [{language: 'mdx'}],
initializationOptions: {
typescript: {tsdk},
diagnosticModel: DiagnosticModel.Pull
typescript: {tsdk}
}
}
)
Expand Down

0 comments on commit 160a201

Please sign in to comment.