Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions packages/vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import { PanelLocation } from "./common/State";
import { DeviceRotationDirection, IDEPanelMoveTarget } from "./common/Project";
import { AdminRestrictedFunctionalityError, PaywalledFunctionalityError } from "./common/Errors";
import { registerRadonAI } from "./ai/mcp/RadonMcpController";
import { MaestroCodeLensProvider } from "./providers/MaestroCodeLensProvider";
import { removeLicense } from "./utilities/license";

const CHAT_ONBOARDING_COMPLETED = "chat_onboarding_completed";
Expand Down Expand Up @@ -208,25 +207,6 @@ export async function activate(context: ExtensionContext) {
}
}

async function startMaestroTest(fileNames: string[]) {
const ide = IDE.getInstanceIfExists();
if (ide) {
ide.project.startMaestroTest(fileNames);
} else {
window.showWarningMessage(
"Wait for the app to load before running Maestro tests.",
"Dismiss"
);
}
}

async function stopMaestroTest() {
const ide = IDE.getInstanceIfExists();
if (ide) {
ide.project.stopMaestroTest();
}
}

function removeLicenseWithConfirmation() {
window
.showWarningMessage(
Expand Down Expand Up @@ -286,8 +266,6 @@ export async function activate(context: ExtensionContext) {
context.subscriptions.push(
commands.registerCommand("RNIDE.showInlinePreview", showInlinePreview)
);
context.subscriptions.push(commands.registerCommand("RNIDE.startMaestroTest", startMaestroTest));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wasn't declared in package.json as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, apparently.

context.subscriptions.push(commands.registerCommand("RNIDE.stopMaestroTest", stopMaestroTest));

context.subscriptions.push(commands.registerCommand("RNIDE.captureReplay", captureReplay));
context.subscriptions.push(commands.registerCommand("RNIDE.toggleRecording", toggleRecording));
Expand Down Expand Up @@ -392,13 +370,6 @@ export async function activate(context: ExtensionContext) {
)
);

context.subscriptions.push(
languages.registerCodeLensProvider(
[{ scheme: "file", language: "yaml" }],
new MaestroCodeLensProvider()
)
);

context.subscriptions.push(
workspace.onDidChangeConfiguration((event: ConfigurationChangeEvent) => {
if (event.affectsConfiguration("RadonIDE.userInterface.panelLocation")) {
Expand Down
26 changes: 0 additions & 26 deletions packages/vscode-extension/src/webview/components/ToolsDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { ProjectInterface } from "../../common/Project";
import Tooltip from "./shared/Tooltip";
import { useSelectedDeviceSessionState } from "../hooks/selectedSession";
import { ToolsState, ToolState } from "../../common/State";
import { useStore } from "../providers/storeProvider";

interface DevToolCheckboxProps {
label: string;
Expand Down Expand Up @@ -95,12 +94,7 @@ function ToolsDropdown({ children, disabled }: { children: React.ReactNode; disa
const selectedDeviceSessionStatus = use$(selectedDeviceSessionState.status);

const { project } = useProject();
const store$ = useStore();
const applicationDependencies = use$(
store$.projectState.applicationContext.applicationDependencies
);

const isMaestroInstalled = applicationDependencies.maestro?.status === "installed";
const isRunning = selectedDeviceSessionStatus === "running";

const profilingCPUState = use$(selectedDeviceSessionState?.applicationSession.profilingCPUState);
Expand Down Expand Up @@ -132,26 +126,6 @@ function ToolsDropdown({ children, disabled }: { children: React.ReactNode; disa
data-testid="radon-tools-dropdown-menu"
onCloseAutoFocus={(e) => e.preventDefault()}>
<h4 className="device-settings-heading">Tools</h4>
{isMaestroInstalled && (
<>
<Label>Testing</Label>
<DropdownMenu.Item
className="dropdown-menu-item"
data-testid="tools-dropdown-menu-maestro-test-button"
onSelect={() => {
const fileDialogPromise = project.openSelectMaestroFileDialog();
fileDialogPromise.then((fileNames) => {
if (fileNames) {
project.startMaestroTest(fileNames);
}
});
}}>
<span className="codicon codicon-github-action" />
Start Maestro test(s)...
</DropdownMenu.Item>
</>
)}

<Label>Utilities</Label>
<DropdownMenu.Item
className="dropdown-menu-item"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ function DiagnosticView() {
<Label>Other</Label>
<DiagnosticItem label="Expo Router" name="expoRouter" info={dependencies.expoRouter} />
<DiagnosticItem label="Storybook" name="storybook" info={dependencies.storybook} />
<DiagnosticItem label="Maestro" name="maestro" info={dependencies.maestro} />
<DiagnosticItem label="eas-cli" name="easCli" info={dependencies.easCli} />
<div className="diagnostic-section-margin" />

Expand Down
Loading