microsoft / microsoft/TypeScript
Way to Go From Method Implementation to Interface Method Declaration
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
From https://github.com/Microsoft/vscode/issues/22385
TypeScript Version: 2.2.1
Code
interface ITest {
test(): void;
}
class Test implements ITest {
test() {
return null;
}
}
Request
Running go to definition on test in class Test currently does not return ITest::test. Neither does go to type definition.
In VSCode, we would like some way to jump from a class's interface method implementation or abstract method implementation to the interface method declaration or abstract method declaration itself. I'm not sure which command makes sense to do this, either go to definition or go to type definition, but we are open to any suggestions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided TypeScript example and inspect the language-service handling for “go to definition” and “go to type definition.” The change is complete when navigation from the class method reaches the corresponding interface or abstract method declaration, with behavior covered by the relevant language-service tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100