We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93eef46 commit 047720cCopy full SHA for 047720c
src/commands/openDataFile.ts
@@ -22,6 +22,12 @@ export async function registerOpenDataFileCommand(context: ExtensionContext) {
22
prompt: 'Enter Data File Url for Table View'
23
}).then((dataFileUrl: string | undefined) => {
24
if (dataFileUrl && dataFileUrl !== undefined && dataFileUrl.length > 0) {
25
+ if (dataFileUrl.startsWith('https://github.com')) {
26
+ // rewrite github data url to use raw.githubusercontent
27
+ dataFileUrl = dataFileUrl.replace('https://github.com/', 'https://raw.githubusercontent.com/');
28
+ dataFileUrl = dataFileUrl.replace('/blob/', '/'); // strip out blob part
29
+ }
30
+
31
// create data file Uri
32
const dataFileUri: Uri = Uri.parse(dataFileUrl);
33
0 commit comments