Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode settings.json error - incorrect type expected string

how do i fix the error shown in the pic, i was trying to edit my VSCode settings.json, installed the extension Ruff and tried to edit the settings based on an article I've read here:

https://medium.com/@ordinaryindustries/the-ultimate-vs-code-setup-for-python-538026b34d94

but i get the error shown in the pic below

enter image description here

like image 510
k1dr0ck Avatar asked Feb 06 '26 00:02

k1dr0ck


1 Answers

Smart Tips(Ctrl+Space) displays these two settings with five values, which are:

enter image description here

"always": Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.

"explicit": Triggers Code Actions only when explicitly saved

"never": Never triggers Code Actions on save

"false": Never triggers Code Actions on save. This value will be deprecated in favor of "never".

"true": Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".

From the explanation, it is clear that false and true are about to be deprecated, so please use the corresponding "never" or "explicit".

like image 81
JialeDu Avatar answered Feb 07 '26 13:02

JialeDu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!