File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -231,35 +231,6 @@ class PgindentDocumentFormatterProvider implements vscode.DocumentFormattingEdit
231231 return pgBsdIndent ;
232232 }
233233
234- private async saveCachedTypedefFile ( content : string , typedefsFile : vscode . Uri ,
235- workspace : vscode . WorkspaceFolder ) {
236- /*
237- * It's unlikely that '.vscode' directory missing, so omit checking
238- * and create if necessary.
239- */
240- let vscodeDir ;
241- logger . info ( 'caching result typedefs.list in %s' , typedefsFile . fsPath ) ;
242- try {
243- await utils . writeFile ( typedefsFile , content ) ;
244- return ;
245- } catch ( err ) {
246- /*
247- * During testing I deleted .vscode directory, but could not
248- * when writing to file - may be it's smart enough to create
249- * this folder for me, but nevertheless attempt to create it.
250- */
251- vscodeDir = utils . joinPath ( workspace . uri , '.vscode' ) ;
252- if ( await utils . directoryExists ( vscodeDir ) ) {
253- throw err ;
254- }
255- }
256-
257- logger . info ( '.vscode directory missing - creating one' ) ;
258- await utils . createDirectory ( vscodeDir ) ;
259- logger . info ( 'trying to cache typedefs.list file again: %s' , typedefsFile . fsPath ) ;
260- await utils . writeFile ( typedefsFile , content ) ;
261- }
262-
263234 private async getCustomTypedefs ( workspace : vscode . WorkspaceFolder ) {
264235 const configObj = await readConfigFile ( workspace ) ;
265236 if ( ! configObj ) {
You can’t perform that action at this time.
0 commit comments