I’ve been searching online for quite a while now and can’t seem to find a solution for my problem. I installed Pylance (the newest Microsoft interpreter for Python) and can’t seem to disable linting at all. I’ve tried a lot of options but none worked. Here’s a screenshot of how annoying linting is in my code now.
Here’s how my VSCode Settings file looks like:
JavaScript
x
56
56
1
{
2
// "python.pythonPath": "C://Anaconda3//envs//py34//python.exe",
3
// "python.pythonPath": "C://Anaconda3_2020//python.exe",
4
// "python.pythonPath": "C://Anaconda3_2020_07//python.exe",
5
"python.pythonPath": "C://Anaconda3//python.exe",
6
"python.analysis.disabled": [
7
"unresolved-import"
8
],
9
"editor.suggestSelection": "first",
10
"editor.fontSize": 15,
11
"typescript.tsserver.useSeparateSyntaxServer": false,
12
"workbench.colorTheme": "Monokai ST3",
13
"workbench.colorCustomizations": {
14
"editor.background": "#000000",
15
"statusBar.background": "#000000",
16
"statusBar.noFolderBackground": "#212121",
17
"statusBar.debuggingBackground": "#263238"
18
},
19
"window.zoomLevel": 0,
20
"editor.renderLineHighlight": "none",
21
"editor.fontFamily": "Meslo LG L",
22
"editor.tabCompletion": "on",
23
"editor.parameterHints.enabled": true,
24
"python.terminal.executeInFileDir": true,
25
"python.terminal.launchArgs": [
26
"-u"
27
],
28
"terminal.integrated.shell.windows": "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe",
29
"editor.lineHeight": 0,
30
"workbench.editor.scrollToSwitchTabs": true,
31
"python.autoComplete.showAdvancedMembers": false,
32
"python.languageServer": "Pylance",
33
"python.linting.enabled": false,
34
"python.linting.pylintEnabled": false,
35
"python.linting.lintOnSave": false,
36
"python.linting.flake8Enabled": false,
37
"python.linting.mypyEnabled": false,
38
"python.linting.banditEnabled": false,
39
"python.linting.pylamaEnabled": false,
40
"python.linting.pylintArgs": [
41
"--unsafe-load-any-extension=y",
42
"--load-plugin",
43
"pylint_protobuf",
44
"--disable=all",
45
"--disable=undefined-variable",
46
],
47
"python.linting.mypyArgs": [
48
"--ignore-missing-imports",
49
"--follow-imports=silent",
50
"--show-column-numbers",
51
"--extension-pkg-whitelist=all",
52
"--disable=all",
53
"--disable=undefined-variable",
54
],
55
}
56
Any thoughts? Any help is much appreciated.
Advertisement
Answer
You can disable the language server with:
JavaScript
1
2
1
"python.languageServer": "None"
2