Skip to content

inline hint spacing is inconsistent between left and right #146575

Closed
@jasonwilliams

Description

@jasonwilliams

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.67.0-insider (user setup)
Commit: 909602c
Date: 2022-03-31T11:00:49.798Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.22000

Apologies if this is raised in the wrong place, but my understanding is Rust Analyzer now uses the native inline hints.

Steps to Reproduce:

  1. Open https://github.com/boa-dev/boa with Rust Analyzer installed
  2. navigate to https://github.com/jasonwilliams/boa/blob/main/boa_engine/src/builtins/typed_array/mod.rs

When the inline hint is on the right of the subject it almost overlaps with the subject itself; I.E there's no spacing between the subject and the hint. When the inline hint is on the left it is fine.

spacing issue

In the below example I would expect there to be a space between obj and :&JsObject. Also I don't think there needs to be a space between the colon and the &jsObject (similar to message: below).
spacing issue 2

Related: #145191

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions