Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Add support for The Go Playground #1211

Closed
dastergon opened this issue Sep 13, 2017 · 4 comments
Closed

Add support for The Go Playground #1211

dastergon opened this issue Sep 13, 2017 · 4 comments

Comments

@dastergon
Copy link

dastergon commented Sep 13, 2017

Hi,

It would be really handy to either share code in The Go Playground or compile and run code within it, through VS Code. There is already an implemented tool that interacts with the playground, so, that tool could be easily integrated with this extension, or some of its functionalities could be implemented within the extension to reduce external dependencies.

Thanks in advance,
Pavlos

@xmattstrongx
Copy link
Contributor

👍 agreed with @dastergon. This could def be useful.

@m90
Copy link
Contributor

m90 commented Oct 7, 2017

I'd be happy to add this (as I wished for it too already a few times). Will open a PR once done.

ramya-rao-a pushed a commit that referenced this issue Nov 7, 2017
* add playground command

enables the user to upload the current file or selection to the
go playground using package goplay - solves #1211

* separate tool execution from command logic, add test

* add tests for error case

* ensure better separation between tool calling and extension logic

* handle no active editor, clear output channel, check for tool availability by stat-ing binary location

* move all logic into function body

* Add tests back

* Fixing linting error
@ramya-rao-a
Copy link
Contributor

The PR for this has been merged and the feature will be out in the next release

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Nov 27, 2017

This feature is now out in the latest update to the Go extension (0.6.69)
Thanks @m90!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants