APerricone / harbourCodeExtension

Antonino Perricone's extension for visual studio code about Harbour and xHarbour programming languages
32 stars 20 forks source link

Property Name undefined when typo on method class #57

Closed Hovestar closed 4 years ago

Hovestar commented 4 years ago

If you have an undefined class the auto complete feature gives an error. Requirments: this has to be saved in a file (Just an untitled file doesn't have this problem)

class ThisExists
endclass
method login(varName) class ThisDoesnt
return nil

While you're typing varName and getting autocomplete features it gives this error:

[Error - 3:25:55 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot read property 'name' of undefined
  Code: -32603