Skip to content

Commit 7a13475

Browse files
author
James Pogran
authored
Merge pull request #628 from jpogran/maint-alert-if-jpogran-extension-installed
(maint) Alert if jpogran.puppet-vscode installed
2 parents 9a7bc4f + ef7a1e5 commit 7a13475

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/extension.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ let configSettings: IAggregateConfiguration;
3535
let extensionFeatures: IFeature[] = [];
3636

3737
export function activate(context: vscode.ExtensionContext) {
38+
let pkg = vscode.extensions.getExtension('jpogran.puppet-vscode');
39+
if (pkg){
40+
let message = 'The "jpogran.puppet-vscode" extension has been detected, which will conflict with the "puppet.puppet-vscode" extension. This will cause problems activating when each extension tries to load at the same time and may cause errors. Please uninstall it by executing the following from the commandline: "code --uninstall-extension jpogran.puppet-vscode"';
41+
vscode.window.showWarningMessage(
42+
message,
43+
{ modal: false },
44+
);
45+
}
46+
3847
extContext = context;
3948

4049
setLanguageConfiguration();

0 commit comments

Comments
 (0)