Code-server: Golang syntax highlighting is not working after Microsoft Go extension installed

Created on 18 Jun 2019  路  4Comments  路  Source: cdr/code-server

  • code-server version: 1.1156-vsc1.33.1
  • OS Version: Ubuntu 18.04.2 LTS

Description

I want to use code-server for my golang programming. Before I install the Microsoft Go extension (i.e. ms-vscode.Go), it looks all good if I new a .go file w/ something put into it. I can see the syntax highlighting is working. However, after I install the extension, it looks I cannot see the syntax highlighting anymore.

Steps to Reproduce

  1. Create a .go file then check the syntax highlighting, and it works
  2. Install the Microsoft Go extension
  3. Check the .go file again, and syntax highlighting is gone
bug

Most helpful comment

I had a similar problem this morning. Reloading the browser after installing the Go extension helped the issue for me.

All 4 comments

I had a similar problem this morning. Reloading the browser after installing the Go extension helped the issue for me.

Oops... that seems to be the best workaround for now... I didn't realize that... thanks a mil :-)

I think that when installing extensions, you have to reload the browser. Am not entirely sure why though.

Currently a browser reload is required after installing extensions. It's possible that v1 didn't correctly report that a reload was required? v2 will say "reload required" in place of the installation button.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lshamis picture lshamis  路  3Comments

broady picture broady  路  3Comments

KSXGitHub picture KSXGitHub  路  3Comments

grant picture grant  路  3Comments

tecosaur picture tecosaur  路  3Comments