Ryan Cavanaugh
0e07d775a1
You have to do this everywhere now!
2018-04-11 16:59:53 -07:00
Ryan Cavanaugh
df95de3231
Merge branch 'master' into referencesDogfood_1
2018-04-11 16:17:38 -07:00
Ryan Cavanaugh
501d7be7ba
Add explicit file lists to server tsconfig files
2018-04-11 15:39:12 -07:00
Ryan Cavanaugh
21d16693da
Explicitly list server source files in their current emitted order
2018-04-11 15:38:27 -07:00
Ryan Cavanaugh
3ca1d2d7e3
Remove all reference comments from server/
2018-04-11 15:38:26 -07:00
Andy
4b706fc479
Add 'disableSuggestions' to UserPreferences ( #23283 )
...
* Add 'disableSuggestions' to UserPreferences
* Make mergeMapLikes return a new object
* Avoid additional clone
* mergeMapLikes -> object spread
2018-04-10 11:53:24 -07:00
Andy
556a8010b9
Fix bug: ensure 'reportsUnnecessary' is actually sent by tsserver ( #23293 )
2018-04-10 10:15:15 -07:00
Andy
542184a05a
Rename infoCheck to suggestionCheck ( #23286 )
2018-04-09 14:09:07 -07:00
Sheetal Nandi
7a0a1f6a28
Do not watch script infos that are part of global typings location
2018-04-06 15:52:39 -07:00
Sheetal Nandi
c9f39951b6
Do not send project update in background if there was no ensureUpdate pending on the project structure
2018-04-06 14:58:13 -07:00
Sheetal Nandi
62c6fe2ccc
There is no need to ensure project structure when tryiong to get inferred project
...
The project operations will validate if its valid anyways
2018-04-06 14:22:08 -07:00
Sheetal Nandi
e304178c65
Add time stamp into the ti log.
2018-04-06 14:22:04 -07:00
Andy
24842b4002
When --noUnusedLocals/--noUnusedParameters is disabled, add suggestions instead of errors ( #22361 )
...
* When --noUnusedLocals/--noUnusedParameters is disabled, add suggestions instead of errors
* Improve performance: do not add unused suggestion diagnostics unless asking for a suggestion
* Add "unused" flag to diagnostics
* Code review
* reportsUnused -> reportsUnnecessary
* Fix test
2018-04-05 12:33:00 -07:00
Andy
4f80fbddc2
Fix typo and use array helper ( #23169 )
...
* Fix typo and use array helper
* Update API baselines
2018-04-05 10:17:01 -07:00
Andrew Casey
855171bde5
Introduce a --syntaxOnly server mode
...
1. Disable the LS in all projects
2. Don't create Program objects
3. Ignore config files
2018-04-04 16:44:15 -07:00
uniqueiniquity
36cdb52b17
Handle double quotes for every argument
2018-04-02 16:41:29 -07:00
uniqueiniquity
8f503fb483
Close over getLogPath
2018-04-02 15:38:04 -07:00
uniqueiniquity
e625a6a9b4
Use object destructuring instead of tuple
2018-04-02 15:12:26 -07:00
uniqueiniquity
ffbb046cd4
Consume extra parts of file path
2018-04-02 13:58:31 -07:00
uniqueiniquity
361be11a04
Remove trailing whitespace
2018-04-02 12:32:15 -07:00
uniqueiniquity
0238991cd3
Ensure TSS_LOG handles paths with spaces
2018-04-02 11:04:52 -07:00
Andy
3e32e15895
Add 'fixAllDescription' property to CodeFixAction ( #22616 )
...
* Add 'fixAllDescription' property to CodeFixAction
* Code review
* Add to protocol
* Make fixAllDescription be just a string
2018-03-27 18:21:21 -07:00
Andrew Casey
517cf6aa89
Add support for suppressing project events
...
VS doesn't consume (e.g.) `syntaxDiag` events, so there's no reason to
do the work to compute their payloads.
2018-03-22 16:44:09 -07:00
Andy
67670d8726
Revert change to canUseEvents in IoSessionOptions ( #22791 )
2018-03-22 10:29:32 -07:00
Andrew Casey
564183f9ed
Fix lint errors
2018-03-21 15:18:06 -07:00
Andrew Casey
9352a8bc11
Delete IoSessionOptions
...
Many of the operations were unused because the values were being
accessed directly from the enclosing scope.
2018-03-21 14:56:06 -07:00
Andy
cc3921323c
Support services settings ( #22236 )
...
* Support services settings
* Code review
* More review
* Use different names for Options and GetCompletionsAtPositionOptions (todo: come up with better names)
* More renames
* More renaming
* Support quote style in importFixes
* Add `importModuleSpecifierPreference` option
* Support quote style for `throw new Error('Method not implemented.')` (#18169 )
* options -> preferences
2018-03-20 13:07:59 -07:00
Sheetal Nandi
e48ed3f9c2
Do not close the file watches just to create new ones in the type installer
...
Fixes #22581
2018-03-15 10:45:09 -07:00
Mohamed Hegazy
c335c3803c
Fix #22133 : Expose getOutliningSpans on the server protocol ( #22400 )
...
* Fix #22133 : Expose getOutliningSpans on the server protocol
* Remove debugger statement from test
2018-03-09 08:50:47 -08:00
Mohamed Hegazy
1fc3aebc20
Port changes from #22172 , provide a callback to fs.close ( #22405 )
2018-03-09 08:30:09 -08:00
Sheetal Nandi
17b10dc2a9
Merge pull request #21243 from Microsoft/watchOptions
...
Different watchFile and watchDirectory options through environment variable
2018-03-08 12:44:53 -08:00
Nathan Shively-Sanders
a81f264d70
Call process.stdout._handle.setBlocking(true) ( #22389 )
...
* Call process.stdout._handle.setBlocking(true)
This prevents output from being truncated when the compiler can output
errors to stdout faster than it can receive them. This may slow down
performance for compilations for many errors, but those were already
quite slow.
* Disable tslint no-unnnecessary-type-assertion-2
It is wrong. It *is* necessary.
2018-03-08 12:38:30 -08:00
Josh Goldberg
7826b38426
Apply 'no-unnecessary-initializer' lint rule ( #22014 )
...
* Apply 'no-unnecessary-initializer' lint rule
Forbids `let`/`const` statements to be initialized to `undefined`, since that's the initial value by default anyway.
The auto-fixer also happened to remove two unnecessary `as number` casts in `src/harness/parallel/worker.ts`.
For historical data: to run with `--fix`, I modified the line in `Jakefile.js` that declared the `cmd` for running TSLint.
* Moved worker.ts type assertions to parameters
2018-03-06 07:30:40 -08:00
Sheetal Nandi
ae8637c99f
Merge branch 'master' into watchOptions
2018-03-03 10:51:59 -08:00
Sheetal Nandi
cbef5c29b5
Merge pull request #22151 from Microsoft/svcOfPendingReloadFile
...
Reload the text from file if there is pending reload of the script info before determining to use SVC
2018-03-02 19:11:11 -08:00
Andy
a564912d9a
Apply 'no-unnecessary-qualifier' lint rule ( #22009 )
2018-03-01 14:20:18 -08:00
Andy
03ba8a0852
mergeMapLikes: Improve type ( #22237 )
...
* mergeMapLikes: Improve type
* Make source Partial<T>
* T extends object
* Update api baseline
2018-03-01 07:35:42 -08:00
Sheetal Nandi
005a50f587
Merge pull request #22136 from Microsoft/moduleResolution
...
Use cache for the non-relative module resolution and enhance the watches for failed lookup locations
2018-02-28 14:39:22 -08:00
Andy
fa4619c5c1
Add 'info' diagnostics ( #22204 )
...
* Add 'info' diagnostics
* Code review
2018-02-28 11:16:32 -08:00
Sheetal Nandi
f1c879d090
Merge branch 'master' into watchOptions
2018-02-23 13:16:46 -08:00
Sheetal Nandi
08ab6eb42d
Reload the text from file if there is pending reload of the script info before determining to use SVC
...
Fixes #20806
2018-02-23 12:10:24 -08:00
Sheetal Nandi
fdb5e95f0a
Use the module cache to resolve non relative module name as well
2018-02-22 15:44:13 -08:00
Andy
b90a56dc7a
Mark getOccurrences as deprecated in protocol.ts like it is in services/types.ts ( #22067 )
2018-02-22 13:21:40 -08:00
Sheetal Nandi
0b248d5e29
Trace should write messages to the logger
2018-02-22 10:47:19 -08:00
Sheetal Nandi
9a160f2079
Merge branch 'master' into watchOptions
2018-02-21 10:44:12 -08:00
Andy
b3edc8f9f4
Apply 'no-unnecessary-type-assertion' lint rule ( #22005 )
...
* Apply 'no-unnecessary-type-assertion' lint rule
* Fix type error
* Fix tsconfig.json
* Add --format back
2018-02-16 18:38:00 -08:00
Sheetal Nandi
ecddf8468f
Fix the assert for undefined leaf in LineNode ( #21924 )
...
Fixes #21818
2018-02-16 16:37:32 -08:00
Nathan Shively-Sanders
7e8dab681a
typingsInstaller:Remove triple-slash references ( #21982 )
...
Replace them with an explicit list of files in tsconfig. I got this list
by adding --listFiles to the jake-generated command.
2018-02-16 14:00:10 -08:00
Andrew Casey
5656f35b6a
Introduce an organizeImports command
...
In phase 1, it coalesces imports from the same module and sorts the
results, but does not remove unused imports.
Some trivia is lost during coalescing, but none should be duplicated.
2018-02-16 10:51:38 -08:00
Sheetal Nandi
d9d98cf11a
Handle the delayed updates due to user action correctly when ensuring the project structure is upto date
...
Fixes #20629
2018-02-12 16:53:47 -08:00