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

feat: Export to language VSCODE-296 #366

Merged
merged 7 commits into from
Nov 18, 2021

Conversation

alenakhineika
Copy link
Contributor

@alenakhineika alenakhineika commented Oct 29, 2021

Description

Use playground to enable the export to language feature.

  • if a selected text is recognized as quey or aggregation pipeline, show additional commands in a contextual menu of code actions for the selected text (one for each language)
  • support transpiling from shell to python, java, c#, and javascript
  • open transpiling results in playground result pane with syntax highlighting for a corresponding language
  • at the beginning of exported results show Include/Exclude Import Statements, Include/Exclude Driver Syntax, and Use Raw Query/Use Builders code lenses
    • only java queries support bulders
    • csharp does not support driver syntax
  • configure export to language direct commands

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 requested a review from Anemy October 29, 2021 13:44
src/editors/codeActionProvider.ts Outdated Show resolved Hide resolved
src/editors/playgroundController.ts Outdated Show resolved Hide resolved
src/editors/playgroundController.ts Outdated Show resolved Hide resolved
src/editors/playgroundController.ts Outdated Show resolved Hide resolved
webpack.config.js Show resolved Hide resolved
@alenakhineika alenakhineika force-pushed the VSCODE-296-export-to-language branch from 62a543d to 34425ad Compare November 17, 2021 20:55
src/language/worker.ts Outdated Show resolved Hide resolved
src/language/worker.ts Outdated Show resolved Hide resolved
webpack.config.js Show resolved Hide resolved
src/language/visitor.ts Outdated Show resolved Hide resolved
@alenakhineika alenakhineika merged commit 774127f into main Nov 18, 2021
@alenakhineika alenakhineika deleted the VSCODE-296-export-to-language branch November 18, 2021 13:39
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