| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014, the Dart project authors. | 2 * Copyright (c) 2014, the Dart project authors. |
| 3 * | 3 * |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| 5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
| 6 * | 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * | 8 * |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 * {@code completion.getSuggestions} | 187 * {@code completion.getSuggestions} |
| 188 * | 188 * |
| 189 * Request that completion suggestions for the given offset in the given file
be returned. | 189 * Request that completion suggestions for the given offset in the given file
be returned. |
| 190 * | 190 * |
| 191 * @param file The file containing the point at which suggestions are to be ma
de. | 191 * @param file The file containing the point at which suggestions are to be ma
de. |
| 192 * @param offset The offset within the file at which suggestions are to be mad
e. | 192 * @param offset The offset within the file at which suggestions are to be mad
e. |
| 193 */ | 193 */ |
| 194 public void completion_getSuggestions(String file, int offset, GetSuggestionsC
onsumer consumer); | 194 public void completion_getSuggestions(String file, int offset, GetSuggestionsC
onsumer consumer); |
| 195 | 195 |
| 196 /** | 196 /** |
| 197 * {@code debug.createContext} | |
| 198 * | |
| 199 * Create a debugging context for the executable file with the given path. The
context that is | |
| 200 * created will persist until debug.deleteContext is used to delete it. Client
s, therefore, are | |
| 201 * responsible for managing the lifetime of debugging contexts. | |
| 202 * | |
| 203 * @param contextRoot The path of the Dart or HTML file that will be launched. | |
| 204 */ | |
| 205 public void debug_createContext(String contextRoot, CreateContextConsumer cons
umer); | |
| 206 | |
| 207 /** | |
| 208 * {@code debug.deleteContext} | |
| 209 * | |
| 210 * Delete the debugging context with the given identifier. The context id is n
o longer valid after | |
| 211 * this command. The server is allowed to re-use ids when they are no longer v
alid. | |
| 212 * | |
| 213 * @param id The identifier of the debugging context that is to be deleted. | |
| 214 */ | |
| 215 public void debug_deleteContext(String id); | |
| 216 | |
| 217 /** | |
| 218 * {@code debug.mapUri} | |
| 219 * | |
| 220 * Map a URI from the debugging context to the file that it corresponds to, or
map a file to the | |
| 221 * URI that it corresponds to in the debugging context. | |
| 222 * | |
| 223 * Exactly one of the file and uri fields must be provided. | |
| 224 * | |
| 225 * @param id The identifier of the debugging context in which the URI is to be
mapped. | |
| 226 * @param file The path of the file to be mapped into a URI. | |
| 227 * @param uri The URI to be mapped into a file path. | |
| 228 */ | |
| 229 public void debug_mapUri(String id, String file, String uri, MapUriConsumer co
nsumer); | |
| 230 | |
| 231 /** | |
| 232 * {@code debug.setSubscriptions} | |
| 233 * | |
| 234 * Subscribe for services. All previous subscriptions are replaced by the give
n set of services. | |
| 235 * | |
| 236 * It is an error if any of the elements in the list are not valid services. I
f there is an error, | |
| 237 * then the current subscriptions will remain unchanged. | |
| 238 * | |
| 239 * @param subscriptions A list of the services being subscribed to. | |
| 240 */ | |
| 241 public void debug_setSubscriptions(List<String> subscriptions); | |
| 242 | |
| 243 /** | |
| 244 * {@code edit.getAssists} | 197 * {@code edit.getAssists} |
| 245 * | 198 * |
| 246 * Return the set of assists that are available at the given location. An assi
st is distinguished | 199 * Return the set of assists that are available at the given location. An assi
st is distinguished |
| 247 * from a refactoring primarily by the fact that it affects a single file and
does not require user | 200 * from a refactoring primarily by the fact that it affects a single file and
does not require user |
| 248 * input in order to be performed. | 201 * input in order to be performed. |
| 249 * | 202 * |
| 250 * @param file The file containing the code for which assists are being reques
ted. | 203 * @param file The file containing the code for which assists are being reques
ted. |
| 251 * @param offset The offset of the code for which assists are being requested. | 204 * @param offset The offset of the code for which assists are being requested. |
| 252 * @param length The length of the code for which assists are being requested. | 205 * @param length The length of the code for which assists are being requested. |
| 253 */ | 206 */ |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 * validated and no change be generated. | 241 * validated and no change be generated. |
| 289 * @param options Data used to provide values provided by the user. The struct
ure of the data is | 242 * @param options Data used to provide values provided by the user. The struct
ure of the data is |
| 290 * dependent on the kind of refactoring being performed. The data that
is expected is | 243 * dependent on the kind of refactoring being performed. The data that
is expected is |
| 291 * documented in the section titled Refactorings, labeled as “Options”
. This field can be | 244 * documented in the section titled Refactorings, labeled as “Options”
. This field can be |
| 292 * omitted if the refactoring does not require any options or if the v
alues of those | 245 * omitted if the refactoring does not require any options or if the v
alues of those |
| 293 * options are not known. | 246 * options are not known. |
| 294 */ | 247 */ |
| 295 public void edit_getRefactoring(String kind, String file, int offset, int leng
th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con
sumer); | 248 public void edit_getRefactoring(String kind, String file, int offset, int leng
th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con
sumer); |
| 296 | 249 |
| 297 /** | 250 /** |
| 251 * {@code execution.createContext} |
| 252 * |
| 253 * Create an execution context for the executable file with the given path. Th
e context that is |
| 254 * created will persist until execution.deleteContext is used to delete it. Cl
ients, therefore, are |
| 255 * responsible for managing the lifetime of execution contexts. |
| 256 * |
| 257 * @param contextRoot The path of the Dart or HTML file that will be launched. |
| 258 */ |
| 259 public void execution_createContext(String contextRoot, CreateContextConsumer
consumer); |
| 260 |
| 261 /** |
| 262 * {@code execution.deleteContext} |
| 263 * |
| 264 * Delete the execution context with the given identifier. The context id is n
o longer valid after |
| 265 * this command. The server is allowed to re-use ids when they are no longer v
alid. |
| 266 * |
| 267 * @param id The identifier of the execution context that is to be deleted. |
| 268 */ |
| 269 public void execution_deleteContext(ExecutionContextId id); |
| 270 |
| 271 /** |
| 272 * {@code execution.mapUri} |
| 273 * |
| 274 * Map a URI from the execution context to the file that it corresponds to, or
map a file to the |
| 275 * URI that it corresponds to in the execution context. |
| 276 * |
| 277 * Exactly one of the file and uri fields must be provided. |
| 278 * |
| 279 * @param id The identifier of the execution context in which the URI is to be
mapped. |
| 280 * @param file The path of the file to be mapped into a URI. |
| 281 * @param uri The URI to be mapped into a file path. |
| 282 */ |
| 283 public void execution_mapUri(ExecutionContextId id, String file, String uri, M
apUriConsumer consumer); |
| 284 |
| 285 /** |
| 286 * {@code execution.setSubscriptions} |
| 287 * |
| 288 * Subscribe for services. All previous subscriptions are replaced by the give
n set of services. |
| 289 * |
| 290 * It is an error if any of the elements in the list are not valid services. I
f there is an error, |
| 291 * then the current subscriptions will remain unchanged. |
| 292 * |
| 293 * @param subscriptions A list of the services being subscribed to. |
| 294 */ |
| 295 public void execution_setSubscriptions(List<String> subscriptions); |
| 296 |
| 297 /** |
| 298 * Remove the given listener from the list of listeners that will receive noti
fication when new | 298 * Remove the given listener from the list of listeners that will receive noti
fication when new |
| 299 * analysis results become available. | 299 * analysis results become available. |
| 300 * | 300 * |
| 301 * @param listener the listener to be removed | 301 * @param listener the listener to be removed |
| 302 */ | 302 */ |
| 303 public void removeAnalysisServerListener(AnalysisServerListener listener); | 303 public void removeAnalysisServerListener(AnalysisServerListener listener); |
| 304 | 304 |
| 305 /** | 305 /** |
| 306 * {@code search.findElementReferences} | 306 * {@code search.findElementReferences} |
| 307 * | 307 * |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 | 399 |
| 400 /** | 400 /** |
| 401 * Start the analysis server. | 401 * Start the analysis server. |
| 402 * | 402 * |
| 403 * @param millisToRestart the number of milliseconds to wait for an unresponsi
ve server before | 403 * @param millisToRestart the number of milliseconds to wait for an unresponsi
ve server before |
| 404 * restarting it, or zero if the server should not be restarted. | 404 * restarting it, or zero if the server should not be restarted. |
| 405 */ | 405 */ |
| 406 public void start(long millisToRestart) throws Exception; | 406 public void start(long millisToRestart) throws Exception; |
| 407 | 407 |
| 408 } | 408 } |
| OLD | NEW |