File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 33 getSettingsPath ,
44 getLocalSettingsPath ,
55 getManualPath ,
6- } from '@ /utils/fileFinder' ;
6+ } from '. /utils/fileFinder' ;
77import { organizeSettings } from './utils/organizer' ;
88
99export function activate ( context : vscode . ExtensionContext ) {
Original file line number Diff line number Diff line change 11import * as vscode from 'vscode' ;
22import * as fs from 'fs' ;
33import * as path from 'path' ;
4- import { detectPlatform , getWindowsUsername } from '@/utils /system' ;
4+ import { detectPlatform , getWindowsUsername } from '. /system' ;
55
66export async function getSettingsPath ( ) : Promise < string | null > {
77 let defaultPath = getUserSettingsPath ( ) ;
@@ -32,10 +32,15 @@ export async function getManualPath(): Promise<string | null> {
3232 canSelectFiles : true ,
3333 canSelectMany : false ,
3434 canSelectFolders : false ,
35+ filters : {
36+ 'JSON files' : [ 'json' ] ,
37+ 'All files' : [ '*' ]
38+ } ,
39+ openLabel : 'Select settings.json file'
3540 } ) ;
3641
3742 if ( path ) {
38- return path [ 0 ] . path ;
43+ return path [ 0 ] . fsPath ;
3944 }
4045
4146 return null ;
You can’t perform that action at this time.
0 commit comments