Commit 94c40da 1 parent 1534488 commit 94c40da Copy full SHA for 94c40da
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,10 @@ class ARCPanel {
157
157
}
158
158
159
159
public async readARC ( ) {
160
- const arc_root = vscode . workspace . workspaceFolders ?vscode . workspace . workspaceFolders [ 0 ] . uri . path :'' ;
160
+ // const arc_root = vscode.workspace.workspaceFolders?vscode.workspace.workspaceFolders[0].uri.fsPath:'';
161
+ // console.log("[arc-vs-code] Reading ARC from: ", arc_root);
161
162
const xlsx_uris = await vscode . workspace . findFiles ( '**/*.xlsx' ) ;
162
- const relative_xlsx_uris = xlsx_uris . map ( i => i . path . replace ( arc_root + '/' , '' ) ) ;
163
+ const relative_xlsx_uris = xlsx_uris . map ( i => vscode . workspace . asRelativePath ( i ) ) ;
163
164
console . log ( "[arc-vs-code] Found .xlsx files: " , xlsx_uris ) ;
164
165
console . log ( "[arc-vs-code] Adjusted paths: " , relative_xlsx_uris ) ;
165
166
await this . send ( { api :'read_ARC' , xlsx_paths :relative_xlsx_uris } ) ;
Original file line number Diff line number Diff line change @@ -50,8 +50,10 @@ const VSCODE_API = {
50
50
},
51
51
52
52
read_ARC: async inMessage => {
53
+ console .log (' [arc-vs-code | VUE] Received inner read_ARC' , inMessage);
53
54
const arc = ARC .fromFilePaths (inMessage .xlsx_paths );
54
55
const contracts = arc .GetReadContracts ();
56
+ console .log (' [arc-vs-code | VUE] Received contracts:' , contracts);
55
57
for (const contract of contracts){
56
58
const response = await VSCODE_API .send ({api: ' read' ,path: contract .Path });
57
59
const buffer = new Uint8Array (response .data .data );
You can’t perform that action at this time.
0 commit comments