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

VSCODE-247: Replace code lenses with code actions #318

Merged
merged 9 commits into from
Aug 12, 2021

Conversation

alenakhineika
Copy link
Contributor

@alenakhineika alenakhineika commented Jul 16, 2021

Description

  1. Based on user feedback, we are going to resolve the annoyance of the code lenses to run portions of a playground that make the code jump up and down when the selection changes, with code actions.
  2. Patch node-gyp on Windows: Unable to build binary modules on windows-latest  actions/setup-node#68

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@alenakhineika alenakhineika force-pushed the VSCODE-247-replace-code-lenses-with-code-actions branch from 4d38634 to 14ad445 Compare August 6, 2021 11:22
@alenakhineika alenakhineika removed the WIP label Aug 6, 2021
@alenakhineika alenakhineika requested a review from Anemy August 6, 2021 11:53
@alenakhineika alenakhineika force-pushed the VSCODE-247-replace-code-lenses-with-code-actions branch from 14ad445 to b7fdfc9 Compare August 12, 2021 10:15
@@ -18,5 +18,6 @@
"other": true,
"comments": false,
"strings": true
}
},
"security.workspace.trust.enabled": false
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an unrelated change, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Vscode 1.57 introduced a trusted authors confirmation modal, that interrupts tests, so this line disables this check during tests running.

expect(codeActions).to.be.undefined;
});

test('expected provideCodeActions to return a run selected playground blocks action', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to add a test that actually runs the selected code? As far as I can tell, there wasn’t any before, but it might be a nice thing to have here

@alenakhineika alenakhineika merged commit d0015f2 into main Aug 12, 2021
@alenakhineika alenakhineika deleted the VSCODE-247-replace-code-lenses-with-code-actions branch August 12, 2021 19:56
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.

2 participants