Skip to content

Commit

Permalink
Ignore target framework from DotRush
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneySprings committed Jan 13, 2025
1 parent e12d4dd commit d6c2bec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/VSCode/controllers/configurationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export class ConfigurationController {
public static project: Project | undefined;
public static device: Device | undefined;
public static configuration: string | undefined;
public static framework: string | undefined;

public static onWindows: boolean = process.platform === 'win32';
public static onLinux: boolean = process.platform === 'linux';
Expand Down Expand Up @@ -90,9 +89,6 @@ export class ConfigurationController {
return ConfigurationController.getSetting<boolean>(res.configIdUninstallApplicationBeforeInstalling, true);
}
public static getTargetFramework(): string | undefined {
if (ConfigurationController.framework !== undefined)
return ConfigurationController.framework;

const framework = ConfigurationController.project?.frameworks.find(it => it.includes(ConfigurationController.device?.platform ?? 'undefined'));
if (framework === undefined && (ConfigurationController.isWindows() || ConfigurationController.isMacCatalyst()))
return ConfigurationController.project?.frameworks.find(it => !it.includes('-'));
Expand Down
1 change: 0 additions & 1 deletion src/VSCode/controllers/statusbarController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export class StatusBarController {
const exports = await vscode.extensions.getExtension(res.dotrushExtensionId)?.activate();
exports?.onActiveProjectChanged?.add((p: Project) => ConfigurationController.project = p);
exports?.onActiveConfigurationChanged?.add((c: string) => ConfigurationController.configuration = c);
exports?.onActiveFrameworkChanged?.add((f: string) => ConfigurationController.framework = f);

StatusBarController.createDeviceStatusBarItem(context);
StatusBarController.updateDeviceStatusBarItem();
Expand Down

0 comments on commit d6c2bec

Please sign in to comment.