Skip to content

Commit 7adb0a2

Browse files
committed
Merge branch 'main' into fix/makefile_rules_override
2 parents ecf6481 + affb52d commit 7adb0a2

File tree

6 files changed

+2
-274
lines changed

6 files changed

+2
-274
lines changed

cli/src/cli.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export let cliSettings = {
1212
userBranch: ``,
1313
makeFileNoChildren: false,
1414
assumeSourcesArePrograms: false,
15-
mcp: -1,
1615
};
1716

1817
export function infoOut(message: string) {

cli/src/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { allExtensions, referencesFileName } from "./extensions";
1212
import { getBranchLibraryName } from "./builders/environment";
1313
import { renameFiles, replaceIncludes } from './utils';
1414
import { ReadFileSystem } from './readFileSystem';
15-
import { createMcpServer } from './mcp/web';
1615

1716
const isCli = process.argv.length >= 2 && (process.argv[1].endsWith(`so`) || process.argv[1].endsWith(`index.js`));
1817

@@ -79,15 +78,6 @@ async function main() {
7978
cliSettings.fileList = true;
8079
break;
8180

82-
case '--mcp':
83-
cliSettings.mcp = Number(parms[i + 1]);
84-
if (isNaN(cliSettings.mcp) || cliSettings.mcp < 0) {
85-
error(`Invalid MCP port number: ${parms[i + 1]}`);
86-
process.exit(1);
87-
}
88-
i++;
89-
break;
90-
9181
case `-h`:
9282
case `--help`:
9383
console.log(``);
@@ -247,13 +237,6 @@ async function main() {
247237
writeFileSync(path.join(cwd, `sourceorbit.json`), JSON.stringify(outJson, null, 2));
248238
break;
249239
}
250-
251-
if (cliSettings.mcp > 0) {
252-
const server = createMcpServer(targets);
253-
server.listen(cliSettings.mcp);
254-
255-
infoOut(`MCP SSE server started on port ${cliSettings.mcp}.`);
256-
}
257240
}
258241

259242
/**

cli/src/languages/rpgle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function setupParser(targets: Targets): Parser {
5353
}
5454

5555
} else {
56-
const content = readFileSync(file, { encoding: `utf-8` });
56+
const content = await targets.rfs.readFile(file);
5757
includeFileCache[file] = content;
5858

5959
return {

cli/src/mcp/instance.ts

Lines changed: 0 additions & 169 deletions
This file was deleted.

cli/src/mcp/web.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

cli/src/targets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ export class Targets {
10461046

10471047
const includeDetail = path.parse(include.toPath);
10481048

1049-
if (includeDetail.ext !== `.rpgleinc`) {
1049+
if (includeDetail.ext.toLowerCase() !== `.rpgleinc`) {
10501050
const possibleName = includeDetail.name.toLowerCase().endsWith(`.pgm`) ? includeDetail.name.substring(0, includeDetail.name.length - 4) : includeDetail.name;
10511051

10521052
if (this.suggestions.renames) {

0 commit comments

Comments
 (0)