Verified Commit 96990e7d authored by Tomas Vik (OOO back on 2026-08-31)'s avatar Tomas Vik (OOO back on 2026-08-31) 🌴 Committed by GitLab
Browse files

refactor: import supportedLanguages from main package entry point

parent 60d91569
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
      "license": "MIT",
      "dependencies": {
        "@anycable/core": "^0.9.2",
        "@gitlab-org/gitlab-lsp": "^8.78.0",
        "@gitlab-org/gitlab-lsp": "^8.79.0",
        "@gitlab/needle": "2.0.0",
        "@snowplow/tracker-core": "4.6.9",
        "cross-fetch": "^4.1.0",
@@ -3227,9 +3227,9 @@
      }
    },
    "node_modules/@gitlab-org/gitlab-lsp": {
      "version": "8.78.0",
      "resolved": "https://gitlab.com/api/v4/projects/46519181/packages/npm/@gitlab-org/gitlab-lsp/-/@gitlab-org/gitlab-lsp-8.78.0.tgz",
      "integrity": "sha1-89gVf6C8hggzmafpRzE1YSDXSjg=",
      "version": "8.79.0",
      "resolved": "https://gitlab.com/api/v4/projects/46519181/packages/npm/@gitlab-org/gitlab-lsp/-/@gitlab-org/gitlab-lsp-8.79.0.tgz",
      "integrity": "sha1-iXlgCYxYW39swbClZYG3lDd3Q80=",
      "hasInstallScript": true,
      "dependencies": {
        "@anthropic-ai/sandbox-runtime": "^0.0.39",
@@ -29126,9 +29126,9 @@
      }
    },
    "@gitlab-org/gitlab-lsp": {
      "version": "8.78.0",
      "resolved": "https://gitlab.com/api/v4/projects/46519181/packages/npm/@gitlab-org/gitlab-lsp/-/@gitlab-org/gitlab-lsp-8.78.0.tgz",
      "integrity": "sha1-89gVf6C8hggzmafpRzE1YSDXSjg=",
      "version": "8.79.0",
      "resolved": "https://gitlab.com/api/v4/projects/46519181/packages/npm/@gitlab-org/gitlab-lsp/-/@gitlab-org/gitlab-lsp-8.79.0.tgz",
      "integrity": "sha1-iXlgCYxYW39swbClZYG3lDd3Q80=",
      "requires": {
        "@anthropic-ai/sandbox-runtime": "^0.0.39",
        "@anycable/core": "^0.9.2",
+1 −1
Original line number Diff line number Diff line
@@ -623,7 +623,7 @@
  },
  "dependencies": {
    "@anycable/core": "^0.9.2",
    "@gitlab-org/gitlab-lsp": "^8.78.0",
    "@gitlab-org/gitlab-lsp": "^8.79.0",
    "@gitlab/needle": "2.0.0",
    "@snowplow/tracker-core": "4.6.9",
    "cross-fetch": "^4.1.0",
+2 −6
Original line number Diff line number Diff line
// This is a workaround to be able to directly import code_suggestions_config.json file.
// .mjs files require to use a new syntax import { whatever } from 'your-file.json' assert { type: 'json' }
// this syntax is not yet supported by eslint. In order to properly use this syntax would require a usage of a babel parser plugin
// see this issue for details: https://github.com/eslint/eslint/discussions/15305
const codeSuggestionSettings = require('@gitlab-org/gitlab-lsp/code_suggestions_config.json');
const { supportedLanguages } = require('@gitlab-org/gitlab-lsp');

exports.default = codeSuggestionSettings;
exports.default = { supportedLanguages };
+1 −1
Original line number Diff line number Diff line
import { supportedLanguages } from '@gitlab-org/gitlab-lsp/code_suggestions_config.json';
import { supportedLanguages } from '@gitlab-org/gitlab-lsp';

export const MODEL_GATEWAY_DUO_CODE_SUGGESTIONS_API_URL =
  'https://codesuggestions.gitlab.com/v2/completions';
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ describe('FeatureStateDiagnosticsRenderer', () => {

      const expectedDuo =
        `- ${checkStatusPre} User is authenticated ${checkStatusAppend}\n` +
        `- ${checkStatusPre} Classic Chat is enabled in settings ${checkStatusAppend}\n` +
        `- ${checkStatusPre} Non-Agentic Chat is enabled in settings ${checkStatusAppend}\n` +
        `- ${checkStatusPre} Valid GitLab license ${checkStatusAppend}\n` +
        `- ${checkStatusPre} GitLab Duo is enabled for the open project(s) ${checkStatusAppend}`;

Loading