diff --git a/package.json b/package.json index a177542..9ae40db 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "type": "object", "title": "PHP IntelliSense", "properties": { - "php.intellisense.fileTypes": { + "phpIntelliSense.fileTypes": { "type": "array", "default": [ ".php" diff --git a/src/extension.ts b/src/extension.ts index 027f460..c178bc7 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -93,12 +93,12 @@ export async function activate(context: vscode.ExtensionContext): Promise protocol2Code: str => vscode.Uri.parse(str) }, synchronize: { - // Synchronize the setting section 'php' to the server - configurationSection: 'php' + // Synchronize the setting section 'phpIntelliSense' to the server + configurationSection: 'phpIntelliSense' // Notify the server about file changes to composer.json files contain in the workspace // fileEvents: vscode.workspace.createFileSystemWatcher('**/composer.json') }, - initializationOptions: conf.get('intellisense') + initializationOptions: vscode.workspace.getConfiguration('phpIntelliSense') }; // Create the language client and start the client.