Last 12 weeks · 0 commits
5 of 6 standards met
[x] I have searched through existing issues [x] I have read through docs [x] I have read FAQ [x] I have tried restarting VS Code or running Info Platform: Vetur version: VS Code version: TypeScript version: Vetur output: Output Vetur doctor output Doctor output Problem Output -> Vue Language Server --> Reproducible Case
[x] I have searched through existing issues [x] I have read through docs [x] I have read FAQ Info Platform: macOS Vetur version: v0.28.0 VS Code version: 1.50.0 Problem This is my vue-shims.d.ts where I add the type for a global property I've added. This works fine until I add a data option to my component, see screen shots of with and without: When I add the data option, Vetur thinks $const does not exist on "this", as if what's in data overwrites my augmented ComponentCustomProperties. Typescript is still getting the type inference as you can see from the cropped off bit of the image with the error so I think this is just a vetur issue. Reproducible Case
Repository: vuejs/vetur. Description: Vue tooling for VS Code. Stars: 5761, Forks: 594. Primary language: TypeScript. Languages: TypeScript (92.7%), Vue (6.2%), JavaScript (1%), Shell (0%). License: MIT. Homepage: https://vuejs.github.io/vetur/ Topics: hacktoberfest, visual-studio-code, vscode, vue, vue-tooling. Latest release: v0.37.3 (3y ago). Open PRs: 27, open issues: 331. Last activity: 1y ago. Community health: 75%. Top contributors: octref, yoyo930021, dependabot[bot], HerringtonDarkholme, dependabot-preview[bot], ktsn, p-kuen, jasonlyu123, sapphi-red, jacob-greenfield and others.
TypeScript
[ ] I have searched through existing issues Feature Request Tj**
The dead url is https://sponsorlink.codestream.com/?utm_source=vscmarket&utm_campaign=vetur&utm_medium=banner The URL for codestream's sponsor image is dead since codestream.com now redirects to newrelic.com/codestream. Given that newrelic has a different logo from codestream, I decided to write this issue instead of submitting a PR since I am not quite sure how you will decide to update the image in the README
[x] I have searched through existing issues [x] I have read through docs [x] I have read FAQ [x] I have tried restarting VS Code or running Info Platform: Windows_NT x64 10.0.19043 Vetur version: 0.36.0 VS Code version: 1.71.0, Electron: 19.0.12, Chromium: 102.0.5005.167 Node.js: 16.14.2 Problem The errror occurs on some .vue files, not on all. I have no idea what the reason is, i tried almost everything: i reduced step by step the code of such a failed .vue file, but the vls server restart takes a long time, which makes the error investigation very heavy ! I checked the folder structure, e.g. same file name like folder name (maybe this creates end endless loop), i renamed, copied files and so on - nothing helped !! Vetur is a very important tool for me, and I and other developer need it really for developing stable software. Maybe is "VOLAR" the right plugin, but my program exists since 3 years (VUE2 with about 100 files), and i don't want to change it like VOLAR spec. I reinstalled also VETUR, no success Vetur initialized [INFO ] Loaded bundled typescript@4.4.4. [INFO ] Loaded bundled prettier. [INFO ] Loaded bundled @starptech/prettyhtml. [INFO ] Loaded bundled prettier-eslint. [INFO ] Loaded bundled prettier-tslint. [INFO ] Loaded bundled stylus-supremacy. [INFO ] Loaded bundled @prettier/plugin-pug. [Error - 06:47:41] Request textDocument/semanticTokens/range failed. Message: Request textDocument/semanticTokens/range failed with message: Maximum call stack size exceeded Code: -32603 c:\Users\Wolfgang\.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60473 function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) { ^ RangeError: Maximum call stack size exceeded at getObjectTypeInstantiation (c:\Users\Wolfgang\.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60473:44) at instantiateTypeWorker (c:\Users\Wolfgang\.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60736:28) at instantiateTypeWithAlias (c:\Users\Wolfgang\.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60716:26) at instantiateType (c:\Users\Wolfgang\.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60699:37) at instantiateList (c:\Users\Wolfgang\.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60323:34) Reproducible Case Not Reproducable My Package.json