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';