|
64 | 64 | "onDebugInitialConfigurations"
|
65 | 65 | ],
|
66 | 66 | "main": "./dist/extension",
|
| 67 | + "extensionDependencies": [ |
| 68 | + "intersystems-community.servermanager" |
| 69 | + ], |
67 | 70 | "contributes": {
|
68 | 71 | "menus": {
|
69 | 72 | "commandPalette": [
|
|
502 | 505 | "objectscript.conn": {
|
503 | 506 | "type": "object",
|
504 | 507 | "description": "Server Access",
|
505 |
| - "scope": "resource" |
506 |
| - }, |
507 |
| - "objectscript.conn.active": { |
508 |
| - "description": "Active", |
509 |
| - "type": "boolean", |
510 |
| - "default": false |
511 |
| - }, |
512 |
| - "objectscript.conn.host": { |
513 |
| - "description": "Hostname", |
514 |
| - "format": "hostname", |
515 |
| - "type": "string", |
516 |
| - "default": "localhost" |
517 |
| - }, |
518 |
| - "objectscript.conn.port": { |
519 |
| - "description": "Port number", |
520 |
| - "type": "number", |
521 |
| - "default": 52773 |
522 |
| - }, |
523 |
| - "objectscript.conn.username": { |
524 |
| - "description": "Username", |
525 |
| - "type": "string", |
526 |
| - "default": "_SYSTEM" |
527 |
| - }, |
528 |
| - "objectscript.conn.password": { |
529 |
| - "description": "User's Password", |
530 |
| - "type": "string", |
531 |
| - "default": "SYS" |
532 |
| - }, |
533 |
| - "objectscript.conn.ns": { |
534 |
| - "description": "Server Namespace", |
535 |
| - "type": "string", |
536 |
| - "default": "USER" |
537 |
| - }, |
538 |
| - "objectscript.conn.https": { |
539 |
| - "description": "Use SSL to access to API", |
540 |
| - "type": "boolean", |
541 |
| - "default": false |
542 |
| - }, |
543 |
| - "objectscript.conn.docker-compose": { |
544 |
| - "description": "Connect to server running in docker-compose", |
545 |
| - "type": "object", |
546 |
| - "scope": "resource" |
547 |
| - }, |
548 |
| - "objectscript.conn.docker-compose.service": { |
549 |
| - "description": "Name of service in docker-compose", |
550 |
| - "type": "string" |
551 |
| - }, |
552 |
| - "objectscript.conn.docker-compose.internalPort": { |
553 |
| - "description": "Target port inside the service in docker-compose", |
554 |
| - "type": "number", |
555 |
| - "default": 52773 |
556 |
| - }, |
557 |
| - "objectscript.conn.docker-compose.file": { |
558 |
| - "description": "docker-compose file", |
559 |
| - "type": "string", |
560 |
| - "default": "docker-compose.yml" |
561 |
| - }, |
562 |
| - "objectscript.conn.links": { |
563 |
| - "description": "Extra links for the server", |
564 |
| - "type": "object" |
| 508 | + "scope": "resource", |
| 509 | + "additionalProperties": false, |
| 510 | + "required": [ |
| 511 | + "active" |
| 512 | + ], |
| 513 | + "properties": { |
| 514 | + "active": { |
| 515 | + "type": "boolean", |
| 516 | + "description": "This connection is active.", |
| 517 | + "default": false |
| 518 | + }, |
| 519 | + "server": { |
| 520 | + "type": "string", |
| 521 | + "pattern": "^[a-z0-9-._~]+$", |
| 522 | + "markdownDescription": "Server defined in `#intersystems.servers#`" |
| 523 | + }, |
| 524 | + "host": { |
| 525 | + "type": "string", |
| 526 | + "description": "Hostname or IP address of the web server.", |
| 527 | + "anyOf": [ |
| 528 | + { |
| 529 | + "format": "hostname" |
| 530 | + }, |
| 531 | + { |
| 532 | + "format": "ipv4" |
| 533 | + }, |
| 534 | + { |
| 535 | + "format": "ipv6" |
| 536 | + } |
| 537 | + ], |
| 538 | + "default": "localhost" |
| 539 | + }, |
| 540 | + "port": { |
| 541 | + "type": "integer", |
| 542 | + "description": "TCP port number the web server listens on.", |
| 543 | + "minimum": 1, |
| 544 | + "maximum": 65535 |
| 545 | + }, |
| 546 | + "ns": { |
| 547 | + "description": "Server namespace.", |
| 548 | + "type": "string", |
| 549 | + "default": "USER" |
| 550 | + }, |
| 551 | + "username": { |
| 552 | + "type": "string", |
| 553 | + "description": "Username to connect as. If not set here it must be provided when connecting." |
| 554 | + }, |
| 555 | + "password": { |
| 556 | + "type": "string", |
| 557 | + "description": "Password of username. If not set here it must be provided when connecting." |
| 558 | + }, |
| 559 | + "https": { |
| 560 | + "description": "Use SSL/TLS to access the server.", |
| 561 | + "type": "boolean", |
| 562 | + "default": false |
| 563 | + }, |
| 564 | + "links": { |
| 565 | + "description": "Extra links for the server.", |
| 566 | + "type": "object", |
| 567 | + "patternProperties": { |
| 568 | + ".*": { |
| 569 | + "type": "string", |
| 570 | + "format": "uri" |
| 571 | + } |
| 572 | + } |
| 573 | + }, |
| 574 | + "docker-compose": { |
| 575 | + "type": "object", |
| 576 | + "description": "Connect to server running in docker-compose.", |
| 577 | + "additionalProperties": false, |
| 578 | + "properties": { |
| 579 | + "service": { |
| 580 | + "description": "Name of service in docker-compose.", |
| 581 | + "type": "string" |
| 582 | + }, |
| 583 | + "internalPort": { |
| 584 | + "description": "Target port inside the service in docker-compose.", |
| 585 | + "type": "number" |
| 586 | + }, |
| 587 | + "file": { |
| 588 | + "description": "Name of docker-compose file.", |
| 589 | + "type": "string" |
| 590 | + } |
| 591 | + } |
| 592 | + } |
| 593 | + } |
565 | 594 | },
|
566 | 595 | "objectscript.export": {
|
567 | 596 | "type": "object",
|
568 |
| - "description": "Export only the necessary stuff ", |
| 597 | + "description": "Export only the necessary stuff.", |
569 | 598 | "scope": "resource"
|
570 | 599 | },
|
571 | 600 | "objectscript.export.folder": {
|
|
778 | 807 | "webpack-dev": "webpack --mode development --watch",
|
779 | 808 | "package": "vsce package",
|
780 | 809 | "compile": "webpack --mode production && tsc -p ./",
|
| 810 | + "test-compile": "webpack --mode development && tsc -p ./", |
781 | 811 | "watch": "tsc -w -p ./tsconfig.json",
|
782 |
| - "pretest": "npm run compile", |
| 812 | + "pretest": "npm run test-compile", |
783 | 813 | "test": "node ./out/test/runTest.js",
|
784 | 814 | "lint": "eslint src/**",
|
785 | 815 | "lint-fix": "eslint --fix src/**",
|
|
808 | 838 | "extend": "^3.0.2",
|
809 | 839 | "minimist": ">=1.2.5",
|
810 | 840 | "mocha": "^8.0.1",
|
| 841 | + "nock": "^13.0.0", |
811 | 842 | "prettier": "^2.0.5",
|
812 | 843 | "tape": "^5.0.1",
|
813 | 844 | "ts-loader": "^7.0.5",
|
|
0 commit comments