-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support of debug settings configuration (#45)
* add support of debug settings configuration Signed-off-by: Viacheslav Gagara <[email protected]> * Update src/settings.ts Co-authored-by: Dan Hansen <[email protected]> * Update src/settings.ts Co-authored-by: Dan Hansen <[email protected]> * Update src/settings.ts Co-authored-by: Dan Hansen <[email protected]> * added 'java.debug.logLevel' setting support Signed-off-by: Viacheslav Gagara <[email protected]> * misc fixes based on review Signed-off-by: Viacheslav Gagara <[email protected]> --------- Signed-off-by: Viacheslav Gagara <[email protected]> Co-authored-by: Dan Hansen <[email protected]>
- Loading branch information
1 parent
44a818a
commit 2671b39
Showing
6 changed files
with
353 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Commands, executeCommand } from './commands'; | ||
|
||
export async function substituteFilterVariables(skipClasses: string[]): Promise<any> { | ||
if (!skipClasses) { | ||
return []; | ||
} | ||
|
||
try { | ||
// Preprocess skipClasses configurations. | ||
if (Array.isArray(skipClasses)) { | ||
const hasReservedName = skipClasses.some((filter) => filter === '$JDK' || filter === '$Libraries'); | ||
return hasReservedName ? await executeCommand(Commands.JAVA_RESOLVE_CLASSFILTERS, skipClasses) : skipClasses; | ||
} else { | ||
console.error('Invalid type for skipClasses config:' + skipClasses); | ||
} | ||
} catch (e) { | ||
console.error(e); | ||
} | ||
|
||
return []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.