Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force strictLanguageService program initialization to fix integration with TS 5.4 #71

Merged
merged 3 commits into from Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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