mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-06 23:06:20 +01:00
Turn syntax based folding on by default for TS 2.8
This commit is contained in:
@@ -411,7 +411,7 @@
|
||||
},
|
||||
"typescript.experimental.syntaxFolding": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"default": true,
|
||||
"description": "%typescript.experimental.syntaxFolding%"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ export default class LanguageProvider {
|
||||
|
||||
private async initFoldingProvider(): Promise<void> {
|
||||
let enable = workspace.getConfiguration().get(foldingSetting, false);
|
||||
if (enable) {
|
||||
if (enable && this.client.apiVersion.has280Features()) {
|
||||
if (!this.foldingProviderRegistration) {
|
||||
this.foldingProviderRegistration = languages.registerFoldingProvider(this.documentSelector, new (await import('./features/folderingProvider')).default(this.client));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user