Skip to content

Commit f74f224

Browse files
committed
Fixed syntax checker update method
Signed-off-by: Seb Julliand <[email protected]>
1 parent 7a84ed2 commit f74f224

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@
15211521
},
15221522
"devDependencies": {
15231523
"@continuedev/core": "^1.0.13",
1524-
"@halcyontech/vscode-ibmi-types": "^2.15.0",
1524+
"@halcyontech/vscode-ibmi-types": "^2.17.0",
15251525
"@types/glob": "^7.1.3",
15261526
"@types/node": "18.x",
15271527
"@types/vscode": "^1.95.0",

src/connection/syntaxChecker/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import IBMi from "@halcyontech/vscode-ibmi-types/api/IBMi";
22
import { ComponentIdentification, ComponentState, IBMiComponent } from "@halcyontech/vscode-ibmi-types/api/components/component";
33
import { posix } from "path";
4-
import { getValidatorSource, VALIDATOR_NAME, WRAPPER_NAME } from "./checker";
4+
import { getInstance } from "../../base";
55
import { JobManager } from "../../config";
6-
import { getBase, getInstance } from "../../base";
76
import { JobInfo } from "../manager";
7+
import { getValidatorSource, VALIDATOR_NAME, WRAPPER_NAME } from "./checker";
88

99
interface SqlCheckError {
1010
CURSTMTLENGTH: number;
@@ -98,7 +98,7 @@ export class SQLStatementChecker implements IBMiComponent {
9898
update(connection: IBMi): ComponentState | Promise<ComponentState> {
9999
return connection.withTempDirectory(async tempDir => {
100100
const tempSourcePath = posix.join(tempDir, `sqlchecker.sql`);
101-
await connection.getConfig().writeStreamfileRaw(tempSourcePath, Buffer.from(this.getSource(connection), "utf-8"));
101+
await connection.getContent().writeStreamfileRaw(tempSourcePath, Buffer.from(this.getSource(connection), "utf-8"));
102102
const result = await connection.runCommand({
103103
command: `RUNSQLSTM SRCSTMF('${tempSourcePath}') COMMIT(*NONE) NAMING(*SYS)`,
104104
noLibList: true

0 commit comments

Comments
 (0)