vscode-react-native icon indicating copy to clipboard operation
vscode-react-native copied to clipboard

VSCODE_TSJS environment variable is not set

Open taypo opened this issue 10 years ago • 6 comments

React Native extension installation does not set VSCODE_TSJS to 1.

Extension page implies that is set during installation. https://marketplace.visualstudio.com/items?itemName=vsmobile.vscode-react-native#enabling-intellisense

Manually setting the variable enables salsa as desired.

taypo avatar Feb 26 '16 18:02 taypo

When you open a react-native project with our extension, if the environment variable is not set then you should be prompted with an info message at the top of the window. Did that not happen for you?

MSLaguana avatar Feb 26 '16 18:02 MSLaguana

Yes there was a message saying intelli sense has been enabled and I should restart vscode. But it kept popping up after every restart. And it went away when I set the var myself.

If it matters, I installed the extension while the project was already open in vscode.

taypo avatar Feb 26 '16 18:02 taypo

Were you running on a mac, and if so how were you restarting vs code? On a mac the vscode process does not fully close unless you close using the menu bar or cmd-q, so it would not pick up environment variable changes.

MSLaguana avatar Feb 26 '16 19:02 MSLaguana

I was on windows 7 enterprise. And it was reproducable. Each six member of my team had the same issue.

taypo avatar Feb 27 '16 07:02 taypo

Sounds like we're doing something wrong there. I suspect that it's to do with how we check the OS to determine how to configure environment variables.

MSLaguana avatar Feb 27 '16 08:02 MSLaguana

This was resolve with #115

joshuaskelton avatar Mar 09 '16 22:03 joshuaskelton