-
Notifications
You must be signed in to change notification settings - Fork 166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR and sorry it has taken a while to review - I am on parental leave at the moment and have terrible internet, so it's taking me a while.
The PR looks good; I left a few comments inline to address.
src/configuration.ts
Outdated
@@ -44,14 +45,15 @@ export class RLSConfiguration { | |||
* directory. | |||
*/ | |||
public readonly rlsRoot: string | null; | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please don't add whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will correct this and pay attention to this in future.
Thanks for pointing this out.
src/configuration.ts
Outdated
public static loadFromWorkspace(): RLSConfiguration { | ||
const configuration = workspace.getConfiguration(); | ||
|
||
return new RLSConfiguration(configuration); | ||
} | ||
|
||
private constructor(configuration: WorkspaceConfiguration) { | ||
this.rustupPath = configuration.get('rustup.path', 'rustup'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use something likerust-client.rustupPath
for the configuration name please? Could you also add the option to the configuration
section of package.json.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you are right.
I will submit patch when I get home.
Looks good, thanks! Could you rebase please? |
Sorry for the delay. |
Thank you! |
…ng errors. (rust-lang#164) * Fixed erasing of a document on reformatting if the document has parsing errors. Fixed rust-lang#161. * Changed the condition checked to determine whether there are errors. * Removed the second part of the comment.
Closes #160