text
stringlengths
0
1.49k
**Carlisia Thompson:** That was so my intention all along... It's like a customer support tutorial...
**Erik St. Martin:** And then she had Brad Fitzpatrick on just to get him to merge her pull request... \[laughter\]
**Carlisia Thompson:** And it worked!
**Johnny Boursiquot:** \[laughs\] Oh, man... So Ramya, one thing I wanted to dive a little deeper on is that... I think Erik mentioned earlier that there was a _CodeLens_, a new capability that was added earlier this year in VS Code. What exactly does that provide you under the hood as sort of a plugin maker? How is th...
**Ramya Rao:** _CodeLens_ in itself has been in VS Code for quite some time. _CodeLens_ in the Go extension is what was new. When I say new, it's not that that technology wasn't available before, it's just that nobody thought of implementing it in the Go extension.
_CodeLens_ for you is something actionable, something contextual. For example, is appears right about a function or a method, and it is in context to that function or method. You can have it for like how we have now for references, runtests, so on and so forth.
\[20:13\] Other extensions can do their own thing. For example, there's one extension I know in your package.json -- if you're doing Node, in your package.json it adds a _CodeLens_ about each dependency, saying what's the latest dependency (the version).
You could use it for any reason it's just that in Go we got the time to do it now, and now you see it.
**Johnny Boursiquot:** Pretty cool.
**Erik St. Martin:** You talked about _CodeLens_ being there for a while... What's some new stuff that has come out in the plugin or that you're currently working on that you're really excited about?
**Ramya Rao:** Currently some of the things I'm excited about are things that help you write your code faster, like stubs... You have an interface, and you get all the methods of the interface implemented with stubs in it. Somebody from the community has submitted a PR on that, so I'm excited about that.
In the same lines that are more stub-related things, extract method - that is something which I had my eye on for quite a while. I tried using [Go Doctor](http://gorefactor.org/), but that didn't work out for many scenarios. I'm thinking `guru` has a feature called _Free Variables_, I believe, so if anybody is interest...
**Erik St. Martin:** Do you get a lot of outside contributions to this project? Are you actively seeking for people to help with some tickets you have open?
**Ramya Rao:** I am definitely actively seeking for help. There have been more contributions than before. When I write the release notes, it makes me so happy when I see more names than mine. I try to keep that balance.
For the past couple of releases, yes, there have been more contributions, and I would love to have more than that also. I'm here to help, figure out debug issues with you... That's how we got the _References CodeLens_, by the way... Somebody thought it was a good idea and started working on it, and he hit a blocker and...
**Johnny Boursiquot:** That's awesome. So looking at the issue on the project, you have about 27 with "Help Wanted" on them, five of them which have been tagged as Easy, so it sure be pretty straightforward for somebody to jump in and at least look at some things, maybe contribute back.
One of the things I wanted to touch on - what are you actually writing your code in for the editor? Is it like TypeScript? What are you actually developing in?
**Ramya Rao:** It's TypeScript, yeah. All VS Code extensions are written in either TypeScript or JavaScript, and then if you are trying to give language support, there is something called Language Service... I don't know if you've heard of the [Language Service protocol](https://langserver.org/), but Microsoft and Red ...
The idea behind this is you implement a language server once, and then you're able to use that again for multiple editors... You know, the ones that support language servers. So that you can write in any language you want, but extensions are TypeScript and JavaScript.
**Carlisia Thompson:** I want to ask also, Ramya, how do you 1) come up with features to add to VS Code? and 2) prioritize what should go in at any given point? That makes me think of [Fatih](https://twitter.com/fatih) and Vim Code... Vim Code - am I saying that right?
**Erik St. Martin:** \[24:17\] [Vim Go](https://github.com/fatih/vim-go)?
**Carlisia Thompson:** Vim Go, thank you; I knew it was wrong. And he's a developer, he's developing all day long, and he does Vim Code; I'm sure - I don't know this for a fact, but I would think that pretty much his thinking goes "Well, I need this (or I want this), so I'm gonna put it in." And I'm sure he's listening...
**Ramya Rao:** So initially, after Luke was done with the basic features like formatting, linting your build and so on and so forth, after that, when I came into the picture, initially my plan was I look at issues - the ones that were easy to do - and I just got started with that. That was my first one month of handlin...
After that I started going through the backlog, which is like about 100 issues, and then seeing "Where do you see the most passion from the community? What kind of issues have the most upvotes?" and I started targeting that.
In your completion, without even importing a package -- say if you didn't import math, you can type `math.` and you will get completion for that.
**Carlisia Thompson:** That is amazing, by the way.
**Ramya Rao:** Oh, thank you... That was one feature request where a lot of people were like "You know, it would be cool to have this!" and I'm like "Why not?" So that's my current criteria of deciding that - which feature requests have the most number of upvotes or the most number of passionate people saying they'd li...
**Carlisia Thompson:** So you're saying that it really makes a difference when people are active and they go and they voice out their opinions and what they want to have added?
**Ramya Rao:** Yes, definitely. But at the same time, it's not the only measure. I know that there's one feature request for which there are 35 upvotes, but I still haven't gotten to that because implementing that with the current set is just gonna have a slow experience... So until there's like a faster solution, I di...
Then the other direction... Sometimes from the core VS Code product we release some APIs, some new features. TypeScript and JavaScript is appointed by default by VS Code, right? And we support new language features. Now, it's up to the extension owners to get up to speed and implement them in their own extensions. So t...
**Carlisia Thompson:** Makes sense.
**Erik St. Martin:** Oh, so you actually have continued development just to kind of stay up to speed with the core editor itself...?
**Ramya Rao:** Yeah.
**Erik St. Martin:** That's kind of like a constant backlog, right? You wanna work on new features, but you also have to -- it's almost like technical debt, right? You have to make sure you stay up, because the longer you avoid implementing the new features, the further away that that gets.
**Ramya Rao:** \[28:05\] Yes. I think there is one debugging related feature which came about like that. There's a launch.json file; if you need to debug your code, you need to have that file, and that's where you add your configuration. Initially you had to just handwrite it based on some document; now you have snippe...
**Carlisia Thompson:** By the way, does anybody wanna share with me their snippets configuration? Because I have zero. And I want snippets for starting a new function, or writing `fmt.Println` or something...
**Ramya Rao:** Oh, so one thing that can help you there is, I think - let me just quickly try it before saying that it's possible... You can say "insert snippet" in the command palette, and that will open up all the snippets that the Go extension can do for you or can give you.
**Carlisia Thompson:** Oh... Insert snippet...
**Johnny Boursiquot:** I'm trying it right now.
**Carlisia Thompson:** Me too... \[laughs\]
**Erik St. Martin:** I feel like I should have had VS Code installed before this...
**Johnny Boursiquot:** You should have... \[laughter\] You might have gotten some free tech support.
**Erik St. Martin:** "Erik converted to VS Code live..."
**Ramya Rao:** So those are the snippets that come out of the box from the Go extension, and then you can create your own as well.
**Carlisia Thompson:** So how does that work? For example, there's a snippet that's called "If" and it's for an if statement. So I type "if" and I do what? Tab? That's not working...
**Ramya Rao:** No, you don't type that, you just choose it.
**Carlisia Thompson:** Oh, I see. It's too much clicking though, for me... I wanna type like a couple letters, and Tab.
**Ramya Rao:** Yeah, that's possible as well. In the editor if you know what the prefix is, for example type `for` and I think there are two snippets for `for` that come up in your suggestions list.
**Carlisia Thompson:** Sorry, what do I have to type?
**Ramya Rao:** For the for loop, just type `for`, and it will suggest the snippets for you.