1
>
/*---------------------------------------------------------------------------------------------
jsonErrorMessages.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
/**
7
>
* Extracted from json.ts to keep json nls free.
8
>
*/
9
>
import { localize } from '../../nls.js';
10
>
import { ParseErrorCode } from './json.js';
11
>
12
>
export function getParseErrorMessage(errorCode: ParseErrorCode): string {
13
switch (errorCode) {
14
case ParseErrorCode.InvalidSymbol: return localize('error.invalidSymbol', 'Invalid symbol');