tools icon indicating copy to clipboard operation
tools copied to clipboard

πŸ› Incorrect format range output

Open denbezrukov opened this issue 2 years ago β€’ 0 comments

Environment information

CLI:
  Version:              0.0.0
  Color support:        true

Platform:
  CPU Architecture:     aarch64
  OS:                   macos

Environment:
  ROME_LOG_DIR:         unset
  NO_COLOR:             unset
  TERM:                 "xterm-256color"
  JS_RUNTIME_VERSION:   unset
  JS_RUNTIME_NAME:      unset
  NODE_PACKAGE_MANAGER: unset

Rome Configuration:
  Status:               Loaded successfully
  Formatter disabled:   false
  Linter disabled:      false

Workspace:
  Open Documents:       0

Discovering running Rome servers...

Incompatible Rome Server: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

β„Ή Rage discovered this running server using an incompatible version of Rome.

Server:
  Version:              <=10.0.0

Running Rome Server: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

β„Ή The client isn't connected to any server but rage discovered this running Rome server.

Server:
  Version:              0.0.0
  Name:                 rome_lsp
  CPU Architecture:     aarch64
  OS:                   macos

Workspace:
  Open Documents:       0

Other Active Server Workspaces:

Workspace:
  Open Documents:       5
  Client Name:          Visual Studio Code
  Client Version:       1.75.1

What happened?

Input code:

a?.b
const a = () => {sdasdsa;
	kek;
	dsadsa;
	123;
	("y̆es");
};
console.log("πŸš€".length);
("Jan 1,<<<ROME_RANGE_START>>> 201<<<ROME_RANGE_END>>>8 – Jan 1, 2019");123

output:

("Jan 1,2018 – Jan 1, 2019");123

Expected result

It shouldn't remove the head of the string:

a?.b
const a = () => {sdasdsa;
	kek;
	dsadsa;
	123;
	("y̆es");
};
console.log("πŸš€".length);
("Jan 1, 2018 – Jan 1, 2019");123

Code of Conduct

  • [X] I agree to follow Rome's Code of Conduct

denbezrukov avatar Mar 18 '23 12:03 denbezrukov