microsoft / microsoft/vscode-java-pack

Code formatting is working incorrectly if variable or class name consists of Egyptian hieroglyphs

Open
#538 2 comments 0 reactions 1 assignee View on GitHub

@testforstephen is already working on this.

Since Mar 22, 2021.

ai-triaged bug
Dominant language
TypeScript
Stars
352
Forks
166
Avg merge
17h 47m
Merged PRs (30d)
32

Description

Environment:

  • VS Code Version: 1.52.1
  • Extension Version: v0.12.1
  • JDK Type & Version: Oracle JDK 15
  • OS Type & Version: Win 10 20H2

Code formatting does not work correctly if class or variable names consist of egyptian hieroglyphs

Step to Reproduce:
Create a new class with the name consisting of egyptian hieroglyphs
Instantiate a new object of that class using "new" keyword
Format source file
"new" and class name will be joined together

Expected Behavior:
keywords preceding variable and class names should have a whitespace after them after formatting.
Expected:
image

Actual Behavior:
Formatting removes whitespace between variable / class name and preceding keyword.
Actual:
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.