JakeBecker / elixir-ls

A frontend-independent IDE "smartness" server for Elixir. Implements the JSON-based "Language Server Protocol" standard and provides debugger support via VS Code's debugger protocol.
Apache License 2.0
846 stars 52 forks source link

Outline doesn't seem to support describe blocks in test files #178

Closed optikfluffel closed 4 years ago

optikfluffel commented 5 years ago

Environment

Problem

Given a test file like:

defmodule TestyMcTestfaceWeb.PageControllerTest do
  use TestyMcTestfaceWeb.ConnCase

  test "GET / does x", %{conn: conn} do
    # ...
  end

  test "GET / does y", %{conn: conn} do
    # ...
  end
end

the Outline works as expected:

Screenshot 2019-07-20 at 10 33 02

But when you group those tests in a describe block:

defmodule TestyMcTestfaceWeb.PageControllerTest do
  use TestyMcTestfaceWeb.ConnCase

  describe "GET /" do
    test "does x", %{conn: conn} do
      # ...
    end

    test "does y", %{conn: conn} do
      # ...
    end
  end
end

the Outline becomes empty and doesn't show anything:

Screenshot 2019-07-20 at 10 36 58

JakeBecker commented 4 years ago

This project has moved!

It's now being maintained by proactive volunteers from the Elixir community over at elixir-lsp/elixir-ls. Updates will continue to be published from that repo to the original VS Code extension, so no need to switch plugins if you're using VS Code.

To avoid inundating the new maintainers with issues, please verify that your issue persists with the latest version of the extension (which is published from the new repo) before re-filing your issue there.

Thanks for using ElixirLS!