Skip to content

Added attributes to VariablePresentationHint as specified in protocol definition#625

Open
Daniel-Pfeffer wants to merge 1 commit intomicrosoft:mainfrom
Daniel-Pfeffer:DP/add-static-variable-presentation-hint
Open

Added attributes to VariablePresentationHint as specified in protocol definition#625
Daniel-Pfeffer wants to merge 1 commit intomicrosoft:mainfrom
Daniel-Pfeffer:DP/add-static-variable-presentation-hint

Conversation

@Daniel-Pfeffer
Copy link
Copy Markdown

Added "static", "constant", "readOnly" and "rawString" as attributes of VariablePresentationHint as defined in the protocol specification.

Necessary to distinguish static variables from locals.

@Daniel-Pfeffer
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

if (varProxy != null && varProxy.isLazyVariable()) {
typedVariables.presentationHint = new VariablePresentationHint(true);
if ((varProxy != null && varProxy.isLazyVariable()) || (rawAttributes.length > 0)) {
typedVariables.presentationHint = new VariablePresentationHint(varProxy == null || varProxy.isLazyVariable(), rawAttributes);
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.

should it be “varProxy != null && varProxy.isLazyVariable()”?

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.

2 participants