Pencarian

Selasa, 14 Januari 2020

Visual Studio Code snippet fugnsi php di blade laravel

Kode ini gunanya agar ketika menginstall extensionsnya laravel blade snippets di vscode milik onecentlin@gmail.com di link berikut :
https://github.com/onecentlin/laravel-blade-snippets-vscode  
autocomplete fungsi php tetap bisa muncul.

Saya cuma menghapus perintah agar extension ini tidak mengubah language nya menjadi blade, jadi lang nya tetap PHP.

Modif file package.json yang ada di 
C:\Users\nama-user\.vscode\extensions\onecentlin.laravel-blade-1.20.0\

jadi seperti ini :
{
    "name""laravel-blade",
    "displayName""Laravel Blade Snippets",
    "description""Laravel blade snippets and syntax highlight support",
    "version""1.20.0",
    "publisher""onecentlin",
    "author": {
        "name""Winnie Lin",
        "email""onecentlin@gmail.com",
        "url""https://devmanna.blogspot.com"
    },
    "homepage""https://github.com/onecentlin/laravel-blade-snippets-vscode",
    "repository": {
        "type""git",
        "url""https://github.com/onecentlin/laravel-blade-snippets-vscode"
    },
    "bugs": {
        "url""https://github.com/onecentlin/laravel-blade-snippets-vscode/issues"
    },
    "engines": {
        "vscode""^1.26.0"
    },
    "keywords": [
        "laravel",
        "blade",
        "template",
        "snippet",
        "formatter"
    ],
    "icon""images/icon.png",
    "galleryBanner": {
        "color""#f66f62",
        "theme""dark"
    },
    "categories": [
        "Programming Languages",
        "Snippets",
        "Formatters"
    ],
    "main""./out/src/extension",
    "scripts": {
        "build-srv""cd ./server && npm install && tsc -p ./",
        "vscode:prepublish""tsc -p ./ && pushd \"./\" && npm run build-srv && popd",
        "compile""tsc -watch -p ./",
        "postinstall""node ./node_modules/vscode/bin/install",
        "test""node ./node_modules/vscode/bin/test"
    },
    "contributes": {
        "grammars": [
            {
                "language""php",
                "scopeName""text.html.php.blade",
                "path""./syntaxes/blade.tmLanguage.json",
                "embeddedLanguages": {
                    "source.php""php",
                    "source.css""css",
                    "source.js""javascript"
                }
            }
        ],
        "snippets": [
            {
                "language""php",
                "path""./snippets/snippets.json"
            },
            {
                "language""php",
                "path""./snippets/helpers.json"
            }
        ],
        "configuration": {
            "title""Blade Configuration",
            "properties": {
                "blade.format.enable": {
                    "type""boolean",
                    "default"false,
                    "description""Enable format blade file"
                }
            }
        }
    },
    "activationEvents": [
        "onLanguage:blade"
    ],
    "devDependencies": {
        "@types/node""^8.0.17",
        "vscode""^1.1.33"
    },
    "dependencies": {
        "vscode-css-languageservice""^3.0.13",
        "vscode-html-languageservice""^2.1.12",
        "vscode-languageclient""^3.5.1",
        "vscode-languageserver-types""^3.14.0"
    },
    "__metadata": {
        "id""3b58a227-618a-4b57-a06b-6984a2a8d1ba",
        "publisherId""ae5a5701-dff3-41f0-bdb1-adbf4a18997b",
        "publisherDisplayName""Winnie Lin"
    }
}