Skip to content

Commit

Permalink
Merge pull request #27 from codesphere-cloud/main
Browse files Browse the repository at this point in the history
test treeView4
  • Loading branch information
Datata1 authored May 23, 2024
2 parents fd516a4 + b1b66a3 commit 48bbd97
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,38 @@ export function activate(context: vscode.ExtensionContext) {
})
);


context.subscriptions.push(
vscode.commands.registerCommand('codesphere.backToMenu', async () => {
vscode.commands.executeCommand('setContext', 'codesphere.currentWorkspace', "");
context.subscriptions.push(
vscode.window.registerWebviewViewProvider(
"codesphere-noworkspace",
noCurrentWorkspaceProvider
));
})
);

context.subscriptions.push(
vscode.commands.registerCommand('codesphere.openOverView', async () => {
vscode.commands.executeCommand('setContext', 'codesphere.currentWorkspace', workspaceId);

if (context.globalState.get("codesphere.currentWorkspace") === workspaceId) {
const fileTreeProvider = new FileTreeProvider(rootPath);
context.subscriptions.push(
vscode.window.createTreeView(
'workspace-filetree',
{ treeDataProvider: fileTreeProvider }
)
);
} else {
context.subscriptions.push(
vscode.window.registerWebviewViewProvider(
"codesphere-noworkspace",
noCurrentWorkspaceProvider
));
}
})
);
};


Expand Down
16 changes: 16 additions & 0 deletions webviews/components/Overview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
let testStageSuccess = '';
let runStageSate = false; // Zustand für die Animation
let runStageSuccess = '';
let runStageStatus;
let testStageStatus;
let prepareStageStatus;
// function to wakr up on-demand workspaces on Codesphere
function activateWorkspace (workspaceId, teamDatacenterId){
Expand Down Expand Up @@ -240,6 +243,19 @@
runStageSuccess = message.value.result;
}
break;
case 'ciPipelineStatus':
prepareStageSuccess = message.value.prepare;
if (prepareStageSuccess === 'running') {
prepareStageSate = true;
}
testStageSuccess = message.value.test;
if (testStageSuccess === 'running') {
testStageSate = true;
}
runStageSuccess = message.value.run;
if (runStageSuccess === 'running') {
runStageSate = true;
}
}
});
});
Expand Down

0 comments on commit 48bbd97

Please sign in to comment.