Skip to content

Fix empty completion - #1188

Open
aspeddro wants to merge 1 commit into
rescript-lang:masterfrom
aspeddro:add-extension-tempfile
Open

Fix empty completion#1188
aspeddro wants to merge 1 commit into
rescript-lang:masterfrom
aspeddro:add-extension-tempfile

Conversation

@aspeddro

@aspeddro aspeddro commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

In rescript-lang/rescript#8426, a refactoring was implemented to read files from a string instead of from the disk. The Files.classify_source_file function checks whether a file is Res, Resi, or Other. Since server.ts creates a file without an extension in the temporary directory, Files.classify_source_file returns Other, resulting in no output for textDocument/completion.

Close #1187

In rescript-lang/rescript#8426, a refactoring
was implemented to read files from a string instead of from the disk.
The `Files.classify_source_file` function checks whether a file is `Res`,
`Resi`, or `Other`. Since `server.ts` creates a file without an extension
in the temporary directory, `Files.classify_source_file` returns `Other`,
resulting in no output for `textDocument/completion`.

Close rescript-lang#1187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LSP autocompletion in React components not working in rescript@13.0.0-alpha.4 / rescript@13.0.0-alpha.5

2 participants