Merge pull request #63 from SanjulaGanepola/refactor/remove-unready-component-check

Remove check for unready components
This commit is contained in:
Sanjula Ganepola
2024-11-21 21:18:39 -05:00
committed by GitHub

View File

@@ -1,6 +1,6 @@
import * as path from "path"; import * as path from "path";
import sanitize from "sanitize-filename"; import sanitize from "sanitize-filename";
import { commands, ExtensionContext, ShellExecution, TaskGroup, TaskPanelKind, TaskRevealKind, tasks, TaskScope, Uri, window, workspace, WorkspaceFolder } from "vscode"; import { ExtensionContext, ShellExecution, TaskGroup, TaskPanelKind, TaskRevealKind, tasks, TaskScope, Uri, window, workspace, WorkspaceFolder } from "vscode";
import { ComponentsManager } from "./componentsManager"; import { ComponentsManager } from "./componentsManager";
import { componentsTreeDataProvider, historyTreeDataProvider } from './extension'; import { componentsTreeDataProvider, historyTreeDataProvider } from './extension';
import { HistoryManager, HistoryStatus } from './historyManager'; import { HistoryManager, HistoryStatus } from './historyManager';
@@ -255,15 +255,15 @@ export class Act {
async runCommand(commandArgs: CommandArgs) { async runCommand(commandArgs: CommandArgs) {
// Check if required components are ready // Check if required components are ready
const unreadyComponents = await this.componentsManager.getUnreadyComponents(); // const unreadyComponents = await this.componentsManager.getUnreadyComponents();
if (unreadyComponents.length > 0) { // if (unreadyComponents.length > 0) {
window.showErrorMessage(`The following required components are not ready: ${unreadyComponents.map(component => component.name).join(', ')}`, 'Fix...').then(async value => { // window.showErrorMessage(`The following required components are not ready: ${unreadyComponents.map(component => component.name).join(', ')}`, 'Fix...').then(async value => {
if (value === 'Fix...') { // if (value === 'Fix...') {
await commands.executeCommand('components.focus'); // await commands.executeCommand('components.focus');
} // }
}); // });
return; // return;
} // }
// Map to workspace folder // Map to workspace folder
const workspaceFolder = workspace.getWorkspaceFolder(Uri.file(commandArgs.fsPath)); const workspaceFolder = workspace.getWorkspaceFolder(Uri.file(commandArgs.fsPath));