VS Code extension automatic .vscode/settings.json doesn't support non-root level project

Aperta
#5,701 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python, sql, vscode

Direzione di ricerca

Start in the VS Code extension code that creates the workspace's .vscode/settings.json; the issue does not name a file or test. Scope the suggestion settings to SQL as shown in the issue, then verify they no longer affect non-SQL files and still apply to SQL files.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug Project: VSCode Extension

The extension automatically add a .vscode/settings.json at the root level of the opened workspace:

{
    "editor.acceptSuggestionOnEnter": true,
    "editor.quickSuggestions": {
        "other": false,
        "comments": false,
        "strings": false
    },
    "editor.quickSuggestionsDelay": 300,
}

These settings apply to the entire workspace including files that are not related to the SQLMesh project. For instance in my workspace there are others folder (analytics, ingestion) containing Python, R and other language code affected by those settings.

Solution: Add an SQL language specifier

{
  "[sql]": {
    "editor.acceptSuggestionOnEnter": "on",
    "editor.quickSuggestions": {
      "other": false,
      "comments": false,
      "strings": false
    }
  }
}

It doesn't solve the underlying issue but settings.json doesn't support sub-folder settings aside multi-workspace (which would add complexity).

Lingua principale
Python
Stelle
3.3k
Fork
471
Merge medio
6g 7h
PR unite (30g)
35

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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.

Altre issue di SQLMesh/sqlmesh

Tutte le issue di SQLMesh/sqlmesh

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.