|
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 | 44 | // Use 'portsAttributes' to set default properties for specific forwarded ports. |
| 45 | +// You can use a port number (i.e. 3000), range of numbers, or a regex to match the running process. |
46 | 46 | "portsAttributes": { |
47 | 47 | "9000": { |
48 | 48 | "label": "Hello Remote World", |
49 | 49 | "onAutoForward": "notify" |
50 | 50 | } |
51 | 51 | }, |
52 | 52 |
|
| 53 | +// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'. |
| 54 | +// "otherPortsAttributes": { |
| 55 | +// "onAutoForward": "silent" |
| 56 | +// }, |
| 57 | + |
| 58 | +// Use 'postCreateCommand' to run commands after the container is created. |
| 59 | +"postCreateCommand": "pip3 install -r requirements.txt", |
| 60 | + |
53 | 61 | // Comment out to connect as root instead. |
54 | 62 | "remoteUser": "vscode" |
55 | 63 | } |
0 commit comments