add diagnostics tool
git add function diagnostics pane and diagnostic macro