Skip to content

Outline view incorrectly renders complex Javascript objects #94

@murrellr

Description

@murrellr

Describe the bug
If an object variable is defined in one file, and sub-objects added to it in another file, the outline view does not render the sub-objects correctly. Example:

file1.js
  var Object1 = {};
  Object1.Attr1 = {
    Func1: function(){}
  }

file2.js
  Object1.Attr2 = {
    Func1: function(){}
  }

Expected behavior
I would expect the Outline to look something like this:

file1.js:
Object1
Object1.Attr1
  Func1

file2.js:
Object1.Attr2
  Func1

The Outline view does not recognize "Object.Attr1" and others as independent objects with their own content.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: Latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions