提交 ef66a59a 编写于 作者: J Johannes Rieken

fix #42552

上级 d348b1e4
......@@ -232,7 +232,7 @@ export class SnippetFile {
if (this.defaultScopes) {
scopes = this.defaultScopes;
} else if (typeof snippet.scope === 'string') {
scopes = snippet.scope.split(',').filter(s => !isFalsyOrWhitespace(s));
scopes = snippet.scope.split(',').map(s => s.trim()).filter(s => !isFalsyOrWhitespace(s));
} else {
scopes = [];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册