How do I determine if an extension is running inside cursor?

What’s the best way to determine if an extension is currently running inside cursor instead of regular vscode?

Not sure if this is the best way but console.log(process.env.VSCODE_CWD) should give you that information.