From 80157a619b9422e579a7327fa87c9a52901b29c7 Mon Sep 17 00:00:00 2001 From: XinglanL Date: Sun, 7 Jul 2024 12:57:42 +0800 Subject: [PATCH] change require to import statement --- .../src/features/commands/convert-links-format-in-note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/foam-vscode/src/features/commands/convert-links-format-in-note.ts b/packages/foam-vscode/src/features/commands/convert-links-format-in-note.ts index e2c652ce0..dbf0e80cd 100644 --- a/packages/foam-vscode/src/features/commands/convert-links-format-in-note.ts +++ b/packages/foam-vscode/src/features/commands/convert-links-format-in-note.ts @@ -6,7 +6,7 @@ import { fromVsCodeUri, toVsCodeRange } from '../../utils/vsc-utils'; import { ResourceParser } from '../../core/model/note'; import { IMatcher } from '../../core/services/datastore'; import { convertLinkFormat } from '../../core/janitor'; -const vscode = require('vscode'); /* cannot import workspace from above statement and not sure what happened */ +import * as vscode from 'vscode'; type LinkFormat = 'wikilink' | 'link';