diff --git a/CHANGELOG.md b/CHANGELOG.md index 36cfc01..1434c14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.4.1] - 2024-04-09 + +### Fixed + +- Fix typescript server crashing when using the plugin with Typescript 5.4 + + ## [2.4.0] - 2024-03-07 ### Added diff --git a/package.json b/package.json index 83a28f1..6caca72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typescript-strict-plugin", - "version": "2.4.0", + "version": "2.4.1", "description": "Typescript tools that help with migration to the strict mode", "author": "Allegro", "contributors": [ diff --git a/src/plugin/index.ts b/src/plugin/index.ts index 4013458..1e5875d 100644 --- a/src/plugin/index.ts +++ b/src/plugin/index.ts @@ -13,6 +13,7 @@ const init: ts.server.PluginModuleFactory = ({ typescript }) => { const strictLanguageServiceHost = setupStrictLanguageServiceHostProxy(info); const strictLanguageService = typescript.createLanguageService(strictLanguageServiceHost); + strictLanguageService.getProgram(); log(info, 'Plugin initialized');