code-gnu-global icon indicating copy to clipboard operation
code-gnu-global copied to clipboard

codegnuglobal configuration is not available in UserSettings

Open matrixjoeq opened this issue 7 years ago • 9 comments

I use Visual Studio Code 1.15.1 on Windows 10 Pro Version 1703 (OS Build 15063.540). C++ Intellisense extension is 0.2.2. I'd like to change codegnuglobal.autoupdate to false, but I find there's no codegnuglobal settings at all.

matrixjoeq avatar Aug 22 '17 02:08 matrixjoeq

By default it is not there, you can add it manually.

austin----- avatar Aug 22 '17 03:08 austin-----

I add "codegnuglobal.executable" but I find it doesn't work?

fishfishson avatar Sep 05 '17 09:09 fishfishson

I add "codegnuglobal.executable" but I find it doesn't work?

me too.

image

qcghdy avatar May 11 '18 12:05 qcghdy

I meet the same problem. The pc is running win7 64 vscode 1.27 (the newest version). I opened developer Tools console error log: it shows use wrong global.exe path, use stange path set( I check my pc , it did not set such path)

Then I want to set setting.json as mentioned , but meet the same problem .

How to hard encode the path in the extension code ?

ragcatshxu avatar Sep 08 '18 12:09 ragcatshxu

I found reason . It need to change package.json "contributes": { "configuration": { } } and del other contributes section setting can read the vscode plugin develop get more info . @austin-----

ragcatshxu avatar Sep 09 '18 04:09 ragcatshxu

where can i find the package.json? it is not working on my installation. code: 1.32.3 Win: 10 pro 64bit

schroeca avatar Mar 18 '19 09:03 schroeca

i use vscode under ubuntu and meet the same problem, anybody has some advice?

huanhexiao avatar May 25 '19 04:05 huanhexiao

i use vscode under ubuntu and meet the same problem, anybody has some advice?

As ragcatshxu has replied. add following to setting.json

"contributes": {
    "configuration": {
    "codegnuglobal.executable": "C:\\GNUGlobal\\usr\\bin\\global.exe",
    "codegnuglobal.autoupdate": false, 
    }
    },

sli017 avatar Aug 12 '19 03:08 sli017

This is caused by a simple bug in the plugin's package.json. Go to Visual Studio Code's extensions folder, open the plugin's package.json and move

"configuration": {
			"type": "object",
			"title": "C++ Intellisense configuration",
			"properties": {
				"codegnuglobal.encoding": {
					"type": "string",
					"default": "",
					"description": "Specify the encoding of the command line output. (Normally it is the code page of Windows non-unicode program if it is not CP437)"
				},
				"codegnuglobal.executable": {
					"type": "string",
					"default": "global",
					"description": "Specify the path to the global executable. (If it is not in PATH already)"
				},
				"codegnuglobal.autoupdate": {
					"type": "boolean",
					"default": true,
					"description": "Specify if global should automatically update the tags on file save. (You should turn it off in the workspace settings for large projects)"
				}
			}
		}

into contributes: {},, so that it looks like this:

"contributes": {
		"configuration": {
			"type": "object",
			"title": "C++ Intellisense configuration",
			"properties": {
				"codegnuglobal.encoding": {
					"type": "string",
					"default": "",
					"description": "Specify the encoding of the command line output. (Normally it is the code page of Windows non-unicode program if it is not CP437)"
				},
				"codegnuglobal.executable": {
					"type": "string",
					"default": "global",
					"description": "Specify the path to the global executable. (If it is not in PATH already)"
				},
				"codegnuglobal.autoupdate": {
					"type": "boolean",
					"default": true,
					"description": "Specify if global should automatically update the tags on file save. (You should turn it off in the workspace settings for large projects)"
				}
			}
		}
	},

You can then change the plugin's settings normally.

jobukkit avatar Nov 19 '19 13:11 jobukkit