function getMetaTypeByContextValue()

in src/explorer.ts [233:247]


function getMetaTypeByContextValue(contextValue: string) {
  if (contextValue.endsWith("ChangesAPI")) {
    return MetaType.API;
  } else if (contextValue.endsWith("ChangesStruct")) {
    return MetaType.Struct;
  } else if (contextValue.endsWith("ChangesSpec")) {
    return MetaType.Spec;
  } else if (contextValue.endsWith("ChangesDefinitions")) {
    return MetaType.Definitions;
  } else if (contextValue.endsWith("ChangesMod")) {
    return MetaType.Mod;
  } else if (contextValue.endsWith("Changes")) {
    return MetaType.All;
  }
}