Commit 5d7e63c1 authored by Vitaly Markov's avatar Vitaly Markov 👷
Browse files

chore: Format code

parent 76592030
Pipeline #245334226 failed with stage
in 3 minutes and 28 seconds
......@@ -23,7 +23,7 @@ export class CustomQueryItemModel extends ItemModel {
getTreeItem(): vscode.TreeItem {
if (this.project.error) {
return new ErrorItem(`${this.project.label}: Project not found`)
return new ErrorItem(`${this.project.label}: Project not found`);
}
const item = new vscode.TreeItem(
......
......@@ -218,20 +218,20 @@ export async function getAllGitlabProjects(): Promise<VsProject[]> {
const projectsWithUri = vscode.workspace.workspaceFolders.map(async workspaceFolder => {
const uri = workspaceFolder.uri.fsPath;
try {
const currentProject = await fetchCurrentProject(uri)
const currentProject = await fetchCurrentProject(uri);
return {
label: currentProject?.name ?? uri.split('/').pop(),
uri,
error: false
}
error: false,
};
} catch (e) {
const label = uri.split('/').pop()
const label = uri.split('/').pop();
return { label, uri, error: true };
}
});
const fetchedProjectsWithUri = await Promise.all(projectsWithUri);
return fetchedProjectsWithUri as VsProject[]
return fetchedProjectsWithUri as VsProject[];
// return fetchedProjectsWithUri.filter((p): p is VsProject => Boolean(p.label));
}
......
......@@ -43,7 +43,7 @@ export const mrVersion: RestMrVersion = {
export const project: VsProject = {
label: 'Project label',
uri: '/home/johndoe/workspace/project',
error: false
error: false,
};
export const customQuery = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment