Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON grammar without filePath parsed incorrectly as PList #214

Open
zm-cttae opened this issue Oct 15, 2023 · 0 comments · May be fixed by #215
Open

JSON grammar without filePath parsed incorrectly as PList #214

zm-cttae opened this issue Oct 15, 2023 · 0 comments · May be fixed by #215

Comments

@zm-cttae
Copy link

  2) test/api/tokenInformation.test.ts (src/api.ts)
       getScopeRangeAtPosition(): Promise<TextmateToken>:
     Error: Near offset 1: expected < ~~~"name":"Plain Text","scopeName":"text","patterns":~~~

This is happening because JSON support is hacked in for JSON file URIs, but not JSON content values:

if (filePath !== null && /\.json$/.test(filePath)) {
return parseJSONGrammar(content, filePath);
}

zm-cttae added a commit to vsce-toolroom/vscode-textmate-languageservice that referenced this issue Oct 16, 2023
@zm-cttae zm-cttae linked a pull request Oct 16, 2023 that will close this issue
zm-cttae added a commit to vsce-toolroom/vscode-textmate-languageservice that referenced this issue Oct 18, 2023
zm-cttae added a commit to vsce-toolroom/vscode-textmate-languageservice that referenced this issue Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant