We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f1287f commit ef2e03dCopy full SHA for ef2e03d
1 file changed
apps/vscode/src/host/hooks.ts
@@ -223,7 +223,10 @@ class EmbeddedStatementRangeProvider implements HostStatementRangeProvider {
223
224
// TODO: Remove this once `apps/vscode/package.json` bumps to `"positron": "^2026.03.0"` or higher.
225
// For now we avoid aggressive bumping due to https://github.com/posit-dev/positron/issues/11321.
226
- if (semver.lt(hooks.version, "2026.03.0")) {
+ // We can't use `semver.lt()` because calendar versioning isn't compatible with semver due to the
227
+ // leading `0` in `03`. Instead, we use lexicographic string comparison and rely on the year and
228
+ // month to be zero padded so sorting always works correctly.
229
+ if (hooks.version < "2026.03.0") {
230
throw err;
231
}
232
0 commit comments