Skip to content

Commit 4d55ec6

Browse files
Force strictLanguageService program initialization to fix integration with TS 5.4 (#71)
* force program initialization on strictLanguageService * bump package.json * update changelog
1 parent 10f37ee commit 4d55ec6

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
66
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.4.1] - 2024-04-09
9+
10+
### Fixed
11+
12+
- Fix typescript server crashing when using the plugin with Typescript 5.4
13+
14+
815
## [2.4.0] - 2024-03-07
916

1017
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-strict-plugin",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "Typescript tools that help with migration to the strict mode",
55
"author": "Allegro",
66
"contributors": [

src/plugin/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const init: ts.server.PluginModuleFactory = ({ typescript }) => {
1313

1414
const strictLanguageServiceHost = setupStrictLanguageServiceHostProxy(info);
1515
const strictLanguageService = typescript.createLanguageService(strictLanguageServiceHost);
16+
strictLanguageService.getProgram();
1617

1718
log(info, 'Plugin initialized');
1819

0 commit comments

Comments
 (0)