microsoft / microsoft/TypeScript

"Debugging Language Service in VS Code" documentation is weird

Aperta
#19,254 10 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@DanielRosenwasser ci sta già lavorando.

Dal 18/10/2017.

Docs
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
1g 19h
PR unite (30g)
117

Descrizione

The "Debugging Language Service in VS Code" wiki is vague and sometimes confusing.

Update your user settings to use your development version of typescript, located in the .../TypeScript/built/local directory. The corresponding setting/path is

{
  "typescript.tsdk": "/path/to/repo/TypeScript/built/local"
}

User settings are stored per folder and it's not clear which folder should be used. Both typescript and vscode have been downloaded. There have been no instructions to open either version of code yet.

Debugging tsserver (server-side)
...
2. Update launch.json with an option to attach to the node instance, with sourcemaps from your built/local folder.

Again, which launch.json is being spoken about?

  1. Launch an instance of development vs code, and open a ts file.
  2. Launch an instance of stable vs code.
  3. Attach the stable vs code instance to the development instance.

Wouldn't it be easier to open an instance of code, change the launch.json and then open a .ts file or attach to the other instance?

It would be helpful to list the steps in order and with more detail, perhaps with an example path so that it's clear which instance of code is being opened, which folder said instance is opening (if any) and which files are being edited.

Given that there aren't too many steps, it should be quite reasonable to list all steps for each debugging excercise.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.