question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version v2021.2.2 syntax highlighting is "poor" compared to previous version

See original GitHub issue

Environment

  • Editor and Version (VS Code, Atom, Sublime): VSCode 1.53.2
  • Your primary theme: dark (default)

Issue Description

Since the new extension for PowerShell was installed, the highliting became very “poor”. Almost everything is now in blue and before there was white and yellow. Now, it’s difficult to identify things… it’s impossible to see when a function is called on an object and also when we access an object member. And it’s also difficult to identify function parameter tags…

Screenshots

image

Expected Behavior

Previous version of the extension image

Code Samples

Here’s the code that is on the screenshots

# Création d'une connexion au serveur vRA pour accéder à ses API REST
	$logHistory.addLineAndDisplay("Connecting to vRA...")
	$vra = [vRAAPI]::new($configVra.getConfigValue(@($targetEnv, "infra", "server")),
						 $targetTenant, 
						 $configVra.getConfigValue(@($targetEnv, "infra", $targetTenant, "user")),
						 $configVra.getConfigValue(@($targetEnv, "infra", $targetTenant, "password")))

    # Parcours de la liste des BG
    Foreach ($bg in $vra.getBGList() )
    {
        $logHistory.addLineAndDisplay(("Processing BG '{0}'..." -f $bg.name))

        $logHistory.addLineAndDisplay("> Getting VM List...")   

        $vmList = $vra.getBGItemList($bg, "Virtual Machine")

        $logHistory.addLineAndDisplay(("> {0} VMs found" -f $vmList.count))

        Foreach($vm in $vmList)
        {
            $logHistory.addLineAndDisplay((">> Processing VM '{0}'..." -f $vm.name))

			if(((getvRAObjectCustomPropValue -object $vm -customPropName $global:VRA_CUSTOM_PROP_VRA_BG_NAME) -ne $bg.name) -or 
				((getvRAObjectCustomPropValue -object $vm -customPropName $global:VRA_CUSTOM_PROP_VRA_TENANT_NAME) -ne $targetTenant))
			{
				$logHistory.addLineAndDisplay("Values need to be updated")
			}

        }

    }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
PrzemyslawKlyscommented, Mar 4, 2021

You can disable it:

    "editor.semanticHighlighting.enabled": false,
2reactions
rudesomecommented, Mar 4, 2021

Please revert the previous syntax highlighting back or at least let us choose between the 2, after the update my code isn’t readable. I tried all different kind of theme’s but they are all broken now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version v2021.2.2 syntax highlighting is "poor" compared to ...
Version v2021.2.2 syntax highlighting is "poor" compared to previous version.
Read more >
Visual Studio Code syntax highlighting is not working for ...
0.20221116) for JavaScript and TypeScript Nightly seems to be breaking the syntax highlighting. Downgrading to a previous version might resolve ...
Read more >
Visual Studio 2022 17.4 is now available!
We are happy to announce that Visual Studio 2022 17.4 is now generally available. This is our first GA release to support Arm64....
Read more >
Google Charts Release Notes
This page describes the Google Charts release process. It also includes the release notes for the current and previous versions of Google Charts,...
Read more >
Web Content Accessibility Guidelines (WCAG) 2.2 - W3C
This version integrates changes in response to comments received on the 21 May 2021 ... Requirements for WCAG 2.2; Comparison with WCAG 2.1....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found