Platformio is executing the wrong file

Whenever I try to build or run a file, it will execute the wrong one.

For example, I click build on file1 but then I want to build another file, it will continuously execute file1

PlatformIO works with projects. Which file do you mean?