GithubHelp home page GithubHelp logo

amour1688 / vscode-ts-in-markdown Goto Github PK

View Code? Open in Web Editor NEW
99.0 2.0 3.0 829 KB

⚡ Language support for TypeScript in markdown

Home Page: https://marketplace.visualstudio.com/items?itemName=amour1688.ts-in-markdown

TypeScript 96.71% JavaScript 3.29%
vscode-extension typescript markdown

vscode-ts-in-markdown's Introduction

vscode-ts-in-markdown's People

Contributors

amour1688 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  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  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

vscode-ts-in-markdown's Issues

tsconfig compiler flags seem to be ignored in markdown files

Setup:

tsconfig.json includes "noUncheckedIndexedAccess": true and "strictNullChecks": true. With this setup, following code should fail:

var numbers = [1,2,3,4,5]
var n0 = numbers[0]
n0.toFixed(1); // ❌ fails here
var n7 = numbers[7];
var n7 = numbers[700000];

Error details:

  • var n0: number | undefined in line 4, _ Object is possibly 'undefined'_

And it does fail in the playground (https://www.typescriptlang.org/play?noUncheckedIndexedAccess=true#code/G4QwTgBAdgrgtgIwKZgM4QLwQNoEYA0ATPgMz4As+ArALoCwAUKJFAAybTzJrav0NsAdABcA9gDEAlgA8kAEwAUuAJQBuCAHoNEQDLkEAGYhJAG3QALFEkbNoAdg6xEKVNls1V18HYddnr1gEB7kA) and in ordinary .ts files in VSCode.

However, in markdown files it passes, just as if the plugin was ignoring the compiler flags.

不能正常使用

我遇到了问题,vs code 扩展商店下载后不能正常使用.
报错信息如下:
image
image
期待答复

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.