+1
-1
@@ -44,7 +44,7 @@ export {
|
||||
|
||||
export type { NodeType, SyntaxNode, SyntaxNodeRef, Tree } from "@lezer/common";
|
||||
|
||||
export { searchKeymap } from "https://esm.sh/@codemirror/search@6.2.3?external=@codemirror/state,@codemirror/view";
|
||||
export { searchKeymap } from "@codemirror/search";
|
||||
export {
|
||||
Decoration,
|
||||
drawSelection,
|
||||
|
||||
+8
-3
@@ -33,7 +33,12 @@ export function parseYamlSettings(settingsMarkdown: string): {
|
||||
return {};
|
||||
}
|
||||
const yaml = match[1];
|
||||
return YAML.parse(yaml) as {
|
||||
[key: string]: any;
|
||||
};
|
||||
try {
|
||||
return YAML.parse(yaml) as {
|
||||
[key: string]: any;
|
||||
};
|
||||
} catch (e: any) {
|
||||
console.error("Error parsing SETTINGS as YAML", e.message);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user