diff --git a/server/src/providers/diagnostic.ts b/server/src/providers/diagnostic.ts index 7f8d801..a5130a9 100644 --- a/server/src/providers/diagnostic.ts +++ b/server/src/providers/diagnostic.ts @@ -19,7 +19,7 @@ import { normalizeClassname, quoteUDLIdentifier } from '../utils/functions'; -import { zutilFunctions, lexerLanguages, documents, connection } from '../utils/variables'; +import { zutilFunctions, lexerLanguages, documents } from '../utils/variables'; import { ServerSpec, StudioOpenDialogFile, QueryData } from '../utils/types'; import * as ld from '../utils/languageDefinitions'; import parameterTypes = require("../documentation/parameterTypes.json"); @@ -51,7 +51,7 @@ export async function onDiagnostics(params: DocumentDiagnosticParams): Promise 3)","*.inc",1,1,1,1,0,0] }; } - connection.console.warn("about to send REST request"); + const respdata = await makeRESTRequest("POST",1,"/action/query",server,querydata); if (Array.isArray(respdata?.data?.result?.content)) { files = respdata.data.result.content;