Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
franneck94 committed Jan 4, 2024
1 parent 4d0d050 commit d6453b0
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/provider/settingsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ import * as vscode from 'vscode';

import { EXTENSION_NAME, SETTINGS_OUTPUT_FILENAME } from '../params/params';
import {
Architectures,
CompilerSystems,
OperatingSystems,
Architectures,
CompilerSystems,
OperatingSystems,
} from '../types/enums';
import {
JsonPropertiesConfig,
JsonPropertiesConfigEntry,
JsonSettings,
JsonPropertiesConfig,
JsonPropertiesConfigEntry,
JsonSettings,
} from '../types/interfaces';
import {
foldersInDir,
localSettingExist,
pathExists,
readJsonFile,
replaceBackslashes,
writeJsonFile,
foldersInDir,
localSettingExist,
pathExists,
readJsonFile,
replaceBackslashes,
writeJsonFile,
} from '../utils/fileUtils';
import {
getCompilerArchitecture,
getOperatingSystem,
getCompilerArchitecture,
getOperatingSystem,
} from '../utils/systemUtils';
import { FileProvider } from './fileProvider';

Expand Down Expand Up @@ -302,7 +302,7 @@ export class SettingsProvider extends FileProvider {
this.msvcBatchPath = '';
this.update('msvcBatchPath', this.msvcBatchPath);
}
} else if (this.operatingSystem !== OperatingSystems.windows) {
} else if (this.operatingSystem !== OperatingSystems.windows && this.msvcBatchPath !== '') {
this.msvcBatchPath = '';
this.update('msvcBatchPath', this.msvcBatchPath);
}
Expand Down

0 comments on commit d6453b0

Please sign in to comment.