diff --git a/extensions/python/language-configuration.json b/extensions/python/language-configuration.json index a580e4aae77..c995ea91f3d 100644 --- a/extensions/python/language-configuration.json +++ b/extensions/python/language-configuration.json @@ -9,11 +9,11 @@ ["(", ")"] ], "autoClosingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] + { "open": "{", "close": "}" }, + { "open": "[", "close": "]" }, + { "open": "(", "close": ")" }, + { "open": "\"", "close": "\"", "notIn": ["string"] }, + { "open": "'", "close": "'", "notIn": ["string", "comment"] } ], "surroundingPairs": [ ["{", "}"],