Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99733

How do I add the experimental language server to a devcontainer for vscode?

$
0
0

I'm doing a pretty basic devcontainer for terraform work in VSCode on Windows. Every time I start it up or rebuild the container for use, it prompts me to install the experimental language server where I end up picking the latest tag for it (v0.0.9).

I have the following setting configured in my default settings.json file

{
    "terraform.languageServer.enabled": true
}

and my .devcontainer/devcontainer.json is taken and minimized from the Azure terraform container.

// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile
{
    // See https://aka.ms/vscode-remote/devcontainer.json for format details.
    "name": "DevOps Projects IaC With Terraform",
    "context": "..",
    "dockerFile": "Dockerfile",
    "runArgs": [ 
        "-v", "${env:USERPROFILE}/.ssh:/root/.ssh-localhost:ro", 
        "-v", "${env:USERPROFILE}/.aws:/root/.aws:ro"
    ],

    "postCreateCommand": "mkdir -p ~/.ssh && cp -r ~/.ssh-localhost/* ~/.ssh && chmod 700 ~/.ssh && chmod 600 ~/.ssh/*",

    // Add the IDs of any extensions you want installed in the array below.
    "extensions": ["mauve.terraform"]
}

How do I include the experimental language server into my build/devcontainer config?


Viewing all articles
Browse latest Browse all 99733

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>