@replit/protocol 0.2.91 → 0.2.92
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.
- package/main/index.d.ts +6 -0
- package/main/index.js +31 -4
- package/main/index.js.flow +13 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -20030,6 +20030,9 @@ export namespace replit {
|
|
|
20030
20030
|
|
|
20031
20031
|
/** LanguageServerOption fileTypeAttrs */
|
|
20032
20032
|
fileTypeAttrs?: (replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null);
|
|
20033
|
+
|
|
20034
|
+
/** LanguageServerOption config */
|
|
20035
|
+
config?: (replit.goval.api.LanguageServerConfig|replit.goval.api.ILanguageServerConfig|null);
|
|
20033
20036
|
}
|
|
20034
20037
|
|
|
20035
20038
|
/** Represents a LanguageServerOption. */
|
|
@@ -20053,6 +20056,9 @@ export namespace replit {
|
|
|
20053
20056
|
/** LanguageServerOption fileTypeAttrs. */
|
|
20054
20057
|
public fileTypeAttrs?: (replit.goval.api.FileTypeAttrs|null);
|
|
20055
20058
|
|
|
20059
|
+
/** LanguageServerOption config. */
|
|
20060
|
+
public config?: (replit.goval.api.LanguageServerConfig|null);
|
|
20061
|
+
|
|
20056
20062
|
/**
|
|
20057
20063
|
* Creates a new LanguageServerOption instance using the specified properties.
|
|
20058
20064
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -36275,7 +36275,7 @@
|
|
|
36275
36275
|
if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath"))
|
|
36276
36276
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePath);
|
|
36277
36277
|
if (message.debuggerId != null && Object.hasOwnProperty.call(message, "debuggerId"))
|
|
36278
|
-
writer.uint32(/* id
|
|
36278
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.debuggerId);
|
|
36279
36279
|
return writer;
|
|
36280
36280
|
};
|
|
36281
36281
|
|
|
@@ -36319,7 +36319,7 @@
|
|
|
36319
36319
|
case 3:
|
|
36320
36320
|
message.filePath = reader.string();
|
|
36321
36321
|
break;
|
|
36322
|
-
case
|
|
36322
|
+
case 4:
|
|
36323
36323
|
message.debuggerId = reader.string();
|
|
36324
36324
|
break;
|
|
36325
36325
|
default:
|
|
@@ -49817,6 +49817,7 @@
|
|
|
49817
49817
|
* @property {string|null} [name] LanguageServerOption name
|
|
49818
49818
|
* @property {string|null} [language] LanguageServerOption language
|
|
49819
49819
|
* @property {replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null} [fileTypeAttrs] LanguageServerOption fileTypeAttrs
|
|
49820
|
+
* @property {replit.goval.api.LanguageServerConfig|replit.goval.api.ILanguageServerConfig|null} [config] LanguageServerOption config
|
|
49820
49821
|
*/
|
|
49821
49822
|
|
|
49822
49823
|
/**
|
|
@@ -49865,6 +49866,14 @@
|
|
|
49865
49866
|
*/
|
|
49866
49867
|
LanguageServerOption.prototype.fileTypeAttrs = null;
|
|
49867
49868
|
|
|
49869
|
+
/**
|
|
49870
|
+
* LanguageServerOption config.
|
|
49871
|
+
* @member {replit.goval.api.LanguageServerConfig|null|undefined} config
|
|
49872
|
+
* @memberof replit.goval.api.LanguageServerOption
|
|
49873
|
+
* @instance
|
|
49874
|
+
*/
|
|
49875
|
+
LanguageServerOption.prototype.config = null;
|
|
49876
|
+
|
|
49868
49877
|
/**
|
|
49869
49878
|
* Creates a new LanguageServerOption instance using the specified properties.
|
|
49870
49879
|
* @function create
|
|
@@ -49896,7 +49905,9 @@
|
|
|
49896
49905
|
if (message.language != null && Object.hasOwnProperty.call(message, "language"))
|
|
49897
49906
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.language);
|
|
49898
49907
|
if (message.fileTypeAttrs != null && Object.hasOwnProperty.call(message, "fileTypeAttrs"))
|
|
49899
|
-
$root.replit.goval.api.FileTypeAttrs.encode(message.fileTypeAttrs, writer.uint32(/* id
|
|
49908
|
+
$root.replit.goval.api.FileTypeAttrs.encode(message.fileTypeAttrs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
49909
|
+
if (message.config != null && Object.hasOwnProperty.call(message, "config"))
|
|
49910
|
+
$root.replit.goval.api.LanguageServerConfig.encode(message.config, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
49900
49911
|
return writer;
|
|
49901
49912
|
};
|
|
49902
49913
|
|
|
@@ -49940,9 +49951,12 @@
|
|
|
49940
49951
|
case 3:
|
|
49941
49952
|
message.language = reader.string();
|
|
49942
49953
|
break;
|
|
49943
|
-
case
|
|
49954
|
+
case 4:
|
|
49944
49955
|
message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.decode(reader, reader.uint32());
|
|
49945
49956
|
break;
|
|
49957
|
+
case 5:
|
|
49958
|
+
message.config = $root.replit.goval.api.LanguageServerConfig.decode(reader, reader.uint32());
|
|
49959
|
+
break;
|
|
49946
49960
|
default:
|
|
49947
49961
|
reader.skipType(tag & 7);
|
|
49948
49962
|
break;
|
|
@@ -49992,6 +50006,11 @@
|
|
|
49992
50006
|
if (error)
|
|
49993
50007
|
return "fileTypeAttrs." + error;
|
|
49994
50008
|
}
|
|
50009
|
+
if (message.config != null && message.hasOwnProperty("config")) {
|
|
50010
|
+
var error = $root.replit.goval.api.LanguageServerConfig.verify(message.config);
|
|
50011
|
+
if (error)
|
|
50012
|
+
return "config." + error;
|
|
50013
|
+
}
|
|
49995
50014
|
return null;
|
|
49996
50015
|
};
|
|
49997
50016
|
|
|
@@ -50018,6 +50037,11 @@
|
|
|
50018
50037
|
throw TypeError(".replit.goval.api.LanguageServerOption.fileTypeAttrs: object expected");
|
|
50019
50038
|
message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.fromObject(object.fileTypeAttrs);
|
|
50020
50039
|
}
|
|
50040
|
+
if (object.config != null) {
|
|
50041
|
+
if (typeof object.config !== "object")
|
|
50042
|
+
throw TypeError(".replit.goval.api.LanguageServerOption.config: object expected");
|
|
50043
|
+
message.config = $root.replit.goval.api.LanguageServerConfig.fromObject(object.config);
|
|
50044
|
+
}
|
|
50021
50045
|
return message;
|
|
50022
50046
|
};
|
|
50023
50047
|
|
|
@@ -50039,6 +50063,7 @@
|
|
|
50039
50063
|
object.name = "";
|
|
50040
50064
|
object.language = "";
|
|
50041
50065
|
object.fileTypeAttrs = null;
|
|
50066
|
+
object.config = null;
|
|
50042
50067
|
}
|
|
50043
50068
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
50044
50069
|
object.id = message.id;
|
|
@@ -50048,6 +50073,8 @@
|
|
|
50048
50073
|
object.language = message.language;
|
|
50049
50074
|
if (message.fileTypeAttrs != null && message.hasOwnProperty("fileTypeAttrs"))
|
|
50050
50075
|
object.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.toObject(message.fileTypeAttrs, options);
|
|
50076
|
+
if (message.config != null && message.hasOwnProperty("config"))
|
|
50077
|
+
object.config = $root.replit.goval.api.LanguageServerConfig.toObject(message.config, options);
|
|
50051
50078
|
return object;
|
|
50052
50079
|
};
|
|
50053
50080
|
|
package/main/index.js.flow
CHANGED
|
@@ -28575,6 +28575,14 @@ declare type replit$goval$api$ILanguageServerOption = {|
|
|
|
28575
28575
|
| replit$goval$api$FileTypeAttrs
|
|
28576
28576
|
| replit$goval$api$IFileTypeAttrs
|
|
28577
28577
|
| null,
|
|
28578
|
+
|
|
28579
|
+
/**
|
|
28580
|
+
* LanguageServerOption config
|
|
28581
|
+
*/
|
|
28582
|
+
config?:
|
|
28583
|
+
| replit$goval$api$LanguageServerConfig
|
|
28584
|
+
| replit$goval$api$ILanguageServerConfig
|
|
28585
|
+
| null,
|
|
28578
28586
|
|};
|
|
28579
28587
|
|
|
28580
28588
|
/**
|
|
@@ -28607,6 +28615,11 @@ declare class replit$goval$api$LanguageServerOption {
|
|
|
28607
28615
|
*/
|
|
28608
28616
|
fileTypeAttrs?: replit$goval$api$FileTypeAttrs | null;
|
|
28609
28617
|
|
|
28618
|
+
/**
|
|
28619
|
+
* LanguageServerOption config.
|
|
28620
|
+
*/
|
|
28621
|
+
config?: replit$goval$api$LanguageServerConfig | null;
|
|
28622
|
+
|
|
28610
28623
|
/**
|
|
28611
28624
|
* Creates a new LanguageServerOption instance using the specified properties.
|
|
28612
28625
|
* @param [properties] Properties to set
|