From e69c5c04d67f34e5dcb3b2bcf9df04e0afe3a59d Mon Sep 17 00:00:00 2001 From: ochafik Date: Fri, 24 Mar 2023 04:05:45 +0000 Subject: [PATCH] Fix FS import --- src/language/openscad-completions.ts | 4 ++-- src/language/openscad-language.ts | 2 +- src/language/openscad-pseudoparser.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/language/openscad-completions.ts b/src/language/openscad-completions.ts index 10221da..a6e54d4 100644 --- a/src/language/openscad-completions.ts +++ b/src/language/openscad-completions.ts @@ -1,7 +1,7 @@ // Portions of this file are Copyright 2021 Google LLC, and licensed under GPL2+. See COPYING. -import FS from 'browserfs/dist/node/core/FS'; + import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; -import { FSMounts, readDirAsArray, Symlinks } from '../filesystem'; +import { FS, readDirAsArray, Symlinks } from '../filesystem'; import { ParsedFile, ParsedFunctionoidDef, parseOpenSCAD, stripComments } from './openscad-pseudoparser'; import builtinSignatures from './openscad-builtins' import { mapObject } from '../utils'; diff --git a/src/language/openscad-language.ts b/src/language/openscad-language.ts index bc30d92..dec91cc 100644 --- a/src/language/openscad-language.ts +++ b/src/language/openscad-language.ts @@ -1,5 +1,5 @@ // Portions of this file are Copyright 2021 Google LLC, and licensed under GPL2+. See COPYING. -import FS from 'browserfs/dist/node/core/FS'; + import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; const builtInFunctionNames = [ diff --git a/src/language/openscad-pseudoparser.ts b/src/language/openscad-pseudoparser.ts index 10af1f6..9584830 100644 --- a/src/language/openscad-pseudoparser.ts +++ b/src/language/openscad-pseudoparser.ts @@ -1,4 +1,5 @@ // Portions of this file are Copyright 2021 Google LLC, and licensed under GPL2+. See COPYING. + export type ParsedFunctionoidDef = { path: string, name: string,