Git Product home page Git Product logo

vscode-typescript-dev's Introduction

VS Code TypeScript Dev

An extension for working in the TypeScript codebase.

Features

Test File Stuff

  • Get the character index of your cursor in a fourslash test
  • Get auto-complete for twoslash compiler flags

Syntax Highlighting for Test Files

Adds syntax highlighting for .types and .symbol files in a way which won't fill your screen with errors.

  • Symbol files
  • Type Files

Changed Baselines Info

Shows up to 100 changed baselines with:

  • Jump to local/reference
  • Show diff
  • Jump to test (most of the time)

Has a button for gulp diff.

vscode-typescript-dev's People

Contributors

andrewbranch avatar illusionmh avatar orta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-typescript-dev's Issues

Actually skip building the compiler when we know a file hasn't been saved

Somehow both tasks run the compiler on the compiler:


> Executing task: gulp tests --built <

[12:40:29] Using gulpfile ~/dev/typescript/TypeScript/gulpfile.js
[12:40:29] Starting 'tests'...
[12:40:29] Starting 'generateLibs'...
[12:40:29] Starting 'buildScripts'...
[12:40:29] Finished 'generateLibs' after 158 ms
[12:40:29] Finished 'buildScripts' after 293 ms
[12:40:29] Starting 'generateDiagnostics'...
[12:40:29] Finished 'generateDiagnostics' after 566 μs
[12:40:29] Starting 'buildTsc'...
[12:40:41] Finished 'buildTsc' after 12 s
[12:40:41] Starting 'buildTests'...
[12:40:41] Starting 'buildServerLibraryOut'...
[12:40:57] Finished 'buildTests' after 16 s
[12:41:00] Finished 'buildServerLibraryOut' after 19 s
[12:41:00] Starting 'createServerLibraryJs'...
[12:41:00] Finished 'createServerLibraryJs' after 222 ms
[12:41:00] Starting 'createServerLibraryDts'...
[12:41:00] Finished 'createServerLibraryDts' after 13 ms

Making a test run an extra ~10 ish second

Extension uses 100% CPU when DefinitelyTyped is opened in VS Code

If this extension is enabled and I open the DefinitelyTyped Repo in VS Code, it causes 100% CPU utilization across multiple invocations of rg.exe (ripgrep, used by VS Code's search service) all with the following command line:

"...\Microsoft VS Code Insiders\resources\app\node_modules.asar.unpacked\@vscode\ripgrep\bin\rg.exe" --files --hidden --case-sensitive --no-require-git -g /tests/baselines/local/**/* --no-ignore --follow --no-config --no-ignore-global

Which seems to be attributed to this line: https://github.com/orta/vscode-typescript-dev/blob/master/src/baselineFinder.ts#L7-L8

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.