12 Commits

Author SHA1 Message Date
Mohamed Hegazy
224e7630ea use namespaces instead of modules in the codebase 2015-06-12 09:01:48 -07:00
steveluc
74e6b6eccc Add an exit message for the server. 2015-04-02 00:13:06 -07:00
steveluc
04320e415e Renames and comments as requested by feedback. 2015-03-09 01:23:03 -07:00
steveluc
360e47880e Addressed comments on code style and organization. 2015-03-07 23:19:58 -08:00
steveluc
9a45160ab6 Changed TypeScript server logging to use an environment variable TSS_LOG
as follows.  If TSS_LOG is not set, no logging will occur.  If TSS_LOG
is set to any value, logging will occur as before this change (log file
will be in directory of tsserver.js with name .logPID where PID is the
process id of the server process; log will contain the pre-change
messages).  If TSS_LOG is set to a string that has the form "-file
fileName", the log file will be in the tsserver.js directory with name
'fileName'.  If TSS_LOG is set to a string that has the form "-level
levelName", then the level of logging will be set to 'levelName'.
Currently the two levels are 'normal' and 'verbose'.  The TSS_LOG string
can contain zero, one or both of its options as in "-file LOG -level
verbose".  At the verbose level, the server will log every request,
response and event, and will also give elapsed time for message processing.
2015-03-07 17:13:52 -08:00
steveluc
fa504f6808 Update project structure after change. After each change a
timer is started.  If timer finishes before another change takes place,
project structure will be updated to reflect any changes in reference
comments or import statements.
2015-02-23 23:44:15 -08:00
steveluc
f9518b252b Added update of project structure on idle following change (if no
changes in last s seconds (where s is currently 1.5), then check project
structure to account for references that may have changed.  Turned this
off pending fix for getScriptFileNames returning only the root names.
Added event handler for deleted file, so that session can update error
messages upon deletion of a file from a project.
2015-02-22 23:27:45 -08:00
Mohamed Hegazy
f5c1bfbca7 renmae protodef.d.ts to protocol.d.ts and protocol.ts to session.ts 2015-02-15 18:49:22 -08:00
Mohamed Hegazy
89267bcd6f Move fileWatching logic to the server to allow for testing on non-node systems 2015-02-14 19:53:12 -08:00
Mohamed Hegazy
dfd8a0620d Always default to using JSON and do not format it 2015-02-14 15:50:06 -08:00
Mohamed Hegazy
a0b557e1e2 Recover from git corruption 2015-02-14 15:43:38 -08:00
Mohamed Hegazy
17f19b26a0 Initial checkin for server code 2015-02-11 19:42:44 -08:00