From d01e0c1d94d36afda7ff4c65e44c4ce0d2ea414d Mon Sep 17 00:00:00 2001 From: cooolbros Date: Fri, 22 Mar 2024 14:06:50 +1100 Subject: [PATCH] Fix import --- packages/lib/server/VDF/VGUI/VGUILanguageServer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/lib/server/VDF/VGUI/VGUILanguageServer.ts b/packages/lib/server/VDF/VGUI/VGUILanguageServer.ts index 62e88319..b5b32af2 100644 --- a/packages/lib/server/VDF/VGUI/VGUILanguageServer.ts +++ b/packages/lib/server/VDF/VGUI/VGUILanguageServer.ts @@ -9,7 +9,6 @@ import * as filesCompletion from "lib/utils/filesCompletion" import { getHUDRoot } from "lib/utils/getHUDRoot" import { normalizeUri } from "lib/utils/normalizeUri" import { posix } from "path" -import { basename } from "path/posix" import { CodeLens, Color, CompletionItem, CompletionItemKind, Diagnostic, DiagnosticSeverity, DocumentLink, Location, Range, type CodeLensParams, type CompletionParams, type Connection, type Definition, type DefinitionParams, type PrepareRenameParams, type ReferenceParams, type TextDocumentChangeEvent } from "vscode-languageserver" import type { TextDocument } from "vscode-languageserver-textdocument" import { z } from "zod" @@ -66,7 +65,7 @@ export class VGUILanguageServer extends VDFLanguageServer { super(name, languageId, connection, { getVDFTokeniserOptions: (uri) => { return { - allowMultilineStrings: /(tf|chat)_.*?\.txt/.test(basename(uri)) + allowMultilineStrings: /(tf|chat)_.*?\.txt/.test(posix.basename(uri)) } }, servers: ["hudanimations"],