From 39c821e272e78b4e6393a88369366b72d7619847 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= <sumneko@hotmail.com>
Date: Tue, 31 Jan 2023 20:14:23 +0800
Subject: [PATCH] improve displaying

---
 client/src/languageserver.ts |  2 +-
 package.json                 |  2 +-
 package.nls.json             |  1 +
 package.nls.pt-br.json       |  1 +
 package.nls.zh-cn.json       |  1 +
 package.nls.zh-tw.json       |  1 +
 package/package.lua          |  2 +-
 setting/schema-pt-br.json    | 16 ----------------
 setting/schema-zh-cn.json    | 16 ----------------
 setting/schema-zh-tw.json    | 16 ----------------
 setting/schema.json          | 16 ----------------
 11 files changed, 7 insertions(+), 67 deletions(-)

diff --git a/client/src/languageserver.ts b/client/src/languageserver.ts
index 6894fde..28f83b2 100644
--- a/client/src/languageserver.ts
+++ b/client/src/languageserver.ts
@@ -58,7 +58,7 @@ function registerCustomCommands(context: ExtensionContext) {
                 'server',
                 'log',
             ),
-            openLabel: "Export documents to this folder",
+            openLabel: "Export to this folder",
             canSelectFiles: false,
             canSelectFolders: true,
             canSelectMany: false,
