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

New from Template for VSCode. #2882

Merged

Conversation

JaroslavTulach
Copy link

@JaroslavTulach JaroslavTulach commented Apr 14, 2021

Exposes DataObject.createFromTemplate for simple templates from Templates folder to VSCode users in a simple few step UI. CCing @Ondrej-Douda, @jisedlac

obrazek

Select the New from Template... item and:

  • select the group - e.g. Java, JUnit, HTML, Other
  • select the actual template
  • if the action was invoked from palette (Ctrl-Shift-P) specify location
  • specify name for the new object/file

At the end new file opens in the editor. Testing extension is available at its jenkins builder and is updated with every change to this PR.

@JaroslavTulach JaroslavTulach added this to the 12.5 milestone Apr 14, 2021
@JaroslavTulach JaroslavTulach self-assigned this Apr 14, 2021
@JaroslavTulach JaroslavTulach changed the title New From Template for VSCode. New from Template for VSCode. Apr 14, 2021
@JaroslavTulach JaroslavTulach force-pushed the jtulach/NewFromTemplateForVSCode branch from 40e210f to 819c639 Compare April 14, 2021 13:39
@JaroslavTulach
Copy link
Author

JaroslavTulach commented Apr 15, 2021

The test introduced in ca25974 shows that emplates/XML/XMLDocument.xml in ide cluster cannot be instantiated without providing fileEncoding property. Let's fix it in 924c44c.

@JaroslavTulach JaroslavTulach force-pushed the jtulach/NewFromTemplateForVSCode branch from d8af4f4 to 7dc2f78 Compare April 22, 2021 03:34
@JaroslavTulach
Copy link
Author

I removed the f8116fa commit - that is a separate issue and not everyone agrees to merge it as it is. Otherwise I believe this is ready for integration.

Copy link
Contributor

@dbalek dbalek left a comment

Choose a reason for hiding this comment

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

Nice.

@JaroslavTulach
Copy link
Author

Nice.

It was quite simple with client.showQuickPick and client.showInputBox methods that you had created before...

@JaroslavTulach JaroslavTulach merged commit c4e6146 into apache:master Apr 23, 2021
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.

4 participants