Show workflow parse error in description
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@ export default class WorkflowTreeItem extends TreeItem implements GithubLocalAct
|
||||
(workflow.error ? `Error: ${workflow.error}` : ``);
|
||||
|
||||
if (workflow.error) {
|
||||
this.description = workflow.error;
|
||||
this.resourceUri = Uri.parse(`${WorkflowTreeItem.contextValue}:${workflow.name}?error=${workflow.error}`, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ export class WorkflowsManager {
|
||||
workflows.push({
|
||||
name: (yamlContent ? yamlContent.name : undefined) || path.parse(workflowFileUri.fsPath).name,
|
||||
uri: workflowFileUri,
|
||||
error: 'Failed to parse workflow file.'
|
||||
error: 'Failed to parse workflow'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user