Skip to content

Commit

Permalink
Groups diagnostic configurations in renpy.diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
LuqueDaniel committed Feb 11, 2023
1 parent c7d4351 commit 895a167
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,32 +115,32 @@
"default": true,
"description": "Show Automatic Images in the displayable auto-completion list. If not checked (false), only images defined in the script will be shown. If checked (true), both script-defined images and images detected in the images folders will be shown."
},
"renpy.warnOnObsoleteMethods": {
"renpy.diagnostic.warnOnObsoleteMethods": {
"type": "boolean",
"default": true,
"description": "Enable obsolete method warnings. If checked (true), obsolete methods (e.g., im.Crop) will be marked with a warning in the editor."
},
"renpy.warnOnUndefinedPersistents": {
"renpy.diagnostic.warnOnUndefinedPersistents": {
"type": "boolean",
"default": true,
"description": "Enable undefined persistent warnings. If checked (true), persistent variables will be marked with a warning in the editor if they haven't been defaulted/defined."
},
"renpy.warnOnUndefinedStoreVariables": {
"renpy.diagnostic.warnOnUndefinedStoreVariables": {
"type": "boolean",
"default": true,
"description": "Enable undefined store variable warnings. If checked (true), store variables will be marked with a warning in the editor if they haven't been defaulted/defined."
},
"renpy.warnOnReservedVariableNames": {
"renpy.diagnostic.warnOnReservedVariableNames": {
"type": "boolean",
"default": true,
"description": "Enable reserved variable warnings. If checked (true), variables will be marked with an error in the editor if they are in the list of names reserved by Python."
},
"renpy.warnOnInvalidVariableNames": {
"renpy.diagnostic.warnOnInvalidVariableNames": {
"type": "boolean",
"default": true,
"description": "Enable invalid variable errors. Variables must begin with a letter or number. They may contain a '_' but may not begin with '_'. If set to true, variables will be flagged in the editor if they do not meet Ren'Py's specifications."
},
"renpy.warnOnIndentationAndSpacingIssues": {
"renpy.diagnostic.warnOnIndentationAndSpacingIssues": {
"type": "string",
"default": "Error",
"enum": [
Expand All @@ -155,7 +155,7 @@
],
"description": "Enable indentation and inconsistent spacing checks. If set to Error or Warning, tab characters and inconsistent indentation spacing will be marked in the editor. If set to Disabled, indentation issues will be ignored."
},
"renpy.warnOnInvalidFilenameIssues": {
"renpy.diagnostic.warnOnInvalidFilenameIssues": {
"type": "string",
"default": "Error",
"enum": [
Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function refreshDiagnostics(doc: TextDocument, diagnosticCollection: Diag
}

const diagnostics: Diagnostic[] = [];
const config = workspace.getConfiguration("renpy");
const config = workspace.getConfiguration("renpy.diagnostic");

//Filenames must begin with a letter or number,
//and may not begin with "00", as Ren'Py uses such files for its own purposes.
Expand Down

0 comments on commit 895a167

Please sign in to comment.