-
-
Notifications
You must be signed in to change notification settings - Fork 752
Closed
Description
Problem
addUnknownSymbolResolver accepts a resolver that receives ts.Symbol.name, however the name is insufficient to identify the symbol in cases where the symbol is namespaced such as the following:
declare namespace foo.bar {
class Baz {}
}in the resolver this is only identified as Baz and not foo.bar.Baz
Suggested Solution
1. allow the resolver to access ts.Symbol
app.renderer.addUnknownSymbolResolver("my-package", (symbol: Symbol) => {
// get namespace from Symbol.parent
return '';
});This would be a breaking change and may expose a more complex interface than needed(?).
2. pass the namespaced name joining ts.Symbol.parent resulting in foo.bar.Baz.
This option would not be a breaking change and is sufficient for my use case.
Metadata
Metadata
Assignees
Labels
No labels