Skip to content

formatting code performance exceptions using align_continuous_assign_statement=true #2069

@ghost

Description

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

MacOS

What is the issue affecting?

Formatting

Expected Behaviour

local log  = ngx.log
local INFO = ngx.INFO
local ERR  = ngx.ERR

local ngx_encode_base64 = ngx.encode_base64
local ngx_escape_uri    = ngx.escape_uri
local ngx_hmac_sha1     = ngx.hmac_sha1
local ngx_http_time     = ngx.http_time

Actual Behaviour

local log               = ngx.log
local INFO              = ngx.INFO
local ERR               = ngx.ERR

local ngx_encode_base64 = ngx.encode_base64
local ngx_escape_uri    = ngx.escape_uri
local ngx_hmac_sha1     = ngx.hmac_sha1
local ngx_http_time     = ngx.http_time

Reproduction steps

  1. set align_continuous_assign_statement=true with version: 3.6.18
  2. version: 3.6.8 is ok

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions