cm-spyglass
Version:
A Codemirror extension that provides syntax highlighting, linting, and autocompletion for Minecraft datapacks using SpyglassMC
20 lines (17 loc) • 466 B
JavaScript
import BundledDependency from "./BundledDependency.js";
import JsonFileSystem from "../FileSystem/JsonFileSystem.js";
import {vanillaMcdoc} from "../../data/vanillaMcdoc.js";
export default class VanillaMcDocDependency extends BundledDependency {
/**
* @inheritDoc
*/
getFileSystem() {
return new JsonFileSystem(vanillaMcdoc);
}
/**
* @inheritDoc
*/
getIdentifier() {
return "vanilla-mcdoc-bundled";
}
}