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

When using the add function comment in google style mode it thinks local variables are global #75

Closed
bryder opened this issue Jun 23, 2021 · 1 comment

Comments

@bryder
Copy link

bryder commented Jun 23, 2021

I'm using

  • BashSupport Pro 2.0.0.211-beta14-eap
  • IntelliJ IDEA 2021.1.2 (Ultimate Edition)
  • Build #IU-211.7442.40, built on June 1, 2021

With this script

#!/bin/bash
some_function(){
  local this_is_local
  this_is_local="not global"
}

It inserts this comment

#######################################
# description
# Globals:
#   this_is_local
# Arguments:
#  None
#######################################

When I hover over the variable it knows it's local so that part is working properly.

@bryder bryder changed the title When using the ádd function comment' in google style mode it thinks local variables are global When using the add function comment in google style mode it thinks local variables are global Jun 23, 2021
@jansorg
Copy link
Contributor

jansorg commented Jun 24, 2021

Thanks! I've fixed this for the next preview of 2.0.

@jansorg jansorg closed this as completed Jun 24, 2021
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

2 participants