Skip to content

Commit d69a048

Browse files
committed
Handle all db item kinds when checking for equality with expanded items
1 parent 971fb6e commit d69a048

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

extensions/ql-vscode/src/databases/db-item-expansion.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ function isDbItemEqualToExpandedDbItem(
108108
expandedDbItem.kind === ExpandedDbItemKind.RemoteUserDefinedList &&
109109
expandedDbItem.listName === dbItem.listName
110110
);
111-
default:
112-
throw Error(`Unknown db item kind ${dbItem.kind}`);
111+
case DbItemKind.LocalDatabase:
112+
case DbItemKind.RemoteSystemDefinedList:
113+
case DbItemKind.RemoteOwner:
114+
case DbItemKind.RemoteRepo:
115+
return false;
113116
}
114117
}

0 commit comments

Comments
 (0)