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

Please add extra functionality to $pseditor similar to $psise #773

Closed
brwilkinson opened this issue May 22, 2017 · 10 comments
Closed

Please add extra functionality to $pseditor similar to $psise #773

brwilkinson opened this issue May 22, 2017 · 10 comments
Labels
Hackathon Up for grabs, especially at Hackathons! Up for Grabs Will shepherd PRs.

Comments

@brwilkinson
Copy link

I would like to save files using the command line in VSCODE.

Please add $psise.CurrentFile.SaveAs()

@PowerSchill
Copy link
Contributor

Tagging on to this request, I would also like to be able to get information about VSCode as well. Specifically the version of VSCode.

@brwilkinson
Copy link
Author

brwilkinson commented Sep 6, 2017

Just to add a comment.

The SaveAs() method, I believe would be on the Type: Microsoft.PowerShell.EditorServices.Extensions.FileContext

$psEditor.GetEditorContext().currentfile | gm

EditorServices.Extensions.FileContext.html#methods

@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Feb 20, 2018

PowerShell/PowerShellEditorServices#590 we've added .Savewhich will be out this week in 1.6.0. That said, a SaveAs where you pass a string as the name for untitled files might be interesting.

A contributor could look at my PR to add .Save as a base for adding .SaveAs:
PowerShell/PowerShellEditorServices#590

I'll keep this open for that... but this issue should be moved to https://github.com/powershell/powershelleditorservices/

@TylerLeonhardt TylerLeonhardt added the Hackathon Up for grabs, especially at Hackathons! label Feb 21, 2018
@TylerLeonhardt TylerLeonhardt added the Up for Grabs Will shepherd PRs. label Mar 20, 2018
@rjmholt
Copy link
Contributor

rjmholt commented Apr 18, 2018

#1261 adds SaveAs() support. Please give it a try and open a new issue if you have feedback.

@TylerLeonhardt
Copy link
Member

This is out the door already :)

@rjmholt
Copy link
Contributor

rjmholt commented May 29, 2018

The version information is the next thing, although maybe not as high priority. The only tricky part is we will need to define a way for arbitrary editors to provide information about themselves. Very possible, but we should consult maintainers for Atom, Sublime and any other editor front-ends.

@brwilkinson
Copy link
Author

@rjmholt is this one merged, however not released?

#1305

@rjmholt
Copy link
Contributor

rjmholt commented May 29, 2018

@brwilkinson Yep, precisely that.

@rjmholt
Copy link
Contributor

rjmholt commented May 29, 2018

It is possible to grab the most recent build from CI if you'd like it.

@rjmholt
Copy link
Contributor

rjmholt commented May 29, 2018

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hackathon Up for grabs, especially at Hackathons! Up for Grabs Will shepherd PRs.
Projects
None yet
Development

No branches or pull requests

4 participants