How to enable autocomplete for Google Apps Script in locally-installed IDE

I found the solution that partially works, but it may not be applicable to other software. The steps below are for Visual Studio Code: Install the NPM package containing type definitions for GAS using https://www.npmjs.com/package/@types/google-apps-script In your locally-saved script, create a ‘.js’ file and type import ‘google-apps-script’;

VS Code extension – get full path

If you need the File use uri.fsPath If you need the Workspace Folder use uri.path if(vscode.workspace.workspaceFolders !== undefined) { let wf = vscode.workspace.workspaceFolders[0].uri.path ; let f = vscode.workspace.workspaceFolders[0].uri.fsPath ; message = `YOUR-EXTENSION: folder: ${wf} – ${f}` ; vscode.window.showInformationMessage(message); } else { message = “YOUR-EXTENSION: Working folder not found, open a folder an try again” ; … Read more

Visual Studio Code – Can “OPEN EDITORS” panel be sorted?

Update 2020-12-16 With release v1.52.0 being shipped you can sort open editors. From the release notes: There is a new setting explorer.openEditors.sortOrder to control the sort order in the OPEN EDITORS list. The values are: editorOrder – Editors are listed in the same order as editor tabs are shown (default). alphabetical – Editors are listed … Read more

To use on Visual Studio Code, but show “Could not read from remote repository.”

I thought the answer by @codewizard was the correct one. Seems VS Code uses ‘id_rsa.pub’ key only, it was not using my other ssh key pair that git.exe was configured to use.(This key wasn’t name id_rsa.) However after generating a new id_rsa key pair, I still got permission denied (publickey). I Found my answer on … Read more

Why is @typescript-eslint/parser including files outside of those configured in my tsconfig.json?

Why this happens? I’m not entirely sure, but it seems like @typescript-eslint/parser tries to compare files covered in the eslint configuration (for example by extension) with files included in tsconfig.json. Since the .js files are covered by @typescript-eslint/parser and depending on your eslint configuration, the file is probably included in the eslint run. But because … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)