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 186186 "default" : " postgres" ,
187187 "markdownDescription" : " Database password."
188188 },
189+ "inlineSQL.lint" : {
190+ "type" : " boolean" ,
191+ "default" : true ,
192+ "markdownDescription" : " Disable lint, use only syntax highlighting."
193+ },
189194 "inlineSQL.lintSQLFiles" : {
190195 "type" : " boolean" ,
191196 "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 @@ -13,6 +13,10 @@ async function checkRange(
1313) : Promise < vscode . Diagnostic [ ] > {
1414 const diagnostics : vscode . Diagnostic [ ] = [ ] ;
1515
16+ if ( ! configuration . get ( 'lint' ) ) {
17+ return diagnostics ;
18+ }
19+
1620 const sqlStr = doc . getText ( range ) ;
1721
1822 let errors = null ;
You can’t perform that action at this time.
0 commit comments