Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.9更新之后,代码高亮和代码提示都没有了 #17

Closed
SaltFish-X opened this issue Feb 22, 2017 · 7 comments
Closed

0.0.9更新之后,代码高亮和代码提示都没有了 #17

SaltFish-X opened this issue Feb 22, 2017 · 7 comments

Comments

@SaltFish-X
Copy link

SaltFish-X commented Feb 22, 2017

vscode 1.91
vueHelper 0.0.9
vetur 0.3.6
macOS 10.12.2

代码片段

<template lang="pug">
  section#driver-team
    z-nav(title="当前隶属车队")
      router-link.button.button-fill.button-form(:to="{ name: 'DriverCar' }") 下一步
</template>

<style lang="stylus">
#driver-team
  .top
    background #fff
    select
      float right

</style>

<script lang="babel">
import Driver from '../services/Driver.js'
export default {
  name: 'driver-team',
  data() {
    return {
      driver: new Driver(),
      teams: [
         {companyName:'', companyAddress:'', contactMobile:'', contactName:'', id:''}
      ]
    }
  },

</script>

更新前0.0.9之前<script>部分有高亮和提示,'template'部分有提示和高亮,<style>部分有高亮无提示
更新后,所有部分均失去了提示功能,<script>连高亮都没了

已将vueHelper 、vetur重新卸载并安装。依然没有变化
setting中的配置存在或删除均没有用,之前一直开着这个设置,有高亮有提示

  "files.associations": {
    "*.vue": "vue"
  }

新版本下
即使开着js,<script>和'template' 部分均没有提示,之前不开js也是有提示的。

@OYsun
Copy link
Owner

OYsun commented Feb 23, 2017

很抱歉自己考虑不周导致你使用的不便,这个问题请看这个issue : #1

@SaltFish-X
Copy link
Author

谢谢你更新了0.1.0版本
删去

  "files.associations": {
    "*.vue": "vue"
  }

单独使用vueHelper
template、script、style(style一定在最后)这样的顺序,即可保持template、script的高亮和提示均正常。唯一遗憾的是style,不过可以通过外部引用styuls文件来解决没有提示、高亮和报错的问题。再次感谢

@nicefan
Copy link

nicefan commented Feb 28, 2017

能不能提供一下0.0.7版,升级了后悔死了,Vue文件格式时没有代码提示,html格式时,CSS语法错误,没有高亮。之前0.0.7版好好的!!

@OYsun
Copy link
Owner

OYsun commented Feb 28, 2017

@nicefan 兄弟,你看看这个#1 。升级到了0.1.0版本不会这样了

@nicefan
Copy link

nicefan commented Feb 28, 2017 via email

@OYsun
Copy link
Owner

OYsun commented Feb 28, 2017

@nicefan 0.0.7版本fork了vetur的代码高亮功能,这样需要不断的和他同步迭代。不和vetur迭代会引起插件之间冲突。0.1.0版本就不会这样。

@nicefan
Copy link

nicefan commented Feb 28, 2017 via email

@OYsun OYsun closed this as completed Mar 4, 2017
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

No branches or pull requests

3 participants