* navigateTo: Collect results from all referenced projects. * Don't use project references, just source maps * Move more code to session * Test when implementation file is deleted * Use tsserver tests instead of fourslash tests to ensure session is used * Support find-all-references * Restore fourslash tests * Update emit baselines (added missing newline) * Support rename * @weswigham code review * Don't open/close files * Avoid growing `toDo` too eagerly * @sheetalkamat code review * Also get symlinked projects for originalLocation * Update API (#24966) * More @sheetalkamat code review * Remove unnecessary test * Update API (#24966)
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
/// <reference path="../fourslash.ts" />
|
|
// @Filename: index.ts
|
|
////export class Foo {
|
|
//// member: string;
|
|
//// /*2*/methodName(propName: SomeType): void {}
|
|
//// otherMethod() {
|
|
//// if (Math.random() > 0.5) {
|
|
//// return {x: 42};
|
|
//// }
|
|
//// return {y: "yes"};
|
|
//// }
|
|
////}
|
|
////
|
|
////export interface SomeType {
|
|
//// member: number;
|
|
////}
|
|
// @Filename: indexdef.d.ts.map
|
|
////{"version":3,"file":"indexdef.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;IACI,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IACpC,WAAW;;;;;;;CAMd;AAED,MAAM,WAAW,QAAQ;IACrB,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
// @Filename: indexdef.d.ts
|
|
////export declare class Foo {
|
|
//// member: string;
|
|
//// methodName(propName: SomeType): void;
|
|
//// otherMethod(): {
|
|
//// x: number;
|
|
//// y?: undefined;
|
|
//// } | {
|
|
//// y: string;
|
|
//// x?: undefined;
|
|
//// };
|
|
////}
|
|
////export interface SomeType {
|
|
//// member: number;
|
|
////}
|
|
//////# sourceMappingURL=indexdef.d.ts.map
|
|
// @Filename: mymodule.ts
|
|
////import * as mod from "./indexdef";
|
|
////const instance = new mod.Foo();
|
|
////instance.[|/*1*/methodName|]({member: 12});
|
|
|
|
verify.goToDefinition("1", "2");
|