-
Notifications
You must be signed in to change notification settings - Fork 386
Get debug settings from user preference and send it to debuggee #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2. get debug settings from user settings and send it to debuggee
src/configurationProvider.ts
Outdated
@@ -217,6 +223,57 @@ function configLogLevel(level) { | |||
return commands.executeJavaLanguageServerCommand(commands.JAVA_CONFIG_LOG_LEVEL, convertLogLevel(level)); | |||
} | |||
|
|||
interface IDebugSettings { | |||
show_hex?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Camel
to keep name convention consistent.
src/configurationProvider.ts
Outdated
|
||
function collectDebugSettings(): IDebugSettings { | ||
const settings: IDebugSettings = {}; | ||
if (vscode.workspace.getConfiguration().get("java.debug.settings.showHex")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot set the value to false. no need to if
.
package.json
Outdated
}, | ||
"java.debug.settings.showHex": { | ||
"type": "boolean", | ||
"default": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add description here.
README.md
Outdated
@@ -69,6 +69,10 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht | |||
### User Settings | |||
|
|||
- `java.debug.logLevel`: minimum level of debugger logs that are sent to VS Code, defaults to `warn`. | |||
- `java.debug.settings.showHex`: whether or not the number should be displayed as hex format in variable view, defaults to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show integers in hex format
README.md
Outdated
@@ -69,6 +69,10 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht | |||
### User Settings | |||
|
|||
- `java.debug.logLevel`: minimum level of debugger logs that are sent to VS Code, defaults to `warn`. | |||
- `java.debug.settings.showHex`: whether or not the number should be displayed as hex format in variable view, defaults to `false`. | |||
- `java.debug.settings.showStaticVariables`: whether or not the static variables will be displayed in variable view, defaults to `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show static variables in "Variables" viewlet
README.md
Outdated
@@ -69,6 +69,10 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht | |||
### User Settings | |||
|
|||
- `java.debug.logLevel`: minimum level of debugger logs that are sent to VS Code, defaults to `warn`. | |||
- `java.debug.settings.showHex`: whether or not the number should be displayed as hex format in variable view, defaults to `false`. | |||
- `java.debug.settings.showStaticVariables`: whether or not the static variables will be displayed in variable view, defaults to `true`. | |||
- `java.debug.settings.showQualifiedNames`: whether or not the class name should be displayed using the fully qualified class name, defaults to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show fully qualified class names
package.json
Outdated
}, | ||
"java.debug.settings.showHex": { | ||
"type": "boolean", | ||
"description" : "whether or not the number should be displayed as hex format in variable view", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the descriptions accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for below ones.
README.md
Outdated
@@ -69,6 +69,10 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht | |||
### User Settings | |||
|
|||
- `java.debug.logLevel`: minimum level of debugger logs that are sent to VS Code, defaults to `warn`. | |||
- `java.debug.settings.showHex`: show the number in hex format in variable view, defaults to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show numbers in hex format in "Variables" viewlet, de...
README.md
Outdated
@@ -69,6 +69,10 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht | |||
### User Settings | |||
|
|||
- `java.debug.logLevel`: minimum level of debugger logs that are sent to VS Code, defaults to `warn`. | |||
- `java.debug.settings.showHex`: show the number in hex format in variable view, defaults to `false`. | |||
- `java.debug.settings.showStaticVariables`: show the static variables in variable view, defaults to `true`. | |||
- `java.debug.settings.showQualifiedNames`: show the fully qualified class name in variable view, defaults to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class names.
README.md
Outdated
@@ -69,6 +69,10 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht | |||
### User Settings | |||
|
|||
- `java.debug.logLevel`: minimum level of debugger logs that are sent to VS Code, defaults to `warn`. | |||
- `java.debug.settings.showHex`: show numbers in hex format in "Variables" viewlet, defaults to `false`. | |||
- `java.debug.settings.showStaticVariables`: show static variables in "Variables" viewlet, defaults to `true`. | |||
- `java.debug.settings.showQualifiedNames`: show the fully qualified class names in "Variables" viewlet, defaults to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove "the" before fully....
No description provided.