提交 8d73ce7e 编写于 作者: J Johannes Rieken

💄 no more homemade iteration

上级 2fdc607f
......@@ -238,7 +238,7 @@ class DecorationProviderWrapper {
}
knowsAbout(uri: URI): boolean {
return Boolean(this.data.get(uri)) || Boolean(this.data.findSuperstr(uri));
return this.data.has(uri) || Boolean(this.data.findSuperstr(uri));
}
getOrRetrieve(uri: URI, includeChildren: boolean, callback: (data: IDecorationData, isChild: boolean) => void): void {
......@@ -259,8 +259,7 @@ class DecorationProviderWrapper {
// (resolved) children
const iter = this.data.findSuperstr(uri);
if (iter) {
for (let item = iter.next(); !item.done; item = iter.next()) {
const value = item.value?.[1];
for (const [, value] of iter) {
if (value && !(value instanceof DecorationDataRequest)) {
callback(value, true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册