**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
This commit is contained in:
Matt Bierner
2016-12-02 11:22:34 -08:00
committed by GitHub
parent e551807483
commit 4add169505

View File

@@ -9,11 +9,11 @@
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
],
"surroundingPairs": [
["{", "}"],