We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505b1bd commit 344d49dCopy full SHA for 344d49d
server/preload.js
@@ -41,8 +41,11 @@ function loadAll(coder) {
41
42
// TODO: add watcher for the modification of the rc file to avoid reload vscode.
43
findup(".luacompleterc", {cwd: coder.workspaceRoot}).then(rcFilePath => {
44
- coder.tracer.info('loading luacomplete resource file: ' + rcFilePath);
45
- engine.loadExtentLib(rcFilePath, undefined, coder.tracer);
+ if (rcFilePath !== undefined && typeof(rcFilePath) === 'string') {
+ coder.tracer.info('loading luacomplete resource file: ' + rcFilePath);
46
+ engine.loadExtentLib(rcFilePath, undefined, coder.tracer);
47
+ }
48
+
49
});
50
}
51
0 commit comments