Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java

Issue 833903005: Analysis server format service wiring (and protocol doc update). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/doc/api.html » ('j') | pkg/analysis_server/lib/src/edit/edit_domain.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
===================================================================
--- editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java (revision 42828)
+++ editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java (working copy)
@@ -233,6 +233,10 @@
* close to matching the original as possible, but whitespace at the beginning or end of the
* selected region will be ignored.
*
+ * If a request is made for a file which does not exist, or which is not currently subject to
+ * analysis (e.g. because it is not associated with any analysis root specified to
+ * analysis.setAnalysisRoots), an error of type FORMAT_INVALID_FILE will be generated.
+ *
* @param file The file containing the code to be formatted.
* @param selectionOffset The offset of the current selection in the file.
* @param selectionLength The length of the current selection in the file.
« no previous file with comments | « no previous file | pkg/analysis_server/doc/api.html » ('j') | pkg/analysis_server/lib/src/edit/edit_domain.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698