You refer to a 'vertex shader' and 'fragment shader' but we only appear to be editing a single shader. What am I missing?
In Godot, you have both stages in the same file. The vertex shader goes inside the vertex() function and the fragment shader inside the fragment() function.