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

Abierto
#5,701 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python, sql, vscode

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
Python
Estrellas
3.3k
Forks
471
Merge medio
6 d 7 h
PR fusionados (30 d)
35

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SQLMesh/sqlmesh

Todos los issues de SQLMesh/sqlmesh

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.