Skip to content

Commit

Permalink
Fixes #328
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano committed May 13, 2024
1 parent b1b82d6 commit 825b885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## [2.5.1] - 2024-XX-XX
- Fix issue [#328](https://github.com/intersystems/language-server/issues/328): Fix namespace detection for Diagnostic computation
- Parser changes:
- DP-430950: Support new `Requires` Query keyword

Expand Down
2 changes: 1 addition & 1 deletion server/src/providers/diagnostic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ export async function onDiagnostics(params: DocumentDiagnosticParams): Promise<D
// Ran off the end of the implementation
(parsed[i][j].l == ld.cls_langindex) ||
// Ran off the end of the method
(/^objectscript(-int)?$/.test(doc.languageId) && parsed[i][j].l == ld.cos_langindex && parsed[i][j].s == ld.cos_label_attrindex) ||
(/^objectscript(-int)?$/.test(doc.languageId) && j == 0 && parsed[i][j].l == ld.cos_langindex && parsed[i][j].s == ld.cos_label_attrindex) ||
// Exited the script
(doc.languageId == "objectscript-csp" && parsed[i][j].l == ld.html_langindex)
) {
Expand Down

0 comments on commit 825b885

Please sign in to comment.