Coder Social home page Coder Social logo

goctl-vscode's Issues

关于插件中错误提示的建议与解决方案

刚刚接触go-zero,很抱歉我还是个强迫症,关于错误提示没有出现在problems中我很意外,所以我添加了这个功能

另外,我发现目前插件仅仅是简单的每次抛出一个错误,还需要使用format才可以触发插件提示,虽然我想参照vscode-extension-samples中的例子进行更改,以实现实时监控的功能,但是很抱歉我失败了,因为我发现我没法把error暴露出来,又不想破坏原本的代码结构,也可能是因为我js学的不到位,始终没有做到。

所以,目前仅仅是简单的一条一条的处理错误信息。同时也希望你可以参考下vscode-extension-samples,并完善该插件。

image

Syntax highlighting is weird

Please answer these questions before submitting your issue. Thanks!

What version of Go, VS Code & VS Code Goctl extension are you using?

  • Run go version to get version of Go from the VS Code integrated terminal.
    • go version go1.16.7 darwin/amd64
  • Run goctl -v to get version of Goctl from the VS Code integrated terminal.
    • goctl version 1.2.3 darwin/amd64
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
    • 1.62.0
      b3318bc0524af3d74034b8bb8a64df0ccf35549a
      x64
  • Check your installed extensions to get the version of the VS Code Goctl extension.
    • v0.1.8
  • Check your OS version.
    • Mac 11.5.2 (20G95)

Describe the bug

The syntax highlighting seems not working well regarding service code block

Steps to reproduce the behavior:

  1. Create a api file (refer to official document)
  2. Open the api file by vs code
  3. See error

Screenshots or recordings

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.