Skip to content

Conversation

@robertsipka
Copy link
Contributor

Retrieve the list of variables at the current scope and show them under the variables pane.

This will be in WIP status until this Jerryscript PR does not landed.

@robertsipka robertsipka force-pushed the variables_pane branch 4 times, most recently from e7fd64e to 4652cf8 Compare October 17, 2018 08:48
@robertsipka robertsipka force-pushed the variables_pane branch 2 times, most recently from ee558b7 to 8aa80a6 Compare October 29, 2018 14:11
@robertsipka robertsipka changed the title (WIP) Support the scope and variables requests Support the scope and variables requests Oct 29, 2018
@robertsipka
Copy link
Contributor Author

The Jerryscript PR has just landed. I've removed the WIP flag.

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

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

LGTM

const scopesArray: Array<JerryScopeChain> = await this._protocolhandler.requestScopes();
const scopes = new Array<Scope>();

for (let scope of scopesArray) {
Copy link

Choose a reason for hiding this comment

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

Try to use const for the for loop variable.

const id = this._variableHandles.get(args.variablesReference);
const scopeVariables: Array<JerryScopeVariable> = await this._protocolhandler.requestVariables(Number(id));

for (let variable of scopeVariables) {
Copy link

Choose a reason for hiding this comment

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

Ditto.

Retrieve the list of variables at the current scope and show them under the variables pane.

IoT.js-VSCode-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
Copy link

@rtakacs rtakacs left a comment

Choose a reason for hiding this comment

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

LGTM

@rtakacs rtakacs merged commit c82b8f2 into jerryscript-project:master Oct 30, 2018
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

Successfully merging this pull request may close these issues.

3 participants