fix: an extension bug

This commit is contained in:
Shunsuke Shibayama 2023-04-29 16:47:24 +09:00
parent f8f491559e
commit 9e85a85428
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
"displayName": "pylyzer",
"description": "A fast Python static code analyzer & language server for VSCode",
"publisher": "pylyzer",
"version": "0.1.5",
"version": "0.1.6",
"engines": {
"vscode": "^1.70.0"
},

View File

@ -24,9 +24,7 @@ async function startLanguageClient(context: ExtensionContext) {
/* optional features */
const checkOnType = workspace.getConfiguration("pylyzer").get<boolean>("checkOnType", false);
const args = ["--server"];
if (!(enableDiagnostics && enableSemanticTokens && enableHover && smartCompletion) || (checkOnType || enableInlayHints)) {
args.push("--");
}
args.push("--");
if (!enableDiagnostics) {
args.push("--disable");
args.push("diagnostic");