mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
+
This commit is contained in:
parent
812014d6d3
commit
165b5a4fd2
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import { EndOfLinePreference } from '../../../../../editor/common/model'
|
|||
import { IModelService } from '../../../../../editor/common/services/model.js'
|
||||
import { IFileService } from '../../../../../platform/files/common/files'
|
||||
|
||||
// read files from VSCode
|
||||
// read files from VSCode (looks like only works if model exists already, use raw if not)
|
||||
export const VSReadFile = async (modelService: IModelService, uri: URI): Promise<string | null> => {
|
||||
const model = modelService.getModel(uri)
|
||||
if (!model) return null
|
||||
|
|
|
|||
Loading…
Reference in a new issue