Skip to content

Commit

Permalink
non top level configs
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed Sep 11, 2024
1 parent be1d54b commit ba25cbd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions server/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,29 @@ export class Setup {
return abaplint.Config.getDefault();
}

private async searchFolderForConfig() {

Check failure on line 53 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

'searchFolderForConfig' is declared but its value is never read.

Check failure on line 53 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Not all code paths return a value.
let uri = URI.from({scheme: folders[0].scheme, authority: folders[0].authority, path: prefix + "abaplint.json"});

Check failure on line 54 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'folders'.

Check failure on line 54 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'folders'.

Check failure on line 54 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'prefix'.
try {
this.connection.console.log("search: " + uri.toString());
return await FileOperations.readFile(uri.toString());
// eslint-disable-next-line no-empty
} catch {}

uri = URI.from({scheme: folders[0].scheme, authority: folders[0].authority, path: prefix + "abaplint.jsonc"});

Check failure on line 61 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'folders'.

Check failure on line 61 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'folders'.

Check failure on line 61 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'prefix'.
try {
this.connection.console.log("search: " + uri.toString());
return await FileOperations.readFile(uri.toString());
// eslint-disable-next-line no-empty
} catch {}

uri = URI.from({scheme: folders[0].scheme, authority: folders[0].authority, path: prefix + "abaplint.json5"});

Check failure on line 68 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'folders'.

Check failure on line 68 in server/src/setup.ts

View workflow job for this annotation

GitHub Actions / test

Cannot find name 'folders'.
try {
this.connection.console.log("search: " + uri.toString());
return await FileOperations.readFile(uri.toString());
// eslint-disable-next-line no-empty
} catch {}
}

private async findCustomConfig(folders: IFolder[]): Promise<string | undefined> {
if (folders.length === 0 || folders[0] === undefined) {
return undefined;
Expand Down

0 comments on commit ba25cbd

Please sign in to comment.