Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion developer/src/common/web/utils/src/xml-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Abstraction for XML reading and writing
*/

import { XMLParser, XMLBuilder, XMLMetaData, X2jOptions, XmlBuilderOptions, JPathOrMatcher } from 'fast-xml-parser';
import { XMLParser, XMLBuilder, XMLMetaData, X2jOptions, XmlBuilderOptions,JPathOrMatcher } from 'fast-xml-parser';
import { SymbolUtils } from "./symbol-utils.js";

/** Symbol giving the start offset, in chars, of the node */
Expand Down
17 changes: 3 additions & 14 deletions developer/src/kmc-convert/src/converter-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import { CompilerErrorNamespace, CompilerErrorSeverity, CompilerMessageSpec as m, CompilerMessageDef as def } from '@keymanapp/developer-utils';

const Namespace = CompilerErrorNamespace.Converter;
//const SevInfo = CompilerErrorSeverity.Info | Namespace;
const SevHint = CompilerErrorSeverity.Hint | Namespace;
const SevWarn = CompilerErrorSeverity.Warn | Namespace;
// const SevInfo = CompilerErrorSeverity.Info | Namespace;
// const SevHint = CompilerErrorSeverity.Hint | Namespace;
// const SevWarn = CompilerErrorSeverity.Warn | Namespace;
const SevError = CompilerErrorSeverity.Error | Namespace;
// const SevFatal = CompilerErrorSeverity.Fatal | Namespace;

Expand Down Expand Up @@ -77,15 +77,4 @@ export class ConverterMessages {
`Input data could not be parsed.`
);

static WARN_EmptyOutput = SevWarn | 0x000D;
static Warn_EmptyOutput =(o: { keymapIndex: string, key: string, KeyName: string; }) => m(
this.WARN_EmptyOutput,
`Key has empty output (possibly caused by use of html entity) at keyMap index ${def(o.keymapIndex)} on Keycode ${def(o.key)} (${def(o.KeyName)})`
);
static HINT_EmptyOutput = SevHint | 0x000E;
static Hint_EmptyOutput =(o: { keymapIndex: string, key: string, KeyName: string; }) => m(
this.HINT_EmptyOutput,
`Key has empty output at keyMap index ${def(o.keymapIndex)} on Keycode ${def(o.key)} (${def(o.KeyName)}) possibly caused by use of html entity `
);

}
Loading
Loading