File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ Integration with real database is available and controlled through VSCode option
111111 "inlineSQL.dbHost" : " localhost" ,
112112 "inlineSQL.dbPort" : 5432 ,
113113 "inlineSQL.dbUser" : " postgres" ,
114- "inlineSQL.dbPassword" : " postgres"
114+ "inlineSQL.dbPassword" : " postgres" ,
115+ "inlineSQL.lint" : true
115116}
116117```
117118
Original file line number Diff line number Diff line change 165165 "default" : " postgres" ,
166166 "markdownDescription" : " Database password."
167167 },
168+ "inlineSQL.lint" : {
169+ "type" : " boolean" ,
170+ "default" : true ,
171+ "markdownDescription" : " Disable lint, use only syntax highlighting."
172+ },
168173 "inlineSQL.lintSQLFiles" : {
169174 "type" : " boolean" ,
170175 "default" : false ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export type Configuration = {
1515 dbUser : string ;
1616 dbPassword : string ;
1717 lintSQLFiles : boolean ;
18+ lint : boolean ;
1819} ;
1920
2021export function getConfiguration ( ) {
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ async function checkRange(
1212) : Promise < vscode . Diagnostic [ ] > {
1313 const diagnostics : vscode . Diagnostic [ ] = [ ] ;
1414
15+ if ( ! configuration . get ( 'lint' ) ) {
16+ return diagnostics ;
17+ }
18+
1519 const sqlStr = doc . getText ( range ) ;
1620
1721 let errors = null ;
You can’t perform that action at this time.
0 commit comments