Just like the picture shows above.
I use the latest JuMP, and I turn off the Missingrefs suggested from https://discourse.julialang.org/t/missing-reference-warnings-with-julia-in-vs-code/31321/7
And the problem is solved. Variables defined in the above method do not have code hint.