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

variable provider for native repl #24094

Merged
merged 26 commits into from
Sep 18, 2024
Merged

variable provider for native repl #24094

merged 26 commits into from
Sep 18, 2024

Conversation

amunger
Copy link

@amunger amunger commented Sep 11, 2024

fix #24066

@amunger amunger changed the title Aamunger/variable provider variable provider for native repl Sep 11, 2024
@amunger amunger added the feature-request Request for new features or functionality label Sep 11, 2024
@amunger amunger marked this pull request as ready for review September 12, 2024 21:39
@vs-code-engineering vs-code-engineering bot added this to the September 2024 milestone Sep 12, 2024
@karthiknadig
Copy link
Member

You may need to rebase after this other PR is merged for the Smoke test issue: 2b4c2bf

@amunger amunger added the skip package*.json package.json and package-lock.json don't both need updating label Sep 16, 2024
@amunger amunger enabled auto-merge (squash) September 17, 2024 20:54
indexedChildrenCount: number;
}

interface NotebookVariableProvider {
Copy link

@anthonykim1 anthonykim1 Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amunger Does the vscode engine need to be explicitly pinned?
We currently have

 "engines": {
        "vscode": "^1.94.0-20240913"
    },

also saw commit on vscode-distro so I think we are good.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just has to be beyond that distro commit, and that version is, so it should work

function wrapScriptInFunction(scriptLines: string[]): string {
const indented = scriptLines.map((line) => ` ${line}`).join('\n');
// put everything into a function scope and then delete that scope
// TODO: run in a background thread

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would running the script in the background give performance benefit?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having a large number of variables could conceivably block execution as they are collected and putting this operation on a background thread would prevent that. the speed of safeRepr might make that unnecessary though.

@amunger amunger merged commit 717e518 into main Sep 18, 2024
73 checks passed
@amunger amunger deleted the aamunger/variableProvider branch September 18, 2024 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality skip package*.json package.json and package-lock.json don't both need updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support variable exploration in the native REPL
3 participants