You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
1.8.11
Link to runnable example
No response
Steps to reproduce
Open a MDX in VS Code
Expected behavior
No Crash
Actual behavior
[Info - 10:27:07] Connection to server got closed. Server will restart.
true
/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:41833
const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression;
^
TypeError: Cannot read properties of undefined (reading '0')
at convertConfigFileToObject (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:41833:53)
at parseOwnConfigOfJsonSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42667:16)
at parseConfig (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42566:97)
at parseJsonConfigFileContentWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42294:24)
at Object.parseJsonSourceFileConfigFileContent (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42263:18)
at a (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:897:19013)
at /Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:897:18633
at $fe (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:85:5357)
at d (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:85:12248)
at S (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:85:12018)
Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing a reproduction: It’s not yet clear whether this is a problem. Here are a couple tips:
Thoroughly document how to reproduce the problem, in steps or with code
Don’t link to your complete project: make the repro as tiny as possible, preferrably with only the problematic project in question
Make sure you’re on the latest versions of projects (and node/npm/yarn!)
The best issue report is a failing test proving it
Initial checklist
Affected packages and versions
1.8.11
Link to runnable example
No response
Steps to reproduce
Open a MDX in VS Code
Expected behavior
No Crash
Actual behavior
Affected runtime and version
code --version: 1.94.0 d78a74bcdfad14d5d3b1b782f87255d802b57511 arm64
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
Docusaurus
The text was updated successfully, but these errors were encountered: