microsoft / microsoft/vscode-containers

Dockerfile Language Server cannot start right after installing the extension

Open
#185 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

investigate language-server
Dominant language
TypeScript
Stars
139
Forks
87
Avg merge
9h 15m
Merged PRs (30d)
9

Description

  1. Install the Container Tools extension.
  2. Install the Docker DX extension.
  3. Disable the Container Tools extension.
  4. Command Palette > Developer: Reload Window
  5. Open a Dockerfile.
  6. Enable the Container Tools extension. You will see error toasts popup.

Essentially, this issue only happens if you install Docker DX first and then install Container Tools. If you restart this problem won't happen. From what I can tell it only triggers if you install/enable the Container Tools extension while the Docker DX extension has already been activated.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by installing Docker DX first, then disabling and re-enabling Container Tools after a Developer: Reload Window, with a Dockerfile open. Trace the extension activation and Dockerfile language-server startup path; done means enabling Container Tools no longer produces error toasts and the language server starts without requiring a restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript, vscode
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.