提交 cb16bf93 编写于 作者: M Matt Bierner

Turn syntax based folding on by default for TS 2.8

上级 7db6419d
......@@ -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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册