feat(editor): handle tabs after connection disconnect
This commit is contained in:
1 parent
3cb1faf1c6
commit
28cc1b9768
31 files changed
+1137
-60
No files matched your search
@@ -300,3 +300,8 @@ const DRAFT_VISIBLE_SCHEMAS_PREFIX = "__visible_schema_draft_";
|
||||
export function buildDraftVisibleSchemasConnectionId(seed: string): string {
|
||||
return `${DRAFT_VISIBLE_SCHEMAS_PREFIX}${seed}`;
|
||||
}
|
||||
|
||||
/** 可见 schema 选择器用的临时连接:只存在于弹窗交互期间,不是用户保存的连接。 */
|
||||
export function isDraftVisibleSchemasConnectionId(connectionId: string): boolean {
|
||||
return connectionId.startsWith(DRAFT_VISIBLE_SCHEMAS_PREFIX);
|
||||
}
|
||||
Reference in new issue
Block a user