Rename schema file
This commit is contained in:
@@ -23,7 +23,7 @@ const packageFiles = [
|
|||||||
"snippets.json",
|
"snippets.json",
|
||||||
"media",
|
"media",
|
||||||
"out",
|
"out",
|
||||||
"workspace-databases-schema.json",
|
"databases-schema.json",
|
||||||
];
|
];
|
||||||
|
|
||||||
async function copyDirectory(
|
async function copyDirectory(
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
"jsonValidation": [
|
"jsonValidation": [
|
||||||
{
|
{
|
||||||
"fileMatch": "workspace-databases.json",
|
"fileMatch": "workspace-databases.json",
|
||||||
"url": "./workspace-databases-schema.json"
|
"url": "./databases-schema.json"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"languages": [
|
"languages": [
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ export class DbConfigValidator {
|
|||||||
private readonly schema: any;
|
private readonly schema: any;
|
||||||
|
|
||||||
constructor(extensionPath: string) {
|
constructor(extensionPath: string) {
|
||||||
const schemaPath = resolve(
|
const schemaPath = resolve(extensionPath, "databases-schema.json");
|
||||||
extensionPath,
|
|
||||||
"workspace-databases-schema.json",
|
|
||||||
);
|
|
||||||
this.schema = readJsonSync(schemaPath);
|
this.schema = readJsonSync(schemaPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user