Skip to content

Commit

Permalink
Revert "Remove populateCacheFromDisplay config"
Browse files Browse the repository at this point in the history
This reverts commit 25de4a6.

Note: this might actually still be useful for older Haxe versions..
  • Loading branch information
kLabz committed Jul 2, 2024
1 parent ec06460 commit 13e3cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/haxeLanguageServer/Configuration.hx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ typedef UserConfig = {
var buildCompletionCache:Bool;
var enableCompletionCacheWarning:Bool;
var useLegacyCompletion:Bool;
var populateCacheFromDisplay:Bool;
var codeGeneration:CodeGenerationConfig;
var exclude:Array<String>;
var postfixCompletion:PostfixCompletionConfig;
Expand Down Expand Up @@ -161,6 +162,7 @@ class Configuration {
displayPort: null,
buildCompletionCache: true,
enableCompletionCacheWarning: true,
populateCacheFromDisplay: true,
useLegacyCompletion: false,
codeGeneration: {
functions: {
Expand Down
1 change: 1 addition & 0 deletions src/haxeLanguageServer/server/HaxeServer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ class HaxeServer {
context.callHaxeMethod(ServerMethods.Configure, {
noModuleChecks: true,
print: context.config.displayServer.print,
populateCacheFromDisplay: context.config.user.populateCacheFromDisplay,
legacyCompletion: context.config.user.useLegacyCompletion
}, null, _ -> null, function(error) {
trace("Error during " + ServerMethods.Configure + " " + error);
Expand Down

0 comments on commit 13e3cf7

Please sign in to comment.