diff --git a/schemas/dartls.json b/schemas/dartls.json index 2565c80..e67f6d5 100644 --- a/schemas/dartls.json +++ b/schemas/dartls.json @@ -486,6 +486,12 @@ "scope": "resource", "type": "boolean" }, + "dart.enablePub": { + "default": true, + "description": "Whether to enable functionality for using Pub. Turning this setting off will prevent the extension from ever running pub and hide all commands relating to this. Use this if you are using an alternative package manager.", + "scope": "window", + "type": "boolean" + }, "dart.enableSdkFormatter": { "default": true, "markdownDescription": "Whether to enable the [dart_style](https://pub.dev/packages/dart_style) formatter for Dart code.", diff --git a/schemas/tsserver.json b/schemas/tsserver.json index e09bc16..db9f2cc 100644 --- a/schemas/tsserver.json +++ b/schemas/tsserver.json @@ -312,23 +312,6 @@ "markdownDescription": "Sort numeric strings by integer value", "type": "boolean" }, - "presets": { - "default": "auto", - "enum": [ - "auto", - "eslint sort-imports", - "eslint plugin-simple-import-sort", - "dprint" - ], - "markdownDescription": "%typescript.preferences.organizeImports.presets%", - "markdownEnumDescriptions": [ - "%typescript.preferences.organizeImports.presets.auto%", - "%typescript.preferences.organizeImports.presets.eslintSortImports%", - "%typescript.preferences.organizeImports.presets.eslintPluginSimpleImportSort%", - "%typescript.preferences.organizeImports.presets.dprint%" - ], - "type": "string" - }, "typeOrder": { "default": "auto", "enum": [ @@ -947,23 +930,6 @@ "markdownDescription": "Sort numeric strings by integer value", "type": "boolean" }, - "presets": { - "default": "auto", - "enum": [ - "auto", - "eslint sort-imports", - "eslint plugin-simple-import-sort", - "dprint" - ], - "markdownDescription": "%typescript.preferences.organizeImports.presets%", - "markdownEnumDescriptions": [ - "%typescript.preferences.organizeImports.presets.auto%", - "%typescript.preferences.organizeImports.presets.eslintSortImports%", - "%typescript.preferences.organizeImports.presets.eslintPluginSimpleImportSort%", - "%typescript.preferences.organizeImports.presets.dprint%" - ], - "type": "string" - }, "typeOrder": { "default": "auto", "enum": [ diff --git a/types/lsp.lua b/types/lsp.lua index aa6912f..3eebefa 100644 --- a/types/lsp.lua +++ b/types/lsp.lua @@ -1153,6 +1153,12 @@ ---@field documentation "full" | "summary" | "none" -- Whether to automatically commit the selected completion item when pressing certain keys such as . , ( and \[. This setting does not currently apply to LSP, see `#dart.previewCommitCharacters#`. ---@field enableCompletionCommitCharacters boolean +-- Whether to enable functionality for using Pub. Turning this setting off will prevent the extension from ever running pub and hide all commands relating to this. Use this if you are using an alternative package manager. +-- +-- ```lua +-- default = true +-- ``` +---@field enablePub boolean -- Whether to enable the [dart_style](https://pub.dev/packages/dart_style) formatter for Dart code. -- -- ```lua @@ -15123,12 +15129,6 @@ ---@field locale string -- Sort numeric strings by integer value ---@field numericCollation boolean --- %typescript.preferences.organizeImports.presets% --- --- ```lua --- default = "auto" --- ``` ----@field presets "auto" | "eslint sort-imports" | "eslint plugin-simple-import-sort" | "dprint" -- ```lua -- default = "auto" -- ``` @@ -15546,12 +15546,6 @@ ---@field locale string -- Sort numeric strings by integer value ---@field numericCollation boolean --- %typescript.preferences.organizeImports.presets% --- --- ```lua --- default = "auto" --- ``` ----@field presets "auto" | "eslint sort-imports" | "eslint plugin-simple-import-sort" | "dprint" -- ```lua -- default = "auto" -- ```