You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/lib/puppet-languageserver.rb
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,8 @@ def self.parse(options)
56
56
args[:connection_timeout]=timeout.to_i
57
57
end
58
58
59
-
opts.on('-d','--no-preload','Do not preload Puppet information when the language server starts. Default is to preload')do |_misc|
59
+
opts.on('-d','--no-preload','** DEPRECATED ** Do not preload Puppet information when the language server starts. Default is to preload')do |_misc|
60
+
puts'** WARNING ** Using "--no-preload" may cause Puppet Type loading to be incomplete.'
60
61
args[:preload_puppet]=false
61
62
end
62
63
@@ -72,6 +73,12 @@ def self.parse(options)
72
73
args[:stdio]=true
73
74
end
74
75
76
+
opts.on('--enable-file-cache','Enables the file system cache for Puppet Objects (types, class etc.)')do |_misc|
77
+
args[:cache]={
78
+
:persistent_cache=>:file
79
+
}
80
+
end
81
+
75
82
opts.on('--local-workspace=PATH','The workspace or file path that will be used to provide module-specific functionality. Default is no workspace path.')do |path|
76
83
args[:workspace]=path
77
84
end
@@ -101,6 +108,9 @@ def self.init_puppet(options)
101
108
log_message(:info,"Language Server is v#{PuppetVSCode.version}")
0 commit comments