Skip to content

Commit

Permalink
CR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
akshita31 committed May 24, 2018
1 parent d25f5f6 commit 6871eaf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/observers/OptionChangeObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,14 @@ export function ShowOmniSharpConfigChangePrompt(optionObservable: Observable<Opt
let subscription = ConfigChangeObservable(optionObservable)
.subscribe(_ => {
let message = "OmniSharp configuration has changed. Would you like to relaunch the OmniSharp server with your changes?";
ShowInformationMessage(vscode, message, { title: "Restart Now", command: 'o.restart' });
ShowInformationMessage(vscode, message, { title: "Restart OmniSharp", command: 'o.restart' });
});

return new Disposable(subscription);
}

function hasChanged(oldOptions: Options, newOptions: Options): boolean {
if (oldOptions.path != newOptions.path ||
return (oldOptions.path != newOptions.path ||
oldOptions.useGlobalMono != newOptions.useGlobalMono ||
oldOptions.waitForDebugger != newOptions.waitForDebugger) {

return true;
}

return false;
oldOptions.waitForDebugger != newOptions.waitForDebugger);
}

0 comments on commit 6871eaf

Please sign in to comment.