I mean like when ever i click pristine build in the vs code i am getting this below error
"Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration."
but the build is getting done when it is done in the terminal 
I mean like when ever i click pristine build in the vs code i am getting this below error
"Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration."
but the build is getting done when it is done in the terminal 
... And? Did it work? Does it recognize the SDK version after this?
BR,
Edvin
Ok, the nRF Connect for VS Code plugin will only work if you are using an NCS release, as far as I know. So unfortunately, if you are using standalone Zephyr, it will probably not work. The reason is that the plugin needs to know where NCS is located, to select the correct SDK to build with your application. If you can't point to the SDK, it doesn't know what to do.
It is possible to have the SDK isolated from the application folder, but it still needs to be an NCS release. You can also modify the source files in the SDK, such as merging particular pull requests and using the main branch instead of a stable release.
What are you trying to use? Zephyr (without NCS)?
Best regards,
Edvin
Yes that is what happened, the ncs folder got disconnected from the nrf extension alone, but still works with the workspace as i told the terminal based build is working. I am using an official release only of the NCS which do have the zephyr
NCS without Zephyr? Or do you mean Zephyr without NCS?