Skip to content

Commit 6331cdd

Browse files
committed
Move DatabaseOptions to separate file
1 parent 5d7a723 commit 6331cdd

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

extensions/ql-vscode/src/databases/local-databases.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ import { QlPackGenerator } from "../qlpack-generator";
3535
import { QueryLanguage } from "../common/query-language";
3636
import { App } from "../common/app";
3737
import { existsSync } from "fs";
38+
import {
39+
DatabaseOptions,
40+
FullDatabaseOptions,
41+
} from "./local-databases/database-options";
3842

3943
/**
4044
* databases.ts
@@ -58,19 +62,6 @@ const CURRENT_DB = "currentDatabase";
5862
*/
5963
const DB_LIST = "databaseList";
6064

61-
export interface DatabaseOptions {
62-
displayName?: string;
63-
ignoreSourceArchive?: boolean;
64-
dateAdded?: number | undefined;
65-
language?: string;
66-
}
67-
68-
export interface FullDatabaseOptions extends DatabaseOptions {
69-
ignoreSourceArchive: boolean;
70-
dateAdded: number | undefined;
71-
language: string | undefined;
72-
}
73-
7465
interface PersistedDatabaseItem {
7566
uri: string;
7667
options?: DatabaseOptions;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export interface DatabaseOptions {
2+
displayName?: string;
3+
ignoreSourceArchive?: boolean;
4+
dateAdded?: number | undefined;
5+
language?: string;
6+
}
7+
8+
export interface FullDatabaseOptions extends DatabaseOptions {
9+
ignoreSourceArchive: boolean;
10+
dateAdded: number | undefined;
11+
language: string | undefined;
12+
}

0 commit comments

Comments
 (0)