提交 69f7f29a 编写于 作者: J Johannes Rieken

perf - ignore snippet provider when snippets are turned off

上级 e58b2600
......@@ -59,7 +59,11 @@ export function provideSuggestionItems(model: IReadOnlyModel, position: Position
// get provider groups, always add snippet suggestion provider
const supports = SuggestRegistry.orderedGroups(model);
supports.unshift([snippetSuggestSupport]);
// add snippets provider unless turned off
if (snippetConfig !== 'none') {
supports.unshift([snippetSuggestSupport]);
}
// add suggestions from contributed providers - providers are ordered in groups of
// equal score and once a group produces a result the process stops
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册