Add settings view

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-09-29 11:28:03 -04:00
parent f47327dd23
commit b30fc76de5
11 changed files with 178 additions and 10 deletions

View File

@@ -6,7 +6,8 @@ import * as yaml from "yaml";
export interface Workflow {
name: string,
uri: Uri,
content?: any,
fileContent?: string,
yaml?: any,
error?: string
}
@@ -65,7 +66,8 @@ export class WorkflowsManager {
workflows.push({
name: yamlContent.name || path.parse(workflowFileUri.fsPath).name,
uri: workflowFileUri,
content: yaml.parse(fileContent)
fileContent: fileContent,
yaml: yaml.parse(fileContent)
});
} catch (error) {
workflows.push({