Support LSP conditions beyond "extensions" (Dockerfile) #1449

Closed
opened 2026-02-16 17:31:01 -05:00 by yindo · 1 comment
Owner

Originally created by @garrett-hopper on GitHub (Aug 22, 2025).

Originally assigned to: @rekram1-node on GitHub.

Would like to be able to configure docker-language-server to run on "Dockerfile", however that won't work in "extensions" array due to lsp/index.ts#L116
Perhaps keep "extensions" array and just special case to filename when no leading .?

Originally created by @garrett-hopper on GitHub (Aug 22, 2025). Originally assigned to: @rekram1-node on GitHub. Would like to be able to configure [docker-language-server](https://github.com/docker/docker-language-server) to run on "Dockerfile", however that won't work in "extensions" array due to [lsp/index.ts#L116](https://github.com/sst/opencode/blob/dev/packages/opencode/src/lsp/index.ts#L116) Perhaps keep "extensions" array and just special case to filename when no leading `.`?
yindo closed this issue 2026-02-16 17:31:01 -05:00
Author
Owner

@zenibako commented on GitHub (Sep 30, 2025):

+1 on this. Ideally a glob could be used for conditions instead of just the file extension, in case a file extension is used across multiple frameworks (e.g. Salesforce's Lighting Web Components, which uses .html and .js but wouldn't apply to every project using those extensions).

@zenibako commented on GitHub (Sep 30, 2025): +1 on this. Ideally a glob could be used for conditions instead of just the file extension, in case a file extension is used across multiple frameworks (e.g. Salesforce's Lighting Web Components, which uses `.html` and `.js` but wouldn't apply to every project using those extensions).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1449