From 656ddc34e3b366bcbba709d60740a5d2353e47da Mon Sep 17 00:00:00 2001 From: Mike Perri Date: Fri, 24 Mar 2017 18:37:31 -0400 Subject: [PATCH 1/2] Enable diagnostics for TypeScript and update README --- README.md | 8 +++++--- python/ycm/youcompleteme.py | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 997bae45..c02a4c8d 100644 --- a/README.md +++ b/README.md @@ -729,6 +729,7 @@ Quick Feature Summary ### TypeScript * Semantic auto-completion +* Real-time diagnostic display * Renaming symbols (`RefactorRename `) * Go to definition, find references (`GoToDefinition`, `GoToReferences`) * Semantic type information for identifiers (`GetType`) @@ -1131,9 +1132,10 @@ Completer API. ### Diagnostic Display YCM will display diagnostic notifications for C-family and C# languages if you -compiled YCM with Clang and Omnisharp support, respectively. Since YCM continuously -recompiles your file as you type, you'll get notified of errors and warnings -in your file as fast as possible. +compiled YCM with Clang and Omnisharp support, respectively. Diagnostics will +also be displayed for TypeScript. Since YCM continuously recompiles your file as +you type, you'll get notified of errors and warnings in your file as fast as +possible. Here are the various pieces of the diagnostic UI: diff --git a/python/ycm/youcompleteme.py b/python/ycm/youcompleteme.py index 4027f477..05be837b 100644 --- a/python/ycm/youcompleteme.py +++ b/python/ycm/youcompleteme.py @@ -100,7 +100,8 @@ CORE_OUTDATED_MESSAGE = ( 'YCM core library too old; PLEASE RECOMPILE by running the install.py ' 'script. See the documentation for more details.' ) SERVER_IDLE_SUICIDE_SECONDS = 10800 # 3 hours -DIAGNOSTIC_UI_FILETYPES = set( [ 'cpp', 'cs', 'c', 'objc', 'objcpp' ] ) +DIAGNOSTIC_UI_FILETYPES = set( [ 'cpp', 'cs', 'c', 'objc', 'objcpp', + 'typescript' ] ) CLIENT_LOGFILE_FORMAT = 'ycm_' SERVER_LOGFILE_FORMAT = 'ycmd_{port}_{std}_' From 39dea3c3b44c8d18ca6013d04c04e35e387e5310 Mon Sep 17 00:00:00 2001 From: Mike Perri Date: Fri, 24 Mar 2017 18:45:09 -0400 Subject: [PATCH 2/2] Update ycmd version --- third_party/ycmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/ycmd b/third_party/ycmd index fc7620a8..13da3d47 160000 --- a/third_party/ycmd +++ b/third_party/ycmd @@ -1 +1 @@ -Subproject commit fc7620a8a8b3880726c81b6b4e1789d8d25e38b6 +Subproject commit 13da3d47255d559308b946242e508d3531dabda5