|
| 1 | +/// <reference path="../fourslash.ts" /> |
| 2 | +// @Filename: BaseClass/Source.d.ts |
| 3 | +////declare class Control { |
| 4 | +//// constructor(); |
| 5 | +//// /** this is a super var */ |
| 6 | +//// myVar: boolean | 'yeah'; |
| 7 | +////} |
| 8 | +//////# sourceMappingURL=Source.d.ts.map |
| 9 | +// @Filename: BaseClass/Source.d.ts.map |
| 10 | +////{"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"} |
| 11 | +// @Filename: BaseClass/Source.ts |
| 12 | +////class /*2*/Control{ |
| 13 | +//// constructor(){ |
| 14 | +//// return; |
| 15 | +//// } |
| 16 | +//// /** this is a super var */ |
| 17 | +//// public /*4*/myVar: boolean | 'yeah' = true; |
| 18 | +////} |
| 19 | +// @Filename: tsbase.json |
| 20 | +////{ |
| 21 | +//// "$schema": "http://json.schemastore.org/tsconfig", |
| 22 | +//// "compileOnSave": true, |
| 23 | +//// "compilerOptions": { |
| 24 | +//// "sourceMap": true, |
| 25 | +//// "declaration": true, |
| 26 | +//// "declarationMap": true |
| 27 | +//// } |
| 28 | +//// } |
| 29 | +// @Filename: buttonClass/tsconfig.json |
| 30 | +////{ |
| 31 | +//// "extends": "../tsbase.json", |
| 32 | +//// "compilerOptions": { |
| 33 | +//// "outFile": "Source.js" |
| 34 | +//// }, |
| 35 | +//// "files": [ |
| 36 | +//// "Source.ts" |
| 37 | +//// ], |
| 38 | +//// "include": [ |
| 39 | +//// "../BaseClass/Source.d.ts" |
| 40 | +//// ] |
| 41 | +//// } |
| 42 | +// @Filename: buttonClass/Source.ts |
| 43 | +////// I cannot F12 navigate to Control |
| 44 | +////// vvvvvvv |
| 45 | +////class Button extends [|/*1*/Control|] { |
| 46 | +//// public myFunction() { |
| 47 | +//// // I cannot F12 navigate to myVar |
| 48 | +//// // vvvvv |
| 49 | +//// if (typeof this.[|/*3*/myVar|] === 'boolean') { |
| 50 | +//// this.myVar; |
| 51 | +//// } else { |
| 52 | +//// this.myVar.toLocaleUpperCase(); |
| 53 | +//// } |
| 54 | +//// } |
| 55 | +////} |
| 56 | + |
| 57 | +verify.goToDefinition("1", "2"); |
| 58 | +verify.goToDefinition("3", "4"); |
0 commit comments