Skip to content

Commit

Permalink
Disable the IntelliSense cache on Mac. (#3293)
Browse files Browse the repository at this point in the history
* Disable the IntelliSense cache on Mac.
  • Loading branch information
sean-mcmanus authored Mar 14, 2019
1 parent cd0dde9 commit 342de46
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,13 @@ class DefaultClient implements Client {

let intelliSenseCacheDisabled: boolean = false;
if (os.platform() === "darwin") {
const releaseParts: string[] = os.release().split(".");
if (releaseParts.length >= 1) {
// AutoPCH doesn't work for older Mac OS's.
intelliSenseCacheDisabled = parseInt(releaseParts[0]) < 17;
}
intelliSenseCacheDisabled = true;
// TODO: Re-enable this after the performance is improved on Mac.
//const releaseParts: string[] = os.release().split(".");
//if (releaseParts.length >= 1) {
// // AutoPCH doesn't work for older Mac OS's.
// intelliSenseCacheDisabled = parseInt(releaseParts[0]) < 17;
//}
}

let clientOptions: LanguageClientOptions = {
Expand Down

0 comments on commit 342de46

Please sign in to comment.