the fontStyle for Rust is displayed incorrectly.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず、rust-analyzer を有効にした VS Code で Rust の例を再現し、次に One Dark Pro テーマの Rust 関連トークンのスタイルを確認します。通常の Rust ドキュメントの場合と照らし合わせて動作を確認してください。完了条件は、mutable パラメーターが斜体で表示され、該当する関数が太字で表示され、下線によってフォントのスタイルが誤って設定されないことです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
After using rust-analyzer, the fontStyle for Rust is displayed incorrectly.
To Reproduce
Steps to reproduce the behavior:
- Install the One Dark Pro theme;
- Install rust-analyzer;
- Use cargo to create a Rust project (ensure rust-analyzer can analyze the code correctly);
- Create a function with a
mutparameter and notice that the parameter is not italicized; - Create an
implwith&mut selfand notice that the function is not bold.
Expected behavior
According to the design of One Dark Pro, function parameters should be italicized, but they are currently displayed in regular font.
Screenshots & Example Code
struct temp;
#[allow(dead_code)]
impl temp {
fn should_bold(&self, should_italic: i32) {
let _ = should_italic;
}
fn should_bold_too(&mut self, should_italic_too: &mut i32) {
//! but it's not bold
let _ = should_italic_too; // but it's not italic
}
}
Desktop (please complete the following information):
- OS: mac, ssh to debian
- VSCODE Version v1.95.3
- Theme version v3.17.7
Additional context
When rust-analyzer cannot analyze the code, the code display is normal. You can create a temporary page using Command+N and then set it to Rust format. At this point, using the above code, mut is displayed correctly.
It seems that the issue lies in rust-analyzer's handling of mut variables, which adds an underline to mut variables to prompt the developer. One Dark Pro seems unable to display these underlined texts correctly.
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 307
- 平均マージ
- 1時間 53分
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Binaryify/OneDark-Pro のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Binaryify/OneDark-Pro#900 · コメント 11 件 · リアクション 4 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
Binaryify/OneDark-Pro#891 ·
-
need a blur themeオープンfeature request
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
Binaryify/OneDark-Pro#880 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Binaryify/OneDark-Pro#878 · コメント 4 件 · リアクション 1 件 ·
-
Support for VS 2026オープンfeature request
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
Binaryify/OneDark-Pro#875 · コメント 1 件 · リアクション 2 件 ·
Binaryify/OneDark-Pro の issue をすべて見る
似ている issue
-
good first issue help wanted
難易度 2/5 1時間未満 初心者へのやさしさ 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
open-webui/open-webui#35184 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
danielmiessler/LifeOS#3001 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信