mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Run prettier
This commit is contained in:
parent
77a4a311fe
commit
a4d0aebcb8
1 changed files with 11 additions and 4 deletions
|
@ -29,7 +29,9 @@ export class Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.has('enableEnhancedTyping')) {
|
if (config.has('enableEnhancedTyping')) {
|
||||||
this.enableEnhancedTyping = config.get('enableEnhancedTyping') as boolean;
|
this.enableEnhancedTyping = config.get(
|
||||||
|
'enableEnhancedTyping'
|
||||||
|
) as boolean;
|
||||||
|
|
||||||
if (this.prevEnhancedTyping === null) {
|
if (this.prevEnhancedTyping === null) {
|
||||||
this.prevEnhancedTyping = this.enableEnhancedTyping;
|
this.prevEnhancedTyping = this.enableEnhancedTyping;
|
||||||
|
@ -40,16 +42,21 @@ export class Config {
|
||||||
|
|
||||||
if (this.prevEnhancedTyping !== this.enableEnhancedTyping) {
|
if (this.prevEnhancedTyping !== this.enableEnhancedTyping) {
|
||||||
const reloadAction = 'Reload now';
|
const reloadAction = 'Reload now';
|
||||||
vscode.window.showInformationMessage('Changing enhanced typing setting requires a reload', reloadAction)
|
vscode.window
|
||||||
|
.showInformationMessage(
|
||||||
|
'Changing enhanced typing setting requires a reload',
|
||||||
|
reloadAction
|
||||||
|
)
|
||||||
.then(selectedAction => {
|
.then(selectedAction => {
|
||||||
if (selectedAction === reloadAction) {
|
if (selectedAction === reloadAction) {
|
||||||
vscode.commands.executeCommand('workbench.action.reloadWindow');
|
vscode.commands.executeCommand(
|
||||||
|
'workbench.action.reloadWindow'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.prevEnhancedTyping = this.enableEnhancedTyping;
|
this.prevEnhancedTyping = this.enableEnhancedTyping;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (config.has('raLspServerPath')) {
|
if (config.has('raLspServerPath')) {
|
||||||
this.raLspServerPath =
|
this.raLspServerPath =
|
||||||
RA_LSP_DEBUG || (config.get('raLspServerPath') as string);
|
RA_LSP_DEBUG || (config.get('raLspServerPath') as string);
|
||||||
|
|
Loading…
Reference in a new issue