profile
viewpoint
David David-Else @Else-Web-Development London, UK https://www.elsewebdevelopment.com/ :floppy_disk: Typescript | Linux | Freedom

David-Else/modern-typescript-with-examples-cheat-sheet 640

Fully printable summary of modern TypeScript language features with extensive examples to help you learn

David-Else/fedora-ultimate-setup-script 51

The ultimate post-installation setup script for Fedora 29/30/31 and Centos 8/8.1 Workstation

David-Else/zen-typescript-starter-project 2

Modern and minimalist TypeScript front end starter project using ES6 modules with optional bundling. Fully customizable.

David-Else/cpv-convert-and-proxy-video 1

High quality, high speed shell script for converting and creating files for use in video editing software

David-Else/vuejs-natural-expression-calculator-app 1

A web application to tell the user their natural expression using their date of birth and age written using the VueJS framework

David-Else/abracadabra 0

Automated refactorings for VS Code (JS & TS) ✨ It's magic ✨

David-Else/eslint-config-octopus 0

Automatically generate your stand-alone dependency free `typescript-eslint` custom config. All the rules you need are intelligently imported from the most popular configs like airbnb. All clashes with prettier are removed.

David-Else/simple-coding-project-manager 0

Utility to allow the selection of a project to edit using the command line by browsing a fixed format folder structure.

David-Else/typescript-zombie-attack 0

Arcade quality thrilling game written in TypeScript with zero dependencies using custom game engine

David-Else/vanilla-js-natural-expression-calculator-application 0

A web application to tell the user their natural expression using their date of birth and age written in vanilla javascript

push eventDavid-Else/fedora-ultimate-setup-script

David

commit sha 50c03d7d36704aafdca24e0e878d00c74b7d6786

Update VS Code keyboard shortcuts

view details

push time in 2 days

startedvector-im/riot-web

started time in 2 days

startedSorunome/mx-puppet-bridge

started time in 3 days

issue commentprettier/prettier-vscode

Typescript 3.8.3 - Conditional chaining break formatting

This extension needs to update to Prettier 2.X

Prettier 2.0 is out!

Flowrome

comment created time in 5 days

issue commentaxetroy/vscode-deno

Discussion: move deno configuration to `tsconfig.json`

I think it is a great idea to have only certain directories for deno, I am doing that right now.

Maybe not in tsconfig.json. settings.json is for VS Code extensions settings, I don't think it should go in tsconfig.json which is for compiler settings. Can you not use settings.json per directory somehow?

axetroy

comment created time in 6 days

issue openeddsherret/dprint

Update formatting to be in line with Prettier 2.0 “2020”

https://prettier.io/blog/2020/03/21/2.0.0.html

created time in 6 days

startedcoddx-hq/coddx-alpha

started time in 6 days

issue commentvolument/baretest

Support TypeScript

@motss Have a look at the Deno test runner, it has TypeScript built in. Works great for straight JS and TS using ES6 Modules. https://github.com/denoland/deno/tree/master/std/testing

motss

comment created time in 7 days

issue commentmicrosoft/vscode

TypeScript / JavaScript syntax highlighting changes after a few seconds

@rjgotten I did a quick test, not seeing sea of monotone? I am using the latest version and official theme: Screenshot from 2020-03-20 18-20-26

Ghost---Shadow

comment created time in 8 days

issue commentjamesseanwright/ts-pac-man

Won't build

I am opening the index.html file from inside the dist directory using live-server. I didn't think to use any supplied dev server, I am probably too set in my ways! It certainly works fine with the modifications I mentioned and just 404's with / as the lead character, I thought that was relative to the root? I am probably getting muddled up, I don't have much back end experience.

LOL, it was your video I got the idea for the delegate from! I did not recognize you in the second newer video. I have been reading https://gameprogrammingpatterns.com/ as my main influence, but all the examples are in c++. I can't find many good examples of composition in TS that are not either 'enterprise' Java style or just not very good. A lot of the JS examples are not even composition but seem to think they are... it is a strange state in tutorial world. This https://www.youtube.com/watch?v=wfMtDGfHWpA video is the top search result, but it bad information as it is mixins it would seem.

I am going to have a better look at your pac-man game, and think more about the most suitable pattern for my course. Would it be OK to check back with you in the future on this subject? Maybe I could drop you an email? Would be fantastic to get some feedback.

David-Else

comment created time in 16 days

issue commentjamesseanwright/ts-pac-man

Won't build

Cheers! With the latest version it compiles, but to make it actually load resources it needs the following lines changing:

src="index.js"
./audio/chase.mp3
./images/spritesheet.png'

the / does not work, it needs to be ./ for current directory running from a dev server. I am on Linux... could this be the cause?

The game is playing, but I am afraid PacMan goes through walls and can't be killed. How ready is the game?

The reason I am interested in this is I am trying to design the most simple but perfect game engine known to humanity :) I see your composition style is a bit different to what I am using. I am going to produce a Udemy course on TypeScript, so am getting pretty OCD about it at the moment.

I want each entity to have a set of components that give them:

  • an update() method to run whatever is needed on each tick
  • local state (for things like colour, position etc)
  • global state injected in only for items that need it, including a pub sub system

I want it as simple as possible to be used as a lesson in composition. Most examples of entity component systems are too complex for what I am after.

This is my current idea for my main pattern for the entities:

/**
 * Delegate
 */
interface Delegate {
  update(): void;
}

class Entity {
  private readonly delegates: Delegate[];

  constructor(...delegates: Delegate[]) {
    this.delegates = delegates;
  }

  public update(): void {
    for (const delegate of this.delegates) {
      delegate.update();
    }
  }
}

/**
 * Components
 */
export class ComponentOne implements Delegate {
  constructor(
    private readonly globalState: object,
    private readonly entityState: EntityState
  ) {}
  public update(): void {
    console.log(this.entityState, this.globalState);
  }
}

export class ComponentTwo implements Delegate {
  constructor(private readonly entityState: EntityState) {}
  update(): void {
    console.log("Hello from ComponentTwo");
  }
}

/**
 * Entity
 */
class EntityState {
  constructor(public entityState: object) {}
}

const createEntity = ({
  globalState,
  data
}: {
  globalState: object;
  data: object;
}): Entity => {
  const entityState = new EntityState(data);

  return new Entity(
    new ComponentOne(globalState, entityState),
    new ComponentTwo(entityState)
  );
};

const entityOne = createEntity({
  globalState: { global: "This is the global state" },
  data: { entityState: "This is entityOne local state" }
});
entityOne.update();

const obj: { run(hello): void } = {
  run(hello) {}
};

Don't worry about commenting on this if you are busy, just thought I would mention it out of interest. All the best!

David-Else

comment created time in 16 days

startediAmNathanJ/devo

started time in 16 days

issue commentjamesseanwright/ts-pac-man

Won't build

I typed pnpm ls tslib and got nothing, so it seemed not installed. I then installed tslib with pnpm i --save-dev tslib, but still get an error on build:

NODE_ENV=production rollup -c && npm run copy-static


src/index.ts → dist...
(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
src/index.ts
44:     return rAF;
45: };
46: (() => tslib_1.__awaiter(this, void 0, void 0, function* () {
                             ^
47:     const playAudio = yield createAudioPlayer(new AudioContext(), '/audio/chase.mp3');
48:     const sprites = yield loadSpriteSheet();
src/audio.ts
1: import * as tslib_1 from "tslib";
2: const mapToPromises = (items, cb) => Promise.all(items.map(cb));
3: export const audioPlayerCreator = (fetch) => (audioContext, ...paths) => tslib_1.__awaiter(this, void 0, void 0, function* () {
                                                                                              ^
4:     const responses = yield mapToPromises(paths, path => fetch(path));
5:     const arrayBuffers = yield mapToPromises(responses, res => res.arrayBuffer());
src/spriteSheet.ts
1: import * as tslib_1 from "tslib";
2: export const spriteSheetCreator = (createBitmapImage) => {
3:     return (sheet, definitions) => tslib_1.__awaiter(this, void 0, void 0, function* () {
                                                        ^
4:         const sprites = yield Promise.all(definitions.map(([, dimensions]) => createBitmapImage(sheet, ...dimensions)));
5:         return new Map(definitions.map(([name], i) => [name, sprites[i]]));
created dist in 2.2s

> ts-pac-man@0.0.1 copy-static /home/david/sites/TypeScript/ts-pac-man
> bash -c 'cp -r src/{index.html,images,audio} dist'
David-Else

comment created time in 16 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

pibebtol

commit sha f821f4e920529f6152396fe4000977ca9715f6cd

Fixes for some broken links in the README.md

view details

David

commit sha ecd5723ea8e4527854283f633d365e9d90633472

Merge pull request #2 from pibebtol/master Fixes for some broken links in the README.md

view details

push time in 16 days

pull request commentDavid-Else/modern-typescript-with-examples-cheat-sheet

Fixes for some broken links in the README.md

Thanks! I am using Pandoc to generate the TOC and it seems to have a problem with certain links, I was not sure how to correct them manually.

pibebtol

comment created time in 16 days

issue commentjamesseanwright/ts-pac-man

Won't build

Hi, I did a pull, the unknown CLI flag is sorted, but I still get the second error on build and dev scripts:

> NODE_ENV=production rollup -c && npm run copy-static


src/index.ts → dist...
(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
src/index.ts
44:     return rAF;
45: };
46: (() => tslib_1.__awaiter(this, void 0, void 0, function* () {
                             ^
47:     const playAudio = yield createAudioPlayer(new AudioContext(), '/audio/chase.mp3');
48:     const sprites = yield loadSpriteSheet();
[!] (plugin rpt2) Error: /home/david/sites/TypeScript/ts-pac-man/src/audio.ts(13,67): semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
src/audio.ts
Error: /home/david/sites/TypeScript/ts-pac-man/src/audio.ts(13,67): semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
    at error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:9408:30)
    at Object.error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:15659:24)
    at Object.error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:16099:38)
    at RollupContext.error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/rollupcontext.ts:37:18)
    at /home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:41:11
    at arrayEach (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:516:11)
    at _.each (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:9342:14)
    at printDiagnostics (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:9:2)
    at Object.transform (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/index.ts:225:5)
    at /home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:15806:25

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ts-pac-man@0.0.1 build: `NODE_ENV=production rollup -c && npm run copy-static`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ts-pac-man@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/david/.npm/_logs/2020-03-11T21_24_43_782Z-debug.log
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

Could pnpm somehow be involved? Here is my output from pnpm ls confirming dependencies:

pnpm ls
Legend: production dependency, optional only, dev only

ts-pac-man@0.0.1 /home/david/sites/TypeScript/ts-pac-man

devDependencies:
@types/jest 24.0.16
jest 24.8.0
node-static 0.7.11
prettier 1.18.2
rollup 1.17.0
rollup-plugin-node-resolve 5.2.0
rollup-plugin-terser 5.1.1
rollup-plugin-typescript2 0.22.1
ts-jest 24.0.2
typescript 3.5.3$ 
David-Else

comment created time in 17 days

startedeliassjogreen/deno_webview

started time in 17 days

issue commentmicrosoft/vscode

February 2020 (version 1.43) update broke js syntax highlighting

semanticHighlighting is awesome, it looks wrong now without it.

Ghost---Shadow

comment created time in 18 days

startedSchniz/fnm

started time in 18 days

issue openedaxetroy/vscode-deno

can't format new unsaved files - extension deno cannot format '/untitled-1'

  "[javascript]": {
    "editor.defaultFormatter": "axetroy.vscode-deno"
  },
  "[typescript]": {
    "editor.defaultFormatter": "axetroy.vscode-deno"
  },

ctrl-n a typescript file, ctrl+shift I to format, extension deno cannot format '/untitled-1' appears as message

created time in 19 days

startedKilledByAPixel/HueJumper2k

started time in 19 days

issue commentnicoespeon/abracadabra

convert to class based component to function based component is not working

@sumit-pandey Please fill in the information, you have left it all empty. At least copy/paste the code that is not working and explain what happens. Thanks.

sumit-pandey

comment created time in 19 days

issue openedjamesseanwright/ts-pac-man

Won't build

Thanks for this fantastic resource, and great talk! Afraid it won't build. I do pnpm install, build and I get:

rollup -c --prod && npm run copy-static

(!) You have passed an unrecognized option
Unknown CLI flag: prod. Allowed options: acorn, acornInjectPlugins, amd, assetFileNames, banner, c, cache, chunkFileNames, chunkGroupingSize, compact, config, context, d, dir, dynamicImportFunction, e, entryFileNames, environment, esModule, experimentalCacheExpiry, experimentalOptimizeChunks, experimentalTopLevelAwait, exports, extend, external, f, file, footer, format, freeze, g, globals, h, i, indent, inlineDynamicImports, input, interop, intro, m, manualChunks, moduleContext, n, name, namespaceToStringTag, noConflict, o, onwarn, outro, paths, perf, plugins, preferConst, preserveModules, preserveSymlinks, shimMissingExports, silent, sourcemap, sourcemapExcludeSources, sourcemapFile, strict, strictDeprecations, treeshake, v, w, watch

src/index.ts → dist...
(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
src/index.ts
44:     return rAF;
45: };
46: (() => tslib_1.__awaiter(this, void 0, void 0, function* () {
                             ^
47:     const playAudio = yield createAudioPlayer(new AudioContext(), '/audio/chase.mp3');
48:     const sprites = yield loadSpriteSheet();
[!] (plugin rpt2) Error: /home/david/sites/TypeScript/ts-pac-man/src/audio.ts(13,67): semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
src/audio.ts
Error: /home/david/sites/TypeScript/ts-pac-man/src/audio.ts(13,67): semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
    at error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:9408:30)
    at Object.error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:15659:24)
    at Object.error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:16099:38)
    at RollupContext.error (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/rollupcontext.ts:37:18)
    at /home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:41:11
    at arrayEach (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:516:11)
    at _.each (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:9342:14)
    at printDiagnostics (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:9:2)
    at Object.transform (/home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup-plugin-typescript2/0.22.1_rollup@1.17.0+typescript@3.5.3/node_modules/rollup-plugin-typescript2/src/index.ts:225:5)
    at /home/david/sites/TypeScript/ts-pac-man/node_modules/.pnpm/registry.npmjs.org/rollup/1.17.0/node_modules/rollup/dist/rollup.js:15806:25

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ts-pac-man@0.0.1 build: `rollup -c --prod && npm run copy-static`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ts-pac-man@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/david/.npm/_logs/2020-03-07T16_17_27_699Z-debug.log
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

If I remove the mysterious --prod that I can find no reference for I still get the other errors.

Rollup's new official TS plugin has come on leaps and bounds recently, you might like to check it out https://github.com/rollup/plugins/blob/master/packages/typescript/CHANGELOG.md

created time in 21 days

startedjamesseanwright/ts-pac-man

started time in 21 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha af15fba406a8e7a3c4e5a2afe1dbcfb09588f183

Complete PDF typesetting, update sections

view details

push time in 22 days

issue commentcodito/gnome-pomodoro

Build/autogen for Centos 8 and gnome 3.32 fails

I would love this software on Centos 8, if it makes it into EPEL it would be great :)

DanBuchan

comment created time in 22 days

pull request commentdenoland/deno

Document TypeScript compiler options

I see these were added to Currently allowed settings as default values in this commit:

   "strict": true,
    "strictBindCallApply": true,
    "strictFunctionTypes": true,
    "strictNullChecks": true,
    "strictPropertyInitialization": true,
    "noImplicitAny": true,
    "noImplicitThis": true,
    "alwaysStrict": true

...but if strict is set to true, then the other options are turned on automatically.

You can validate it in the official v2 docs which are not out yet:

https://www.typescriptlang.org/v2/tsconfig#strict

If deno actually turns them all to true when strict is true, then it is redundant and confusing. The new docs are not really clear about the way strict works which could cause problems. I am pretty sure it is best practice to turn strict on and then turn any off you don't want on an individual basis.

Soremwar

comment created time in 23 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha e3baa5af96afb9fe6f3d31d58a425f1f4003b893

Refactor and add page breaks for PDF version

view details

push time in 23 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha e4b2c6c55b00966a6b4632b27c124506f44621e6

Add HTML tags to prepare for PDF version

view details

push time in 23 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha a30a0762d3aed445965c636804d78997b75b86cc

Add Strict Bind Call Apply

view details

push time in 24 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 33854401b19ecb043b012dd260018062ce57c5d8

Use JSON5 for JSON code

view details

push time in 24 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha f9d6027a51f2a29ef96e2f72e9a8183c0c7517cc

Add strict mode reference

view details

push time in 24 days

issue commentnicoespeon/abracadabra

Update @babel/parser

VS Code with TypeScript 3.8 built in is out tomorrow... No pressure :) abracadabra is currently not working with any new TypeScript language features, TS 3.8 has been out a couple of weeks now:

https://devblogs.microsoft.com/typescript/announcing-typescript-3-8/

@David-Else thanks for being on top of the latest features and letting us know, that really helps +1

As well as full support for top level await/private fields there is now a built in convert-to-template-string-refactoring refactoring, so maybe the abracadabra one is not needed now?

https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_43.md#convert-to-template-string-refactoring.

I won't keep hassling you I promise, this will be the last reminder. I don't think the next TS 3.9 will have any new language features, you should not have to deal with any out-dating for quite a long time :)

David-Else

comment created time in 25 days

issue commentmicrosoft/vscode

Semantic Highlighting not shown in Markdown preview in TypeScript code

@mjbvz I have been looking at bierner.markdown-shiki and it is great. Is there a way I can convert my MD to a PDF with this highlighting you know of? Cheers.

David-Else

comment created time in 25 days

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 116c6be03a9acf490d7a17c461afdbad20770b82

Add Optional chaining on an optional function

view details

push time in 25 days

push eventDavid-Else/eslint-config-octopus

David

commit sha bfb31f855dd5add83c9ac8841e2aff34d7ad55c0

Add assert

view details

push time in 25 days

issue commentaxetroy/vscode-deno

The TypeScript language service died 5 times right after it got started. The service will not be restarted.

It seems fixed in 3.0.6 :) Thanks!

I don't know how your extensions somehow made a bug come back that was fixed, but here is the history of me reporting the bug and the links to the exact fixes in TypeScript that made it go away. All the info you might want should be there:

orginal thread:Debug failure in ProjectService.updateNonInferredProjectFiles #36200 https://github.com/microsoft/TypeScript/issues/36200

original fix from 3.8.1: Handle untitled files from vscode which are of format: untitled:^Untitled-1 https://github.com/microsoft/TypeScript/pull/36240

David-Else

comment created time in 25 days

issue openedaxetroy/vscode-deno

The TypeScript language service died 5 times right after it got started. The service will not be restarted.

Describe the bug

When untitled files are created with ctrl-n and deno extension is running then error The TypeScript language service died 5 times right after it got started. The service will not be restarted. This does not happen on all projects and seems kind of random.

This was a bug in TypeScript before 3.8.2, could it be linked?

https://github.com/microsoft/vscode/issues/91027#issuecomment-592681683

I had it a lot, but it was definately fixed 3.8.2

here is typescript logs, I can see errors happening, do they make sense?

[typescript-deno-plugin] "compilationSettings:{\"allowJs\":true,\"checkJs\":false,\"strict\":true,\"esModuleInterop\":true,\"jsx\":2,\"module\":99,\"moduleResolution\":2,\"outDir\":\"$deno$\",\"resolveJsonModule\":true,\"sourceMap\":true,\"stripComments\":true,\"target\":3,\"noEmit\":true,\"noEmitHelpers\":true,\"allowSyntheticDefaultImports\":true,\"allowNonTsExtensions\":true,\"noEmitForJsFiles\":true}"
Err 32    [20:16:16.558] Exception on executing command {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:^Untitled-1","fileContent":"let x = 11;\n\nconsole.log(x)\n\n","projectRootPath":"/home/david/sites/TypeScript/eslint-config-octopus-GITHUB","scriptKindName":"TS"},{"file":"untitled:^Untitled-2","fileContent":"let xd d d f","projectRootPath":"/home/david/sites/TypeScript/eslint-config-octopus-GITHUB","scriptKindName":"TS"}]}}:

    The expression evaluated to a falsy value:
    
      assert_1.default(path.isAbsolute(containingFile))
    

    AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

full log...

Info 0    [20:16:16.474] Starting TS Server
Info 1    [20:16:16.474] Version: 3.8.3
Info 2    [20:16:16.474] Arguments: /usr/share/code/code /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/8c1b8708ce915b9f58bd/tscancellation-579e26ce505993ed69ed.tmp* --logVerbosity verbose --logFile /home/david/.config/Code/logs/20200302T201613/exthost1/vscode.typescript-language-features/tsserver-log-sB9N1d/tsserver.log --globalPlugins typescript-vscode-sh-plugin,typescript-deno-plugin --pluginProbeLocations /usr/share/code/resources/app/extensions/typescript-language-features,/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3    [20:16:16.474] Platform: linux NodeVersion: 12 CaseSensitive: true
Info 4    [20:16:16.476] Binding...
Info 5    [20:16:16.481] request:
    {"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6    [20:16:16.481] Host information vscode
Info 7    [20:16:16.481] response:
    {"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8    [20:16:16.482] 0::configure: async elapsed time (in milliseconds) 1.2212
Info 9    [20:16:16.482] request:
    {"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","sourceMap":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10   [20:16:16.483] Scheduled: *ensureProjectForOpenFiles*
Perf 11   [20:16:16.483] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.7713
Info 12   [20:16:16.483] response:
    {"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13   [20:16:16.483] request:
    {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:^Untitled-1","fileContent":"let x = 11;\n\nconsole.log(x)\n\n","projectRootPath":"/home/david/sites/TypeScript/eslint-config-octopus-GITHUB","scriptKindName":"TS"},{"file":"untitled:^Untitled-2","fileContent":"let xd d d f","projectRootPath":"/home/david/sites/TypeScript/eslint-config-octopus-GITHUB","scriptKindName":"TS"}]}}
Info 14   [20:16:16.484] Search path: 
Info 15   [20:16:16.484] For info: untitled:^Untitled-1 :: No config files found.
Info 16   [20:16:16.486] Loading global plugin typescript-vscode-sh-plugin
Info 17   [20:16:16.486] Enabling plugin typescript-vscode-sh-plugin from candidate paths: /usr/share/code/resources/app/extensions/typescript-language-features,/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5,/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js/../../..
Info 18   [20:16:16.486] Loading typescript-vscode-sh-plugin from /usr/share/code/resources/app/extensions/typescript-language-features (resolved to /usr/share/code/resources/app/extensions/typescript-language-features/node_modules)
Info 19   [20:16:16.493] typescript-vscode-sh-plugin initialized. Intercepting getEncodedSemanticClassifications and getEncodedSyntacticClassifications.
Info 20   [20:16:16.493] Plugin validation succeded
Info 21   [20:16:16.493] Loading global plugin typescript-deno-plugin
Info 22   [20:16:16.493] Enabling plugin typescript-deno-plugin from candidate paths: /usr/share/code/resources/app/extensions/typescript-language-features,/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5,/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js/../../..
Info 23   [20:16:16.494] Loading typescript-deno-plugin from /usr/share/code/resources/app/extensions/typescript-language-features (resolved to /usr/share/code/resources/app/extensions/typescript-language-features/node_modules)
Info 24   [20:16:16.510] Loading typescript-deno-plugin from /home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5 (resolved to /home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5/node_modules)
Info 25   [20:16:16.537] [typescript-deno-plugin] "Create typescript-deno-plugin"
Info 26   [20:16:16.537] Plugin validation succeded
Info 27   [20:16:16.538] [typescript-deno-plugin] "compilationSettings:{\"allowJs\":true,\"checkJs\":false,\"strict\":true,\"esModuleInterop\":true,\"jsx\":2,\"module\":99,\"moduleResolution\":2,\"outDir\":\"$deno$\",\"resolveJsonModule\":true,\"sourceMap\":true,\"stripComments\":true,\"target\":3,\"noEmit\":true,\"noEmitHelpers\":true,\"allowSyntheticDefaultImports\":true,\"allowNonTsExtensions\":true,\"noEmitForJsFiles\":true}"
Info 28   [20:16:16.538] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
Info 29   [20:16:16.540] FileWatcher:: Added:: WatchInfo: /home/david/.cache/deno/lib.deno_runtime.d.ts 500 undefined Project:  WatchType: Closed Script info
Info 30   [20:16:16.540] [typescript-deno-plugin] "compilationSettings:{\"allowJs\":true,\"checkJs\":false,\"strict\":true,\"esModuleInterop\":true,\"jsx\":2,\"module\":99,\"moduleResolution\":2,\"outDir\":\"$deno$\",\"resolveJsonModule\":true,\"sourceMap\":true,\"stripComments\":true,\"target\":3,\"noEmit\":true,\"noEmitHelpers\":true,\"allowSyntheticDefaultImports\":true,\"allowNonTsExtensions\":true,\"noEmitForJsFiles\":true}"
Info 31   [20:16:16.541] [typescript-deno-plugin] "compilationSettings:{\"allowJs\":true,\"checkJs\":false,\"strict\":true,\"esModuleInterop\":true,\"jsx\":2,\"module\":99,\"moduleResolution\":2,\"outDir\":\"$deno$\",\"resolveJsonModule\":true,\"sourceMap\":true,\"stripComments\":true,\"target\":3,\"noEmit\":true,\"noEmitHelpers\":true,\"allowSyntheticDefaultImports\":true,\"allowNonTsExtensions\":true,\"noEmitForJsFiles\":true}"
Err 32    [20:16:16.558] Exception on executing command {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"untitled:^Untitled-1","fileContent":"let x = 11;\n\nconsole.log(x)\n\n","projectRootPath":"/home/david/sites/TypeScript/eslint-config-octopus-GITHUB","scriptKindName":"TS"},{"file":"untitled:^Untitled-2","fileContent":"let xd d d f","projectRootPath":"/home/david/sites/TypeScript/eslint-config-octopus-GITHUB","scriptKindName":"TS"}]}}:

    The expression evaluated to a falsy value:
    
      assert_1.default(path.isAbsolute(containingFile))
    

    AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
    
      assert_1.default(path.isAbsolute(containingFile))
    
        at new ModuleResolver (/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5/node_modules/typescript-deno-plugin/out/core/module_resolver.js:28:25)
        at Function.create (/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5/node_modules/typescript-deno-plugin/out/core/module_resolver.js:31:16)
        at InferredProject.info.languageServiceHost.resolveTypeReferenceDirectives (/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5/node_modules/typescript-deno-plugin/out/typescript-deno-plugin/src/plugin.js:120:67)
        at Object.compilerHost.resolveTypeReferenceDirectives (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:135201:64)
        at resolveTypeReferenceDirectiveNamesWorker (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:97730:137)
        at processTypeReferenceDirectives (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99347:31)
        at findSourceFile (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99185:21)
        at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99020:85
        at getSourceFileFromReferenceWorker (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99005:77)
        at processSourceFile (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99020:13)
        at processRootFile (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:98843:13)
        at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:97809:60
        at Object.forEach (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:167:30)
        at Object.createProgram (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:97809:16)
        at synchronizeHostData (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:135218:26)
        at Proxy.getProgram (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:135310:13)
        at InferredProject.Project.updateGraphWorker (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:139786:53)
        at InferredProject.Project.updateGraph (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:139729:42)
        at ProjectService.assignOrphanScriptInfoToInferredProject (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:141705:25)
        at ProjectService.assignProjectToOpenedScriptInfo (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:143132:26)
        at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:143396:107
        at Object.mapDefined (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:562:30)
        at ProjectService.applyChangesInOpenFiles (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:143396:48)
        at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:144260:46)
        at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:146003:88
        at IOSession.Session.executeWithRequestId (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:145994:28)
        at IOSession.Session.executeCommand (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:146003:33)
        at IOSession.Session.onMessage (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:146027:35)
        at Interface.<anonymous> (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:147342:27)
        at Interface.emit (events.js:200:13)
        at Interface._onLine (readline.js:314:10)
        at Interface._normalWrite (readline.js:459:12)
        at Socket.ondata (readline.js:170:10)
        at Socket.emit (events.js:200:13)
        at addChunk (_stream_readable.js:294:12)
        at readableAddChunk (_stream_readable.js:275:11)
        at Socket.Readable.push (_stream_readable.js:210:10)
        at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
Info 33   [20:16:16.558] response:
    {"seq":0,"type":"response","command":"updateOpen","request_seq":2,"success":false,"message":"Error processing request. The expression evaluated to a falsy value:\n\n  assert_1.default(path.isAbsolute(containingFile))\n\nAssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n\n  assert_1.default(path.isAbsolute(containingFile))\n\n    at new ModuleResolver (/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5/node_modules/typescript-deno-plugin/out/core/module_resolver.js:28:25)\n    at Function.create (/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5/node_modules/typescript-deno-plugin/out/core/module_resolver.js:31:16)\n    at InferredProject.info.languageServiceHost.resolveTypeReferenceDirectives (/home/david/.vscode/extensions/axetroy.vscode-deno-3.0.5/node_modules/typescript-deno-plugin/out/typescript-deno-plugin/src/plugin.js:120:67)\n    at Object.compilerHost.resolveTypeReferenceDirectives (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:135201:64)\n    at resolveTypeReferenceDirectiveNamesWorker (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:97730:137)\n    at processTypeReferenceDirectives (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99347:31)\n    at findSourceFile (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99185:21)\n    at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99020:85\n    at getSourceFileFromReferenceWorker (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99005:77)\n    at processSourceFile (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:99020:13)\n    at processRootFile (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:98843:13)\n    at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:97809:60\n    at Object.forEach (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:167:30)\n    at Object.createProgram (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:97809:16)\n    at synchronizeHostData (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:135218:26)\n    at Proxy.getProgram (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:135310:13)\n    at InferredProject.Project.updateGraphWorker (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:139786:53)\n    at InferredProject.Project.updateGraph (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:139729:42)\n    at ProjectService.assignOrphanScriptInfoToInferredProject (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:141705:25)\n    at ProjectService.assignProjectToOpenedScriptInfo (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:143132:26)\n    at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:143396:107\n    at Object.mapDefined (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:562:30)\n    at ProjectService.applyChangesInOpenFiles (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:143396:48)\n    at Session.handlers.ts.createMapFromTemplate._a.<computed> (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:144260:46)\n    at /home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:146003:88\n    at IOSession.Session.executeWithRequestId (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:145994:28)\n    at IOSession.Session.executeCommand (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:146003:33)\n    at IOSession.Session.onMessage (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:146027:35)\n    at Interface.<anonymous> (/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/node_modules/.pnpm/registry.npmjs.org/typescript/3.8.3/node_modules/typescript/lib/tsserver.js:147342:27)\n    at Interface.emit (events.js:200:13)\n    at Interface._onLine (readline.js:314:10)\n    at Interface._normalWrite (readline.js:459:12)\n    at Socket.ondata (readline.js:170:10)\n    at Socket.emit (events.js:200:13)\n    at addChunk (_stream_readable.js:294:12)\n    at readableAddChunk (_stream_readable.js:275:11)\n    at Socket.Readable.push (_stream_readable.js:210:10)\n    at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)"}
Info 34   [20:16:16.558] event:
    {"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":22538}}
Info 35   [20:16:16.559] request:
    {"seq":3,"type":"request","command":"configurePlugin","arguments":{"pluginName":"typescript-deno-plugin","configuration":{"enable":true,"dts_file":[],"import_map":"import_map.json"}}}
Info 36   [20:16:16.559] [typescript-deno-plugin] "onConfigurationChanged: {\"enable\":true,\"dts_file\":[],\"import_map\":\"import_map.json\"}"

created time in a month

issue commentaxetroy/vscode-deno

This plugin don't seems to be doing anything for me !

Excellent work! It is now fixed.

anuragvohraec

comment created time in a month

issue commentaxetroy/vscode-deno

This plugin don't seems to be doing anything for me !

I can't seem to use the VSCode ESlint extension without a tsconfig.json

Parsing error: File '/home/david/sites/TypeScript/eslint-config-octopus-GITHUB/tsconfig.json' not found. ...eslint [1 , 1]

Also rollup uses it. Not being able to have a tsconfig.json at this point is impossible unless there is some workaround I am not aware of. I think it used to work, but maybe I am wrong.

anuragvohraec

comment created time in a month

issue commentaxetroy/vscode-deno

This plugin don't seems to be doing anything for me !

That is weird! I hope it can be fixed. I use Deno and normal TypeScript mixed together in many projects, so this bug is really bad for me.

anuragvohraec

comment created time in a month

issue commentaxetroy/vscode-deno

This plugin don't seems to be doing anything for me !

I am afraid I can't make it work using the new version, I followed all the steps listed in this thread and reloaded VS Code. I also deleted the contents of $HOME/.cache/deno/deps and /gen in case of conflicts. After running deno fetch all the files returned again: Screenshot from 2020-03-01 12-35-38

See screen shot, and here is the repo if it helps https://github.com/David-Else/eslint-config-octopus Screenshot from 2020-03-01 12-30-20

anuragvohraec

comment created time in a month

push eventDavid-Else/eslint-config-octopus

David

commit sha 63bcf4cea006d00effc93bdfe0a53db337df2eeb

Improve typing remove 0 rules

view details

David

commit sha aa4e73a1e483d2684f7db5a2090b8b338357507f

Update dependencies

view details

push time in a month

issue commentaxetroy/vscode-deno

An import path cannot end with a '.ts' extension

I want to use the same VS Code TypeScript with intellisense and features available as the project uses so they are consistent. In this case TypeScript 3.7 has some serious bugs that made me use TS 3.8.

It is an important feature, I think the extension should support it, or if that is impossible then say so very clearly with a warning. At the moment it gives no warning and allows "enableForWorkspaceTypeScriptVersions": false to be true... or it seems to.

I found more details on this problem:

  • Install a project that has TS as a dependency
  • Display a TS file, and go to VS Code and select the version number of TS in the VS Code GUI, click it, click use workspace version.
  • This is created in settings.json: "typescript.tsdk": "node_modules/typescript/lib"
  • Now you get extension error
  • Use GUI to go back and select workspace TS
  • you STILL get the extension error even though you have gone back to worspace version
  • look in settings.json and "typescript.tsdk": "node_modules/typescript/lib" is STILL there
  • delete it and error SOMETIMES goes away, sometimes not, there is some problem here.

basically there is something wrong with toggling to use workspace version of TS, it does not delete the "typescript.tsdk": "node_modules/typescript/lib" and the deno extension does not update and work.

Cheers, keep up the great work!

David-Else

comment created time in a month

issue openedaxetroy/vscode-deno

An import path cannot end with a '.ts' extension

I am still getting the above error, I had it on the last extension version too but thought the new Deno might fix it. I have tried restarting TS and Deno language servers, and loading VS Code again.

See the screenshots. I am using the Workspace TS, not the built in VS Code version

Screenshots Screenshot from 2020-02-29 15-41-00 Screenshot from 2020-02-29 15-40-51

deno: 0.35.0 extension: 3

created time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 725387731038792bba5785944331254c0c56c442

Reword Excess Properties

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 483de42933ec219ef03edd131f7435cf7f6fb8ed

Update headings

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha ae66a9f0cf38d09e22ca519e7af50f99b9aad047

Refactor Typing Objects

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 7cad3886fcf21195a7dd0c41058aa88b18075272

Create LICENSE

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha f2ae9b189df335f28ad9799187457640f28af6a0

Fix TOC

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 8c6e32e9f09f22a8bef7f0f8a628b578234f2aa3

Add Object vs object

view details

David

commit sha 0ccd584aad7c76221899035d73b268675f828e18

Object vs object

view details

push time in a month

startedyou-dont-need/You-Dont-Need-JavaScript

started time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 013838240f5dec49c847f7686d06ffc732429695

Change interface name to ClickListener

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha d4ccc63e087d90824abb3ec7a4ea5db72dcf0f58

Correct TOC

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha ea76f517ea10914d0246b951efbe8dd2a3b0c498

Refactor, Update Typing Objects, Add never type

view details

push time in a month

issue closedDavid-Else/modern-typescript-with-examples-cheat-sheet

Optional is not quite the same as `| undefined`

Just wanted to mention something I've run into a couple times that you might want to note: the optional modified (?) is not exactly the same as adding | undefined to the type of the member or parameter. | undefined will require the parameter to be explicitly passed as undefined, while ? allows leaving it out entirely:

function exampleA(x: number | undefined): void { x; }

function exampleB(x?: number): void { x; }

exampleA(); // errors
exampleB(); // ok
exampleA(undefined); // ok
exampleB(undefined); // ok

closed time in a month

iansan5653

issue commentDavid-Else/modern-typescript-with-examples-cheat-sheet

Optional is not quite the same as `| undefined`

Cool. I will close the issue, thanks again for your feedback.

I just added a ton more examples and did a lot of re-writing, so even more feedback is welcome!

iansan5653

comment created time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 94e396d2cee814a1d9e056551bf22633ba6e2547

Refactor and expand Typing Objects

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 4fb6a6b4255205545c5073fda831d4500c70fdde

Add thanks and links

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 4ad9f3084e480b80b68246297996098f2bc1a51b

Add thanks and links

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 3f1056856d85d6f08b587e448e7a06d707cb5cee

Update headings

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha e228d4c73477a662aafd688d5d64aeb0aa6188c6

Update unknown

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 36790a04260ece7f082d64a486a785c7f7f65af3

Correct typo

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 7eb1916fe3b393f657800fb7f33e5e1e7ff7aa7a

Refactor Strict Class Property Initialization

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha f8577cede663c37456e426f4d2cd80b3c6f8fc0f

Improve Excess Properties explanation

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 0b960c71e2500e81ad18ffb6992101fc6fa8c61c

Improve headings

view details

David

commit sha 801f994352586df8bb87c1fe7f3f5e241c35b8e5

Add TOC

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha ec2b961f6f88a49e34db63ce992256d49af60b47

Refactor + add Using A Construct Signature example

view details

push time in a month

issue commentDavid-Else/modern-typescript-with-examples-cheat-sheet

Optional is not quite the same as `| undefined`

Cheers! I made an update, what do you think?

Optional parameter ? automatically adds | undefined

type User = {
  firstName: string;
  lastName?: string; // same as `string | undefined`
};

In JavaScript, every function parameter is optional, when left off their value is undefined. We can get this functionality in TypeScript by adding a ? to the end of parameters we want to be optional. This is different from adding | undefined which requires the parameter to be explicitly passed as undefined

function fn1(x: number | undefined): void {
  x;
}

function fn2(x?: number): void {
  x;
}

fn1(); // Error
fn2(); // OK
fn1(undefined); // OK
fn2(undefined); // OK
iansan5653

comment created time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha aded0049621f2bdfe292d1745c9081457fe1826e

Update TOC

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 95e27c9293292367e3d4332270b7bf892cc6ca22

Update genrics

view details

push time in a month

issue openedmjbvz/vscode-markdown-shiki

CSS line-height is too much for default dark theme

Thanks for this extension. Please see the screenshot, the line-height is way too much I think, especially compared to the original code. Would be great to get this fixed. Screenshot from 2020-02-25 21-36-13 Screenshot from 2020-02-25 21-42-15

created time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 493959f0eabcdfcabd222bdd4650c84c0a786d67

Add caps

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 3eacfebe5ae85d97b1549a5ba903dd5cd49a5724

Add caps

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 3731d0cdf1fb75dde80932b3c0c8c9dbcbf2f2f5

Add TOC

view details

push time in a month

push eventDavid-Else/modern-typescript-with-examples-cheat-sheet

David

commit sha 174c48c53b0cc65e25da16fd0631c953997c7e5b

Change name

view details

push time in a month

create barnchDavid-Else/modern-typescript-with-examples-cheat-sheet

branch : master

created branch time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha f8968da99947b6e7cb03207971529ba40080c1c9

New pubsub

view details

push time in a month

issue openedmicrosoft/vscode

SemanticHighlighting not shown in Markdown preview in TypeScript code

Issue Type: <b>Bug</b>

When I use "editor.semanticHighlighting.enabled": true, TypeScript looks great, but now the Markdown code looks bad in comparison. Please see the screenshot. Screenshot from 2020-02-24 14-31-46

VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:50:36.977Z) OS version: Linux x64 4.18.0-147.5.1.el8_1.x86_64

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz (8 x 3681)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: disabled_software<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: unavailable_off<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled
Load (avg) 1, 1, 0
Memory (System) 7.50GB (2.44GB free)
Process Argv --no-sandbox --unity-launch /home/david/sites/Link to typing objects cheat-sheet.md
Screen Reader no
VM 0%

</details><details><summary>Extensions (9)</summary>

Extension Author (truncated) Version
vscode-deno axe 2.0.4
spellright ban 3.0.50
vscode-eslint dba 2.1.1
prettier-vscode esb 3.20.0
shell-format fox 7.0.1
debugger-for-chrome msj 4.12.6
LiveServer rit 5.6.1
shellcheck tim 0.9.0
quokka-vscode Wal 1.0.279

</details> <!-- generated by issue reporter -->

created time in a month

startedcrabmusket/deno_assemblyscript_example

started time in a month

push eventDavid-Else/fedora-ultimate-setup-script

David

commit sha 2b9af1756a19ca798b4412bcde34930e366e5bec

Add ImageMagick

view details

push time in a month

issue commentdsherret/dprint

Differences in Prettier and dprint formatting for correction

@dsherret Nice one!

You are right, Prettier does some strange things with template literals, that is the only thing I have had problems with, so improvements there would be great :)

David-Else

comment created time in a month

push eventDavid-Else/eslint-config-octopus

David

commit sha c0ceef0cf80ca8f25f2763280361e5363476e78c

Remove test

view details

David

commit sha 09b6edfdecc525f5fe8d53cbe3e6b6f42ac06e81

Update types and Deno libs

view details

push time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha cce53a4a639e2fb12f162a1ae7c2f75bee1fe6ad

Add push to world function

view details

David

commit sha 7ec98910158d933bcf7c2a917352d0d224fc6db3

Yes works!

view details

push time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha 01e024c38986f6c2a07d216f28042b95368cac76

Refactor game loop

view details

push time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha 761ffccd68adb285f2741da20834e4b30ea3de6b

We have text!

view details

push time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha 3701ce053321a044073b64655a073b6c45e93b76

Update typescript

view details

David

commit sha 205a1bbf9b939822ac0fc9d18d0041ccfa3cc9e8

We have new world!

view details

push time in a month

startedjaredpalmer/tsdx

started time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha a371a41bce46033269f2a4c38781309e7d1bdb8f

Remove test code

view details

push time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha 4343f92a00d480c864e3730ce937030b6ee0b393

Add new test

view details

David

commit sha 779b13aaa95aa4d85e109d3a9177d20b53203b13

Take a break

view details

push time in a month

push eventDavid-Else/typescript-zombie-attack

David

commit sha e8a744732c5ba0028d0c06a799849890d00ce409

Update rollup config

view details

David

commit sha e5f0394ad819ae803688989f8f4fb6ee2c1aa58b

Add comments

view details

David

commit sha bb7a5366b3abe24234a5224f0bd82581c0cd1498

Add readonly

view details

David

commit sha fac737fea3d63741fd1233f89e3f13eb781a9933

Refactor entity constructors

view details

David

commit sha b4869e193867c5c99f6087b87392e131d251e378

Fix bug

view details

David

commit sha 888d065f97a31cf4eb1ae3a8fdb8da06809cfa90

Fix

view details

David

commit sha 3134c8b10b4673c8dc6d3630460278318cb62780

We have event observer with a test

view details

push time in a month

create barnchDavid-Else/typescript-zombie-attack

branch : composition-refactor

created branch time in a month

issue commentrollup/plugins

No source map generated by TypeScript plugin when specified in tsconfig.json

@shellscape Don't worry, I did not think the label was derogatory, I just wanted to help get the bug fixed asap :) Cheers, great plugin!

David-Else

comment created time in a month

issue commentrollup/plugins

No source map generated by TypeScript plugin when specified in tsconfig.json

@shellscape I have created this to demonstrate the bug:

https://repl.it/repls/ElaborateStingyParallelport

When I run it the file 'bundle.js' is created, but no sourcemap. Is this OK for you to remove the 'no reproduction' flag? I have edited the original post too.

David-Else

comment created time in a month

issue commentdenoland/deno

jsdom Port for 1.0 (Feature Request)

@ak-1 Someone was trying to use JSDOM with import jsdom from 'https://dev.jspm.io/jsdom' and it did not work: https://github.com/denoland/deno/issues/3852

and it just got fixed and added: https://github.com/denoland/deno/pull/4030

maybe the next version of Deno will support JSDOM through dev.jspm.io? I just saw the commits. I have not tested anything. Fingers crossed :)

David-Else

comment created time in a month

issue commentrollup/plugins

No source map generated by TypeScript plugin when specified in tsconfig.json

@shellscape I spent a while on this, even making a script for you to make a complete environment to reproduce the issue.

Before I invest more time, please just quickly confirm that the plugin IS expected to create a sourcemap? Thanks.

David-Else

comment created time in a month

issue openedrollup/plugins

No source map generated by TypeScript plugin when specified in tsconfig.json

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version: 3.0.0
  • Rollup Version: 1.31.1
  • Operating System (or Browser): Linux
  • Node Version: 12

How Do We Reproduce?

{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "node",
    "sourceMap": true,
    "strict": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules"]
}
import typescript from '@rollup/plugin-typescript';

export default {
  input: 'src/mod.ts',
  output: {
    dir: 'dist',
    format: 'esm'
  },
  plugins: [typescript()]
};
rollup -c

You can actually just run this script to generate the entire folder structure and installation, just ignore the Deno bit.

#!/bin/bash

mkdir dist src test assets .vscode
touch src/{main.css,index.html}

cat >"./package.json" <<EOL
{
  "name": "app",
  "version": "1.0.0",
  "description": "Hybrid Typescript template with Deno and Rollup bundling support",
  "type": "module",
  "main": "src/mod.ts",
  "scripts": {
    "deno-run": "deno run --allow-all --importmap=./import_map.json src/mod.ts",
    "deno-test": "npm run _clear-console && deno test --allow-all --importmap=./import_map.json test/*",
    "build": "npm run _copy-build-files && rollup -c",
    "build-watch": "npm run _copy-build-files && rollup -cw",
    "build-clean-dist": "rm -r dist/*",
    "lint": "npm run _clear-console && eslint --cache --ext .ts src/",
    "_copy-build-files": "cp -r src/{main.css,index.html} assets/ dist",
    "_clear-console": "deno eval \"console.clear()\""
  },
  "license": "gpl-3.0",
  "devDependencies": {
    "@rollup/plugin-typescript": "^3.0.0",
    "@typescript-eslint/eslint-plugin": "^2.19.2",
    "@typescript-eslint/parser": "^2.19.2",
    "eslint": "^6.8.0",
    "rollup": "^1.31.1",
    "tslib": "^1.10.0",
    "typescript": "^3.7.5"
  }
}
EOL

cat >"./rollup.config.js" <<EOL
import typescript from '@rollup/plugin-typescript';

export default {
  input: 'src/mod.ts',
  output: {
    dir: 'dist',
    format: 'esm'
  },
  plugins: [typescript()]
};
EOL

cat >"./tsconfig.json" <<EOL
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "node",
    "sourceMap": true,
    "strict": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "node_modules"
  ]
}
EOL

cat >".npmrc" <<EOL
loglevel=silent
EOL

cat >".gitignore" <<EOL
node_modules
dist
pnpm-lock.yaml
.eslintcache
EOL

cat >"src/mod.ts" <<EOL
export function example(): number {
  return 42;
}
EOL

cat >"deps.ts" <<EOL
export { assertEquals } from 'testing/asserts.ts';
EOL

cat >"import_map.json" <<EOL
{
  "imports": {
    "testing/": "https://deno.land/std@v0.33.0/testing/"
  }
}
EOL

cat >".vscode/settings.json" <<EOL
{
  "files.exclude": {
    ".gitignore": true,
    "pnpm-lock.yaml": true,
    "node_modules/": true,
    ".npmrc": true
  },
  "search.exclude": {
    "dist": true
  },
  "deno.enable": true,
  "deno.import_map": "import_map.json"
}
EOL

cat >"test/mod_test.ts" <<EOL
import { assertEquals } from '../deps.ts';
import { example } from '../src/mod.ts';

Deno.test({
  name: 'example test',
  fn(): void {
    // Arrange
    const expectedResult = 42;
    // Act
    const result = example();
    // Assert
    assertEquals(result, expectedResult);
  }
});
EOL

npm install
echo "Template Generated!"

Expected Behavior

A sourcemap file is generated in the dist folder as it is specified in the tsconfig.json

Actual Behavior

It is not, so debugging in the browser does not work properly.

<!-- Most issues can be expressed or demonstrated through the REPL or a repository. However, the situation may arise where some small code snippets also need to be provided. In that situation, please add your code below using Fenced Code Blocks (https://help.github.com/articles/creating-and-highlighting-code-blocks/) -->

created time in a month

issue commentmicrosoft/vscode

When setting new TypeScript version expected DOM lib no longer available

@mjbvz It was the Deno extension, and the author needs help with a certain bit of information to fix it. If you could spare a moment to help him it would be great :)

https://github.com/axetroy/vscode-deno/issues/60

https://stackoverflow.com/questions/60087597/how-to-trigger-typescript-recompilation-within-extension

David-Else

comment created time in a month

issue closedmicrosoft/vscode

When setting new TypeScript version expected DOM lib no longer available

Issue Type: <b>Bug</b>

Enable TS 3.81rc from global install in settings.json

  "typescript.tsdk": "/home/david/.nvm/versions/node/v12.15.0/pnpm-global/3/node_modules/typescript/lib",

Select inside the project to use that clicking bottom right 'use vs codes version 3.81rc...'

Non of the DOM elements are available any more, they all have red squiggles under them.

const canvas = document.getElementById("game-canvas");
assert(
  canvas instanceof HTMLCanvasElement,
  `Element is null/undefined or not a HTMLCanvasElement.`
);

document and HTMLCanvasElement are red squiggles

VS Code version: Code 1.42.0 (ae08d5460b5a45169385ff3fd44208f431992451, 2020-02-06T10:51:23.649Z) OS version: Linux x64 4.18.0-147.5.1.el8_1.x86_64

<details> <summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz (8 x 3693)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: disabled_software<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: unavailable_off<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled
Load (avg) 0, 1, 0
Memory (System) 7.50GB (0.29GB free)
Process Argv --no-sandbox
Screen Reader no
VM 0%

</details><details><summary>Extensions (10)</summary>

Extension Author (truncated) Version
vscode-deno axe 2.0.0
spellright ban 3.0.50
markdown-preview-github-styles bie 0.1.6
vscode-eslint dba 2.0.15
prettier-vscode esb 3.20.0
shell-format fox 7.0.1
debugger-for-chrome msj 4.12.6
LiveServer rit 5.6.1
shellcheck tim 0.9.0
quokka-vscode Wal 1.0.277

</details> <!-- generated by issue reporter -->

closed time in a month

David-Else

issue commentmicrosoft/vscode

When setting new TypeScript version expected DOM lib no longer available

I now think it is related to the Deno extension and have reported it there. Cheers, will close this.

David-Else

comment created time in a month

more