jupyterlab_vscode_icons_extension 1.1.27 → 1.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -294,7 +294,7 @@ const fileTypeConfigs = [
294
294
  group: 'enableConfigIcons'
295
295
  },
296
296
  {
297
- pattern: '^requirements\\.txt$',
297
+ pattern: '^requirements([_-].*?)?\\.txt$',
298
298
  extensions: [],
299
299
  iconName: 'file-type-python',
300
300
  group: 'enableConfigIcons'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_vscode_icons_extension",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "description": "Jupyterlab extension with a shameless rip-off of the vscode-icons into our beloved environment",
5
5
  "keywords": [
6
6
  "jupyter",
package/src/index.ts CHANGED
@@ -328,7 +328,7 @@ const fileTypeConfigs: IFileTypeConfig[] = [
328
328
  group: 'enableConfigIcons'
329
329
  },
330
330
  {
331
- pattern: '^requirements\\.txt$',
331
+ pattern: '^requirements([_-].*?)?\\.txt$',
332
332
  extensions: [],
333
333
  iconName: 'file-type-python',
334
334
  group: 'enableConfigIcons'
@@ -838,11 +838,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
838
838
 
839
839
  try {
840
840
  const baseUrl = PageConfig.getBaseUrl();
841
- const apiUrl = URLExt.join(
842
- baseUrl,
843
- 'vscode-icons',
844
- 'executables'
845
- );
841
+ const apiUrl = URLExt.join(baseUrl, 'vscode-icons', 'executables');
846
842
  const response = await fetch(
847
843
  `${apiUrl}?path=${encodeURIComponent(currentPath)}`
848
844
  );