@theia/plugin 1.70.0-next.7 → 1.70.0-next.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/theia.d.ts +26 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.70.0-next.7+a230181f5",
3
+ "version": "1.70.0-next.71+7ece9ea62",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -32,5 +32,5 @@
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "a230181f5951eaba3fb82e11a14dc03dbff8feca"
35
+ "gitHead": "7ece9ea6295b73ee1ac962e29d416cebf578d380"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -8566,6 +8566,16 @@ export module '@theia/plugin' {
8566
8566
  */
8567
8567
  export const isNewAppInstall: boolean;
8568
8568
 
8569
+ /**
8570
+ * Indicates whether the application is running in portable mode.
8571
+ *
8572
+ * Portable mode is enabled when the application is run from a folder that contains
8573
+ * a `data` directory, allowing for self-contained installations.
8574
+ *
8575
+ * Learn more about [Portable Mode](https://code.visualstudio.com/docs/editor/portable).
8576
+ */
8577
+ export const isAppPortable: boolean;
8578
+
8569
8579
  /**
8570
8580
  * Indicates whether the users has telemetry enabled.
8571
8581
  * Can be observed to determine if the extension should send telemetry.
@@ -8796,6 +8806,21 @@ export module '@theia/plugin' {
8796
8806
  */
8797
8807
  export type CharacterPair = [string, string];
8798
8808
 
8809
+ /**
8810
+ * Configuration for line comments.
8811
+ */
8812
+ export interface LineCommentRule {
8813
+ /**
8814
+ * The line comment token, like `//`
8815
+ */
8816
+ comment: string;
8817
+ /**
8818
+ * Whether the comment token should not be indented and placed at the first column.
8819
+ * Defaults to false.
8820
+ */
8821
+ noIndent?: boolean;
8822
+ }
8823
+
8799
8824
  /**
8800
8825
  * Describes how comments for a language work.
8801
8826
  */
@@ -8804,7 +8829,7 @@ export module '@theia/plugin' {
8804
8829
  /**
8805
8830
  * The line comment token, like `// this is a comment`
8806
8831
  */
8807
- lineComment?: string;
8832
+ lineComment?: string | LineCommentRule;
8808
8833
 
8809
8834
  /**
8810
8835
  * The block comment character pair, like `/* block comment */`