Sheetal Nandi
1e5e61873d
Send event on referencing large file
2018-08-03 15:22:28 -07:00
Sheetal Nandi
77e29b7f0e
Merge pull request #26169 from Microsoft/largeFile
...
Do not read files greater than maxFileSize which is currently 4mb
2018-08-03 10:38:02 -07:00
Sheetal Nandi
46d223dc1b
Fixes to ensure getDefinitionAndBoundSpan works correctly when using composite projects
...
Project references need to be detached from the project when closing project
In SourceMapDecoder handle when the redirected file to project reference is set as the output of the project
Keep configured project alive if project it references has open ref
Fixes #26164
2018-08-02 16:36:50 -07:00
Sheetal Nandi
135425d40b
Do not read files greater than maxFileSize which is currently 4mb
...
Fixes #24762
2018-08-02 13:03:58 -07:00
Sheetal Nandi
d74d8613bd
Use updateGraphIfDirty to do quick check if project update is needed
...
With this updateGraph is used only in locations we are certain project is dirty
2018-08-01 16:08:25 -07:00
Sheetal Nandi
d65cb21fcd
Keep the original configured project alive created during findAllReferences
2018-07-30 14:44:21 -07:00
Sheetal Nandi
f3b0a2de06
Move the original location getter to ProjectService.
...
This is in anticipation of work needed to keep original projects alive
2018-07-30 14:44:21 -07:00
Sheetal Nandi
1345a35e5f
Merge pull request #26012 from Microsoft/compileOnSaveOptimization
...
If project name is specified in compile on save, do not update all projects to just use that project
2018-07-30 14:43:18 -07:00
Sheetal Nandi
9196b7db33
Merge pull request #25851 from Microsoft/configFileDiag
...
Report compiler options errors as well as part of configFileDiag event
2018-07-30 11:07:07 -07:00
Sheetal Nandi
ab1b899cea
Use isArray instead of isProjectsArray
2018-07-27 12:50:32 -07:00
Sheetal Nandi
399f497a32
Unify getProjects for compileOnSave and others like (navigation etc)
2018-07-27 12:47:47 -07:00
Sheetal Nandi
94033f212d
If project name is specified in compile on save, do not update all projects to just use that project
2018-07-27 11:21:14 -07:00
Sheetal Nandi
a9d497a008
Report compiler options errors as well as part of configFileDiag event
...
Fixes #25741
2018-07-20 18:04:08 -07:00
Andy
93722c8942
findAllReferences/rename: Search in all open projects ( #25648 )
...
* findAllReferences/rename: Search in all open projects
* Avoid needing a dummy location when location is unused
* Remove Program#getDeclarationEmitPath
* Only iterate over enabled projects
2018-07-20 16:53:59 -07:00
Andy
b21c1fd595
errorCodes in CodeFixRequestArgs is non-optional (#25815 )
2018-07-20 11:10:33 -07:00
Andy
2701f785ed
Consistently use ScriptInfo for converting positions to Locations ( #25623 )
...
* Consistently use ScriptInfo for converting positions to Locations
* Code review
2018-07-18 13:02:38 -07:00
Andy
af412e39cf
mapTextChangesToCodeEditsUsingScriptInfo: Handle tsconfig.json text change ( #25586 )
...
* mapTextChangesToCodeEditsUsingScriptInfo: Handle tsconfig.json text change
* Can't use `program.getSourceFile()` to determine file existence when multiple projects exist
* Use direct union instead of discriminated union
2018-07-12 12:09:04 -07:00
Andy
8a559e4630
Improve isNewFile assert ( #25419 )
2018-07-10 16:57:01 -07:00
Ron Buckton
0713e754e7
Build script updates
2018-07-10 12:13:27 -07:00
Andy
e9e5ebee73
getEditsForFileRename: Handle all projects and source-mapped files ( #25522 )
...
* getEditsForFileRename: Handle all projects and source-mapped files
* Update API (#24966 )
* Use areEqual
2018-07-09 17:58:02 -07:00
Nathan Shively-Sanders
10b174abc1
Fix lineText in references command ( #25494 )
...
Previously it was just the identifier text. Now it is back to the full
text of the line.
2018-07-06 16:23:11 -07:00
Andy
64555aa6a9
navigateTo: Collect results from all referenced projects. ( #25283 )
...
* 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 )
2018-07-05 15:39:03 -07:00
Mohamed Hegazy
8911c19f4f
Merge pull request #25313 from github-john-doe/typo
...
Typo
2018-07-05 11:43:12 -07:00
Daniel Rosenwasser
e13fd0c568
Merge pull request #24915 from Microsoft/triggerSignatureHelpIArdlyKnowSignatureHelp
...
Trigger characters in signature help
2018-07-02 23:36:57 -07:00
Andy
efc1b7df08
More thoroughly test navigateTo ( #25239 )
...
* More thoroughly test navigateTo
* Fix #25233 and #25237
* Update API (#24966 )
2018-07-02 19:25:27 -07:00
Daniel Rosenwasser
e56a5c1b35
Lints.
2018-07-02 16:40:08 -07:00
Daniel Rosenwasser
9651c4231e
Account for trigger reasons, as implemented by Roslyn.
2018-07-02 16:04:48 -07:00
Daniel Rosenwasser
c046958752
Merge remote-tracking branch 'origin/master' into triggerSignatureHelpIArdlyKnowSignatureHelp
2018-07-02 15:36:41 -07:00
Sheetal Nandi
e0d5363380
Merge branch 'master' into openSameFileWithDifferentText
2018-07-02 12:16:54 -07:00
John Doe
d83ddcfa9c
abount -> about
2018-06-28 18:59:37 -07:00
John Doe
15c38596fa
affectected -> affected
2018-06-28 18:52:56 -07:00
Wesley Wigham
53e163df0b
Add codes and categories to related information, officially ( #25304 )
2018-06-28 14:41:21 -07:00
Andy
16f045b7f5
Add test for goto-definition with project references ( #24867 )
...
* Add test for goto-definition with project references
* Assert that the declaration file is what we emit
2018-06-27 15:56:04 -07:00
Andy
ab9e913af3
getEditsForFileRename: Test both before and after the rename ( #25074 )
2018-06-26 16:55:51 -07:00
Sheetal Nandi
9f3e5eaadd
Use different cache for the ScriptInfoVersion
2018-06-26 16:18:30 -07:00
Sheetal Nandi
b155a71e70
Retain the version information of script infos when they are deleted
...
This helps in having to not restart the versioning,
which could potentially have same version but different contents and project could confuse with it
2018-06-26 15:03:35 -07:00
Andy
878bf80a48
Make GetEditsForFileRenameRequestArgs not extend FileRequestArgs ( #25052 )
...
* Make GetEditsForFileRenameRequestArgs not extend FileRequestArgs
* Code review: check new location first, and use scriptInfo.getDefaultProject()
* Remove changes to e getDefaultProjectForFile (now #25060 )
* Undo API changes (#24966 )
* Combine edits from all projects (fixes #25052 )
* Update API (#24966 )
* Ignore orphan projects or projects with language service disabled
2018-06-25 11:00:51 -07:00
Andy
38a60ac59b
Fix --strictNullChecks error with getDefaultProjectForFile ( #25060 )
...
* Fix --strictNullChecks error with getDefaultProjectForFile
* Mark methods internal
2018-06-22 11:22:34 -07:00
Andy
1c3259d29b
Add CompletionInfo command to protocol ( #25080 )
...
* Add CompletionInfo command to protocol
* Add comments to protocol
2018-06-20 09:13:04 -07:00
Andy
f597589e54
Fix protocol: Field is 'body', not 'edits' ( #25005 )
2018-06-15 14:59:47 -07:00
Ryan Cavanaugh
73844ac565
Accept baseline
2018-06-15 11:10:54 -07:00
Wesley Wigham
640af3f75e
Introduce related spans into tsserver protocol ( #24548 )
...
* Introduce related spans into tsserver protocol
* Incorporate pretty output, implement esModuleInterop related span
2018-06-15 10:54:36 -07:00
Daniel Rosenwasser
5e3c96bb9a
Implemented support for trigger characters in signature help.
2018-06-12 15:48:40 -07:00
Ryan Cavanaugh
066b191982
Collapse core/compiler/parser into parser
2018-06-11 17:07:58 -07:00
Ryan Cavanaugh
bb4872787c
Merge branch 'master' into projzilla
2018-06-11 13:36:31 -07:00
Mohamed Hegazy
3cd6db76ef
Merge pull request #24816 from Microsoft/updateGraphBeforeErrorChecking
...
Updates the graph before checking if file is present in project for error checking
2018-06-11 13:15:40 -07:00
Mohamed Hegazy
e07e2e0e1f
Merge pull request #23423 from Kingwl/add-braces
...
add support for add or remove braces to arrow function
2018-06-11 13:09:38 -07:00
Ryan Cavanaugh
c7cee5ce26
Merge branch 'master' into projzilla
2018-06-11 11:15:21 -07:00
Andrew Casey
e5597eec81
Merge pull request #24820 from amcasey/RenameNormalize
...
Normalize paths in GetEditsForFileRename
2018-06-11 10:01:58 -07:00
Ryan Cavanaugh
ab10b86205
Almost working?
2018-06-10 19:28:38 -07:00