Skip to content

Add way to disable run and debug code lens provider - #465

Merged
Jinbo Wang (testforstephen) merged 5 commits into
microsoft:masterfrom
ThadHouse:disabledebugcodelense
Oct 31, 2018
Merged

Jinbo Wang (testforstephen) merged 5 commits into
microsoft:masterfrom
ThadHouse:disabledebugcodelense

Conversation

@ThadHouse

@ThadHouse Thad House (ThadHouse) commented Oct 31, 2018 •

Copy link
Copy Markdown
Contributor

There are cases where it will never work properly, and it is confusing a chunk of my users that attempt to use it, and wonder why it fails.

Closes #464

There are cases where it will never work properly, and it is confusing a chunk of my users that attempt to use it, and wonder why it fails

Closes microsoft#464
Comment thread package.json Outdated
},
"java.debug.settings.enableRunDebugCodeLens": {
"type": "boolean",
"description": "Enable the run and debug code lens providers over main methods",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use %template% style of the most recent commit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. I used google translate to get the italian translation

Comment thread src/debugCodeLensProvider.ts Outdated
this.lensProvider = vscode.languages.registerCodeLensProvider(JAVA_LANGID, new DebugCodeLensProvider());
}

this.configurationEvent = vscode.workspace.onDidChangeConfiguration((event) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add type declaration for event parameter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that the standard in here? There are other places I saw looking around that did not type the parameter, so I wanted to match.

https://github.com/Microsoft/vscode-java-debug/blob/master/src/configurationProvider.ts#L21

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to do that. We need fix that place too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I pushed a fix for this one.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution.

Comment thread package.nls.json Outdated
"java.debugger.configuration.enableHotCodeReplace.description": "Enable hot code replace for Java code."
} No newline at end of file
"java.debugger.configuration.enableHotCodeReplace.description": "Enable hot code replace for Java code.",
"java.debugger.configuration.enableRunDebugCodeLens.description": "Enable the run and debug code lens providers over main methods"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tiny comment. Add a dot . at the end.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@testforstephen
Jinbo Wang (testforstephen) merged commit ddb9e10 into microsoft:master Oct 31, 2018
@ThadHouse
Thad House (ThadHouse) deleted the disabledebugcodelense branch October 31, 2018 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants