vs-code-cython
vs-code-cython copied to clipboard
reference variable in function is shown in faded color
I have a function, which has an argument int& size. In the function, size is assigned by an integer. The argument is actually used, and changed outside the function. However, the variable is shown in faded color. Here is an example.
1 cdef char** py_list_to_c_array(list py_list, int& size): 2 cdef int list_size = len(py_list) 3 size = list_size
4 # outside the function 5 cdef int size = 0 6 cdef char** var_name = py_list_to_c_array(py_list, size)
Both variable "size" in line 1 and line 6 is shown in faded color.