Skip to content

Commit

Permalink
fix: trace server
Browse files Browse the repository at this point in the history
langid must match the setting prefix
  • Loading branch information
tekumara committed Apr 25, 2023
1 parent 86be8ce commit 1f993a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ To disable `typos` per workspace, see [disable this extension](https://code.visu

This extension contributes the following settings:

- `typos.path`: Path to the `typos-lsp` binary.
- `typos.logLevel`: Logging level of the language server.
- `typos.path`: Path to the `typos-lsp` binary. If empty the bundled binary will be used.
- `typos.trace.server`: Traces the communication between VS Code and the language server.

## Commands
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@
"messages",
"verbose"
],
"enumDescriptions": [
"No traces",
"Trace sent/received",
"Includes content of messages"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
"description": "Traces the communication between VS Code and the language server. Recommended for debugging only."
}
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ async function createClient(
traceOutputChannel: outputChannel,
};

return new LanguageClient(name, name, serverOptions, clientOptions);
return new LanguageClient(
name.toLowerCase(),
name,
serverOptions,
clientOptions
);
}

async function getServerPath(
Expand Down

0 comments on commit 1f993a6

Please sign in to comment.