go.contribution.js 781 B

1234567891011121314151617181920212223
  1. /*!-----------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
  4. * Released under the MIT license
  5. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  6. *-----------------------------------------------------------------------------*/
  7. // src/basic-languages/go/go.contribution.ts
  8. import { registerLanguage } from "../_.contribution.js";
  9. registerLanguage({
  10. id: "go",
  11. extensions: [".go"],
  12. aliases: ["Go"],
  13. loader: () => {
  14. if (false) {
  15. return new Promise((resolve, reject) => {
  16. __require(["vs/basic-languages/go/go"], resolve, reject);
  17. });
  18. } else {
  19. return import("./go.js");
  20. }
  21. }
  22. });