Skip to content

Commit

Permalink
Fixes #268
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano committed Mar 16, 2023
1 parent 7b930ff commit 6b589b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [2.3.2] - 2023-XX-XX
- Fix issue [#265](https://github.com/intersystems/language-server/issues/265): Support HTML spans in intellisense from class descriptions
- Fix issue [#266](https://github.com/intersystems/language-server/issues/266): Preserve empty HTML spans in intellisense from class descriptions
- Fix issue [#268](https://github.com/intersystems/language-server/issues/268): Exempt %SYSTEM classes from existence checking after namespace switch

## [2.3.1] - 2023-03-02
- Fix issue [#77](https://github.com/intersystems/language-server/issues/77): Incorrect 'Class/Routine/Include file does not exist' Diagnostics after namespace switch
Expand Down
3 changes: 1 addition & 2 deletions server/src/utils/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,9 @@ export async function computeDiagnostics(doc: TextDocument) {
addRangeToMapVal(classes,normalizedname,wordrange);
}
}
} else if (currentNs != "" && settings.diagnostics.classes) {
} else if (currentNs != "" && settings.diagnostics.classes && !word.startsWith("%SYSTEM.")) {
if (!word.includes(".") && !word.startsWith("%")) {
// Using a short class name when you may be in another namespace is bad
// TODO: report warning diagnostic?
diagnostics.push({
severity: DiagnosticSeverity.Error,
range: wordrange,
Expand Down

0 comments on commit 6b589b9

Please sign in to comment.