Skip to content

Commit

Permalink
Force strictLanguageService program initialization to fix integration…
Browse files Browse the repository at this point in the history
… with TS 5.4 (#71)

* force program initialization on strictLanguageService

* bump package.json

* update changelog
  • Loading branch information
guillaumewuip committed Apr 10, 2024
1 parent 10f37ee commit 4d55ec6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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": [
Expand Down
1 change: 1 addition & 0 deletions src/plugin/index.ts
Expand Up @@ -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');

Expand Down

0 comments on commit 4d55ec6

Please sign in to comment.