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

オープン
#5,701 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python, sql, vscode

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
3.3k
フォーク
471
平均マージ
6日 7時間
マージ済み PR(30日)
35

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SQLMesh/sqlmesh のほかの issue

SQLMesh/sqlmesh の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。