Hi @Bri_G! Thanks again for testing all this!
I just pushed version 1.1.5 of the extension which should help understand when the extension is properly connected to Codea. The ‘> <’ corner icon does not actually reflect the connection status, it only shows which IP was used for the host. The new connection indicator will be beside that icon and looks like this:
Connected:
Connection error:
If you see this red indicator, it means you are not properly connected to Codea. You can click this status bar indicator to retry connecting.
You can attach to Codea anytime while it’s running. However, it is true that VSCode will not show any project file until a project is opened in Codea. This is something we want to improve in the future, making it possible to select a project to open directly from VSCode.
I am not sure which buttons you are saying become greyed out. Being attached from VSCode to Codea should not have any impact on the buttons in Codea. Could you please share a screenshot of that potential issue?
The VSCode Explorer shows you a view of the files for the loaded project. It can be confusing because in Codea, we do not display the file extension in your tabs, but behind the scenes, the corresponding files have the lua file extension (e.g. Main.lua). The icon/dot you are referring to might be the Lua icon which VSCode displays automatically based on the file extension:
The different ‘>’ icons indicate folders. Clicking that arrow shows or hides the files found under that folder. For this extension, we’ve chosen to display all files under a folder which has the name of the loaded project. If your project has dependencies, they will be shown under a Dependencies folder.
If by saving the project tab you mean saving the file in VSCode, that is indeed how it’s meant to work. It is an automatic update in the sense that you do not have to make the same changes manually in Codea, they are automatically uploaded as soon as you save the file in VSCode.
Finally, the error message you shared shows a few hints as to what might have happened. Untitled-1 is the default filename if you do File → New Text File in VSCode, and it appears you tried to save that file under “main.lua”. Right now, it is not possible to create new projects in VSCode and thus you should not create files named “main.lua” (or Main.lua), but it seems like this case can currently cause some issues and confusing errors. We’ll see what we can do to improve this!
Thanks again!