From 4add169505f3f7535ea279f891721c1d84353c19 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 2 Dec 2016 11:22:34 -0800 Subject: [PATCH] Disable (#16350) **Bug** In python file, typing `'` in a string or comment results in `''` due to auto closing pairs. **fix** Apply same fix that we use for Typescript to disable this behavior in strings and comments https://github.com/Microsoft/vscode/blob/master/extensions/typescript/language-configuration.json Fixes #8539 --- extensions/python/language-configuration.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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": [ ["{", "}"], -- GitLab