Sheetal Nandi
46482e14a4
Verify that completion with new identifier location returns isNewIdentifierLocation: true
...
Fixes #24009
Signed-off-by: Sheetal Nandi <shkamat@microsoft.com >
2019-01-08 16:21:46 -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
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
Benjamin Lichtman
799656a037
Merge pull request #29214 from uniqueiniquity/nestedAsyncCodeFix
...
Only provide suggestion for outermost async fix
2018-12-31 17:18:39 -08:00
Benjamin Lichtman
11585d29bc
Merge pull request #29218 from uniqueiniquity/jsdocSpanForVarStatement
...
Jsdoc span for var statement
2018-12-31 16:27:34 -08:00
Benjamin Lichtman
cb57f17aba
Simplify approach
2018-12-31 16:25:26 -08:00
Benjamin Lichtman
28e68a6891
Fix spelling of convertible
2018-12-31 16:00:24 -08:00
Benjamin Lichtman
048d04684b
use existing util functions
2018-12-31 15:56:54 -08:00
Benjamin Lichtman
aebcb6df36
Merge pull request #29216 from uniqueiniquity/multilineArgumentSpans
...
Give appropriate outlining span for array and object literals as args in call expression
2018-12-31 15:18:07 -08:00
Benjamin Lichtman
34970d8a69
give jsdoc outline span before func exp assigned to var
2018-12-31 15:10:22 -08:00
Benjamin Lichtman
6c34520281
Use normal start for spans for args
2018-12-31 14:37:31 -08:00
Benjamin Lichtman
b466336a3e
Add class expression to set of nodes for outlining
2018-12-31 14:04:48 -08:00
Benjamin Lichtman
2dd6e20ef9
Only provide suggestion for outermost async fix
2018-12-31 11:50:40 -08:00
Daniel Rosenwasser
0dbb9760c0
Merge pull request #29147 from Kingwl/type_query_completions
...
fix typeof completions broken
2018-12-31 10:36:39 -08:00
Benjamin Lichtman
c46090b8dc
Show template literal in navtree function call args
2018-12-27 17:43:56 -08:00
王文璐
7c93affd7d
fix typeof completions broken
2018-12-25 17:30:04 +08:00
Sheetal Nandi
fcd502502a
Merge pull request #28886 from Microsoft/sourceMapDecoder
...
Enhancements to SourceMap decoder from tsserver
2018-12-19 12:51:42 -08:00
Wesley Wigham
4f7184a587
Fix all new lint failures ( #29080 )
2018-12-18 11:34:02 -08:00
Kerem
de4803658e
Disable truncation for codefixes in signatureToMethodDeclaration. ( #28188 )
2018-12-13 11:21:36 -08:00
Daniel Rosenwasser
c77fcf217b
Merge pull request #28932 from j-oliveras/No-es2015-usages
...
Change es2015 usages to existing ts functions
2018-12-10 17:11:28 -08:00
Jordi Oliveras Rovira
599a963493
Add newline
2018-12-09 20:42:46 +01:00
Jordi Oliveras Rovira
4e43dcdc05
Change usages of String.prototype.endsWith to ts.endsWith.
2018-12-09 20:25:17 +01:00
Anders Hejlsberg
992513791d
Fix findAllReferences for 'this' parameter declarations
2018-12-08 11:03:37 -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
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
0113f43632
Fix the edits clamping from #28583 after rebasing to master
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
afdf1e90ec
Dont depend on project in document position mapper so that we can unload or remove projects independently
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
Sheetal Nandi
0dad79e8b3
Handle source and generated files more gracefully
2018-12-06 15:22:38 -08:00
Sheetal Nandi
1db8bb062c
Use file names instead of paths for reading files
2018-12-06 15:22:38 -08:00
Sheetal Nandi
0a8c47bd45
Refactoring to createSourceMapperHost
2018-12-06 15:22:38 -08:00
Sheetal Nandi
86857d5b09
Use program directly to get the sourceFile of source position
2018-12-06 15:22:38 -08:00
Sheetal Nandi
c65e43e85e
Do not close over program in getSourceFileLike
2018-12-06 15:22:37 -08:00
Nathan Shively-Sanders
ee987a25e2
Revert over-eager bailout when trailing whitespace ( #28848 )
2018-12-04 12:45:00 -08:00
Sheetal Nandi
c85460bc44
Merge pull request #28818 from Cow258/master
...
Move await keyword to inside of function
2018-12-04 12:36:13 -08:00
Nathan Shively-Sanders
594430f113
Infer from arrows from usage. ( #28832 )
...
* Infer from arrows from usage.
Previously only function expressions were, and only those with an easily
accessible name. Now any arrow function or function expression will
infer from usage.
* remove isApplicableFunctionForInference
*all* functions are applicable for inference now.
2018-12-04 09:03:08 -08:00
dreamran43@gmail.com
a2851d2ddc
Move await keyword to inside of function and test
2018-12-04 03:01:56 +08:00
dreamran43@gmail.com
f2d297fd1f
Move await keyword to inside of function and test
2018-12-04 02:40:43 +08:00
dreamran43@gmail.com
8eefaf48f5
Move await keyword to inside of function (Recovery & try test)
2018-12-04 01:50:02 +08:00
dreamran43@gmail.com
0a6380c6df
Move await keyword to inside function
2018-12-04 00:32:33 +08:00
Sheetal Nandi
23abcc02a3
Use compilerOptionsIndicateEs6Modules over program contains es6 modules for determining auto import offering. Also dont depend on uncheck js file for this.
...
Fixes #28696
2018-11-29 11:58:32 -08:00
Sheetal Nandi
dc03115d14
Merge pull request #28585 from Microsoft/isTypeOnlyCompletion
...
Properly set symbolMeanings when calling getSymbolsInScope
2018-11-19 08:50:41 -08:00
Sheetal Nandi
eeaa8bb527
Merge pull request #28533 from Microsoft/generateGetAndSet_noFindAllRefs
...
generateGetAccessorAndSetAccessor: Don't use FindAllReferences
2018-11-19 08:47:12 -08:00
Andy Hanson
59c014ba32
Properly set symbolMeanings when calling getSymbolsInScope
2018-11-16 17:04:29 -08:00
Andy
12f3d0d54c
Enable --strictPropertyInitialization ( #27558 )
...
* Enable --strictPropertyInitialization
* Code review
2018-11-16 16:02:23 -08:00
Nathan Shively-Sanders
ea8ccc2ce4
In JS, constructor functions infer from call+construct ( #28353 )
...
* constructor functions infer from call+construct
Also fix an incorrect combining of inferences for rest parameters: the
inferred types will be arrays in the body of the function and the
arguments from outside the function will be the element type.
* All functions infer from call+construct contexts
2018-11-16 09:51:07 -08:00
Andy
a6ef176dbb
Consistently return 'void' from ChangeTracker methods ( #28563 )
2018-11-16 08:58:00 -08:00
Andy
b059135c51
When adding relative completions with rootDirs, still add completions for regular relative imports ( #28561 )
2018-11-15 15:11:27 -08:00