What is the semicolon doing in this sentence?

I haven’t decided what I want to do this weekend; I’d like to go to my friend’s barbecue, but there is also a cherry picking festival happening in Lancaster.

The semicolon in this sentence is used to connect two independent clauses. It separates the main clause "I haven’t decided what I want to do this weekend" from the subordinate clause "I’d like to go to my friend’s barbecue, but there is also a cherry picking festival happening in Lancaster."

The semicolon in this sentence is used to separate two independent clauses. It allows the writer to connect two closely related thoughts without using a conjunction like "and" or "but." In this case, the semicolon is used to separate the idea that the speaker hasn't decided what they want to do this weekend from the two options they are considering: going to their friend's barbecue or attending a cherry picking festival in Lancaster.