* Add support for Call Hierarchies in language server * Use baselines for callHierarchy tests * Clean up commented code * Support multiple hierarchy items when an implementation can't be found * Use optional chaining in a few places * Use getFileAndProject
22 lines
369 B
TypeScript
22 lines
369 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @filename: main.ts
|
|
//// import Bar from "./other";
|
|
////
|
|
//// function foo() {
|
|
//// new Bar();
|
|
//// }
|
|
|
|
// @filename: other.ts
|
|
//// export /**/default class {
|
|
//// constructor() {
|
|
//// baz();
|
|
//// }
|
|
//// }
|
|
////
|
|
//// function baz() {
|
|
//// }
|
|
|
|
goTo.marker();
|
|
verify.baselineCallHierarchy();
|