Skip to content

Commit

Permalink
fix: Hide Deprecated Dictionary Definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Feb 20, 2020
1 parent 26a821d commit 4be61b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 56 deletions.
57 changes: 1 addition & 56 deletions cspell.schema.json
Expand Up @@ -3,53 +3,7 @@
"additionalProperties": false,
"definitions": {
"DictionaryDefinition": {
"anyOf": [
{
"$ref": "#/definitions/DictionaryDefinitionPreferred"
},
{
"$ref": "#/definitions/DictionaryDefinitionLegacy"
}
]
},
"DictionaryDefinitionLegacy": {
"additionalProperties": false,
"properties": {
"description": {
"description": "Optional description",
"type": "string"
},
"file": {
"$ref": "#/definitions/FsPath",
"description": "File name @deprecated use path"
},
"name": {
"$ref": "#/definitions/DictionaryId",
"description": "The reference name of the dictionary, used with program language settings"
},
"path": {
"$ref": "#/definitions/FsPath",
"description": "Path to the file, if undefined the path to the extension dictionaries is assumed"
},
"repMap": {
"$ref": "#/definitions/ReplaceMap",
"description": "Replacement pairs"
},
"type": {
"$ref": "#/definitions/DictionaryFileTypes",
"default": "S",
"description": "Type of file:\nS - single word per line,\nW - each line can contain one or more words separated by space,\nC - each line is treated like code (Camel Case is allowed)\nDefault is S\nC is the slowest to load due to the need to split each line based upon code splitting rules."
},
"useCompounds": {
"description": "Use Compounds",
"type": "boolean"
}
},
"required": [
"file",
"name"
],
"type": "object"
"$ref": "#/definitions/DictionaryDefinitionPreferred"
},
"DictionaryDefinitionPreferred": {
"additionalProperties": false,
Expand Down Expand Up @@ -81,15 +35,6 @@
],
"type": "object"
},
"DictionaryFileTypes": {
"enum": [
"S",
"W",
"C",
"T"
],
"type": "string"
},
"DictionaryId": {
"description": "This matches the name in a dictionary definition",
"type": "string"
Expand Down
1 change: 1 addition & 0 deletions packages/cspell-lib/src/Settings/CSpellSettingsDef.ts
Expand Up @@ -197,6 +197,7 @@ export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase

/**
* @deprecated
* @hidden
*/
export interface DictionaryDefinitionLegacy extends DictionaryDefinitionBase {
/** Path to the file, if undefined the path to the extension dictionaries is assumed */
Expand Down

0 comments on commit 4be61b4

Please sign in to comment.