Skip to content

Commit daccde7

Browse files
Merge pull request #362 from timleavitt/fix-361-isfs-others
Fix #361, support opening "other" doc types via isfs
2 parents 1d77236 + 4a1f52d commit daccde7

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
@@ -290,12 +290,12 @@
290290
},
291291
{
292292
"command": "vscode-objectscript.serverCommands.contextSourceControl",
293-
"when": "resourceScheme == isfs && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
293+
"when": "resourceScheme == isfs && vscode-objectscript.connectActive",
294294
"group": "objectscript@4"
295295
},
296296
{
297297
"command": "vscode-objectscript.serverCommands.contextOther",
298-
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
298+
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && vscode-objectscript.connectActive",
299299
"group": "objectscript@5"
300300
}
301301
],
@@ -341,12 +341,12 @@
341341
},
342342
{
343343
"command": "vscode-objectscript.serverCommands.contextSourceControl",
344-
"when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
344+
"when": "resourceScheme == isfs && vscode-objectscript.connectActive",
345345
"group": "objectscript@2"
346346
},
347347
{
348348
"command": "vscode-objectscript.serverCommands.contextOther",
349-
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
349+
"when": "resourceScheme =~ /^isfs(-readonly)?$/ && vscode-objectscript.connectActive",
350350
"group": "objectscript@3"
351351
}
352352
]

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)