Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Mar 22, 2024
1 parent 3b6a429 commit d01e0c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/lib/server/VDF/VGUI/VGUILanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit d01e0c1

Please sign in to comment.