Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet committed Dec 24, 2024
1 parent 0eab566 commit adfa9ec
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions packages/keymaps/src/browser/keymaps-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,40 +77,6 @@ export class KeymapsParser {
*/
// https://github.com/Microsoft/node-jsonc-parser/issues/13
protected printParseErrorCode(code: number | undefined) {
switch (code) {
case parser.ParseErrorCode.InvalidSymbol:
return 'InvalidSymbol';
case parser.ParseErrorCode.InvalidNumberFormat:
return 'InvalidNumberFormat';
case parser.ParseErrorCode.PropertyNameExpected:
return 'PropertyNameExpected';
case parser.ParseErrorCode.ValueExpected:
return 'ValueExpected';
case parser.ParseErrorCode.ColonExpected:
return 'ColonExpected';
case parser.ParseErrorCode.CommaExpected:
return 'CommaExpected';
case parser.ParseErrorCode.CloseBraceExpected:
return 'CloseBraceExpected';
case parser.ParseErrorCode.CloseBracketExpected:
return 'CloseBracketExpected';
case parser.ParseErrorCode.EndOfFileExpected:
return 'EndOfFileExpected';
case parser.ParseErrorCode.InvalidCommentToken:
return 'InvalidCommentToken';
case parser.ParseErrorCode.UnexpectedEndOfComment:
return 'UnexpectedEndOfComment';
case parser.ParseErrorCode.UnexpectedEndOfString:
return 'UnexpectedEndOfString';
case parser.ParseErrorCode.UnexpectedEndOfNumber:
return 'UnexpectedEndOfNumber';
case parser.ParseErrorCode.InvalidUnicode:
return 'InvalidUnicode';
case parser.ParseErrorCode.InvalidEscapeCharacter:
return 'InvalidEscapeCharacter';
case parser.ParseErrorCode.InvalidCharacter:
return 'InvalidCharacter';
}
return '<unknown ParseErrorCode>';
return parser.printParseErrorCode(code as parser.ParseErrorCode);
}
}

0 comments on commit adfa9ec

Please sign in to comment.