@codingame/monaco-vscode-8bcd87e5-7461-57cf-b4e4-a7b00d2b33df-common 20.1.0 → 20.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-8bcd87e5-7461-57cf-b4e4-a7b00d2b33df-common",
3
- "version": "20.1.0",
3
+ "version": "20.2.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - common package (extension-gallery, mcp, preferences, testing)",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.1.0",
19
- "@codingame/monaco-vscode-api": "20.1.0"
18
+ "@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.2.0",
19
+ "@codingame/monaco-vscode-api": "20.2.0"
20
20
  },
21
21
  "exports": {
22
22
  ".": {
@@ -1,12 +1,19 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
1
6
  .suggest-input-container {
2
7
  padding: 2px 6px;
3
8
  border-radius: 2px;
4
9
  }
10
+
5
11
  .suggest-input-container .monaco-editor-background,
6
12
  .suggest-input-container .monaco-editor,
7
13
  .suggest-input-container .mtk1 {
8
14
  color: inherit;
9
15
  }
16
+
10
17
  .suggest-input-container .suggest-input-placeholder {
11
18
  position: absolute;
12
19
  z-index: 1;
@@ -16,6 +23,7 @@
16
23
  pointer-events: none;
17
24
  margin-top: 1px;
18
25
  }
26
+
19
27
  .suggest-input-container .monaco-editor,
20
28
  .suggest-input-container .monaco-editor .lines-content {
21
29
  background: none !important;
@@ -13,19 +13,63 @@ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platf
13
13
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
14
14
  import { ColorIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorRegistry";
15
15
  export interface SuggestResultsProvider {
16
+ /**
17
+ * Provider function for suggestion results.
18
+ *
19
+ * @param query the full text of the input.
20
+ */
16
21
  provideResults: (query: string) => (Partial<languages.CompletionItem> & ({
17
22
  label: string;
18
23
  }) | string)[];
24
+ /**
25
+ * Trigger characters for this input. Suggestions will appear when one of these is typed,
26
+ * or upon `ctrl+space` triggering at a word boundary.
27
+ *
28
+ * Defaults to the empty array.
29
+ */
19
30
  triggerCharacters?: string[];
31
+ /**
32
+ * Optional regular expression that describes what a word is
33
+ *
34
+ * Defaults to space separated words.
35
+ */
20
36
  wordDefinition?: RegExp;
37
+ /**
38
+ * Show suggestions even if the trigger character is not present.
39
+ *
40
+ * Defaults to false.
41
+ */
21
42
  alwaysShowSuggestions?: boolean;
43
+ /**
44
+ * Defines the sorting function used when showing results.
45
+ *
46
+ * Defaults to the identity function.
47
+ */
22
48
  sortKey?: (result: string) => string;
23
49
  }
24
50
  interface SuggestEnabledInputOptions {
51
+ /**
52
+ * The text to show when no input is present.
53
+ *
54
+ * Defaults to the empty string.
55
+ */
25
56
  placeholderText?: string;
57
+ /**
58
+ * Initial value to be shown
59
+ */
26
60
  value?: string;
61
+ /**
62
+ * Context key tracking the focus state of this element
63
+ */
27
64
  focusContextKey?: IContextKey<boolean>;
65
+ /**
66
+ * Place overflow widgets inside an external DOM node.
67
+ * Defaults to an internal DOM node.
68
+ */
28
69
  overflowWidgetsDomNode?: HTMLElement;
70
+ /**
71
+ * Override the default styling of the input.
72
+ */
29
73
  styleOverrides?: ISuggestEnabledInputStyleOverrides;
30
74
  }
31
75
  export interface ISuggestEnabledInputStyleOverrides {