After saving the file (I use external VS code editor) and I go back to godot all the variables are set to 0, so allowZooming is set to 0 or false.
I know VS code is connected because I can see the output in the terninal.
What can I do?
You can just reload the project from the project menu to solve this. Link between VSCode and Godot can be sometime weird. If you change something while the project is running it can reverse when stopping the project and same happens when you connect signal from the inspector.