@codingame/monaco-vscode-api 1.67.0 → 1.67.1
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/dist/api.amd.js +8 -2
- package/dist/api.cjs +8 -2
- package/dist/api.js +8 -2
- package/package.json +1 -1
package/dist/api.amd.js
CHANGED
|
@@ -4824,6 +4824,13 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
|
|
|
4824
4824
|
}
|
|
4825
4825
|
return event_js.Event.None;
|
|
4826
4826
|
},
|
|
4827
|
+
get rootPath() {
|
|
4828
|
+
const services$1 = services.Services.get();
|
|
4829
|
+
const rootUri = services$1.workspace?.rootUri;
|
|
4830
|
+
if (rootUri != null) {
|
|
4831
|
+
return uri_js.URI.parse(rootUri).path;
|
|
4832
|
+
}
|
|
4833
|
+
},
|
|
4827
4834
|
get workspaceFolders() {
|
|
4828
4835
|
const services$1 = services.Services.get();
|
|
4829
4836
|
if (services$1.workspace == null) {
|
|
@@ -4836,7 +4843,7 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
|
|
|
4836
4843
|
if (rootUri == null) {
|
|
4837
4844
|
return undefined;
|
|
4838
4845
|
}
|
|
4839
|
-
const uri =
|
|
4846
|
+
const uri = uri_js.URI.parse(rootUri);
|
|
4840
4847
|
return [{
|
|
4841
4848
|
uri,
|
|
4842
4849
|
index: 0,
|
|
@@ -4903,7 +4910,6 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
|
|
|
4903
4910
|
onDidOpenNotebookDocument: unsupported$1,
|
|
4904
4911
|
onDidCloseNotebookDocument: unsupported$1,
|
|
4905
4912
|
isTrusted: true,
|
|
4906
|
-
rootPath: undefined,
|
|
4907
4913
|
name: undefined,
|
|
4908
4914
|
onDidChangeNotebookDocument: unsupported$1,
|
|
4909
4915
|
onDidSaveNotebookDocument: unsupported$1
|
package/dist/api.cjs
CHANGED
|
@@ -4867,6 +4867,13 @@ const workspace$2 = {
|
|
|
4867
4867
|
}
|
|
4868
4868
|
return event_js.Event.None;
|
|
4869
4869
|
},
|
|
4870
|
+
get rootPath() {
|
|
4871
|
+
const services$1 = services.Services.get();
|
|
4872
|
+
const rootUri = services$1.workspace?.rootUri;
|
|
4873
|
+
if (rootUri != null) {
|
|
4874
|
+
return uri_js.URI.parse(rootUri).path;
|
|
4875
|
+
}
|
|
4876
|
+
},
|
|
4870
4877
|
get workspaceFolders() {
|
|
4871
4878
|
const services$1 = services.Services.get();
|
|
4872
4879
|
if (services$1.workspace == null) {
|
|
@@ -4879,7 +4886,7 @@ const workspace$2 = {
|
|
|
4879
4886
|
if (rootUri == null) {
|
|
4880
4887
|
return undefined;
|
|
4881
4888
|
}
|
|
4882
|
-
const uri =
|
|
4889
|
+
const uri = uri_js.URI.parse(rootUri);
|
|
4883
4890
|
return [{
|
|
4884
4891
|
uri,
|
|
4885
4892
|
index: 0,
|
|
@@ -4946,7 +4953,6 @@ const workspace$2 = {
|
|
|
4946
4953
|
onDidOpenNotebookDocument: unsupported$1,
|
|
4947
4954
|
onDidCloseNotebookDocument: unsupported$1,
|
|
4948
4955
|
isTrusted: true,
|
|
4949
|
-
rootPath: undefined,
|
|
4950
4956
|
name: undefined,
|
|
4951
4957
|
onDidChangeNotebookDocument: unsupported$1,
|
|
4952
4958
|
onDidSaveNotebookDocument: unsupported$1
|
package/dist/api.js
CHANGED
|
@@ -4840,6 +4840,13 @@ const workspace$2 = {
|
|
|
4840
4840
|
}
|
|
4841
4841
|
return Event.None;
|
|
4842
4842
|
},
|
|
4843
|
+
get rootPath() {
|
|
4844
|
+
const services = Services.get();
|
|
4845
|
+
const rootUri = services.workspace?.rootUri;
|
|
4846
|
+
if (rootUri != null) {
|
|
4847
|
+
return URI.parse(rootUri).path;
|
|
4848
|
+
}
|
|
4849
|
+
},
|
|
4843
4850
|
get workspaceFolders() {
|
|
4844
4851
|
const services = Services.get();
|
|
4845
4852
|
if (services.workspace == null) {
|
|
@@ -4852,7 +4859,7 @@ const workspace$2 = {
|
|
|
4852
4859
|
if (rootUri == null) {
|
|
4853
4860
|
return undefined;
|
|
4854
4861
|
}
|
|
4855
|
-
const uri =
|
|
4862
|
+
const uri = URI.parse(rootUri);
|
|
4856
4863
|
return [{
|
|
4857
4864
|
uri,
|
|
4858
4865
|
index: 0,
|
|
@@ -4919,7 +4926,6 @@ const workspace$2 = {
|
|
|
4919
4926
|
onDidOpenNotebookDocument: unsupported$1,
|
|
4920
4927
|
onDidCloseNotebookDocument: unsupported$1,
|
|
4921
4928
|
isTrusted: true,
|
|
4922
|
-
rootPath: undefined,
|
|
4923
4929
|
name: undefined,
|
|
4924
4930
|
onDidChangeNotebookDocument: unsupported$1,
|
|
4925
4931
|
onDidSaveNotebookDocument: unsupported$1
|