leetcode-cli icon indicating copy to clipboard operation
leetcode-cli copied to clipboard

Running "leetcode edit" with a specified language resets config options

Open lukejans opened this issue 9 months ago • 0 comments

issue example

I had the following code configuration options in my config file.

[code]
editor = "cat"
lang = "java"
comment_problem_desc = true
comment_leading = "//"
test = true

This was working great but when I decided I wanted to specify another language I ran the following command:

$ leetcode edit 1 -l javascript

Which would result in the following config:

[code]
editor = "cat"
lang = "javascript"

after running the command the tool successfully creates a new leetcode question to edit with the specified config options but on the next run this is not the case. When the lang option is updated it seems to be overwriting the rest of the code options. I wish I could be of more use but I currently can't read rust code. However this file might be related to the issue: edit.rs.

platform

  • OS: macOS Sequoia 15.4.1
  • Shell: zsh

lukejans avatar Apr 21 '25 20:04 lukejans