remove autoClosingPairs, surroundingPair in favour of deprecated api and language config file, fixes #8737

This commit is contained in:
Johannes Rieken
2016-07-06 15:15:08 +02:00
parent fa7ce995f4
commit 7cb8e4514e
7 changed files with 66 additions and 75 deletions

View File

@@ -28,12 +28,14 @@ export function activate(context: ExtensionContext): any {
languages.setLanguageConfiguration('php', {
wordPattern: /(-?\d*\.\d\w*)|([^\-\`\~\!\@\#\%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
autoClosingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"', notIn: ['string'] },
{ open: '\'', close: '\'', notIn: ['string', 'comment'] }
]
__characterPairSupport: {
autoClosingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"', notIn: ['string'] },
{ open: '\'', close: '\'', notIn: ['string', 'comment'] }
]
}
});
}