Skip to content
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

lsp/jupyter: support context across blocks #27940

Closed
kitsonk opened this issue Feb 3, 2025 · 2 comments
Closed

lsp/jupyter: support context across blocks #27940

kitsonk opened this issue Feb 3, 2025 · 2 comments

Comments

@kitsonk
Copy link
Contributor

kitsonk commented Feb 3, 2025

In jupyter notebooks, the context is shared across all the code blocks, though the language server appears to evaluating the context just within the current block, while the kernel is actually using the wider context.

For example if I declare something like this in a code block:

const VALUE = "hello";

I can use it in a subsequent code block:

console.log(VALUE);

But the LSP gives back:

Cannot find name 'VALUE' - deno-ts(2304)

But the code executes perfectly fine.

@sigmaSd
Copy link
Contributor

sigmaSd commented Feb 3, 2025

#25423

@dsherret
Copy link
Member

dsherret commented Feb 3, 2025

I really want this too. Let's track in denoland/vscode_deno#932 and #21709

@dsherret dsherret closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants