Skip to content

Commit

Permalink
Improve syntax checker descriptions and enhance null safety in compon…
Browse files Browse the repository at this point in the history
…ent retrieval

Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Dec 20, 2024
1 parent 1ca97a5 commit 5185272
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
},
"vscode-db2i.syntax.checkOnEdit": {
"type": "boolean",
"description": "Whether the syntax checker should run automatically",
"description": "Whether the syntax checker should run automatically when the document is edited",
"default": true
},
"vscode-db2i.syntax.checkInterval": {
Expand Down
2 changes: 1 addition & 1 deletion src/connection/syntaxChecker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class SQLStatementChecker implements IBMiComponent {
private library = "";

static get(): SQLStatementChecker|undefined {
return getInstance().getConnection().getComponent<SQLStatementChecker>(SQLStatementChecker.ID);
return getInstance()?.getConnection()?.getComponent<SQLStatementChecker>(SQLStatementChecker.ID);
}

reset() {
Expand Down
2 changes: 1 addition & 1 deletion src/language/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function languageInit() {
signatureProvider,
hoverProvider,
openProvider,
problemProvider,
...problemProvider,
checkDocumentDefintion,
sqlLanguageStatus
);
Expand Down

0 comments on commit 5185272

Please sign in to comment.