This repository was archived by the owner on Oct 8, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,15 @@ defmodule NextLS do
115115
116116    symbols  = 
117117      for  % SymbolTable.Symbol { }  =  symbol  <-  SymbolTable . symbols ( lsp . assigns . symbol_table ) ,  filter . ( symbol . name )  do 
118+         name  = 
119+           if  symbol . type  !=  :defstruct  do 
120+             "#{ symbol . type } #{ symbol . name }  
121+           else 
122+             "#{ symbol . name }  
123+           end 
124+ 
118125        % SymbolInformation { 
119-           name:  to_string ( symbol . name ) , 
126+           name:  name , 
120127          kind:  elixir_kind_to_lsp_kind ( symbol . type ) , 
121128          location:  % Location { 
122129            uri:  "file://#{ symbol . file }  , 
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ defmodule NextLSTest do
342342               } , 
343343               "uri"  =>  "file://#{ cwd }  
344344             } , 
345-              "name"  =>  "foo" 
345+              "name"  =>  "def  foo" 
346346           }  in  symbols 
347347
348348    assert  % { 
@@ -360,7 +360,7 @@ defmodule NextLSTest do
360360               } , 
361361               "uri"  =>  "file://#{ cwd }  
362362             } , 
363-              "name"  =>  "Bar" 
363+              "name"  =>  "defmodule  Bar" 
364364           }  in  symbols 
365365
366366    assert  % { 
@@ -396,7 +396,7 @@ defmodule NextLSTest do
396396               } , 
397397               "uri"  =>  "file://#{ cwd }  
398398             } , 
399-              "name"  =>  "Foo.CodeAction.NestedMod" 
399+              "name"  =>  "defmodule  Foo.CodeAction.NestedMod" 
400400           }  in  symbols 
401401  end 
402402
@@ -438,7 +438,7 @@ defmodule NextLSTest do
438438                 } , 
439439                 "uri"  =>  "file://#{ cwd }  
440440               } , 
441-                "name"  =>  "foo" 
441+                "name"  =>  "def  foo" 
442442             } , 
443443             % { 
444444               "kind"  =>  12 , 
@@ -455,7 +455,7 @@ defmodule NextLSTest do
455455                 } , 
456456                 "uri"  =>  "file://#{ cwd }  
457457               } , 
458-                "name"  =>  "foo" 
458+                "name"  =>  "def  foo" 
459459             } 
460460           ]  ==  symbols 
461461  end 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments