We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6684bb0 commit 207223dCopy full SHA for 207223d
src/app/services/Spyglass.ts
@@ -257,7 +257,7 @@ export class SpyglassService {
257
return `${UNSAVED_URI}pack.mcmeta`
258
}
259
const pack = gen.tags?.includes('assets') ? 'assets' : 'data'
260
- return `${UNSAVED_URI}${pack}/draft/${genPath(gen, this.version)}/draft${gen.ext}`
+ return `${UNSAVED_URI}${pack}/draft/${genPath(gen, this.version)}/draft${gen.ext ?? '.json'}`
261
262
263
public watchFile(uri: string, handler: (docAndNode: core.DocAndNode) => void) {
0 commit comments