GithubHelp home page GithubHelp logo

seolhw / alias-skip Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 8.0 1.32 MB

别名路径跳转插件,支持任何项目,可以自由配置映射规则,自由配置可缺省后缀名列表

License: MIT License

JavaScript 56.27% TypeScript 43.73%

alias-skip's People

Contributors

dependabot[bot] avatar seolhw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alias-skip's Issues

Linux 下好像不工作

Linux 下好像不工作,

~/.config/Code/User/settings.json

  "alias-skip.mappings": {
    "@comp": "/src/components",
    "~@assets": "/src/assets",
    "@views": "/src/views",
    "@api": "/src/api",
    "@/config": "/src/config",
    "@config": "/src/config",
    "core": "/src/core",
    "compiler": "/src/compiler",
    "shared": "/src/shared",
    "web": "/src/platforms/web",
    "weex": "/src/platforms/weex",
    "server": "/src/server",
    "entries": "/src/entries",
    "sfc": "/src/sfc"
  },

我尝试了

禁用所有插件, 除了 “别名路径跳转” 和 "Vetur"

我期望

不知道是不是系统引起的原因,按道理 Electron 不应该存在跨平台问题。 但是确实没有正常工作。

系统信息

  System:
    OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    Memory: 17.06 GB / 31.26 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.17 - ~/Desktop/workspace/html_new_lapis/node_modules/.bin/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
  Browsers:
    Chrome: 104.0.5112.101
    Firefox: 103.0.2
  npmPackages:
    vue: ^2.6.14 => 2.6.14

@utils无法跳转

image
第二行的@components/echarts能识别出来,但是@utils/common识别不出来...不知道为啥,我手动配置alias-skip.mappings,也还是不行

不能跳转

在工作目录配置了settings.json 但是没办法跳转

关于,在特定情况下less文件跳转成功但会有提示的问题

主要是想针对less文件配置别名跳转,的确配置后成功了,点击了会成功跳转目标文件

但也会同时提示:
无法打开xxxx.less 无法读取文件 然后展示的path是:原始路径+别名+目标路径的结构
看了眼代码,似乎是在hover事件里添加了一些处理.有没有可能,原本vscode支持的跳转(点击触发的部分)与这个产生了重叠,同时触发?

不支持css样式~@跳转

如css文件:
background-image: url(~@/assets/img/h5/headerBg.png);

配置:
"alias-skip.mappings": {
"~@":"/src"
}

jsconfig.json中
"paths": {
"@/": ["src/"],
"~@/": ["src/"]
}

对css文件中~@插件不能生效。

background:url(~images/login/bg.jpg);

background:url(images/login/bg.jpg); 这种不支持跳转
background:url('
/images/login/bg.jpg'); 这样才支持,而样式中别名后面不能加斜杠
改进一下?

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.