From dd4997208556914aaf8f9a49ce8bd3576d756313 Mon Sep 17 00:00:00 2001 From: Virgil Date: Wed, 24 Apr 2019 07:25:13 +1000 Subject: [PATCH 1/2] :wrench: add file association for `nginx.conf` Explicitly add `nginx.conf` to package definition and language grammar. --- package.json | 10 +++++----- syntaxes/nginx.tmLanguage.json | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8b05ef4..415ef27 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "engines": { "vscode": "^1.32.0" }, - "repository": { - "type": "GitHub", - "url": "https://github.com/william-voyek/vscode-nginx" - }, + "repository": { + "type": "GitHub", + "url": "https://github.com/william-voyek/vscode-nginx" + }, "categories": [ "Programming Languages" ], @@ -18,7 +18,7 @@ "languages": [{ "id": "nginx", "aliases": ["NGINX Conf", "nginx"], - "extensions": [".conf",".nginx"], + "extensions": ["nginx.conf", ".conf", ".nginx"], "configuration": "./language-configuration.json" }], "grammars": [{ diff --git a/syntaxes/nginx.tmLanguage.json b/syntaxes/nginx.tmLanguage.json index e80553a..425d0ad 100644 --- a/syntaxes/nginx.tmLanguage.json +++ b/syntaxes/nginx.tmLanguage.json @@ -2,7 +2,8 @@ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", "fileTypes": [ "conf", - "nginx" + "nginx", + "nginx.conf" ], "foldingStartMarker": "\\{\\s*$", "foldingStopMarker": "^\\s*\\}", From 75c7837f0bb8367fbd164d9173461791d4ea80e6 Mon Sep 17 00:00:00 2001 From: Virgil Date: Wed, 24 Apr 2019 07:31:37 +1000 Subject: [PATCH 2/2] :wrench: add file association for nginx include files - [x] mime.type - [x] fastcgi_params - [x] scgi_params - [x] uwsgi_params - [x] proxy_params - [x] fastcgi-php.conf - [x] fastcgi.conf --- syntaxes/nginx.tmLanguage.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/syntaxes/nginx.tmLanguage.json b/syntaxes/nginx.tmLanguage.json index 425d0ad..ac61869 100644 --- a/syntaxes/nginx.tmLanguage.json +++ b/syntaxes/nginx.tmLanguage.json @@ -3,7 +3,14 @@ "fileTypes": [ "conf", "nginx", - "nginx.conf" + "nginx.conf", + "mime.type", + "fastcgi_params", + "proxy_params", + "scgi_params", + "uwsgi_params", + "fastcgi-php.conf", + "fastcgi.conf" ], "foldingStartMarker": "\\{\\s*$", "foldingStopMarker": "^\\s*\\}",