838 Commits

Author SHA1 Message Date
Andrew Casey
856c0fd3a8 Merge pull request #16182 from amcasey/MissingNullCheck
Add missing null check
2017-06-02 10:37:56 -07:00
William Orr
b62e1b5745 Use unix cache location on the major BSDs (#16187) 2017-06-01 18:27:20 -07:00
Andrew Casey
95b5a691d4 Guess 1: null check is missing; Guess 2: ternary does the appropriate check 2017-05-31 16:30:27 -07:00
Bill Ticehurst
2e0eb26543 Fix equals 2017-05-30 10:39:03 -07:00
Bill Ticehurst
05d3ff1823 Wrap npmLocation if needed 2017-05-30 10:38:55 -07:00
Andy
2412f8c6cf Allow configurable npmLocation for typingsInstaller (#16084)
* Allow configurable npmLocation for typingsInstaller

* Undo "export class" changes

* Add log for npmLocation

* Log whether '--npmLocation' was provided
2017-05-26 07:06:11 -07:00
Andy
d052bb83ca Add project telemetry (#16050)
* Add project telemetry

* Respond to some PR comments

* Wrap event in a TelemetryEvent payload

* Replace paths with empty string instead of removing them entirely

* Add "version" property to payload

* Add telemetry for typeAcquisition settings

* Add "files", "include", "exclude", and "compileOnSave"

* Convert typingsOptions include and exclude to booleanss

* Add "extends", "configFileName", and "projectType"

* configFileName: Use "other" instead of undefined

* Add "languageServiceEnabled" telemetry
2017-05-25 13:30:27 -07:00
Andy Hanson
34bb955655 Use orderedRemoveItem instead of remove helper 2017-05-24 08:42:02 -07:00
Andy Hanson
f6240cb6f9 Make CommandTypes a const enum and use allCommandTypes for unit test 2017-05-22 11:17:12 -07:00
Andy Hanson
c6e69dd64b Fix missing initializers 2017-05-22 11:05:30 -07:00
Andy Hanson
3b56ebeabe Convert other namespace + type alias in protocol.ts to const enums 2017-05-22 10:47:28 -07:00
Andy Hanson
f94818da36 Also convert ClassificationTypeNames and CommandTypes/CommandNames 2017-05-22 10:40:59 -07:00
andy-ms
b162097c3c Make ScriptElementKind and HighlightSpanKind string enums 2017-05-20 07:56:24 -07:00
Ryan Cavanaugh
f6fbe61718 Refactoring support (squash) 2017-05-19 10:45:49 -07:00
Ryan Cavanaugh
ab3ffa22da Add flag to allow local plugin loading 2017-05-17 19:52:57 -07:00
Mohamed Hegazy
ca748d6c02 Add insertSpaceAfterTypeAssertion to the server protocol 2017-05-12 14:48:13 -07:00
Andy
0b0a2d070b Merge pull request #15039 from Microsoft/resolveJavaScriptModule
Refactor how we (internally) expose JS module resolution
2017-05-08 10:52:17 -07:00
Matt Bierner
e44d419c90 Add Log for When Typings Installer Finishes Updating the Types Registry
**Bug**
While investigating #15301, I was confused by the typing installer's log `Updating types-registry npm package...`. This was often the last line of the log file, leading me to believe that the types-registry update was still ongoing

**Fix**
Add an extra log for when the type-registry update completes successfully
2017-05-04 20:04:46 -07:00
Arthur Ozga
2150a7796b Merge pull request #15261 from aozgaa/moduleReuse
Reuse Module Resolutions from Unchanged Files
2017-05-01 17:49:44 -07:00
Arthur Ozga
0ea1b82a85 test module reuse 2017-04-20 18:55:15 -07:00
Mohamed Hegazy
8534b430be Add missing compiler options 2017-04-20 15:11:40 -07:00
Mohamed Hegazy
0736d8e3d0 Merge pull request #15283 from Microsoft/Fix15237
Return Diagnostic.category from the server
2017-04-20 14:20:13 -07:00
Mohamed Hegazy
24814ec387 Merge pull request #15260 from Microsoft/Fix15200
Fix #15200: Query for semantic errors on .js files with '@ts-check' with no config file
2017-04-20 13:46:52 -07:00
Mohamed Hegazy
5d7c75d88d Add a source property on Diagnostic 2017-04-20 13:22:55 -07:00
Mohamed Hegazy
420908eb63 Change function name and clarify comment 2017-04-19 17:47:51 -07:00
Mohamed Hegazy
75cdb47cfa Return Diagnostic.category from the server 2017-04-19 17:12:20 -07:00
Zhengbo Li
e8fd1cf466 Support project root path for controlling config file searching depth (#15238)
* stops at projectRootPath when searching config file

* Add tests

* Update editorServices.ts

Remove extra `true &&`
2017-04-19 11:42:24 -07:00
Mohamed Hegazy
92d592c23d Update logic for shouldSkipSemanticCheck to allow for quering semantic errors for JS files with @ts-check 2017-04-18 16:19:28 -07:00
Arthur Ozga
cbbf6f8847 Merge branch 'master' into tripleEquals 2017-04-17 15:57:51 -07:00
Matt Bierner
6fd8653847 Fix globalPlugins TSServer Flag
**Bug**
globalPlugins flag not being threaded through IOSession object properly

**Fix**
Pass these flags to superclass in IOSession
2017-04-17 14:05:49 -07:00
Andy Hanson
c0d26e81f1 Merge branch 'master' into resolveJavaScriptModule 2017-04-14 10:15:30 -07:00
Ryan Cavanaugh
d31364c09c Load global plugins even if no local ones exist 2017-04-13 16:17:35 -07:00
Ryan Cavanaugh
19ddc1e94a Avoid loading duplicate local+global plugins 2017-04-13 16:17:34 -07:00
Ryan Cavanaugh
3cc379c3c0 Fix merge 2017-04-13 16:16:57 -07:00
Zhengbo Li
11ac006d60 Fix issue that randomly closes configured projects (#15080)
* Fix issue that randomly closes configured projects

* Correct the default project selection
2017-04-11 14:25:32 -07:00
Andy
1798e8f58b Merge pull request #15131 from Microsoft/boolean-trivia-spacing
boolean-trivia lint rule: Enforce space between comment and argument
2017-04-11 14:10:17 -07:00
Ryan Cavanaugh
34e3f5fe4a Merge pull request #15111 from RyanCavanaugh/typesMap2
Add tests, comments, and min.js exclusion
2017-04-11 11:08:14 -07:00
Andy Hanson
ed5eca2b7b boolean-trivia lint rule: Enforce space between comment and argument 2017-04-11 09:44:58 -07:00
Andy
c38d2a188a Merge pull request #15077 from Microsoft/null-trivia
boolean-trivia lint rule: Lint for null/undefined too
2017-04-11 08:43:41 -07:00
Ryan Cavanaugh
2b3c2b3448 Add tests, comments, and min.js exclusion 2017-04-10 16:00:15 -07:00
Ryan Cavanaugh
2ca90b7eb6 Merge pull request #14999 from RyanCavanaugh/typesMap
Add advanced safelist for exclusions
2017-04-10 10:20:50 -07:00
Ryan Cavanaugh
a874567d46 Remove tsserver command for loading different map 2017-04-07 16:58:32 -07:00
Ryan Cavanaugh
2b09e54baa Remove bad merge + unused cmd name 2017-04-07 16:58:21 -07:00
Ryan Cavanaugh
fc988a16ee Pass correct regex flag 2017-04-07 16:58:13 -07:00
Andy Hanson
7320891933 boolean-trivia lint rule: Lint for null/undefined too 2017-04-07 13:13:39 -07:00
Ryan Cavanaugh
47cf7caf6e Fix path escaping and slash normalization 2017-04-07 12:49:46 -07:00
Ryan Cavanaugh
439f1c77bd Fix regex for real this time 2017-04-06 13:19:22 -07:00
Ryan Cavanaugh
857b762edd Fixes 2017-04-06 12:50:22 -07:00
Ryan Cavanaugh
c164730a01 Add Kendo; fix Office 2017-04-06 12:39:25 -07:00
Andy Hanson
4a3b38b274 Refactor how we (internally) expose JS module resolution
Also, provide a useful error if resolution fails.
2017-04-05 15:33:01 -07:00