File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
integration/vscode/ada/src Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -427,6 +427,16 @@ export const DEFAULT_PROBLEM_MATCHER = '$ada';
427
427
* This class implements the TaskProvider interface with some configurable functionality.
428
428
*/
429
429
export class ConfigurableTaskProvider implements vscode . TaskProvider {
430
+ /**
431
+ * The list of provided tasks can be cached for efficiency, however some
432
+ * tasks depend on the cursor location in the active editor. With caching,
433
+ * the cursor location gets considered only the first time the tasks get
434
+ * computed. The cached tasks keep using that first location.
435
+ *
436
+ * So for now we disable caching of tasks until a solution is found.
437
+ */
438
+ private static DISABLE_CACHING = true ;
439
+
430
440
public static taskTypeAda : TaskType = 'ada' ;
431
441
public static taskTypeSpark : TaskType = 'spark' ;
432
442
tasks : vscode . Task [ ] | undefined = undefined ;
@@ -439,7 +449,7 @@ export class ConfigurableTaskProvider implements vscode.TaskProvider {
439
449
}
440
450
441
451
async provideTasks ( token ?: vscode . CancellationToken ) : Promise < vscode . Task [ ] > {
442
- if ( ! this . tasks ) {
452
+ if ( ! this . tasks || ConfigurableTaskProvider . DISABLE_CACHING ) {
443
453
this . tasks = [ ] ;
444
454
const cmdPrefix = await alire ( ) ;
445
455
You can’t perform that action at this time.
0 commit comments