Skip to content

Commit

Permalink
Add populateCacheFromDisplay config
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 16, 2023
1 parent 21e3ea3 commit 993ddc5
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 @@ -93,6 +93,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 @@ -152,6 +153,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 @@ -203,6 +203,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 993ddc5

Please sign in to comment.