Skip to content

Fix VSCode extension typos #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kotlin-vscode/client/src/lspClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function getLspClient(): LanguageClient | undefined {
* Starts the LSP client applying all user options. If the client is already running, restarts it.
*/
export async function startLspClient(): Promise<void> {
const runClient = await createLpsClient()
const runClient = await createLspClient()
if (!runClient) return;
await stopLspClient()
_client = runClient;
Expand Down Expand Up @@ -133,7 +133,7 @@ async function ensureCorrectJavaVersion(javaCommand: string): Promise<boolean> {
} catch (error) {
console.error('Error executing Java command:', error);
vscode.window.showErrorMessage('Failed to execute Java command to run lsp server. ' +
`Please ensure that \`${jrePathForLspSettingName}\` option is set correctly to to the JRE installation path.` +
`Please ensure that \`${jrePathForLspSettingName}\` option is set correctly to the JRE installation path.` +
`Current value is \`${getJrePathForKotlinLSP()}\``);
return false;
}
Expand All @@ -154,7 +154,7 @@ async function createServerOptions(): Promise<ServerOptions | null> {
}
}

async function createLpsClient(): Promise<LanguageClient | null> {
async function createLspClient(): Promise<LanguageClient | null> {
const clientOptions: LanguageClientOptions = {
documentSelector: [
{scheme: 'file', language: 'kotlin'},
Expand Down