fix Jupyter Notebooks in VSCode become unresponsive because the kernel gets disposed erroneously #1463

This commit is contained in:
Nate 2024-12-13 21:13:14 -08:00
parent df6a7bd65e
commit ea63219e4f
2 changed files with 6 additions and 1 deletions

View file

@ -30,6 +30,11 @@ export class ImportDefinitionsService {
}
private async _getFileInfo(filepath: string): Promise<FileInfo | null> {
if (filepath.endsWith(".ipynb")) {
// Commenting out this line was the solution to https://github.com/continuedev/continue/issues/1463
return null;
}
const parser = await getParserForFile(filepath);
if (!parser) {
return {

View file

@ -77,7 +77,7 @@ export const supportedLanguages: { [key: string]: LanguageName } = {
mjs: LanguageName.JAVASCRIPT,
cjs: LanguageName.JAVASCRIPT,
py: LanguageName.PYTHON,
ipynb: LanguageName.PYTHON,
// ipynb: LanguageName.PYTHON, // It contains Python, but the file format is a ton of JSON.
pyw: LanguageName.PYTHON,
pyi: LanguageName.PYTHON,
el: LanguageName.ELISP,