This is an automated email from the ASF dual-hosted git repository.
yesamer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 122e2cbe7b3 NO-ISSUE: Fix BPMN and DMN editors never loading in the VS
Code extension (#3989)
122e2cbe7b3 is described below
commit 122e2cbe7b329413002762dbf2f71b3f58fe7ea8
Author: Adarsh vk <[email protected]>
AuthorDate: Mon Sep 7 12:56:30 2026 +0530
NO-ISSUE: Fix BPMN and DMN editors never loading in the VS Code extension
(#3989)
---
.../VsCodeResourceContentServiceIsomorphicGitFs.ts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git
a/packages/vscode-extension/src/workspace/VsCodeResourceContentServiceIsomorphicGitFs.ts
b/packages/vscode-extension/src/workspace/VsCodeResourceContentServiceIsomorphicGitFs.ts
index 1bf43d66148..6f5447400a3 100644
---
a/packages/vscode-extension/src/workspace/VsCodeResourceContentServiceIsomorphicGitFs.ts
+++
b/packages/vscode-extension/src/workspace/VsCodeResourceContentServiceIsomorphicGitFs.ts
@@ -92,4 +92,18 @@ export class
ReadonlyIsomorphicGitFsForVsCodeWorkspaceFolders {
return false;
}
}
+
+ // isomorphic-git 1.36.0 added discoverGitdir(), which calls these internals
that the flag above stops it from creating.
+ async _stat(path: string) {
+ const stat = await vscode.workspace.fs.stat(vscode.Uri.file(path));
+ return {
+ isDirectory: () => (stat.type & vscode.FileType.Directory) !== 0,
+ isFile: () => (stat.type & vscode.FileType.File) !== 0,
+ };
+ }
+
+ async _readFile(path: string, encoding?: BufferEncoding) {
+ const buffer = Buffer.from(await
vscode.workspace.fs.readFile(vscode.Uri.file(path)));
+ return encoding ? buffer.toString(encoding) : buffer;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]