@rohal12/spindle-lsp 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +4 -0
- package/dist/bin.js.map +2 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1035,6 +1035,8 @@ var init_workspace_model = __esm({
|
|
|
1035
1035
|
macros;
|
|
1036
1036
|
variables;
|
|
1037
1037
|
widgets;
|
|
1038
|
+
/** True after initialize() has completed (full workspace scan done). */
|
|
1039
|
+
initialized = false;
|
|
1038
1040
|
debounceTimer = null;
|
|
1039
1041
|
DEBOUNCE_MS = 200;
|
|
1040
1042
|
/** Bound listeners for cleanup in dispose(). */
|
|
@@ -1070,6 +1072,7 @@ var init_workspace_model = __esm({
|
|
|
1070
1072
|
this.documents.on("documentOpened", this.onDocumentOpened);
|
|
1071
1073
|
this.documents.on("documentChanged", this.onDocumentChanged);
|
|
1072
1074
|
this.rebuildAll();
|
|
1075
|
+
this.initialized = true;
|
|
1073
1076
|
this.scheduleModelReady();
|
|
1074
1077
|
}
|
|
1075
1078
|
/** Clean up listeners and timers. */
|
|
@@ -2084,6 +2087,7 @@ var init_link_parser = __esm({
|
|
|
2084
2087
|
|
|
2085
2088
|
// src/plugins/diagnostics.ts
|
|
2086
2089
|
function computeDiagnostics(uri, workspace) {
|
|
2090
|
+
if (!workspace.initialized) return [];
|
|
2087
2091
|
try {
|
|
2088
2092
|
const text = workspace.documents.getText(uri);
|
|
2089
2093
|
if (text === void 0) return [];
|