Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

licenser.author setting is ignored when inserting header #135

Open
joshuar opened this issue Apr 9, 2023 · 3 comments
Open

licenser.author setting is ignored when inserting header #135

joshuar opened this issue Apr 9, 2023 · 3 comments

Comments

@joshuar
Copy link

joshuar commented Apr 9, 2023

*** Please make sure to use this template to report issue. Any issue report that does not follow this template will be ignored. ***

Runtime environment

  • OS (version): Fedora Linux 37
  • VS Code version: 1.77.1
  • VS Code build number (if possible): Output from Help > About
Version: 1.77.1
Commit: b7886d7461186a5eac768481578c1d7ca80e2d21
Date: 2023-04-04T23:20:37.202Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Linux x64 6.2.9-200.fc37.x86_64
Sandboxed: No
  • other extensions installed:
    aaron-bond.better-comments
    ban.spellright
    bierner.emojisense
    bierner.markdown-emoji
    bierner.markdown-mermaid
    bpruitt-goddard.mermaid-markdown-syntax-highlighting
    bungcip.better-toml
    Dart-Code.dart-code
    Dart-Code.flutter
    dev1ce.dev1ce
    DotJoshJohnson.xml
    DougFinke.vscode-pandoc
    dracula-theme.theme-dracula
    eamodio.gitlens
    esbenp.prettier-vscode
    GitHub.vscode-pull-request-github
    golang.go
    James-Yu.latex-workshop
    mechatroner.rainbow-csv
    ms-python.isort
    ms-python.python
    ms-python.vscode-pylance
    ms-toolsai.jupyter
    ms-toolsai.jupyter-keymap
    ms-toolsai.jupyter-renderers
    ms-toolsai.vscode-jupyter-cell-tags
    ms-toolsai.vscode-jupyter-slideshow
    ms-vscode-remote.remote-containers
    ms-vscode-remote.remote-ssh
    ms-vscode-remote.remote-ssh-edit
    ms-vscode-remote.vscode-remote-extensionpack
    ms-vscode.cpptools
    ms-vscode.remote-explorer
    ms-vscode.remote-server
    mushan.vscode-paste-image
    nico-castell.linux-desktop-file
    njpwerner.autodocstring
    oderwat.indent-rainbow
    redhat.ansible
    redhat.vscode-yaml
    skyapps.fish-vscode
    stkb.rewrap
    tchayen.markdown-links
    valentjn.vscode-ltex
    vsls-contrib.gitdoc
    wholroyd.jinja
    ymotongpoo.licenser
    yzhang.markdown-all-in-one

You can confirm installed extensions by calling "Extensions: Show Installed Extensions", or
just click extensions tab in the case you are using VS Code 1.3+.

Behaviors

Expected behavior

licenser.author is used when generating license file and inserting headers.

Actual behavior

My login username is being used instead. This appears to be the same problem as observed in #118. Not sure if some regression has crept in with some change in recent VSCode releases?

Steps to reproduce the issue

  1. Install the plugin
  2. Configure licenser.author and licenser.license workspace setting
  3. From command pallet > licenser: Insert license header

Thanks for the great extension! Very helpful!

@jnooree
Copy link

jnooree commented Apr 17, 2023

Just to note, I'm suffering from the same issue.

@djplaner
Copy link

FYI, I had the same problem (Windows 10) using the same steps above.

However, I found when I "turn it off and on again" it worked. i.e. closed the window in which I'd carried out the steps and opened the code afresh in a new window licenser.author was being recognised correctly.

@jnooree
Copy link

jnooree commented Apr 24, 2023

Thank you so much for your help! I really appreciate it. The solution you provided worked perfectly for my user settings, but unfortunately I'm still having trouble getting the workspace settings to work.

Any further suggestions or insights you might have would be greatly appreciated. Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants