Benjamin Lichtman
5fc8f1dd80
Add opt-in user preference for prefix and suffix text on renames ( #29314 )
...
* Add user preference to control renaming through exports
* Only impact renaming
* Update baselines
* Use flag to control all prefix and suffix text and imports
* [WIP] add tests
* Only skip export import specifier with flag
* [WIP] Update tests
* Update test
* Pick up preference from host and update test
* Shorten flag name
* Add missing utility function
* Update comment
* [WIP] rename flag and respond to cr
* [WIP] Add flag for forRelatedSymbol
* Use larger search symbol set for old-style rename
* Respond to CR
* Fix small error
* Fix type mismatch
* Update comment and remove unnecessary exprot
* Respond to CR
2019-01-16 10:58:07 -08:00
Andrew Casey
35f64fa894
Merge pull request #29421 from amcasey/DisabledLSHardening
...
Harden telemetryOnOpenFile against disabled projects
2019-01-15 11:23:05 -08:00
Andrew Casey
3fb09630a8
Add regression test
2019-01-15 10:55:15 -08:00
Benjamin Lichtman
c5948bf068
Merge pull request #29385 from uniqueiniquity/renameImportPref
...
Add user preference to opt-in to renaming import paths
2019-01-15 10:29:57 -08:00
Benjamin Lichtman
d029fae35c
Add user preference to opt-in to renaming import paths
2019-01-11 14:45:08 -08:00
Sheetal Nandi
b23664adf7
Test to verify external source map range addition
2019-01-11 12:23:24 -08:00
Sheetal Nandi
76c9d9f717
Fix the failing test case
2019-01-08 16:08:43 -08:00
Sheetal Nandi
1870ee4099
Merge branch 'master' into tsconfig_canonicalpath
2019-01-08 16:04:22 -08:00
Sheetal Nandi
93249db692
Use the sourceFile to determine the jsxNamespace at the location for organizingImports
...
Fixes #28827
2019-01-04 14:12:04 -08:00
Sheetal Nandi
a633f95da7
Do not cache semantic diagnostics with --isolated modules
...
Fixes #28332
2019-01-03 14:07:25 -08:00
Sheetal Nandi
c426fc6868
Merge branch 'master' into tscWatchExportUpdate
2019-01-03 11:35:54 -08:00
Sheetal Nandi
d35ea02cc6
Merge pull request #29247 from ajafff/organizeimports-crash
...
Fix crash in organizeImports
2019-01-03 08:54:34 -08:00
Klaus Meinhardt
6a9ad0e2eb
Fix crash in organizeImports
...
Fixes : #29236
2019-01-03 16:20:46 +01:00
Sheetal Nandi
24cc284d19
The assert that cached value of config file existance is always correct, might not be true if file watcher is not invoked before creating configured project
...
Fixes #29191
2019-01-02 15:42:12 -08:00
Benjamin Lichtman
2dd6e20ef9
Only provide suggestion for outermost async fix
2018-12-31 11:50:40 -08:00
Sheetal Nandi
efc71602cd
Refactor tsc-watch tests
2018-12-20 14:17:43 -08:00
Sheetal Nandi
f117184562
More tsserver tests refactoring
2018-12-20 14:00:45 -08:00
Sheetal Nandi
db4d9b3050
Add unittests:: on all unittests describe blocks for easy run
2018-12-20 13:20:53 -08:00
Sheetal Nandi
53e2507f60
More scenarios in their own test
2018-12-20 12:55:18 -08:00
Sheetal Nandi
5c8ef3934d
Move the tests into their own folder for easy scenario search
2018-12-20 12:19:18 -08:00
Sheetal Nandi
9e17a66151
Sym links into single test
2018-12-20 12:18:43 -08:00
Sheetal Nandi
5234b8b18e
Move more tests into resolutionCache and project errors
2018-12-20 12:17:02 -08:00
Sheetal Nandi
160c73f942
Separate out caching file system test
2018-12-20 12:16:47 -08:00
Sheetal Nandi
96c73701c1
More refactoring for resloutionCache and project errors
2018-12-20 12:16:23 -08:00
Sheetal Nandi
f6ac949596
Separate out LargeFileReferencedEvent test
2018-12-20 12:15:58 -08:00
Sheetal Nandi
04e190abb7
ProjectUpdatedInBackground in a separate unittest
2018-12-20 12:15:43 -08:00
Sheetal Nandi
39ec69e26e
Separate out tests for project loading events into their own unittest file
2018-12-20 12:15:25 -08:00
Sheetal Nandi
03d66dd2ef
Emit error tsserver tests into projectErrors
2018-12-20 12:12:54 -08:00
Sheetal Nandi
37a080bca9
tsserver's typingInstaller test into typingsInstaller unittest
2018-12-20 12:12:37 -08:00
Sheetal Nandi
1b6db32ecd
Move error tests from tsserver project system to projectErrors
2018-12-20 12:12:19 -08:00
Sheetal Nandi
53a6968f06
More refactoring for compile on save
2018-12-20 12:11:59 -08:00
Sheetal Nandi
347f89c851
tsc-watch emit tests in to its own tests
2018-12-20 12:11:36 -08:00
Sheetal Nandi
7b9b0f8da7
Split resolutionCache and watchApi tests into its own unittest
2018-12-20 12:11:07 -08:00
Sheetal Nandi
47200acfcd
Split watch environment into its own unittest
2018-12-20 12:10:28 -08:00
Sheetal Nandi
2a02077e37
Add name of test in all describe blocks in it
2018-12-20 12:09:42 -08:00
Sheetal Nandi
f97a2b3f90
Add more tests that verify semantic diagnostics cache
2018-12-12 16:33:00 -08:00
Sheetal Nandi
7c92d09e23
When removing the errors for the exports from the file, apart from removing transitive exports, remove the diagnostics of file that import these exports
...
Fixes #28983
2018-12-12 15:23:51 -08:00
Sheetal Nandi
1ed67c0ebd
Accept test changes
2018-12-06 15:22:46 -08:00
Sheetal Nandi
fa7f5cb5a0
Actually verify when dependency and main project is open
2018-12-06 15:22:45 -08:00
Sheetal Nandi
6cb3065194
Test to verify presence of .d.ts file
2018-12-06 15:22:45 -08:00
Sheetal Nandi
3dc0d5a77c
Watch missing map file and update the source mapping accordingly
2018-12-06 15:22:44 -08:00
Sheetal Nandi
8f3d2d9f76
Goto defintion will not go to source if map is present
2018-12-06 15:22:44 -08:00
Sheetal Nandi
34a12839ba
Test that when map file is created the changes are reflected.
2018-12-06 15:22:44 -08:00
Sheetal Nandi
60ae299f0c
Add test to verify when depedency and main project is open
2018-12-06 15:22:44 -08:00
Sheetal Nandi
d86aeb2f00
TODOs
2018-12-06 15:22:43 -08:00
Sheetal Nandi
d0976509c9
Add tests and fix DocumentPositionMapper creation on updates to d.ts, source file, map file etc
2018-12-06 15:22:43 -08:00
Sheetal Nandi
56a39b754c
Keep alive declaration script info and map file info if source file info is alive
2018-12-06 15:22:42 -08:00
Sheetal Nandi
0aa4da43ad
Life time of declaration, sources and map infos
...
Map Info and sources is not ideal and need to revisited since we need to update mapper and projects correctly
// TODO: lifetime of source project and declaration map
2018-12-06 15:22:41 -08:00
Sheetal Nandi
5c920f3368
Dont unnecessarily make textStorage internal
2018-12-06 15:22:40 -08:00
Sheetal Nandi
12428d45c0
Add method on host to get DocumentPositionMapper so it can be cached.
2018-12-06 15:22:39 -08:00