I was the one who cast the initial close-vote on this one. Sorry I didn't chime in earlier, but I didn't see that it was under discussion here until someone posted another new answer to an old question (NATO) today.
I honestly do try to give as much leniency as I can to a question being "development/programming" related in most cases. In this case, I probably didn't read the question closely enough, since the OP starts out with "I am setting up my development environment". Some days, I might give it a pass based on that.
But ... technically it shouldn't matter. It really is off-topic IMHO, per my understanding of the on-topic guidance here:
- software tools commonly used by programmers; and is
- a practical, answerable problem that is unique to software development
I think the fact that those two points are on different lines confuses some people, but it's clearly an and situation there.
Many people do use WSL for software development. Many also use it for "learning Linux". Some use it for system administration (my primary use-case, personally). Setting the default starting directory for WSL in Windows Terminal is a question that all groups might have. That means, as far as I can tell, that it isn't "unique" to software development.
So I would propose that it really is, technically, off-topic. But again, I would often give it a pass based on the wording pointing to its "development environment" usage.
But I'd be interested in hearing more thoughts from the community. Should this type of question be "strictly closed" based on the on-topic guidance or "leniently allowed"?
Counterpoint
As @l4mpi pointed out in their answer here, closing really just prevents new answers from being posted. If a question such as this one has been here for two years and has multiple answers, is it "helpful" to prevent future (potentially better) answers?
In this case, I already knew a better (IMHO) answer existed, but I voted to close rather than answer. Of course, answering is easier and gets potential rep (and thus, I feel, why many people go this route), but I try to take the "moral high ground" and vote to close when I feel something is off-topic.
But is that useful to the site? That just leaves the older, potentially outdated answers "locked in place" with no ability to add new information if and when it becomes available.
Clearly, when a new question may get Roomba'd, it's better to close. But when it's a NATO situation, perhaps it's not as clear?
In this case, someone did actually add another answer just a week later (today). It's a great answer, based on the fact that Microsoft has added a new, related feature to WSL to make this easier. That answer wouldn't have been possible had the question stayed closed. I wasn't aware of it yet, and I try to stay on top of Windows Terminal and WSL improvements. So I'm kind of happy that the question was re-opened to allow this answer.
That said (counterpoint to the counterpoint?) ideally there would be an equivalent question on Super User where the updated answer could have been posted. Unfortunately, there's not -- Perhaps because people find the answer here (via general web search) and don't need to ask it on Super User.
And, since the community voted to re-open the question anyway, I've added my answer as well. I feel at least I did the right thing (maybe?) by voting to close first, then waiting for it to be invalidated before answering myself.