mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
vscode: renamed langServer to server
This commit is contained in:
parent
f61134e198
commit
80d5ba68da
3 changed files with 22 additions and 22 deletions
|
@ -2,7 +2,7 @@ import * as lc from 'vscode-languageclient';
|
|||
import * as vscode from 'vscode';
|
||||
|
||||
import { Config } from './config';
|
||||
import { ensureLangServerBinary } from './installation/lang_server';
|
||||
import { ensureServerBinary } from './installation/server';
|
||||
import { CallHierarchyFeature } from 'vscode-languageclient/lib/callHierarchy.proposed';
|
||||
|
||||
export async function createClient(config: Config): Promise<null | lc.LanguageClient> {
|
||||
|
@ -11,11 +11,11 @@ export async function createClient(config: Config): Promise<null | lc.LanguageCl
|
|||
// It might be a good idea to test if the uri points to a file.
|
||||
const workspaceFolderPath = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath ?? '.';
|
||||
|
||||
const langServerPath = await ensureLangServerBinary(config.langServerBinarySource);
|
||||
if (!langServerPath) return null;
|
||||
const serverPath = await ensureServerBinary(config.serverBinarySource);
|
||||
if (!serverPath) return null;
|
||||
|
||||
const run: lc.Executable = {
|
||||
command: langServerPath,
|
||||
command: serverPath,
|
||||
options: { cwd: workspaceFolderPath },
|
||||
};
|
||||
const serverOptions: lc.ServerOptions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue