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 732

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

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

The ultimate post-installation and setups script for Fedora 30/31/32 and Centos 8.x Workstation

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

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

David-Else/simple-youtube-chapter-extractor 3

Copy the text containing chapter information directly from YouTube and convert it into simple mkvmerge chapter format to embed in your downloaded YouTube video.

David-Else/eslint-config-octopus 2

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/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/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 762315259414ed95c4f116a09f7addff0df555d4

Use epel borgbackup and remove binary

view details

David

commit sha e2bf554b85acd1ae13c2fbe4447aa651b7c4ee3a

Add GitHub CLI to developer_packages

view details

David

commit sha 1acd3f2882beae602339c1dd2d636377c09028d1

Add GitHub CLI to developer_packages

view details

push time in 3 hours

push eventDavid-Else/zombie-attack-4

David

commit sha d04f23307a67d0ea07fad3414514f38012359c61

Refactor

view details

David

commit sha 8944a86c8ad57dcd2d16927c96edd3af3f25009c

Start to add level data

view details

push time in 7 hours

startedstevenwaterman/narration.studio

started time in a day

push eventDavid-Else/simple-youtube-chapter-extractor

David

commit sha 3a0c1a7f8da0f5795bfa74f5ac0af7ee2243c781

Update Deno test deps

view details

push time in a day

push eventDavid-Else/simple-youtube-chapter-extractor

David

commit sha 7ded8dd0ca44ffdae2e650cc273e974cb0eb1b9a

Remove broken video share

view details

push time in a day

create barnchDavid-Else/simple-youtube-chapter-extractor

branch : main

created branch time in a day

created repositoryDavid-Else/simple-youtube-chapter-extractor

Copy the text containing chapter information directly from YouTube and convert it into simple mkvmerge chapter format to embed in your downloaded YouTube video.

created time in a day

startedTheWizardBear/terminal_images

started time in a day

issue openeddenoland/vscode_deno

prompt / confirm / alert is not defined deno_lint(no-undef)

Seems the extension needs updating for the new Deno 1.5 commands? The hover over knows about them, but not the linter.

created time in 2 days

issue openedasvetliakov/vscode-neovim

Unable to determine neovim windows id for editor viewColumn: 1

I occasionally get an error like this when first trying to open a file:

2020-10-28T15:20:07.854Z BufferManager: Unable to determine neovim windows id for editor viewColumn: 1, docUri: file:///home/xxx/xxx/file.ts

It does not seem repeatable but might point to a problem.

created time in 2 days

push eventDavid-Else/eslint-config-octopus

David

commit sha fe551faebe333273dceae49d3b4cb308926e72dd

Update deps

view details

push time in 3 days

push eventDavid-Else/zombie-attack-4

David

commit sha d3891f6b71655dbb09b66c8e6dcea784865db069

Bullets back

view details

push time in 4 days

issue commentevanw/esbuild

Non-official watch mode wrapper

I have used https://github.com/egoist/rollup-plugin-esbuild which seems nice and minimal.

I hope ESBuild gets its own watch soon, would be great to get rid of more dependencies.

henriquehbr

comment created time in 4 days

startedmattbierner/vscode-docs-view

started time in 5 days

startednvim-treesitter/nvim-treesitter-refactor

started time in 6 days

push eventDavid-Else/zombie-attack-4

David

commit sha 8b6c5b9f2977501e404ab9f2a939b07395f0bffc

Improve World

view details

push time in 6 days

push eventDavid-Else/zombie-attack-4

David

commit sha 92ec051e67f05c4130ed28f3a6e2a6ff6b39b493

Correct World to NewWorld

view details

push time in 7 days

push eventDavid-Else/zombie-attack-4

David

commit sha 10070878cfe5ed8ef366acff5f6a4f4614ab93d4

Update UML

view details

push time in 7 days

push eventDavid-Else/zombie-attack-4

David

commit sha 5f4dae92b9993f89452582d7d06aaa9e3d5f1786

Remove World

view details

push time in 7 days

push eventDavid-Else/zombie-attack-4

David

commit sha cac41511aa1e8b1cd78de3f84d44485fcc6b3be2

Half working refactor looks good

view details

David

commit sha f3ffb8c763b2ce655e6af052c162a5bfc4c7a841

Nearly there

view details

David

commit sha 8762d9ac9fd8ee0cc6b42f8ca099da9e76a6adf8

Dinner

view details

David

commit sha ee99aa2ed8de042aeda85499a2e8de7f03e4efe2

Nice

view details

David

commit sha a4a13541358ad94a73c7ae0c1add0ee2fe0bc181

Start new world

view details

David

commit sha c0da40a3c22fa69d4ff44032c79e21f0b508f35d

Collision works

view details

David

commit sha bc71f520aebec85df0de62e9faa294a24124414a

Add notes

view details

push time in 7 days

issue commenttomasiser/vim-code-dark

Add compatability with NeoVim 0.5 and treesitter (should work out of the box?)

Thanks for the info. I changed from the conservative theme and it looks a little better, but there is more work to do on TypeScript colors to make them look as good as Code (even if they are slightly different). Treesitter removes many of the aweful bugs in the old TypeScript highlighting engine, so the future is looking good for Neovim :)

David-Else

comment created time in 9 days

issue openedtomasiser/vim-code-dark

Add compatability with NeoVim 0.5 and treesitter (should work out of the box?)

all colorscheme should be working already if you are using nvim-treesitter, as we leverage the standard highlight groups!

https://www.reddit.com/r/neovim/comments/imf9ty/is_there_already_some_colorscheme_leveraging/

When using the latest NeoVim nightly with https://github.com/nvim-treesitter/nvim-treesitter and vim-code-dark the results look bad. Is this expected or a bug? The syntax highlighting with treesitter is much better, but the keywords are not purple anymore and there are other things wrong.

TypeScript + NeoVim 0.5 With treesitter next to VS Code

vim-vs-vscode-neovim-treesitter

TypeScript + NeoVim 0.5 Without treesitter next to VS Code

without-tree-sitter

created time in 9 days

issue commentnvim-treesitter/nvim-treesitter

Module not found Error When Setting Up nvim-treesitter

@vigoux packadd nvim-treesitter got rid of the errors, now it seems to be working. Please add that to the README :)

laxman20

comment created time in 9 days

issue commentnvim-treesitter/nvim-treesitter

Module not found Error When Setting Up nvim-treesitter

@vigoux Yes! Centos 8.2 with Gnome Desktop.

laxman20

comment created time in 9 days

issue commentnvim-treesitter/nvim-treesitter

Module not found Error When Setting Up nvim-treesitter

@vig I am using the built-in pack feature and my output for :lua print(package.path) is:

/home/david/.config/nvim/lua/?.lua;/home/david/.config/nvim/lua/?/init.lua;/etc/xdg/nvim/lua/?.lua;/etc/xdg/nvim/lua/?/init.lua;/home/david/.local/share/nvim/site/lua/?.lua;/home/david/.loca
l/share/nvim/site/lua/?/init.lua;/home/david/.local/share/nvim/site/pack/nvim-treesitter/start/nvim-treesitter/lua/?.lua;/home/david/.local/share/nvim/site/pack/nvim-treesitter/start/nvim-tr
eesitter/lua/?/init.lua;/home/david/.local/share/flatpak/exports/share/nvim/site/lua/?.lua;/home/david/.local/share/flatpak/exports/share/nvim/site/lua/?/init.lua;/var/lib/flatpak/exports/sh
are/nvim/site/lua/?.lua;/var/lib/flatpak/exports/share/nvim/site/lua/?/init.lua;/usr/local/share/nvim/site/lua/?.lua;/usr/local/share/nvim/site/lua/?/init.lua;/usr/share/nvim/site/lua/?.lua;
/usr/share/nvim/site/lua/?/init.lua;/tmp/.mount_nvimnoqBQw/usr/share/nvim/runtime/lua/?.lua;/tmp/.mount_nvimnoqBQw/usr/share/nvim/runtime/lua/?/init.lua;/tmp/.mount_nvimnoqBQw/usr/share/nvim
/runtime/pack/dist/opt/matchit/lua/?.lua;/tmp/.mount_nvimnoqBQw/usr/share/nvim/runtime/pack/dist/opt/matchit/lua/?/init.lua;/tmp/.mount_nvimnoqBQw/usr/lib/nvim/lua/?.lua;/tmp/.mount_nvimnoqB
Qw/usr/lib/nvim/lua/?/init.lua;/usr/share/nvim/site/after/lua/?.lua;/usr/share/nvim/site/after/lua/?/init.lua;/usr/local/share/nvim/site/after/lua/?.lua;/usr/local/share/nvim/site/after/lua/
?/init.lua;/var/lib/flatpak/exports/share/nvim/site/after/lua/?.lua;/var/lib/flatpak/exports/share/nvim/site/after/lua/?/init.lua;/home/david/.local/share/flatpak/exports/share/nvim/site/aft
er/lua/?.lua;/home/david/.local/share/flatpak/exports/share/nvim/site/after/lua/?/init.lua;/home/david/.local/share/nvim/site/after/lua/?.lua;/home/david/.local/share/nvim/site/after/lua/?/i
nit.lua;/etc/xdg/nvim/after/lua/?.lua;/etc/xdg/nvim/after/lua/?/init.lua;/home/david/.config/nvim/after/lua/?.lua;/home/david/.config/nvim/after/lua/?/init.lua;./?.lua;/home/travis/build/neo
vim/bot-ci/build/neovim/.deps/usr/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/sh
are/lua/5.1/?.lua;/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/share/lua/5.1/?/init.lua
laxman20

comment created time in 9 days

push eventDavid-Else/zombie-attack-4

David

commit sha 307b94de069cce4a79d228da206f34bfaeea4c79

JSON input works with build system after update

view details

push time in 10 days

push eventDavid-Else/zombie-attack-4

David

commit sha 360518eb79e87b10156a42d84c14768d34d94fd3

Add JSON with snowpack proxy

view details

push time in 10 days

push eventDavid-Else/zombie-attack-4

David

commit sha 62fb56678c3b638854ff4d2672fbda6a79748d00

Remove all type errors

view details

push time in 10 days

push eventDavid-Else/zombie-attack-4

David

commit sha bca831d74d520176822cfa115773f0023342ac31

Reword

view details

push time in 10 days

push eventDavid-Else/zombie-attack-4

David

commit sha bf03167edbbba0650b94e0219d09e75d1786865c

Update to SVG

view details

push time in 10 days

push eventDavid-Else/zombie-attack-4

David

commit sha b7b9206561b7fb678d8abbeec7e3b90b991b6c86

Change text

view details

push time in 10 days

push eventDavid-Else/zombie-attack-4

David

commit sha 68ca6b03585863c90a2b52124cef6b9a7bbf43df

Good

view details

David

commit sha aa57720088cd907eb6335ee1013de9b2bf863068

Refactor text interface

view details

David

commit sha a7f9e6e179f719c3d8a029635da1d4fb646aefd0

Add uml script

view details

David

commit sha 2efbf94c3088d99828465a99d9ad9c92bc7732b6

Refactor

view details

David

commit sha 77c2a2f1cf5696c412d6cef9013f7ba2624d01e8

Add UML

view details

push time in 10 days

startedpostui/aleph.js

started time in 11 days

push eventDavid-Else/zombie-attack-4

David

commit sha cdfd2dc7894d5a0797a73f7827077a1670629635

Refactor

view details

push time in 11 days

push eventDavid-Else/zombie-attack-4

David

commit sha 8768a6435b0b230c90125c3392907f7ba3941ce3

Refactor

view details

push time in 11 days

push eventDavid-Else/zombie-attack-4

David

commit sha 5b25510d845fb09aaaddc9ce873cba495b94622a

Refactor all interfaces and types

view details

push time in 11 days

issue commentmicrosoft/TypeScript

Suppressing "The import path cannot end with a '.ts' extension" error?

This thread is NOT a question, it is a feature request. Please can someone correct the label and re-open it? Manually adding // @ts-ignore to every import is not an acceptable solution.

mjbvz

comment created time in 11 days

pull request commentdenoland/deno

docs(tools): add repl section

Nice one!

  • You might want to explain or rephrase 'yank' for people who don't use Vim?
  • Interrupt/Cancel edition: I am not sure what an edition is, just me being ignorant?
  • Maybe explain what a meta key is? https://www.computerhope.com/jargon/m/meta-key.htm, I had not heard the term before

Maybe it is just me not knowing these terms, but new users might also get confused.

caspervonb

comment created time in 12 days

push eventDavid-Else/zombie-attack-4

David

commit sha f2b32b1c303a8f04b471fb72b7cc89bf9df6dd38

Refactor factory/classes

view details

David

commit sha 0c1a9413dc2dc00fac984097e4a162c1f03ac22b

Move files

view details

David

commit sha 8072fa0d096640eb157b11d9b211eab3c7b3474c

Switch to Map

view details

David

commit sha 5cd8bb9004636eea7deae8b891db16f3cad51cda

Refactor

view details

David

commit sha 75172ee2859b7293a10ff19a8496c97292a0769a

Refactor

view details

David

commit sha 078e53b3fbdbc2da538550c513b2d7fbad2e483f

Refactor

view details

David

commit sha b2a45b73df0494f6d93a89090aebdd6da22e7b8c

Refactor Map

view details

David

commit sha 00198ba48adfff8cd45df87de7118bf3b61b9fd0

Collision detection works

view details

David

commit sha 583be919e08317f4c39bcf2482506998f69477a8

Collision improvement

view details

David

commit sha b4e7856f1a8ec495ca8586e489eb56e0f4e052cd

Refactor

view details

David

commit sha da41b035aff1a61446d25ae717ce5e67b994c694

Working well

view details

David

commit sha 5ceadb3a6273a3070cdd47518c4177b62b1b8b7d

Refactor

view details

David

commit sha 2c40b31989a2a680882d52732f558bee7f5985d6

Pubsub fire works

view details

David

commit sha 4df0510912313f6833d4a9c583a0d0d2ebe51427

Buggy bullets working

view details

David

commit sha a38a3d234d32fcc2a2e9d6c3516bf2cec34d90e3

Refactor

view details

David

commit sha 3c1c1d30260fd8131e5c1a53a7d960f2a0b13ef3

Refactor

view details

David

commit sha a11e026de5fcd9cc9e48627b82afd49650405855

Refactor

view details

David

commit sha bed0f8ac269098591b3872357bf02ba8f0ad3f96

Refactor

view details

David

commit sha 44c490ccf656713f4297f3b7627607e7ba2e8002

Optimize collision detection

view details

David

commit sha bf8b9f8d9053ce14a9c7e2abb062d8ccea76bc7d

Refactor

view details

push time in 12 days

startedSteveDunn/Pacman

started time in 12 days

issue commentnicoespeon/abracadabra

[Convert to arrow function] Detect when function is called before declaration

I see you are 'tracking edge cases' here:

Convert to Arrow Function does not appear as an option when there is an export statement in front of the function. Maybe check that out too, cheers.

nicoespeon

comment created time in 12 days

startedrashidrazak/moodle-installer

started time in 12 days

startedDimaZirix/podbox

started time in 13 days

issue commentpikapkg/snowpack

Make internal transforms source-map compliant

@FredKSchott I have been messing around with the Chrome devtools and getting nowhere, can I enable sourcemaps somehow right now even with errors? I would dearly love to stay in VS Code for debugging. I am not using any snowpack plugins, only the default TypeScript blank template. Thanks!

FredKSchott

comment created time in 14 days

issue commentnvim-treesitter/nvim-treesitter

Module not found Error When Setting Up nvim-treesitter

I used:

$ mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
$ cd ~/.local/share/nvim/site/pack/nvim-treesitter/start
$ git clone https://github.com/nvim-treesitter/nvim-treesitter.git

and added:

lua <<EOF
require'nvim-treesitter.configs'.setup {
  ensure_installed = "typescript",     -- one of "all", "language", or a list of languages
  highlight = {
    enable = true,              -- false will disable the whole extension
    disable = { },  -- list of language that will be disabled
  },
}
EOF

as per the instructions and also get Error executing lua [string ":lua"]:1: module 'nvim-treesitter.configs' not found:

health#nvim_treesitter#check
========================================================================
## Installation
  - OK: `git` executable found.
  - OK: `cc` executable found.

## c parser healthcheck
  - OK: c parser found.
  - OK: `highlights.scm` found.
  - OK: `locals.scm` found.
  - WARNING: No `textobjects.scm` query found for c
    - ADVICE:
      - Open an issue at https://github.com/nvim-treesitter/nvim-treesitter
  - OK: `folds.scm` found.

## typescript parser healthcheck
  - OK: typescript parser found.
  - OK: `highlights.scm` found.
  - OK: `locals.scm` found.
  - WARNING: No `textobjects.scm` query found for typescript
    - ADVICE:
      - Open an issue at https://github.com/nvim-treesitter/nvim-treesitter
  - OK: `folds.scm` found.
laxman20

comment created time in 15 days

startedchibicode/TypeScript-for-Beginner-Programmers

started time in 16 days

issue commentmicrosoft/vscode-remote-release

Is Podman on Centos 8.2 supported? Git clone failed error with vscode-remote-try-dotnet-core

It gave the exact same error, but I found the solution was to sudo dnf install fuse-overlayfs (which was not included in the original install from the devel_kubic_libcontainers_stable repo, or the original stable version for some reason) and now I get:

podman version --format {{.Server.Version}}
2.1.1

Unfortunately, there are now SELinux errors. I am no sysadmin, just a user trying to develop using remote containers. I have used the stable ancient version that ships with Centos 8.2, and now the latest as described on the official website. Thanks for your help with this:

https://podman.io/getting-started/installation

# CentOS 8
sudo dnf -y module disable container-tools
sudo dnf -y install 'dnf-command(copr)'
sudo dnf -y copr enable rhcontainerbot/container-selinux
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:testing.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/CentOS_8/devel:kubic:libcontainers:testing.repo
sudo dnf -y install podman

Screenshot from 2020-10-14 10-09-57 Screenshot from 2020-10-14 10-10-30

David-Else

comment created time in 16 days

issue commentmicrosoft/vscode-remote-release

Is Podman on Centos 8.2 supported? Git clone failed error with vscode-remote-try-dotnet-core

[52 ms] Remote-Containers 0.145.0 in VS Code 1.50.0 (93c2f0fbf16c5a4b10e4d5f89737d9c2c25488a3).
[18011 ms] Start: Run: podman version --format {{.Server.Version}}
[18208 ms] Error: overlay: can't stat program /usr/bin/fuse-overlayfs: stat /usr/bin/fuse-overlayfs: no such file or directory
David-Else

comment created time in 16 days

pull request commentdenoland/deno

fix(cli/repl): keyboard interrupt should continue

This sounds really bad, ctrl+c means kill the process. It has always meant that. What is the point of this bizarre perversion of Unix?!

https://superuser.com/questions/169051/whats-the-difference-between-c-and-d-for-unix-mac-os-x-terminal

CtrlC tells the terminal to send a SIGINT to the current foreground process, which by default translates into terminating the application. CtrlD tells the terminal that it should register a EOF on standard input, which bash interprets as a desire to exit.
caspervonb

comment created time in 17 days

pull request commentdenoland/deno

feat: add alert, confirm, and prompt

These are awesome. I hope to teach kids programming and see Deno as a perfect way to provide everything they will need in one executable. I can even teach typed vs untyped going from JS to TS, these kinds of simple API's to do essential things are so important. It is the difference between friendly and easy to understand vs annoying and pointless time-wasting.

kt3k

comment created time in 17 days

issue commentdenoland/deno

about native apps

People have already started working on it :) https://github.com/webview/webview_deno

saroamirkhanyan

comment created time in 17 days

issue commentmicrosoft/vscode-remote-release

Is Podman on Centos 8.2 supported? Git clone failed error with vscode-remote-try-dotnet-core

@chrmarti I just updated to podman version 2.1.1 and get the exact same error, there is obviously some kind of bug, it does not know I have podman installed even though I have specified "remote.containers.dockerPath": "podman"

remote-extension-fail

David-Else

comment created time in 17 days

issue commentmicrosoft/vscode-remote-release

Is Podman on Centos 8.2 supported? Git clone failed error with vscode-remote-try-dotnet-core

@chrmarti As I mentioned, when doing exactly as you instruct for the "local clone" suggestion, with the setting:

"remote.containers.dockerPath": "podman"

and

"remote.containers.dockerPath": "docker"

I get docker returned an error. Make sure the docker daemon is running

Is this a bug, or do I need further information on how to run this extension? Thanks.

Extension version: 0.145.0
VS Code version: Code 1.50.0 (93c2f0fbf16c5a4b10e4d5f89737d9c2c25488a3, 2020-10-07T06:01:33.073Z)
OS version: Linux x64 4.18.0-193.19.1.el8_2.x86_64
Centos 8.1
podman version 1.6.4

Name         : podman-docker
Version      : 1.6.4
Description  : This package installs a script named docker that emulates the Docker CLI by
             : executes podman commands, it also creates links between all Docker CLI man
             : pages and podman.
David-Else

comment created time in 18 days

issue commentmicrosoft/vscode-js-debug

Unbound Breaking point.

@connor4312 I am having problems setting breakpoints. I have an src dir with TypeScript and a public dir. Snowpack is being used in Dev mode. There does not appear to be any sourcemaps generated. I am running Chromium, which seems to work without having to point to the executable:

  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-chrome",
      "request": "launch",
      "runtimeExecutable": "custom",
      "name": "Launch Chrome against localhost",
      "url": "http://localhost:8080",
      "webRoot": "${workspaceFolder}"
    }
  ]
}```

I can't click on any line in the `.ts` file without getting `unbound breakpoint`. Is this a bug? Are my settings wrong? Thanks!
nikhilkumar24dev

comment created time in 18 days

issue commentmicrosoft/vscode-remote-release

Is Podman on Centos 8.2 supported? Git clone failed error with vscode-remote-try-dotnet-core

@chrmarti The thread that describes the duplicate issue mentions adding a local clone based approach to the docs. I can't find any docs that describe this.

I have tried to use git clone as I described in my error report. Should this issue be split in two? Please could you describe how to use the 'local clone based approach' so I can see if that works? If I open workspace in a container in the cloned directory I just get make sure the docker daemon is running, what is going wrong? There is no daemon running in Podman to my knowledge.

Thanks!

David-Else

comment created time in 18 days

startedImaginarySense/Imaginary-Teleprompter

started time in 22 days

push eventDavid-Else/zombie-attack-4

David

commit sha e222e5d7918cf2d32eaf484ff5dae13da2ebee1a

First commit

view details

push time in 24 days

create barnchDavid-Else/zombie-attack-4

branch : main

created branch time in 24 days

created repositoryDavid-Else/zombie-attack-4

created time in 24 days

issue commentasvetliakov/vscode-neovim

Buffer desync

I am often getting cases where normal mode does not seem to be operating on the same file I am seeing on the screen.

For example, in normal mode, the cursor can be stuck at the top, hjkl does nothing. If I go into insert mode, cursor down, press escape then the cursor jumps back to the top and freezes again. If I do some undos then the cursor might be able to move a few lines down.

I am getting it on an untitled/unsaved file right now, but it has happened on saved files.

@asvetliakov Something is quite broken, does this sound like a buffer desync?

Shatur95

comment created time in a month

issue commentzealdocs/zeal

Provide an AppImage

@trollixx I see https://github.com/zealdocs/zeal/pull/1276 . Is there anywhere to download this AppImage yet? The long-awaited new version of Zeal feels so near! :)

azubieta

comment created time in a month

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

David

commit sha ce0652b666b296d521e0375a9a4852e1f511cd3d

Add podman-docker

view details

push time in a month

issue openedmicrosoft/vscode-remote-release

Is Podman on Centos 8.2 supported?

Remote Containers was recommended as Code detected I had Podman installed. I have installed it and selected vscode-remote-try-dotnet-core. I changed in the preferences

docker to podman and get the following:

podman-fail podman version 1.6.4

created time in a month

issue commentasvetliakov/vscode-neovim

[Question] What is the best way to use VS Code's built in refactoring in vscode-neovim ?

Cheers!

It works but is clunky. It seems to forget when in visual block mode that other lines are selected after the first run. While many are selected on screen it is only acting on one.

Maybe I am just muddling up what VS Code can offer refactoring for with and without selecting code. It is acting funny somewhere, not sure if it is this plugin or Code itself.

I will forget it for now, many refactors are selectble in normal mode. Maybe someone might find it useful or improve it:

function! s:refactorInVisualMode()
    let mode = mode()
    if mode ==# 'V'
        let startLine = line('v')
        let endLine = line('.')
        call VSCodeNotifyRange('editor.action.refactor', startLine, endLine, 1)
    else
        let startPos = getpos('v')
        let endPos = getpos('.')
        call VSCodeNotifyRangePos('editor.action.refactor', startPos[1], endPos[1], startPos[2], endPos[2] + 1, 1)
    endif
endfunction

xnoremap <C-R> <Cmd>call <SID>refactorInVisualMode()<CR>
David-Else

comment created time in a month

issue commentasvetliakov/vscode-neovim

[Question] What is the best way to use VS Code's built in refactoring in vscode-neovim ?

Thanks for quick reply! With regard to the first example, do I need to copy paste:

function! s:openVSCodeCommandsInVisualMode()
    let mode = mode()
    if mode ==# 'V'
        let startLine = line('v')
        let endLine = line('.')
        call VSCodeNotifyRange('workbench.action.showCommands', startLine, endLine, 1)
    else
        let startPos = getpos('v')
        let endPos = getpos('.')
        call VSCodeNotifyRangePos('workbench.action.showCommands', startPos[1], endPos[1], startPos[2], endPos[2] + 1, 1)
    endif
endfunction

into my init.vim and tell it to run editor.action.codeAction instead of 'workbench.action.showCommands'? I am a bit confused. I found https://code.visualstudio.com/updates/v1_20#_keybindings-for-quick-fixes-and-code-actions but not sure how to directly tell it to show the refactoring dialog based on the selection. Is there a list ofworkbench.action.xxxx` commands somewhere to reference? Thanks!!

David-Else

comment created time in a month

issue openedasvetliakov/vscode-neovim

[Question] What is the best way to use VS Code's built in refactoring in vscode-neovim ?

In normal VS Code you need to select some code to get the lightbulb to appear that tells you what refactoring is available for that code.

In this extension:

  • If I enter visual mode and select code then the lightbulb does not appear until I ctrl+shift p to transfer the Neovim selection into VS Code
  • I can then select 'refactor' in the menu
  • If I select more lines of code in visual mode then the selection as far as VS Code is concerned is lost, and I need to ctrl+shift p again to get to select refactor

Am I missing some obvious shortcut or easier way to do things? Could visual mode communicate with VS Code and show the lightbulb and allow ctrl+shift r as insert mode does for refactoring?

created time in a month

startedjohn-davies/shellpomo

started time in a month

issue closeddprint/dprint-plugin-typescript

Parameters do not go to a single line when they possibly could

Describe the bug

Does not work like the latest Prettier. Seems like a waste of screen space and less readable.

dprint-plugin-typescript version: deno 1.4.1

Input Code (formatted by Deno)

  constructor(
    position: Vector2,
  ) {
    this.position = position;
    this.keyboardInput = new KeyboardInputable();
  }

Expected Output (formatted by Prettier)

  constructor(position: Vector2) {
    this.position = position;
    this.keyboardInput = new KeyboardInputable();
  }

closed time in a month

David-Else

issue commentdprint/dprint-plugin-typescript

Parameters do not go to a single line when they possibly could

Thanks for the fast feedback! I hope preferSingleLine becomes the default in Deno soon.

David-Else

comment created time in a month

issue openeddprint/dprint-plugin-typescript

Does not work like the latest Prettier

Describe the bug

Does not work like the latest Prettier. Seems like a waste of screen space and less readable.

dprint-plugin-typescript version: deno 1.4.1

Input Code (formatted by Deno)

  constructor(
    position: Vector2,
  ) {
    this.position = position;
    this.keyboardInput = new KeyboardInputable();
  }

Expected Output (formatted by Prettier)

  constructor(position: Vector2) {
    this.position = position;
    this.keyboardInput = new KeyboardInputable();
  }

created time in a month

issue commentdenoland/vscode_deno

Try to refactoring the typescript-deno-plugin

@CGQAQ Thanks so much for trying!

Can't really use Deno in mixed projects until we get include/exclude, so I hope Deno LSP will appear sooner rather than later :)

CGQAQ

comment created time in a month

issue openeddenoland/vscode_deno

Debugger not working, Unable to retrieve source content from standard library

I press f5 in mod.ts to debug, choose deno, but then a file called colors.ts appears with:

Could not load source '/home/xx/workspace-directory/std@0.70.0/fmt/colors.ts': Unable to retrieve source content.

The repo is https://github.com/David-Else/eslint-config-octopus and video: out

Versions

vscode: 1.49.1 deno: 1.4.1 extension: 2.3.1

created time in a month

startedpluginkollektiv/statify

started time in a month

startedpluginkollektiv/antispam-bee

started time in a month

startedsdushantha/tmpmail

started time in a month

push eventDavid-Else/eslint-config-octopus

David

commit sha 48b2c6a3aad5498afd8cd9d313d1ba91f78c27e6

Update deps

view details

push time in a month

issue openeddenoland/vscode_deno

[Feature Request] Format untitiled files

(assuming you have set Deno to be the default format option for JS/TS)

At the moment trying to format a JS/TS file that has not been saved gets Deno cannot format '/Untitled-1'. Prettier can format un-saved files, it would be a nice feature for Deno.

created time in a month

startedf0lg0/ts-extended-cheatsheet

started time in a month

pull request commentdenoland/vscode_deno

refactor: import_enhanced feature now support nest.land

3 sounds best to me.

CGQAQ

comment created time in a month

pull request commentdenoland/vscode_deno

refactor: import_enhanced feature now support nest.land

I see nothing wrong with allowing the user to add new repositories for the auto-complete, but I don't think any 3rd party ones should be built-in by default. As this extension is official, it should only officially support official resources.

Allowing the user to add things like nest.land is a really cool feature, but should be up to the user to configure and use at their own risk.

I think would solve the dilemma?

Ideally vscode-deno should define the API and vendors can choose to adopt it.

CGQAQ

comment created time in a month

issue commentdprint/dprint

Instructions or plugin for using vim/neovim

I found this article that explains things: https://www.vimfromscratch.com/articles/setting-up-vim-for-typescript

Formatting

I use prettier which is an opinionated (still configurable to some extent) formatter for many languages, including HTML, CSS and JavaScript. It can also format TypeScript files just fine.

Add this to your file.

autocmd FileType typescript setlocal formatprg=prettier\ --parser\ typescript

And now you can format your entire files with formatting motions, for example gggqG. If you don’t know how formatting motions work in Vim you can use :help gq.

So you can format just bits of the code with the motions, or the entire file with gg go to top, gq format, G go to the bottom.

I am using VS Code at the moment with Deno for formatting, only missing markdown formatting with ts code blocks then I can delete prettier :) Were you adding markdown formatting to Deno? https://github.com/denoland/deno/issues/7352

David-Else

comment created time in a month

issue commentdprint/dprint

Instructions or plugin for using vim/neovim

I found Vim and Neovim have a built-in way to use external formatters:

https://neovim.io/doc/user/options.html#%27formatprg%27

and here is a 'wrapper' plugin that demonstrates how to use it with different file types:

https://github.com/joereynolds/gq.vim

David-Else

comment created time in a month

startedjoereynolds/gq.vim

started time in a month

startedmhartington/formatter.nvim

started time in a month

issue openedgabrielfroes/youtube-chapter-extractor

Argument of type 'string | URL' is not assignable to parameter of type 'string'

Running Linux

deno --version
deno 1.4.0
v8 8.7.75
typescript 4.0.2
deno run --allow-read --allow-net app.ts
Download https://deno.land/x/dotenv/mod.ts
Download https://deno.land/x/cors/mod.ts
Warning Implicitly using latest version (v1.2.0) for https://deno.land/x/cors/mod.ts
Download https://deno.land/x/cors@v1.2.0/mod.ts
Warning Implicitly using latest version (v0.5.0) for https://deno.land/x/dotenv/mod.ts
Download https://deno.land/x/dotenv@v0.5.0/mod.ts
Download https://deno.land/x/cors@v1.2.0/types.ts
Download https://deno.land/x/cors@v1.2.0/oakCors.ts
Download https://deno.land/x/cors@v1.2.0/abcCors.ts
Download https://deno.land/x/cors@v1.2.0/opineCors.ts
Download https://deno.land/x/cors@v1.2.0/mithCors.ts
Download https://deno.land/x/cors@v1.2.0/attainCors.ts
Download https://deno.land/x/dotenv@v0.5.0/util.ts
Download https://deno.land/x/cors@v1.2.0/cors.ts
Check file:///home/david/sites/youtube-chapter-extractor/api/app.ts
error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname
                 ~~~
    at https://deno.land/std@0.53.0/path/win32.ts:911:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname;
                 ~~~
    at https://deno.land/std@0.53.0/path/posix.ts:433:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname
                 ~~~
    at https://deno.land/std@0.51.0/path/win32.ts:911:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname;
                 ~~~
    at https://deno.land/std@0.51.0/path/posix.ts:433:18

Found 4 errors.

created time in a month

issue commentdenoland/deno_lint

Number of supported rules and actual rules with `deno --rules` does not match

OK, I will close the issue, but I hope you can optionally use them soon, otherwise it is a waste of good lint rules!

David-Else

comment created time in 2 months

issue closeddenoland/deno_lint

Number of supported rules and actual rules with `deno --rules` does not match

The website README.md says 79 rules supported, deno lint --rules --unstable says 65 rules.

deno --version
deno 1.4.0
v8 8.7.75
typescript 4.0.2

closed time in 2 months

David-Else

issue commentdenoland/deno_lint

Number of supported rules and actual rules with `deno --rules` does not match

How do you use all rules?

David-Else

comment created time in 2 months

issue commentdenoland/deno_lint

Number of supported rules and actual rules with `deno --rules` does not match

I am talking about https://github.com/denoland/deno_lint having 79 rules

David-Else

comment created time in 2 months

issue openeddenoland/deno_lint

Supported rules and actual rules with `deno --rules` does not match

The website README.md says 79 rules supported, deno lint --rules --unstable says 65 rules.

deno --version
deno 1.4.0
v8 8.7.75
typescript 4.0.2

created time in 2 months

issue commenttypescript-eslint/typescript-eslint

[restrict-template-expressions] Does not accept that a function is returning a string, thinks it is `any`

deps.ts has:

export { green, bold } from "https://deno.land/std@0.69.0/fmt/colors.ts"

Does typescript actually understand deno dependencies?

I really don't know how it all works under the hood. The Deno Code extension enables the .ts on the imports, and then it works with the TypeScript language server. typescript-eslint works fine for the rest of my project, and only has problems with restrict-template-expressions so far. Project is: https://github.com/David-Else/eslint-config-octopus.

Sorry to waste your time if this was never intended to work with Deno dependencies. Deno has its own lint https://github.com/denoland/deno_lint but it is quite basic in comparison.

David-Else

comment created time in 2 months

push eventDavid-Else/eslint-config-octopus

David

commit sha aabed5cb5b025403dc23e6d17f539e3d3721d6a3

Update deps

view details

push time in 2 months

push eventDavid-Else/eslint-config-octopus

David

commit sha df98e24cce4172f0cb284a5fe28ceeadd32726ef

Update deps

view details

push time in 2 months

issue openedtypescript-eslint/typescript-eslint

[restrict-template-expressions] Does not accept that a function is returning a string, thinks it is `any`

<!-- If you have a problem with a specific rule, please begin your issue title with [rulename] to make it easier to search for. I.e. "[no-unused-vars] False positive when fooing the bar"

Please don't ignore this template.

If you ignore it, we're just going to respond asking you to fill it out, which wastes everyone's time. The more relevant information you can include, the faster we can find the issue and fix it without asking you for more info. -->

<!-- Are you opening an issue because the rule you're trying to use is not found? 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

  1. Check the releases log: https://github.com/typescript-eslint/typescript-eslint/releases
    • If the rule isn't listed there, then chances are it hasn't been released to the main npm tag yet.
  2. Try installing the canary tag: npm i @typescript-eslint/eslint-plugin@canary.
    • The canary tag is built for every commit to master, so it contains the bleeding edge build.
  3. If ESLint still can't find the rule, then consider reporting an issue. -->
  • [x] I have tried restarting my IDE and the issue persists.
  • [x] I have updated to the latest version of the packages.
  • [x] I have read the FAQ and my problem is not listed.

Expected Result

The function bold returns a string, but the extension sees it as any which is wrong.

(alias) bold(str: string): string import bold

Actual Result

Invalid type "any" of template literal expression.eslint(@typescript-eslint/restrict-template-expressions)

Repro I am using the deno extension https://github.com/denoland/vscode_deno , and the bold library that returns a string.

import { bold } from "./deps.ts";

export function outputToConsole(
): void {
  console.log(`
⛔${bold(`hello`)} Rules Removed:
`);
}

{
  "env": {
    "browser": true,
    "es6": true,
    "node": true
  },
  "extends": [
    "plugin:@typescript-eslint/recommended",
    "plugin:@typescript-eslint/recommended-requiring-type-checking"
  ],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "plugins": [
    "@typescript-eslint"
  ],
  "rules": {
    "@typescript-eslint/naming-convention": [
      "error",
      {
        "selector": "variable",
        "format": [
          "camelCase",
          "PascalCase",
          "UPPER_CASE"
        ]
      },
      {
        "selector": "function",
        "format": [
          "camelCase",
          "PascalCase"
        ]
      },
      {
        "selector": "typeLike",
        "format": [
          "PascalCase"
        ]
      }
    ],
    "@typescript-eslint/dot-notation": [
      "error",
      {
        "allowKeywords": true,
        "allowPattern": "",
        "allowPrivateClassPropertyAccess": false
      }
    ],
    "@typescript-eslint/lines-between-class-members": "off",
    "@typescript-eslint/no-array-constructor": [
      "error"
    ],
    "@typescript-eslint/no-dupe-class-members": [
      "error"
    ],
    "@typescript-eslint/no-empty-function": [
      "error",
      {
        "allow": [
          "arrowFunctions",
          "functions",
          "methods"
        ]
      }
    ],
    "@typescript-eslint/no-implied-eval": [
      "error"
    ],
    "@typescript-eslint/no-throw-literal": "error",
    "@typescript-eslint/no-unused-expressions": [
      "error",
      {
        "allowShortCircuit": false,
        "allowTernary": false,
        "allowTaggedTemplates": false
      }
    ],
    "@typescript-eslint/no-unused-vars": [
      "error",
      {
        "vars": "all",
        "args": "after-used",
        "ignoreRestSiblings": true
      }
    ],
    "@typescript-eslint/no-use-before-define": [
      "error",
      {
        "functions": true,
        "classes": true,
        "variables": true
      }
    ],
    "@typescript-eslint/no-useless-constructor": [
      "error"
    ],
    "strict": [
      "error",
      "never"
    ],
    "constructor-super": [
      "error"
    ],
    "no-class-assign": [
      "error"
    ],
    "no-useless-computed-key": [
      "error"
    ],
    "no-useless-rename": [
      "error",
      {
        "ignoreDestructuring": false,
        "ignoreImport": false,
        "ignoreExport": false
      }
    ],
    "no-var": [
      "error"
    ],
    "object-shorthand": [
      "error",
      "always",
      {
        "ignoreConstructors": false,
        "avoidQuotes": true
      }
    ],
    "prefer-const": [
      "error",
      {
        "destructuring": "any",
        "ignoreReadBeforeAssign": true
      }
    ],
    "prefer-destructuring": [
      "error",
      {
        "VariableDeclarator": {
          "array": false,
          "object": true
        },
        "AssignmentExpression": {
          "array": true,
          "object": false
        }
      },
      {
        "enforceForRenamedProperties": false
      }
    ],
    "prefer-numeric-literals": [
      "error"
    ],
    "prefer-rest-params": [
      "error"
    ],
    "prefer-spread": [
      "error"
    ],
    "prefer-template": [
      "error"
    ],
    "require-yield": [
      "error"
    ],
    "symbol-description": [
      "error"
    ],
    "no-delete-var": [
      "error"
    ],
    "no-label-var": [
      "error"
    ],
    "no-restricted-globals": [
      "error",
      "isFinite",
      "isNaN",
      "addEventListener",
      "blur",
      "close",
      "closed",
      "confirm",
      "defaultStatus",
      "defaultstatus",
      "event",
      "external",
      "find",
      "focus",
      "frameElement",
      "frames",
      "history",
      "innerHeight",
      "innerWidth",
      "length",
      "location",
      "locationbar",
      "menubar",
      "moveBy",
      "moveTo",
      "name",
      "onblur",
      "onerror",
      "onfocus",
      "onload",
      "onresize",
      "onunload",
      "open",
      "opener",
      "opera",
      "outerHeight",
      "outerWidth",
      "pageXOffset",
      "pageYOffset",
      "parent",
      "print",
      "removeEventListener",
      "resizeBy",
      "resizeTo",
      "screen",
      "screenLeft",
      "screenTop",
      "screenX",
      "screenY",
      "scroll",
      "scrollbars",
      "scrollBy",
      "scrollTo",
      "scrollX",
      "scrollY",
      "self",
      "status",
      "statusbar",
      "stop",
      "toolbar",
      "top"
    ],
    "no-shadow": [
      "error"
    ],
    "no-shadow-restricted-names": [
      "error"
    ],
    "no-undef-init": [
      "error"
    ],
    "func-names": [
      "warn"
    ],
    "lines-around-directive": [
      "error",
      {
        "before": "always",
        "after": "always"
      }
    ],
    "new-cap": [
      "error",
      {
        "newIsCap": true,
        "newIsCapExceptions": [],
        "capIsNew": false,
        "capIsNewExceptions": [
          "Immutable.Map",
          "Immutable.Set",
          "Immutable.List"
        ],
        "properties": true
      }
    ],
    "no-bitwise": [
      "error"
    ],
    "no-continue": [
      "error"
    ],
    "no-lonely-if": [
      "error"
    ],
    "no-multi-assign": [
      "error"
    ],
    "no-nested-ternary": [
      "error"
    ],
    "no-new-object": [
      "error"
    ],
    "no-plusplus": [
      "error"
    ],
    "no-restricted-syntax": [
      "error",
      {
        "selector": "ForInStatement",
        "message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."
      },
      {
        "selector": "ForOfStatement",
        "message": "iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations."
      },
      {
        "selector": "LabeledStatement",
        "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
      },
      {
        "selector": "WithStatement",
        "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
      }
    ],
    "no-underscore-dangle": [
      "error",
      {
        "allow": [],
        "allowAfterThis": false,
        "allowAfterSuper": false,
        "enforceInMethodNames": true,
        "allowAfterThisConstructor": false,
        "allowFunctionParams": true
      }
    ],
    "no-unneeded-ternary": [
      "error",
      {
        "defaultAssignment": false
      }
    ],
    "one-var": [
      "error",
      "never"
    ],
    "operator-assignment": [
      "error",
      "always"
    ],
    "prefer-object-spread": [
      "error"
    ],
    "spaced-comment": [
      "error",
      "always",
      {
        "line": {
          "exceptions": [
            "-",
            "+"
          ],
          "markers": [
            "=",
            "!",
            "/"
          ]
        },
        "block": {
          "exceptions": [
            "-",
            "+"
          ],
          "markers": [
            "=",
            "!",
            ":",
            "::"
          ],
          "balanced": true
        }
      }
    ],
    "global-require": [
      "error"
    ],
    "no-buffer-constructor": [
      "error"
    ],
    "no-new-require": [
      "error"
    ],
    "no-path-concat": [
      "error"
    ],
    "for-direction": [
      "error"
    ],
    "no-async-promise-executor": [
      "error"
    ],
    "no-await-in-loop": [
      "error"
    ],
    "no-compare-neg-zero": [
      "error"
    ],
    "no-cond-assign": [
      "error",
      "always"
    ],
    "no-constant-condition": [
      "warn"
    ],
    "no-control-regex": [
      "error"
    ],
    "no-debugger": [
      "error"
    ],
    "no-duplicate-case": [
      "error"
    ],
    "no-empty": [
      "error"
    ],
    "no-empty-character-class": [
      "error"
    ],
    "no-ex-assign": [
      "error"
    ],
    "no-extra-boolean-cast": [
      "error"
    ],
    "no-func-assign": [
      "error"
    ],
    "no-inner-declarations": [
      "error"
    ],
    "no-invalid-regexp": [
      "error"
    ],
    "no-irregular-whitespace": [
      "error"
    ],
    "no-misleading-character-class": [
      "error"
    ],
    "no-obj-calls": [
      "error"
    ],
    "no-prototype-builtins": [
      "error"
    ],
    "no-regex-spaces": [
      "error"
    ],
    "no-sparse-arrays": [
      "error"
    ],
    "no-template-curly-in-string": [
      "error"
    ],
    "no-unsafe-finally": [
      "error"
    ],
    "no-unsafe-negation": [
      "error"
    ],
    "use-isnan": [
      "error"
    ],
    "array-callback-return": [
      "error",
      {
        "allowImplicit": true,
        "checkForEach": false
      }
    ],
    "block-scoped-var": [
      "error"
    ],
    "class-methods-use-this": [
      "error",
      {
        "exceptMethods": []
      }
    ],
    "consistent-return": [
      "error"
    ],
    "default-case": [
      "error",
      {
        "commentPattern": "^no default$"
      }
    ],
    "eqeqeq": [
      "error",
      "always",
      {
        "null": "ignore"
      }
    ],
    "guard-for-in": [
      "error"
    ],
    "max-classes-per-file": [
      "error",
      1
    ],
    "no-alert": [
      "warn"
    ],
    "no-caller": [
      "error"
    ],
    "no-case-declarations": [
      "error"
    ],
    "no-else-return": [
      "error",
      {
        "allowElseIf": false
      }
    ],
    "no-empty-pattern": [
      "error"
    ],
    "no-eval": [
      "error"
    ],
    "no-extend-native": [
      "error"
    ],
    "no-extra-bind": [
      "error"
    ],
    "no-extra-label": [
      "error"
    ],
    "no-fallthrough": [
      "error"
    ],
    "no-global-assign": [
      "error",
      {
        "exceptions": []
      }
    ],
    "no-iterator": [
      "error"
    ],
    "no-labels": [
      "error",
      {
        "allowLoop": false,
        "allowSwitch": false
      }
    ],
    "no-lone-blocks": [
      "error"
    ],
    "no-loop-func": [
      "error"
    ],
    "no-multi-str": [
      "error"
    ],
    "no-new": [
      "error"
    ],
    "no-new-func": [
      "error"
    ],
    "no-new-wrappers": [
      "error"
    ],
    "no-octal": [
      "error"
    ],
    "no-octal-escape": [
      "error"
    ],
    "no-param-reassign": [
      "error",
      {
        "props": true,
        "ignorePropertyModificationsFor": [
          "acc",
          "accumulator",
          "e",
          "ctx",
          "context",
          "req",
          "request",
          "res",
          "response",
          "$scope",
          "staticContext"
        ]
      }
    ],
    "no-proto": [
      "error"
    ],
    "no-restricted-properties": [
      "error",
      {
        "object": "arguments",
        "property": "callee",
        "message": "arguments.callee is deprecated"
      },
      {
        "object": "global",
        "property": "isFinite",
        "message": "Please use Number.isFinite instead"
      },
      {
        "object": "self",
        "property": "isFinite",
        "message": "Please use Number.isFinite instead"
      },
      {
        "object": "window",
        "property": "isFinite",
        "message": "Please use Number.isFinite instead"
      },
      {
        "object": "global",
        "property": "isNaN",
        "message": "Please use Number.isNaN instead"
      },
      {
        "object": "self",
        "property": "isNaN",
        "message": "Please use Number.isNaN instead"
      },
      {
        "object": "window",
        "property": "isNaN",
        "message": "Please use Number.isNaN instead"
      },
      {
        "property": "__defineGetter__",
        "message": "Please use Object.defineProperty instead."
      },
      {
        "property": "__defineSetter__",
        "message": "Please use Object.defineProperty instead."
      },
      {
        "object": "Math",
        "property": "pow",
        "message": "Use the exponentiation operator (**) instead."
      }
    ],
    "no-return-assign": [
      "error",
      "always"
    ],
    "no-return-await": [
      "error"
    ],
    "no-script-url": [
      "error"
    ],
    "no-self-assign": [
      "error",
      {
        "props": true
      }
    ],
    "no-self-compare": [
      "error"
    ],
    "no-sequences": [
      "error"
    ],
    "no-unused-labels": [
      "error"
    ],
    "no-useless-catch": [
      "error"
    ],
    "no-useless-concat": [
      "error"
    ],
    "no-useless-escape": [
      "error"
    ],
    "no-useless-return": [
      "error"
    ],
    "no-void": [
      "error"
    ],
    "no-with": [
      "error"
    ],
    "prefer-promise-reject-errors": [
      "error",
      {
        "allowEmptyReject": true
      }
    ],
    "radix": [
      "error"
    ],
    "vars-on-top": [
      "error"
    ],
    "yoda": [
      "error"
    ],
    "@typescript-eslint/no-unsafe-assignment": "off",
    "@typescript-eslint/no-unsafe-call": "off",
    "@typescript-eslint/no-unsafe-member-access": "off",
    "@typescript-eslint/no-unsafe-return": "off",
    "@typescript-eslint/no-unnecessary-condition": "error",
    "@typescript-eslint/no-unnecessary-qualifier": "error",
    "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
    "@typescript-eslint/no-unnecessary-type-arguments": "error",
    "@typescript-eslint/no-dynamic-delete": "error",
    "@typescript-eslint/no-require-imports": "error",
    "@typescript-eslint/prefer-readonly": "error",
    "@typescript-eslint/prefer-readonly-parameter-types": "error",
    "@typescript-eslint/prefer-nullish-coalescing": "error",
    "@typescript-eslint/prefer-optional-chain": "error",
    "@typescript-eslint/prefer-string-starts-ends-with": "error",
    "@typescript-eslint/prefer-ts-expect-error": "error",
    "@typescript-eslint/consistent-type-assertions": "error",
    "@typescript-eslint/consistent-type-definitions": [
      "error",
      "interface"
    ],
    "@typescript-eslint/member-delimiter-style": "error",
    "@typescript-eslint/member-ordering": "error",
    "@typescript-eslint/method-signature-style": "error",
    "@typescript-eslint/array-type": "error",
    "@typescript-eslint/switch-exhaustiveness-check": "error",
    "@typescript-eslint/explicit-function-return-type": "error",
    "no-console": "off",
    "max-lines-per-function": [
      "error",
      {
        "max": 50,
        "skipBlankLines": true,
        "skipComments": true,
        "IIFEs": true
      }
    ]
  }
}
{
  "compilerOptions": {
    /* Visit https://aka.ms/tsconfig.json to read more about this file */

    /* Basic Options */
    // "incremental": true,                   /* Enable incremental compilation */
    "target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
    "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
    // "lib": [],                             /* Specify library files to be included in the compilation. */
    // "allowJs": true,                       /* Allow javascript files to be compiled. */
    // "checkJs": true,                       /* Report errors in .js files. */
    // "jsx": "preserve",                     /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
    // "declaration": true,                   /* Generates corresponding '.d.ts' file. */
    // "declarationMap": true,                /* Generates a sourcemap for each corresponding '.d.ts' file. */
    // "sourceMap": true,                     /* Generates corresponding '.map' file. */
    // "outFile": "./",                       /* Concatenate and emit output to single file. */
    // "outDir": "./",                        /* Redirect output structure to the directory. */
    // "rootDir": "./",                       /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
    // "composite": true,                     /* Enable project compilation */
    // "tsBuildInfoFile": "./",               /* Specify file to store incremental compilation information */
    // "removeComments": true,                /* Do not emit comments to output. */
    // "noEmit": true,                        /* Do not emit outputs. */
    // "importHelpers": true,                 /* Import emit helpers from 'tslib'. */
    // "downlevelIteration": true,            /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
    // "isolatedModules": true,               /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

    /* Strict Type-Checking Options */
    "strict": true /* Enable all strict type-checking options. */,
    // "noImplicitAny": true,                 /* Raise error on expressions and declarations with an implied 'any' type. */
    // "strictNullChecks": true,              /* Enable strict null checks. */
    // "strictFunctionTypes": true,           /* Enable strict checking of function types. */
    // "strictBindCallApply": true,           /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
    // "strictPropertyInitialization": true,  /* Enable strict checking of property initialization in classes. */
    // "noImplicitThis": true,                /* Raise error on 'this' expressions with an implied 'any' type. */
    // "alwaysStrict": true,                  /* Parse in strict mode and emit "use strict" for each source file. */

    /* Additional Checks */
    // "noUnusedLocals": true,                /* Report errors on unused locals. */
    // "noUnusedParameters": true,            /* Report errors on unused parameters. */
    // "noImplicitReturns": true,             /* Report error when not all code paths in function return a value. */
    // "noFallthroughCasesInSwitch": true,    /* Report errors for fallthrough cases in switch statement. */

    /* Module Resolution Options */
    // "moduleResolution": "node",            /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
    // "baseUrl": "./",                       /* Base directory to resolve non-absolute module names. */
    // "paths": {},                           /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
    // "rootDirs": [],                        /* List of root folders whose combined content represents the structure of the project at runtime. */
    // "typeRoots": [],                       /* List of folders to include type definitions from. */
    // "types": [],                           /* Type declaration files to be included in compilation. */
    // "allowSyntheticDefaultImports": true,  /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
    "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
    // "preserveSymlinks": true,              /* Do not resolve the real path of symlinks. */
    // "allowUmdGlobalAccess": true,          /* Allow accessing UMD globals from modules. */

    /* Source Map Options */
    // "sourceRoot": "",                      /* Specify the location where debugger should locate TypeScript files instead of source locations. */
    // "mapRoot": "",                         /* Specify the location where debugger should locate map files instead of generated locations. */
    // "inlineSourceMap": true,               /* Emit a single file with source maps instead of having a separate file. */
    // "inlineSources": true,                 /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */

    /* Experimental Options */
    // "experimentalDecorators": true,        /* Enables experimental support for ES7 decorators. */
    // "emitDecoratorMetadata": true,         /* Enables experimental support for emitting type metadata for decorators. */

    /* Advanced Options */
    "skipLibCheck": true /* Skip type checking of declaration files. */,
    "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
  },
  "include": ["./**/*"],
  "exclude": ["node_modules"]
}
// your repro code case

<!-- Also include your tsconfig, if you're using type-aware linting -->

Additional Info

<!-- Did eslint throw an exception?

Please run your lint again with the --debug flag, and dump the output below. i.e. eslint --ext ".ts,.js" src --debug -->

Versions

  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "4.1.0",
    "@typescript-eslint/parser": "4.1.0",
    "eslint": "^7.9.0",
    "eslint-config-airbnb-typescript": "10.0.0",
    "eslint-config-prettier": "6.11.0",
    "eslint-plugin-import": "2.22.0",
    "typescript": "^4.0.2"

created time in 2 months

issue commentdenoland/vscode_deno

Publish this extension to the OpenVSX marketplace

https://open-vsx.org/extension/denoland/vscode-deno published by open-vsx

The namespace denoland is public, which means that everyone can publish new versions of the “Deno” extension. If you would like to become the owner of denoland, please read this guide.

I don't know the implications of this, but it does seem to be automatically published already.

andreubotella

comment created time in 2 months

pull request commentdenoland/vscode_deno

Add enable disable command

I remember this addition was debated before in the old extension and removed. I like the idea, but my only reservation is that now there are more options, logically they should be togglable as well? Perhaps instead Init Deno project creates and opens:

// .vscode/settings.json
{
  "deno.enable": true,
  "deno.unstable": true,
  "deno.lint": true,
}

This could be a nice time-saver? It would force people to make decisions on these options right away, and educate them that they exist.

CGQAQ

comment created time in 2 months

issue openeddenoland/vscode_deno

"A request has failed. See the output for more information" when format fails, and it always shows output as the cancel `x` button is broken

When using the extension to format TypeScript on save,

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

it is very common that there is a problem with your code which means it can't complete. This is an advantage of format on save, it can auto-complete things for you, and it can't always be right. In the Prettier extension, there is a little logo at the screen bottom that indicates it can't format.

With the Deno extension it issues the pop-up warning:

"A request has failed. See the output for more information."

1

If you press the x to cancel, then there is a bug as it shows the output anyway:

2

This completely interrupts the workflow as the user now has to close two windows to continue.

Versions

vscode: 1.49.0 deno: 1.3.3 extension: 2.2.1

created time in 2 months

issue commentdenoland/deno_lint

TypeScript Specific Linter

I have not looked into if this is being done already by deno_lint, but when TypeScript is being used then the "plugin:@typescript-eslint/eslint-recommended" rules should override the eslint-recommended rules. This is how the typescript-eslint plugin operates:

https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/src/configs#eslint-recommended

https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/eslint-recommended.ts

/**
 * This is a compatibility ruleset that:
 * - disables rules from eslint:recommended which are already handled by TypeScript.
 * - enables rules that make sense due to TS's typechecking / transpilation.
 */
export = {
  overrides: [
    {
      files: ['*.ts', '*.tsx'],
      rules: {
        'constructor-super': 'off', // ts(2335) & ts(2377)
        'getter-return': 'off', // ts(2378)
        'no-const-assign': 'off', // ts(2588)
        'no-dupe-args': 'off', // ts(2300)
        'no-dupe-class-members': 'off', // ts(2393) & ts(2300)
        'no-dupe-keys': 'off', // ts(1117)
        'no-func-assign': 'off', // ts(2539)
        'no-import-assign': 'off', // ts(2539) & ts(2540)
        'no-new-symbol': 'off', // ts(2588)
        'no-obj-calls': 'off', // ts(2349)
        'no-redeclare': 'off', // ts(2451)
        'no-setter-return': 'off', // ts(2408)
        'no-this-before-super': 'off', // ts(2376)
        'no-undef': 'off', // ts(2304)
        'no-unreachable': 'off', // ts(7027)
        'no-unsafe-negation': 'off', // ts(2365) & ts(2360) & ts(2358)
        'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more
        'prefer-const': 'error', // ts provides better types with const
        'prefer-rest-params': 'error', // ts provides better types with rest args over arguments
        'prefer-spread': 'error', // ts transpiles spread to apply, so no need for manual apply
        'valid-typeof': 'off', // ts(2367)
      },
    },
  ],
};
Skillz4Killz

comment created time in 2 months

issue commentdenoland/vscode_deno

formatter runs when deno.enable = false

@CGQAQ If you try and fix it, please make sure we can still use the formatter with:

"deno.enable": false,

and:

"editor.defaultFormatter": "denoland.vscode-deno"
kyeotic

comment created time in 2 months

issue commentdenoland/vscode_deno

improve Deno Language Server

@kyeotic Well, that is not good! I thought that bug had gone.

I just want to make sure that we can always run the formatter without the language server running with"editor.defaultFormatter": "denoland.vscode-deno". Hopefull Markdown with code blocks will be supported soon too https://github.com/denoland/deno/issues/7352

axetroy

comment created time in 2 months

more