提交 69a9cb04 编写于 作者: M Martin Aeschlimann

onDidChangeFoldingRanges should check for proposed API. Fixes #109496

上级 b2d76ac3
......@@ -32,6 +32,7 @@ import { IdGenerator } from 'vs/base/common/idGenerator';
import { IExtHostApiDeprecationService } from 'vs/workbench/api/common/extHostApiDeprecationService';
import { Cache } from './cache';
import { StopWatch } from 'vs/base/common/stopwatch';
import { checkProposedApiEnabled } from 'vs/workbench/services/extensions/common/extensions';
// --- adapter
......@@ -1822,6 +1823,7 @@ export class ExtHostLanguageFeatures implements extHostProtocol.ExtHostLanguageF
let result = this._createDisposable(handle);
if (eventHandle !== undefined) {
checkProposedApiEnabled(extension);
const subscription = provider.onDidChangeFoldingRanges!(_ => this._proxy.$emitFoldingRangeEvent(eventHandle));
result = Disposable.from(result, subscription);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册