From 949d72c3947e1dbe195119b7a4f5207d91ade5d0 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Sat, 19 Sep 2026 22:13:03 +0200 Subject: [PATCH] Added Required logic if not found, and added better update logic --- compiler/src/ScriptCompiler.ts | 2 +- dutchies-dcs-scripting-tools/src/extension.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/src/ScriptCompiler.ts b/compiler/src/ScriptCompiler.ts index 7734dd9..ab9140e 100644 --- a/compiler/src/ScriptCompiler.ts +++ b/compiler/src/ScriptCompiler.ts @@ -17,7 +17,7 @@ export interface ICompilationLogger { writeLine(message: string): void; } -export { CompilationError }; +export { CompilationError, CompilationErrorType }; class Metrics { public totalLinesRead : number = 0; diff --git a/dutchies-dcs-scripting-tools/src/extension.ts b/dutchies-dcs-scripting-tools/src/extension.ts index 1250ee4..7e49b03 100644 --- a/dutchies-dcs-scripting-tools/src/extension.ts +++ b/dutchies-dcs-scripting-tools/src/extension.ts @@ -2,10 +2,9 @@ // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; import * as path from 'path'; -import { ScriptCompiler, ScriptCompilerOptions, CompilationError, ICompilationLogger } from 'dcs-script-compiler'; +import { ScriptCompiler, ScriptCompilerOptions, CompilationError, ICompilationLogger, CompilationErrorType } from 'dcs-script-compiler'; import { Logger } from './logger'; import * as luaAddonsManager from './lua-addons-manager'; -import { CompilationErrorType } from '../../compiler/src/CompilationError'; const luaWorkSpaceSettingKey = "Lua.workspace"; const librarySettingsKey = "library";