Skip to content

Commit

Permalink
chore: skip activation if official extension enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed Mar 29, 2024
1 parent 0dffe17 commit 348c7f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "(aka uELS, Unstable Ember Language Server), Provides features like auto complete, goto definition and diagnostics for Ember.js projects",
"author": "Aleksandr Kanunnikov <lifeart92@gmail.com>",
"license": "MIT",
"version": "3.0.53",
"version": "3.0.54",
"publisher": "lifeart",
"icon": "assets/icon.png",
"keywords": [
Expand Down
6 changes: 6 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
InputBoxOptions,
StatusBarAlignment,
Uri,
extensions,
} from 'vscode';
import { isEmberCliProject, isGlimmerXProject } from './workspace-utils';
import {
Expand All @@ -30,7 +31,12 @@ import {
import { provideCodeLenses } from './lenses';
let ExtStatusBarItem: StatusBarItem;
let ExtServerDebugBarItem: StatusBarItem;
const OFFICIAL_EMBER_LANGUAGE_SERVER = 'EmberTooling.vscode-ember';
export async function activate(context: ExtensionContext) {
const extension = extensions.getExtension(OFFICIAL_EMBER_LANGUAGE_SERVER);
if (extension && extension.isActive) {
return;
}
// The server is implemented in node
const serverModule = path.join(context.extensionPath, './start-server.js');
const config = workspace.getConfiguration('els');
Expand Down

0 comments on commit 348c7f1

Please sign in to comment.