-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving file causes LSP to shit the bed #1094
Comments
Can you post a repo where this happens consistently or at least inconsistently? |
https://github.com/bbrk24/mariokart-optimizer is where this is happening to me |
This also causes a more severe version of #825 -- |
Saving a file isn't the only trigger. If "jump to definition" opens one of the built-in lib.*.d.ts files, that can also trigger this. |
Simply having a lib.*.d.ts file open in another tab and performing an edit can trigger this. This is ridiculous. |
Here's the Language Server output, if that helps. It doesn't seem to suggest anything out of the ordinary: Civet LSP OutputInit /home/bbrk24/workspace/NewSolitaire/ open file:///home/bbrk24/workspace/NewSolitaire/src/index.civet onDidChangeContent file:///home/bbrk24/workspace/NewSolitaire/src/index.civet Spawning language server for project path: file:///home/bbrk24/workspace/NewSolitaire/ CIVET VSCODE PLUGIN 0.3.15 TYPESCRIPT 5.2.2 PARSED TSCONFIG { options: { lib: [ 'lib.dom.d.ts', 'lib.es2022.d.ts' ], target: 9, strict: true, configFilePath: '/home/bbrk24/workspace/NewSolitaire/tsconfig.json', rootDir: '/home/bbrk24/workspace/NewSolitaire/', allowNonTsExtensions: true, allowJs: true, jsx: 1 }, watchOptions: undefined, fileNames: [ '/home/bbrk24/workspace/NewSolitaire/dist/Card.js', '/home/bbrk24/workspace/NewSolitaire/dist/Engine.js', '/home/bbrk24/workspace/NewSolitaire/dist/GameBoard.js', '/home/bbrk24/workspace/NewSolitaire/dist/WeakArray.js', '/home/bbrk24/workspace/NewSolitaire/dist/fisherYatesShuffle.js', '/home/bbrk24/workspace/NewSolitaire/dist/index.js', '/home/bbrk24/workspace/NewSolitaire/dist/interfaces.js' ], projectReferences: undefined, typeAcquisition: { enable: false, include: [], exclude: [] }, raw: { compilerOptions: { lib: [Array], target: 'ES2022', strict: true }, compileOnSave: false }, errors: [], wildcardDirectories: { '/home/bbrk24/workspace/NewSolitaire': 1 }, compileOnSave: false } No idea why it says TS 5.2.2, given that my package.json has "dependencies": {
"@danielx/civet": "~0.7.8",
"typescript": "~5.4.5"
}
|
Some more information I realized this morning: Even though it usually only affects core JS types like |
As best as I can tell, this is no longer an issue in extension version 0.3.21. |
I have no idea where to begin with this one. Restarting the LSP only fixes it until I save again.
The text was updated successfully, but these errors were encountered: