Andy
476157fab8
jsTyping: Better logging for addInferredTypings ( #17249 )
...
* jsTyping: Better logging for addInferredTypings
* Fix tests
* Indent other log under "Searching for typing names"
2017-07-28 12:43:50 -07:00
Daniel Rosenwasser
65650253cf
Merge pull request #17462 from Microsoft/codeFixForErrorForPropertyOfTypeAsType
...
Quick fix to correct qualified names to indexed access types
2017-07-27 15:32:49 -07:00
Daniel Rosenwasser
c659fe902d
Remove unnecessary references in 'src/harness/tsconfig.json' - they're already referenced in 'src/harness/codefixes/fixes.ts'.
2017-07-27 15:06:30 -07:00
Andy
3330f2a33b
JsTyping: Remove "safeList" global variable ( #17304 )
2017-07-27 10:54:47 -07:00
Andy
eadd084c82
Add 'name' property to Identifier ( #17329 )
...
* Add 'name' property to Identifier
* Rename to unescapedText
* Rename 'id.text' to 'id.escapedText'
* Rename 'id.unescapedText' to 'id.text'
* Make escapeIdentifier and unescapeIdentifier do nothing
2017-07-25 13:16:34 -07:00
Mine Starks
441daa4e19
Merge pull request #17302 from minestarks/removeimportfix
...
Bugs in missing import codefix
2017-07-21 10:22:24 -07:00
Mine Starks
98b14e34ca
Fix quote styles to match
2017-07-20 15:10:29 -07:00
Andy
c60774b4c6
Make many 'static' variables readonly ( #17306 )
2017-07-20 08:54:47 -07:00
Andy
08a57d82cd
Add 'clear' helper ( #17209 )
2017-07-18 11:08:44 -07:00
Andy
194c2bc2ca
Make NodeArray readonly ( #17213 )
...
* Make NodeArray readonly
* Fix bug: use emptyArray instead of undefined
* Fix bug: Don't expose MutableNodeArray
* Undo trailing whitespace changes
2017-07-18 10:38:21 -07:00
Sheetal Nandi
54dfdd77fb
Merge pull request #17210 from Microsoft/readfile
...
`readFile` may return undefined
2017-07-17 14:39:57 -07:00
Andy Hanson
96d537bc54
readFile may return undefined
2017-07-14 15:57:23 -07:00
Nathan Shively-Sanders
bdc3f1f3f7
Address more PR comments
2017-07-14 13:29:44 -07:00
Nathan Shively-Sanders
da5285e979
Update baselines
2017-07-14 09:34:35 -07:00
Nathan Shively-Sanders
bc69c7e6d1
Parse JSDoc types using the normal TS parser
...
This means that JSDoc types can include the full range of Typescript
types now. It also means that Typescript annotations can include JSDoc
types. This is disallowed with a new error, however. But Typescript can
still give the correct types to JSDoc that shows up in .ts files by
mistake. This can easily happen, for example with types like
```ts
var x: number? = null;
var y: ?string = null;
var z: function(string,string): string = (s,t) => s + t;
// less likely to show up, but still understood.
var ka: ? = 1;
```
In the future, I will add a quick fix to convert these into the correct
types.
Fixes #16550
2017-07-13 11:27:50 -07:00
Mine Starks
fd2dd2edc0
Merge pull request #17078 from minestarks/removeimportfix
...
Code fix to remove unused named import should preserve default import
2017-07-13 10:53:35 -07:00
Andy
efc861c76d
Add logging to discoverTypings ( #16652 )
2017-07-13 07:10:35 -07:00
Andy
08030c7d02
Convert most of core.ts to accept ReadonlyArray ( #17092 )
...
* Convert most of core.ts to accept ReadonlyArray
* Fix lint
* Fix isArray
2017-07-11 17:39:33 -07:00
Mine Starks
0694a38728
Use platform agnostic newline
2017-07-11 16:05:10 -07:00
Mine Starks
5fd16cae18
format error message with newlines
2017-07-11 14:52:47 -07:00
Mine Starks
003c28f1ef
Fix caret update logic in fourslash tests
2017-07-11 14:52:41 -07:00
Andy
23da0ab501
Use array helpers in more places ( #17055 )
2017-07-11 09:00:34 -07:00
Andy
aa2d1008bf
Completion for default export should be '.default' ( #16742 )
...
* Completion for default export should be '.default'
* Don't include empty string in name table
* getSymbolsInScope() should return local symbols, not exported symbols
* Fix bug: getSymbolAtLocation should work for local symbol too
2017-07-11 07:23:32 -07:00
Andy
dab682767c
Fix call to getCodeFixesAtPosition ( #17063 )
2017-07-10 13:25:48 -07:00
Mine Starks
b6b6d0516e
More detailed error logging in Fourslash
2017-07-10 12:49:47 -07:00
Mine Starks
0c40c18e98
Applying edits in Fourslash can cause caret to move off-range
2017-07-10 12:49:29 -07:00
Andy
91d7b22e6a
Remove ILineInfo type ( #17017 )
2017-07-10 11:35:54 -07:00
Andy
31ce6cfba6
Minor cleanups to ScriptVersionCache ( #16983 )
2017-07-07 10:49:59 -07:00
Andy
e7dc2a67ca
Enable "object-literal-shorthand" lint rule ( #16987 )
2017-07-07 07:26:58 -07:00
Arthur Ozga
dc08c5f241
Merge branch 'master' into caretPositionInFourslash
2017-07-06 10:44:59 -07:00
Arthur Ozga
86894f3a6f
i++
2017-07-05 14:26:59 -07:00
Arthur Ozga
a200aa9329
non-default args
2017-07-05 12:54:42 -07:00
Arthur Ozga
2857bb9703
remove fixCaretPosition
2017-07-05 12:47:32 -07:00
Arthur Ozga
b5e069816d
consolidate function call
2017-06-30 19:50:09 -07:00
Arthur Ozga
5652b0677e
update caret position based on edit range
2017-06-30 19:40:56 -07:00
Yui
a7fe9db746
Merge pull request #16847 from Microsoft/master-RWC
...
[master] fix RWC runner
2017-06-30 12:08:23 -07:00
Kanchalai Tanglertsampan
67faecc32c
remove BOM
2017-06-30 11:52:00 -07:00
Kanchalai Tanglertsampan
2e13c3a7a6
Update RWC runner
2017-06-29 16:55:46 -07:00
Kanchalai Tanglertsampan
0ffbb75503
check error early and return null to indicate that everything is going well
2017-06-29 16:53:37 -07:00
Andrew Casey
ac72803bb2
Merge pull request #16684 from amcasey/Vsts434619
...
Watch for the creation of missing files
2017-06-29 13:41:18 -07:00
Andrew Casey
569ecabb0a
Address PR feedback
...
Make Program.getMissingFilePaths required
Assume getMissingFilePaths always returns a defined value
Make getMissingFilePaths internal
Replace nullable-bool with enum
Update type to reflect possibility of undefined
Use deepEqual to simplify tests
Make condition const
Don't bother cleaning up map before freeing it
Switch from foreach to for-of to simplify debugging
Use a Map, rather than a FileMap, to track open FileWatchers
Fix compilation errors
Introduce and consume arrayToSet
Fix lint warnings about misplaced braces
Delete incorrect comment
Delete from map during iteration
Eliminate unnecessary type annotations
2017-06-29 11:29:19 -07:00
Andy
179a3e10b5
Handle depth in all readDirectory implementations ( #16646 )
2017-06-29 11:04:33 -07:00
Andrew Casey
0f683ac2ad
Add missing file unit tests
...
1. Test `Program.getMissingFilePaths`
2. Test program structure reuse (i.e. that the appearance of a missing
file prevents complete reuse)
2017-06-29 10:39:32 -07:00
Andrew Casey
6d200bffbd
Watch files through the host
...
Call `this.projectService.host.watchFile`, rather than
`ts.sys.watchFile` so that it gets mocked correctly in the unit tests.
Repair two failing tests.
2017-06-29 10:39:32 -07:00
t_
51fb7e9a81
Add alwaysStrict option ( #16562 )
...
* Add alwaysStrict option
* Enable alwaysStrict
* Fix for strict mode
* keep whitespace
2017-06-28 19:44:15 -07:00
Andy
9013665e22
Replace FileMap with Map where there is no keyMapper ( #16724 )
...
* Replace FileMap with Map where there is no keyMapper
* Remove `toKey` and use `keyMapper` directly
2017-06-28 13:15:34 -07:00
Sheetal Nandi
31653de3c3
Merge pull request #16566 from Microsoft/keywordFilters
...
Fix the completion for parameters
2017-06-15 15:44:33 -07:00
Sheetal Nandi
4ce8af3652
Show public/private/protected/readonly when looking for constructor parameter and otherwise parameter declaration or property declaraiton should result in no completion
...
Fixes #15937
2017-06-15 11:16:35 -07:00
Sheetal Nandi
09f0b3471a
Merge branch 'master' into ownJsonParsing
2017-06-15 09:59:37 -07:00
Sheetal Nandi
187febd10f
Merge pull request #16494 from Microsoft/dontCreateScriptInfosWithFileExistsAndReadFile
...
Fixes the memory leak because of project and its corresponding script info even after project is removed
2017-06-14 15:17:25 -07:00