-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25910 from weswigham/port-25908
Ports #25908 to `release-3.0`
- Loading branch information
Showing
3 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/// <reference path="../fourslash.ts" /> | ||
// @Filename: BaseClass/Source.d.ts | ||
////declare class Control { | ||
//// constructor(); | ||
//// /** this is a super var */ | ||
//// myVar: boolean | 'yeah'; | ||
////} | ||
//////# sourceMappingURL=Source.d.ts.map | ||
// @Filename: BaseClass/Source.d.ts.map | ||
////{"version":3,"file":"Source.d.ts","sourceRoot":"","sources":["Source.ts"],"names":[],"mappings":"AAAA,cAAM,OAAO;;IAIT,0BAA0B;IACnB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAQ;CACzC"} | ||
// @Filename: BaseClass/Source.ts | ||
////class /*2*/Control{ | ||
//// constructor(){ | ||
//// return; | ||
//// } | ||
//// /** this is a super var */ | ||
//// public /*4*/myVar: boolean | 'yeah' = true; | ||
////} | ||
// @Filename: tsbase.json | ||
////{ | ||
//// "$schema": "http://json.schemastore.org/tsconfig", | ||
//// "compileOnSave": true, | ||
//// "compilerOptions": { | ||
//// "sourceMap": true, | ||
//// "declaration": true, | ||
//// "declarationMap": true | ||
//// } | ||
//// } | ||
// @Filename: buttonClass/tsconfig.json | ||
////{ | ||
//// "extends": "../tsbase.json", | ||
//// "compilerOptions": { | ||
//// "outFile": "Source.js" | ||
//// }, | ||
//// "files": [ | ||
//// "Source.ts" | ||
//// ], | ||
//// "include": [ | ||
//// "../BaseClass/Source.d.ts" | ||
//// ] | ||
//// } | ||
// @Filename: buttonClass/Source.ts | ||
////// I cannot F12 navigate to Control | ||
////// vvvvvvv | ||
////class Button extends [|/*1*/Control|] { | ||
//// public myFunction() { | ||
//// // I cannot F12 navigate to myVar | ||
//// // vvvvv | ||
//// if (typeof this.[|/*3*/myVar|] === 'boolean') { | ||
//// this.myVar; | ||
//// } else { | ||
//// this.myVar.toLocaleUpperCase(); | ||
//// } | ||
//// } | ||
////} | ||
|
||
verify.goToDefinition("1", "2"); | ||
verify.goToDefinition("3", "4"); |