File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export const QUERY_LANGUAGE_TO_DATABASE_REPO: QueryLanguagesToDatabaseMap = {
2626
2727export class SkeletonQueryWizard {
2828 private language : string | undefined ;
29- private folderName : string | undefined ;
3029 private fileName = "example.ql" ;
3130 private storagePath : string | undefined ;
3231
@@ -41,14 +40,17 @@ export class SkeletonQueryWizard {
4140 this . storagePath = this . workoutStoragePath ( ) ;
4241 }
4342
43+ private get folderName ( ) {
44+ return `codeql-custom-queries-${ this . language } ` ;
45+ }
46+
4447 public async execute ( ) {
4548 // show quick pick to choose language
4649 this . language = await this . chooseLanguage ( ) ;
4750 if ( ! this . language ) {
4851 return ;
4952 }
5053
51- this . folderName = `codeql-custom-queries-${ this . language } ` ;
5254 const skeletonPackAlreadyExists = isFolderAlreadyInWorkspace (
5355 this . folderName ,
5456 ) ;
You can’t perform that action at this time.
0 commit comments