Skip to content

Commit 4a1f52d

Browse files
committed
Fix #361, support opening "other" doc types via isfs
Also enables them for source control actions even if they're XML files (e.g., DFI and some other custom document types used in Interoperability and HS)
1 parent 4e545c6 commit 4a1f52d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,12 @@
286286
},
287287
{
288288
"command": "vscode-objectscript.serverCommands.contextSourceControl",
289-
"when": "resourceScheme == isfs && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
289+
"when": "resourceScheme == isfs && vscode-objectscript.connectActive",
290290
"group": "objectscript@4"
291291
},
292292
{
293293
"command": "vscode-objectscript.serverCommands.contextOther",
294-
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
294+
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && vscode-objectscript.connectActive",
295295
"group": "objectscript@5"
296296
}
297297
],
@@ -337,12 +337,12 @@
337337
},
338338
{
339339
"command": "vscode-objectscript.serverCommands.contextSourceControl",
340-
"when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
340+
"when": "resourceScheme == isfs && vscode-objectscript.connectActive",
341341
"group": "objectscript@2"
342342
},
343343
{
344344
"command": "vscode-objectscript.serverCommands.contextOther",
345-
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
345+
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && vscode-objectscript.connectActive",
346346
"group": "objectscript@3"
347347
}
348348
]

src/providers/FileSystemPovider/FileSystemProvider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
281281
const { query } = url.parse(decodeURIComponent(uri.toString()), true);
282282
const csp = query.csp === "" || query.csp === "1";
283283
const fileName = csp ? uri.path : uri.path.slice(1).replace(/\//g, ".");
284-
if (!csp && !fileName.match(/\.(cls|mac|int|inc|dfi|bpl)$/i)) {
285-
throw vscode.FileSystemError.FileNotFound();
286-
}
287284
const name = path.basename(uri.path);
288285
const api = new AtelierAPI(uri);
289286
return api

0 commit comments

Comments
 (0)