mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-21 09:40:13 +00:00
Fix ts lint errors
This commit is contained in:
parent
72594beca4
commit
c1f6a5a0b0
3 changed files with 8 additions and 8 deletions
|
@ -33,7 +33,7 @@ export function createClient(serverPath: string, workspace: Workspace, extraEnv:
|
|||
Object.assign(newEnv, extraEnv);
|
||||
|
||||
let cwd = undefined;
|
||||
if (workspace.kind == "Workspace Folder") {
|
||||
if (workspace.kind === "Workspace Folder") {
|
||||
cwd = workspace.folder.fsPath;
|
||||
};
|
||||
|
||||
|
@ -50,7 +50,7 @@ export function createClient(serverPath: string, workspace: Workspace, extraEnv:
|
|||
);
|
||||
|
||||
let initializationOptions = vscode.workspace.getConfiguration("rust-analyzer");
|
||||
if (workspace.kind == "Detached files") {
|
||||
if (workspace.kind === "Detached Files") {
|
||||
initializationOptions = { "detachedFiles": workspace.files.map(file => file.uri.fsPath), ...initializationOptions };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue