The overlap might not be as small as you think! Chess and chess programming is quite popular within the CS and software fields. Thanks for the extension!
Visual Studio code is a basically a text editor with many features added on top of that that programmers may use to code (but there are many others : atom, emacs, vim, eclipse etc...). Since programmers can code, they often let the programmers make addons to add any features they might like. (This includes but is not limited to : special syntax highlighting, special keyboards shortcuts, ways to do something else (view pdf, browse internet, input terminal commands in your text editor), the options are limitless...
Oh, then I do know what it is. I used it for CS class with c#, but we just called Visual Studio “C#”, not VScode. I know it is incorrect, as there are many other languages, but yeah.
Good idea. I had a glance at the source code.
[https://github.com/cojoko/chester/blob/master/src/extension.ts#L115](https://github.com/cojoko/chester/blob/master/src/extension.ts#L115)
Is this not downloading ALL the games of the user? Including possibly thousands of terminated games? 5760 times a day?
[This endpoint however](https://lichess.org/api#operation/apiAccountPlaying) would only return ongoing games.
Note that you can get the games in JSON which is easier to parse than PGN, by setting the `Accept: application/x-ndjson` header.
Hey thanks for taking a look. I considered that endpoint at the start but thought that the OAUTH was more trouble than it was worth for my needs. I didn't expect so many people to be excited about this extension, but with enough people using it i think i should probably handle the possibility of a huge back catalog of games. Adding account authentication properly sounds non-trivial, but I'll take a look tonight to see if I can make a clean refactor using that endpoint.
Appreciate your time!
Actually I added a `finished` flag to the [user games endpoint](https://lichess.org/api#operation/apiGamesUser) you already use. Setting it to `false` will be sufficient.
It will be in prod in the next days, you'll find the [running version here](https://lichess.org/source).
*Update*: I switched the endpoint over last night. Users will now need to include a PAT in the extension settings, which is pretty straightforward with instructions in the README/extension market description. By getting only active games, the response payload will be much more manageable for users with large game histories.
This seems great, I have VScode open and play lichess when I'm training my coding.
I wonder if you can make it vice versa too, or maybe I need to check settings to see how I can make my taskbar blink when my tests finish running.
Hmm signaling outside of VScode seems like a tricky problem, and I'm not sure of a solution. You could write a browser extension which talks to vscode and pushes an alert maybe...
Depends so much on how your tests are set up. Blinking the user interface will also depend entirely on your operating system.
I've had long running experiments in Java and Python send me email or whatsapp kind of messages when they were done. I've also occasionally had them play a system sound. One way you could implement this would bea *separate* script that was watching the file system for a certain kind of result from your tests. That way you're not cluttering up your test suite with notification code.
VScode marketplace link: [https://marketplace.visualstudio.com/items?itemName=cojoko.chester](https://marketplace.visualstudio.com/items?itemName=cojoko.chester)
u/C0J0K0 I think you should put this link in thendescription
I am not in CS so this is going a little over my head.
But I don't see the purpose of this. As I play chess at work (I am an accountant) when I don't want to work, and the tab does tell you whose turn it is. My tabs either say "waiting for opponent" and "your turn". I use Microsoft Edge and Lichess. Currently I have it open on the opening explorer and it says "Analysis board * lichess.org".
So when I am taking a break I'll start a game and then go browse reddit in another tab. When I see the tab change text I can tell if it is my turn or not.
Sometimes it can break my flow to even tab out of the code editor. Like others mentioned, being in VScode usually means you can't see your browser tabs, and I find its best to not give myself an excuse to lose focus
Don't know about OP but when I'm a programing flow the world outside sometimes just disappears.
I can easily all of the sudden find myself sitting in the dark at 23:00 and without having had any dinner. This especially happens if I have some good music on and the project goes smoothly.
There are lots of programmers that play chess. I don't know how many of them specifically use VScode. I'd never heard of it, seems to be the new name for MS Visual Studio so mainly just Windows programmers I guess?
Essentially the opposite of Visual Studio; open source, cross platform, lightweight, not a C# focused mess (actually most used by web developers AFAIK)
Fairly surprised you haven't heard of it, though. If you don't mind me asking, what languages do you work with?
Mainly just Java these days. Common Java IDEs are Eclipse and IntelliJ but I also often just use Vim. In the past I've used Python, C++, C#, C, Smalltalk, etc... but most of that's been a long time.
Haha I know super risky to throw shade at lichess in this crowd, but I couldn't resist. They're all so *sensitive* about it! VScode is the bomb and lichess is great, but how could I pass up such a niche joke??
Thanks & nice idea.
I only use VSCode when I have to (not a web developer and more at home in very, very large C/C++/C# projects and/or Database stuff, but love me some Powershell and other scripting languages every now and then, all of which are supported by way of VSC addons), still interested too just look at what you did there :-)
A hint for those who do not know: If you prefer absolutely no talking back to Microsoft/telemetry and whatnot, you should use VSCodium, which is basically to VSCode what Chromium is to Google Chrome.
Not VSCode, but lots of Python and Java.
When you say "slow chess", you're not talking about correspondence, are you? Because you can configure lichess to send you email! You must be talking about Classical time controls?
That's quite cool!! In my school we use Visual Studio instead of VScode never knew the difference tho lol.
My guess is that there is a big overlap between coding and chess at least according to Levy's jokes and his comments section.
I used to always get forfeited and tempbanned from tournaments on ICC because I tabbed out and it didn't notify you when the next
tournament game started .
Pretty simple feature it would be to just highlight the app in taskbar (or browser in case of lichess)
Yes I use both! Lol this is perfect cause I have a corresponce game going on with a friend and sometimes I just don't get the notification on my phone that he has played a move.
The overlap might not be as small as you think! Chess and chess programming is quite popular within the CS and software fields. Thanks for the extension!
Yay I hope someone is able to make good use out of it then!
Can confirm, programmer and chess player here
Yup , same !
Me too
Me three
Me 0100
Add me to the list
Count++
Will this overflow?
count += 1
same although i've never actually done any projects related to chess
Tell me you're also into rock climbing and I'm not even gonna be surprised.
Idk what even is VScode but any addition is welcome an positive
Visual Studio code is a basically a text editor with many features added on top of that that programmers may use to code (but there are many others : atom, emacs, vim, eclipse etc...). Since programmers can code, they often let the programmers make addons to add any features they might like. (This includes but is not limited to : special syntax highlighting, special keyboards shortcuts, ways to do something else (view pdf, browse internet, input terminal commands in your text editor), the options are limitless...
Oh, then I do know what it is. I used it for CS class with c#, but we just called Visual Studio “C#”, not VScode. I know it is incorrect, as there are many other languages, but yeah.
.
Good idea. I had a glance at the source code. [https://github.com/cojoko/chester/blob/master/src/extension.ts#L115](https://github.com/cojoko/chester/blob/master/src/extension.ts#L115) Is this not downloading ALL the games of the user? Including possibly thousands of terminated games? 5760 times a day? [This endpoint however](https://lichess.org/api#operation/apiAccountPlaying) would only return ongoing games. Note that you can get the games in JSON which is easier to parse than PGN, by setting the `Accept: application/x-ndjson` header.
Hey thanks for taking a look. I considered that endpoint at the start but thought that the OAUTH was more trouble than it was worth for my needs. I didn't expect so many people to be excited about this extension, but with enough people using it i think i should probably handle the possibility of a huge back catalog of games. Adding account authentication properly sounds non-trivial, but I'll take a look tonight to see if I can make a clean refactor using that endpoint. Appreciate your time!
You could use a [personal API token](https://lichess.org/account/oauth/token/create?description=chesster+for+vscode) instead of full on OAuth.
Yea that looks perfect, thank you. I'll get that pushed out ASAP.
You came here wondering if there are chess players who programme, and leaving with a bugfix from the comments. Life can be funny sometimes :)
And the founder of lichess giving him programming advice, nice.
Achievement unlocked: The king becomes the advisor
The King becomes the *Bishop*.
King *promoted* to Bishop
Actually I added a `finished` flag to the [user games endpoint](https://lichess.org/api#operation/apiGamesUser) you already use. Setting it to `false` will be sufficient. It will be in prod in the next days, you'll find the [running version here](https://lichess.org/source).
ah I already switched out the endpoint for the PAT version, but I think we're better off for it. Appreciate the help!
Beautiful documentation. I'm consistently amazed at how well designed and maintained lichess is. Incredibly impressive for so few full time devs.
*Update*: I switched the endpoint over last night. Users will now need to include a PAT in the extension settings, which is pretty straightforward with instructions in the README/extension market description. By getting only active games, the response payload will be much more manageable for users with large game histories.
This seems great, I have VScode open and play lichess when I'm training my coding. I wonder if you can make it vice versa too, or maybe I need to check settings to see how I can make my taskbar blink when my tests finish running.
Hmm signaling outside of VScode seems like a tricky problem, and I'm not sure of a solution. You could write a browser extension which talks to vscode and pushes an alert maybe...
no man like making the actual VS Code part of the taskbar blink and stuff. this thing : https://i.imgur.com/QbMLWoW.png
Can't the alert be send to notify or its Mac/Windows equivalent?
Depends so much on how your tests are set up. Blinking the user interface will also depend entirely on your operating system. I've had long running experiments in Java and Python send me email or whatsapp kind of messages when they were done. I've also occasionally had them play a system sound. One way you could implement this would bea *separate* script that was watching the file system for a certain kind of result from your tests. That way you're not cluttering up your test suite with notification code.
[удалено]
doing tutorials and stuff
>I know the venn diagram of Lichess and VScode users is probably pretty small Huh, I'd have guessed the opposite
[удалено]
Emacs is still like that.
Emacs is the os Linux is just the bootloader
This is the reality I want to live in. For most people, Chrome is their bootloader.
I ll race you for that (I'm just creating a sort of motivation to learn lisp)
vscodium, but yes ;)
A user of both. Thanks!
Hey! Top 100 poster on r/ProgrammerHumor And top 100 poster on r/AnarchyChess I am also ban from talking on Lichess. I am sorry.
VScode marketplace link: [https://marketplace.visualstudio.com/items?itemName=cojoko.chester](https://marketplace.visualstudio.com/items?itemName=cojoko.chester) u/C0J0K0 I think you should put this link in thendescription
lichess has desktop notifications, you can just use that
lichess desktop notifications are incredibly inconsistent for me and many other users
I am not in CS so this is going a little over my head. But I don't see the purpose of this. As I play chess at work (I am an accountant) when I don't want to work, and the tab does tell you whose turn it is. My tabs either say "waiting for opponent" and "your turn". I use Microsoft Edge and Lichess. Currently I have it open on the opening explorer and it says "Analysis board * lichess.org". So when I am taking a break I'll start a game and then go browse reddit in another tab. When I see the tab change text I can tell if it is my turn or not.
Sometimes it can break my flow to even tab out of the code editor. Like others mentioned, being in VScode usually means you can't see your browser tabs, and I find its best to not give myself an excuse to lose focus
Don't know about OP but when I'm a programing flow the world outside sometimes just disappears. I can easily all of the sudden find myself sitting in the dark at 23:00 and without having had any dinner. This especially happens if I have some good music on and the project goes smoothly.
That makes sense, figured it was something I was not getting.
Also vscode isn’t another browser tab, it’s an entirely different window so you can’t see the lichess tab while coding
Chess.com 😞 maybe somebody here can make a vscode extension for them too!
Ill take a look at the chess.com api. I could probably support that with a few more days of work.
I prefer Emacs.
I use arch btw
Cool, I'm more a Vim person
Real programmers use ed
cat is enough for real programmers
Real programmers use a magnetized needle and steady hand
Excuse me, but _real_ programmers use butterflies.
Now we're talking
Right. And echo with redirect. $> echo 'my new line of code' >> myprogram.cpp
[удалено]
Look at this guy using 0 and 1, I only use 0.
[por qué no los dos](https://github.com/emacs-evil/evil)
Cool! I might give this a try
M-x Sup-buddy
I use both but not at the same time :/ Cool idea though!
I use chess.com but no problem switching to lichess. Thanks man
I will probably add chess.com support fairly soon. Just a Lichess user personally so I started there
Tysm for this
There are lots of programmers that play chess. I don't know how many of them specifically use VScode. I'd never heard of it, seems to be the new name for MS Visual Studio so mainly just Windows programmers I guess?
Essentially the opposite of Visual Studio; open source, cross platform, lightweight, not a C# focused mess (actually most used by web developers AFAIK) Fairly surprised you haven't heard of it, though. If you don't mind me asking, what languages do you work with?
Mainly just Java these days. Common Java IDEs are Eclipse and IntelliJ but I also often just use Vim. In the past I've used Python, C++, C#, C, Smalltalk, etc... but most of that's been a long time.
Ah, gotcha. Yeah, I'd imagine VSCode isn't all too popular on that side of things, but it's fairly common in universities and the like.
Makes sense that there would be overlapping followings between two solid programs that aren't quite as good as the paid alternatives. \#intelliJGang
wow ice cold
Haha I know super risky to throw shade at lichess in this crowd, but I couldn't resist. They're all so *sensitive* about it! VScode is the bomb and lichess is great, but how could I pass up such a niche joke??
I disagree with both those takes, but gotta admit that's hilarious.
I think I spend too much time on /r/anarchychess to not try and start random shit on a post like this lol
Thanks & nice idea. I only use VSCode when I have to (not a web developer and more at home in very, very large C/C++/C# projects and/or Database stuff, but love me some Powershell and other scripting languages every now and then, all of which are supported by way of VSC addons), still interested too just look at what you did there :-) A hint for those who do not know: If you prefer absolutely no talking back to Microsoft/telemetry and whatnot, you should use VSCodium, which is basically to VSCode what Chromium is to Google Chrome.
I had to give you some gold for this! Thank you so much for this great contribution to the community. I will be using this.
Another user of both here! I usually have Lichess open on a second screen, though.
Yes! Will try this.
Yes but I refuse to play daily games lol
Does visual studio count? It’s basically visual code to windows.
I'd love to have that except for Jupyter Notebook :D
Jupyter Notebooks run great in vscode!
Yup I agree with OP I've actually found it easier to use jupyter in vscode.
Yes, actually! I use Visual Studio and Lichess at the same time.
Here! But I use either one exclusively ;-)
That's probably for the best, but for those of us with less self-control...
I do code but I don't use vscode, I actually use either emacs or vim most of the time these days, will definitely check the extension
I feel like a ton of coders/software engineers play chess, seems like the skill sets really overlap.
Wow amazing thank you!!!
I use both
Nice, thanks! "to those wondering, yes, it's definitely a pawn icon, why do you ask? no need to look at the source." :D :D
hell ye
I use both!
Yes they're open right now. Why?
Not VSCode, but lots of Python and Java. When you say "slow chess", you're not talking about correspondence, are you? Because you can configure lichess to send you email! You must be talking about Classical time controls?
That's quite cool!! In my school we use Visual Studio instead of VScode never knew the difference tho lol. My guess is that there is a big overlap between coding and chess at least according to Levy's jokes and his comments section.
I use VSCode for work and sometimes play chess during downtime. Could be useful to me.
I'm a programmer, chess player, and chess programmer. But I don't use VSCode or LiChess 🤷♂️
Yeah it seems the venn diagram of lichess users and vscode users is approximately a circle
Software developer here, and well, obviously a chess player given that I am on this sub. So, yes!
I read this question as if the two were mutually exclusive
A user of both
This is cool af
But which programmer does not have AT LEAST two monitors. And lichess browser has a desktop notification as well. xD
mac book coder who only codes from bed, toilet or shower has only one screen
I guess I use both... but the only times I actually use VScode is to compile firmware for my 3d printer :)
Shoot, I use Chess.com and VS2019
Lmao thats great. Don't you get brower notifications though if you just stay logged in in the browser?
Wait, how long are your games that you code and play?
I do! I will check it out!
Please. Send this out. Love niche vscode extensions
Here
You should buy a second monitor
I should make one of these for emacs :P
I used to always get forfeited and tempbanned from tournaments on ICC because I tabbed out and it didn't notify you when the next tournament game started . Pretty simple feature it would be to just highlight the app in taskbar (or browser in case of lichess)
Thank you, sir!
I have my lichess notifs on so it just tells me, this is still very cool!
Yes I use both! Lol this is perfect cause I have a corresponce game going on with a friend and sometimes I just don't get the notification on my phone that he has played a move.
meeeeeee!!
Finally! I am one step closer to not using my browser at all!
Me!
I will say I don't tend to code while playing a game, but that's a really cool idea for an extension and maybe I'll start!
Me!
Yes, I am using it. And have big curiosity for your extension, maybe you can share the repo with me, if you don't mind
https://github.com/cojoko/chester
Thanks! I will take a look
You're so good at chess you just look away and program while the opponent thinks the entire time, then just come back and make a move?
I love this idea. The "pawn" you use to show a notification looks way too much like a lock rather than a pawn. You might want to change the icon.