|
18 | 18 | "settings": { |
19 | 19 | "terminal.integrated.shell.linux": "/bin/bash", |
20 | 20 | "python.pythonPath": "/usr/local/bin/python", |
| 21 | +"python.languageServer": "Pylance", |
21 | 22 | "python.linting.enabled": true, |
22 | 23 | "python.linting.pylintEnabled": true, |
23 | 24 | "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
|
33 | 34 |
|
34 | 35 | // Add the IDs of extensions you want installed when the container is created. |
35 | 36 | "extensions": [ |
36 | | -"ms-python.python" |
| 37 | +"ms-python.python", |
| 38 | +"ms-python.vscode-pylance" |
37 | 39 | ], |
38 | 40 |
|
39 | 41 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
40 | 42 | // "forwardPorts": [9000], |
41 | 43 |
|
42 | | -// Use 'postCreateCommand' to run commands after the container is created. |
43 | | -"postCreateCommand": "pip3 install -r requirements.txt", |
44 | | - |
45 | | -// Use 'portsAttributes' to set default properties for specific forwarded ports. |
| 44 | +// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference. |
46 | 45 | "portsAttributes": { |
47 | 46 | "9000": { |
48 | 47 | "label": "Hello Remote World", |
49 | 48 | "onAutoForward": "notify" |
50 | 49 | } |
51 | 50 | }, |
52 | 51 |
|
53 | | -// Comment out to connect as root instead. |
| 52 | +// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'. |
| 53 | +// "otherPortsAttributes": { |
| 54 | +// "onAutoForward": "silent" |
| 55 | +// }, |
| 56 | + |
| 57 | +// Use 'postCreateCommand' to run commands after the container is created. |
| 58 | +"postCreateCommand": "pip3 install -r requirements.txt", |
| 59 | + |
| 60 | +// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
54 | 61 | "remoteUser": "vscode" |
55 | 62 | } |
0 commit comments