diff --git a/package.json b/package.json
index 0b5fa25..10a294d 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
 			},
 			{
 				"command": "lua.exportDocument",
-				"title": "Export Document"
+				"title": "%command.exportDocument%"
 			}
 		],
 		"configuration": {
diff --git a/package.nls.json b/package.nls.json
index 2341f38..55186fb 100644
--- a/package.nls.json
+++ b/package.nls.json
@@ -1,4 +1,5 @@
 {
+    "command.exportDocument": "Export Document ...",
     "config.IntelliSense.traceBeSetted": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
     "config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
     "config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
diff --git a/package.nls.pt-br.json b/package.nls.pt-br.json
index c01e445..5c89298 100644
--- a/package.nls.pt-br.json
+++ b/package.nls.pt-br.json
@@ -1,4 +1,5 @@
 {
+    "command.exportDocument": "Export Document ...",
     "config.IntelliSense.traceBeSetted": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
     "config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
     "config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json
index b05a39f..32dc9b0 100644
--- a/package.nls.zh-cn.json
+++ b/package.nls.zh-cn.json
@@ -1,4 +1,5 @@
 {
+    "command.exportDocument": "导出文档...",
     "config.IntelliSense.traceBeSetted": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
     "config.IntelliSense.traceFieldInject": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
     "config.IntelliSense.traceLocalSet": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
diff --git a/package.nls.zh-tw.json b/package.nls.zh-tw.json
index d34d5c3..e273c17 100644
--- a/package.nls.zh-tw.json
+++ b/package.nls.zh-tw.json
@@ -1,4 +1,5 @@
 {
+    "command.exportDocument": "Export Document ...",
     "config.IntelliSense.traceBeSetted": "請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。",
     "config.IntelliSense.traceFieldInject": "請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。",
     "config.IntelliSense.traceLocalSet": "請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)瞭解用法。",
diff --git a/package/package.lua b/package/package.lua
index 0cec615..841bce7 100644
--- a/package/package.lua
+++ b/package/package.lua
@@ -40,7 +40,7 @@ return {
             },
             {
                 command = "lua.exportDocument",
-                title = "Export Document",
+                title = "%command.exportDocument%",
             },
         },
         menus = {
diff --git a/setting/schema-pt-br.json b/setting/schema-pt-br.json
index 4839ea5..f36d876 100644
--- a/setting/schema-pt-br.json
+++ b/setting/schema-pt-br.json
@@ -3065,9 +3065,6 @@
                 "preloadFileSize": {
                     "$ref": "#/properties/workspace.preloadFileSize"
                 },
-                "supportScheme": {
-                    "$ref": "#/properties/workspace.supportScheme"
-                },
                 "useGitIgnore": {
                     "$ref": "#/properties/workspace.useGitIgnore"
                 },
@@ -3120,19 +3117,6 @@
             "scope": "resource",
             "type": "integer"
         },
-        "workspace.supportScheme": {
-            "default": [
-                "file",
-                "untitled",
-                "git"
-            ],
-            "items": {
-                "type": "string"
-            },
-            "markdownDescription": "Provide language server for the Lua files of the following scheme.",
-            "scope": "resource",
-            "type": "array"
-        },
         "workspace.useGitIgnore": {
             "default": true,
             "markdownDescription": "Ignore files list in `.gitignore` .",
diff --git a/setting/schema-zh-cn.json b/setting/schema-zh-cn.json
index a620118..8250f2f 100644
--- a/setting/schema-zh-cn.json
+++ b/setting/schema-zh-cn.json
@@ -3065,9 +3065,6 @@
                 "preloadFileSize": {
                     "$ref": "#/properties/workspace.preloadFileSize"
                 },
-                "supportScheme": {
-                    "$ref": "#/properties/workspace.supportScheme"
-                },
                 "useGitIgnore": {
                     "$ref": "#/properties/workspace.useGitIgnore"
                 },
@@ -3120,19 +3117,6 @@
             "scope": "resource",
             "type": "integer"
         },
-        "workspace.supportScheme": {
-            "default": [
-                "file",
-                "untitled",
-                "git"
-            ],
-            "items": {
-                "type": "string"
-            },
-            "markdownDescription": "为以下 scheme 的lua文件提供语言服务。",
-            "scope": "resource",
-            "type": "array"
-        },
         "workspace.useGitIgnore": {
             "default": true,
             "markdownDescription": "忽略 `.gitignore` 中列举的文件。",
diff --git a/setting/schema-zh-tw.json b/setting/schema-zh-tw.json
index d67fdb7..ba40614 100644
--- a/setting/schema-zh-tw.json
+++ b/setting/schema-zh-tw.json
@@ -3065,9 +3065,6 @@
                 "preloadFileSize": {
                     "$ref": "#/properties/workspace.preloadFileSize"
                 },
-                "supportScheme": {
-                    "$ref": "#/properties/workspace.supportScheme"
-                },
                 "useGitIgnore": {
                     "$ref": "#/properties/workspace.useGitIgnore"
                 },
@@ -3120,19 +3117,6 @@
             "scope": "resource",
             "type": "integer"
         },
-        "workspace.supportScheme": {
-            "default": [
-                "file",
-                "untitled",
-                "git"
-            ],
-            "items": {
-                "type": "string"
-            },
-            "markdownDescription": "為以下 `scheme` 的lua檔案提供語言伺服。",
-            "scope": "resource",
-            "type": "array"
-        },
         "workspace.useGitIgnore": {
             "default": true,
             "markdownDescription": "忽略 `.gitignore` 中列舉的檔案。",
diff --git a/setting/schema.json b/setting/schema.json
index f558dd9..3731626 100644
--- a/setting/schema.json
+++ b/setting/schema.json
@@ -3065,9 +3065,6 @@
                 "preloadFileSize": {
                     "$ref": "#/properties/workspace.preloadFileSize"
                 },
-                "supportScheme": {
-                    "$ref": "#/properties/workspace.supportScheme"
-                },
                 "useGitIgnore": {
                     "$ref": "#/properties/workspace.useGitIgnore"
                 },
@@ -3120,19 +3117,6 @@
             "scope": "resource",
             "type": "integer"
         },
-        "workspace.supportScheme": {
-            "default": [
-                "file",
-                "untitled",
-                "git"
-            ],
-            "items": {
-                "type": "string"
-            },
-            "markdownDescription": "Provide language server for the Lua files of the following scheme.",
-            "scope": "resource",
-            "type": "array"
-        },
         "workspace.useGitIgnore": {
             "default": true,
             "markdownDescription": "Ignore files list in `.gitignore` .",
-- 
GitLab