{"action":"closed","issue":{"url":"https://api.github.com/repos/axmor/typecs/issues/21","labels_url":"https://api.github.com/repos/axmor/typecs/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/axmor/typecs/issues/21/comments","events_url":"https://api.github.com/repos/axmor/typecs/issues/21/events","html_url":"https://github.com/axmor/typecs/issues/21","id":56420606,"number":21,"title":"Implement incremental build (correctly) to avoid waiting for full rebuilds","user":{"login":"kosz78","id":3992195,"avatar_url":"https://avatars.githubusercontent.com/u/3992195?v=3","gravatar_id":"","url":"https://api.github.com/users/kosz78","html_url":"https://github.com/kosz78","followers_url":"https://api.github.com/users/kosz78/followers","following_url":"https://api.github.com/users/kosz78/following{/other_user}","gists_url":"https://api.github.com/users/kosz78/gists{/gist_id}","starred_url":"https://api.github.com/users/kosz78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosz78/subscriptions","organizations_url":"https://api.github.com/users/kosz78/orgs","repos_url":"https://api.github.com/users/kosz78/repos","events_url":"https://api.github.com/users/kosz78/events{/privacy}","received_events_url":"https://api.github.com/users/kosz78/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/axmor/typecs/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/axmor/typecs/labels/prio:high","name":"prio:high","color":"FFFFFF"},{"url":"https://api.github.com/repos/axmor/typecs/labels/resolved","name":"resolved","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-03T18:58:42Z","updated_at":"2015-02-03T18:58:43Z","closed_at":"2015-02-03T18:58:43Z","body":"**Symptoms:**\n\nAfter file is saved, \"Building workspace\" is started - for me it takes every time about 25 seconds even for very trivial files, for example file with only single line of content:\nvar x = 0;\nWithin that time content assist is also not available - this is really disturbing.\nThe time it takes to complete build process increases when number of source files increses.\n\n**Problem:**\n\nLooks like this plugin is not building incrementally even tough TypescriptBuilder extends IncrementalProjectBuilder, it recompiles all files in typescript source folder when only one typescript file is changed).\n\nI'm not an Eclipse plugin specialist (so i might be wrong), but for me it seems like TypescriptBuilder.build() is not using getDelta() method correctly for incremental build (it only avoids rebuilding if no typescript file has changed).  \n\nIt looks like with my setup (where source is a folder based on project settings) TypescriptBuilder.build() is still recompiling all files in project typescript source folder instead of single file that was changed because of the following line:\n\nIResource res = Strings.isNullOrEmpty(settings.getSource()) ? getProject() : getProject().getFolder(settings.getSource());\n(see https://bitbucket.org/axmor/typecs/src/e45d9da3862e8029aa683d3f22adf8e91a2207cc/src/com.axmor.eclipse.typescript.builder/src/com/axmor/eclipse/typescript/builder/builder/TypescriptBuilder.java?at=default#cl-74)\n\n...and lines that come after that line (as they don't process only changed files).\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/axmor/typecs/issue/21\n- Originally reported by: [atsu85](https://bitbucket.org/atsu85)\n- Originally created at: 2014-11-16T23:11:47.242\n"}}