-
I've created a Typescript extension project (using yo). How do I update my project when new versions of Azure Data Studio come out? For instance, I see that my extension folder has the .\node_modules@types\azdata\index.d.ts file locally. If a new release of ADS has a new version of this file, does it get updated? What about if a new version has changes to package.json (say, new devDependencies item versions)? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
We release a new version of the typings every time we release - see https://www.npmjs.com/package/@types/azdata. Note that these are just typings - they have no impact on the runtime of the extension. So it's good practice to update that version every time we release a new one but is not strictly necessary. I'm not sure I understand the second part - you'll be creating the VSIX which involves bundling in all the dependencies needed for your extension at build time. So every time you release a new version of the extension these may or may not be updated based on whether you've updated the dependencies in your package.json. ADS being updated has nothing to do with your package dependencies - the only thing that could change is the APIs available to your extension (but those should never have breaking changes made so you can expect them to work the same version-to-version) |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding. I'm using VS Code to develop a Typescript extension, in Windows. When I right-click an ADS object reference in my code (say, Does this help? |
Beta Was this translation helpful? Give feedback.
-
OK, I think I see: |
Beta Was this translation helpful? Give feedback.
OK, I think I see:
Since my value for devDependencies @types/azdata key is "*", Visual Studio Code will automatically look for the most current package through npm, and next month will find 1.36 and download it. Correct?
I was worried that I would have to run npm manually for my projects and put the index files in each one.