Update metadata names

3ec27fd broke the commandline by moving config.ts while
metadata-generation/using code relied on its path. This commit updates
the path. A proper fix is to stop using paths and use names instead.
This commit is contained in:
glacambre 2018-10-04 17:57:44 +02:00
parent 3ec27fd40c
commit f937a29e8a
No known key found for this signature in database
GPG key ID: B9625DB1767553AC
3 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ fi
&& node compiler/gen_metadata.js \
--out src/.metadata.generated.ts \
--themeDir src/static/themes \
src/excmds.ts src/config.ts
src/excmds.ts src/lib/config.ts
scripts/newtab.md.sh
scripts/make_tutorial.sh

View file

@ -63,7 +63,7 @@ export class SettingsCompletionSource extends Completions.CompletionSourceFuse {
options += options ? " " : ""
let configmd =
metadata.everything["src/config.ts"].classes.default_config
metadata.everything["src/lib/config.ts"].classes.default_config
let settings = config.get()
this.options = Object.keys(settings)
.filter(x => x.startsWith(query))

View file

@ -3042,7 +3042,7 @@ function validateSetArgs(key: string, values: string[]) {
throw "Unsupported setting type!"
}
let md = Metadata.everything["src/config.ts"].classes.default_config[last]
let md = Metadata.everything["src/lib/config.ts"].classes.default_config[last]
if (md) {
if (md.type && !fitsType(value, md.type)) throw `Given type does not match expected type (given: ${value}, expected: ${typeToString(md.type)})`
}