monaco-editor-core 0.55.0-dev-20251017 → 0.55.0-dev-20251019

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.
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.55.0-dev-20251017(7102eff2098bf09217a0b0fb256f17964d9f79da)
3
+ * Version: 0.55.0-dev-20251019(7102eff2098bf09217a0b0fb256f17964d9f79da)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------*/
@@ -80,5 +80,19 @@ export var ThemeIcon;
80
80
  return ti1.id === ti2.id && ti1.color?.id === ti2.color?.id;
81
81
  }
82
82
  ThemeIcon.isEqual = isEqual;
83
+ /**
84
+ * Returns whether specified icon is defined and has 'file' ID.
85
+ */
86
+ function isFile(icon) {
87
+ return icon?.id === Codicon.file.id;
88
+ }
89
+ ThemeIcon.isFile = isFile;
90
+ /**
91
+ * Returns whether specified icon is defined and has 'folder' ID.
92
+ */
93
+ function isFolder(icon) {
94
+ return icon?.id === Codicon.folder.id;
95
+ }
96
+ ThemeIcon.isFolder = isFolder;
83
97
  })(ThemeIcon || (ThemeIcon = {}));
84
98
  //# sourceMappingURL=themables.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/base/common/themables.ts","vs/base/common/themables.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAQxC,MAAM,KAAW,UAAU,CAI1B;AAJD,WAAiB,UAAU;IAC1B,SAAgB,YAAY,CAAC,GAAY;QACxC,OAAO,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAoB,GAAI,CAAC,EAAE,KAAK,QAAQ,CAAC;IACrF,CAAC;IAFe,uBAAY,eAE3B,CAAA;AACF,CAAC,EAJgB,UAAU,KAAV,UAAU,QAI1B;AAQD,MAAM,KAAW,SAAS,CAwEzB;AAxED,WAAiB,SAAS;IACZ,yBAAe,GAAG,cAAc,CAAC;IACjC,4BAAkB,GAAG,eAAe,CAAC;IACrC,gCAAsB,GAAG,YAAY,CAAC;IACtC,2BAAiB,GAAG,eAAe,CAAC;IAEjD,MAAM,gBAAgB,GAAG,IAAI,MAAM,CAAC,KAAK,UAAA,kBAAkB,KAAK,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IANe,qBAAW,cAM1B,CAAA;IAED,SAAgB,OAAO,CAAC,GAAc,EAAE,GAAc;QACrD,OAAO,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC;IAC7D,CAAC;IAFe,iBAAO,UAEtB,CAAA;AAEF,CAAC,EAxEgB,SAAS,KAAT,SAAS,QAwEzB","file":"themables.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { Codicon } from './codicons.js';\n\nexport type IconIdentifier = string;\n\nexport interface ThemeColor {\n\tid: string;\n}\n\nexport namespace ThemeColor {\n\texport function isThemeColor(obj: unknown): obj is ThemeColor {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeColor>obj).id === 'string';\n\t}\n}\n\n\nexport interface ThemeIcon {\n\treadonly id: string;\n\treadonly color?: ThemeColor;\n}\n\nexport namespace ThemeIcon {\n\texport const iconNameSegment = '[A-Za-z0-9]+';\n\texport const iconNameExpression = '[A-Za-z0-9-]+';\n\texport const iconModifierExpression = '~[A-Za-z]+';\n\texport const iconNameCharacter = '[A-Za-z0-9~-]';\n\n\tconst ThemeIconIdRegex = new RegExp(`^(${iconNameExpression})(${iconModifierExpression})?$`);\n\n\texport function asClassNameArray(icon: ThemeIcon): string[] {\n\t\tconst match = ThemeIconIdRegex.exec(icon.id);\n\t\tif (!match) {\n\t\t\treturn asClassNameArray(Codicon.error);\n\t\t}\n\t\tconst [, id, modifier] = match;\n\t\tconst classNames = ['codicon', 'codicon-' + id];\n\t\tif (modifier) {\n\t\t\tclassNames.push('codicon-modifier-' + modifier.substring(1));\n\t\t}\n\t\treturn classNames;\n\t}\n\n\texport function asClassName(icon: ThemeIcon): string {\n\t\treturn asClassNameArray(icon).join(' ');\n\t}\n\n\texport function asCSSSelector(icon: ThemeIcon): string {\n\t\treturn '.' + asClassNameArray(icon).join('.');\n\t}\n\n\texport function isThemeIcon(obj: unknown): obj is ThemeIcon {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeIcon>obj).id === 'string' && (typeof (<ThemeIcon>obj).color === 'undefined' || ThemeColor.isThemeColor((<ThemeIcon>obj).color));\n\t}\n\n\tconst _regexFromString = new RegExp(`^\\\\$\\\\((${ThemeIcon.iconNameExpression}(?:${ThemeIcon.iconModifierExpression})?)\\\\)$`);\n\n\texport function fromString(str: string): ThemeIcon | undefined {\n\t\tconst match = _regexFromString.exec(str);\n\t\tif (!match) {\n\t\t\treturn undefined;\n\t\t}\n\t\tconst [, name] = match;\n\t\treturn { id: name };\n\t}\n\n\texport function fromId(id: string): ThemeIcon {\n\t\treturn { id };\n\t}\n\n\texport function modify(icon: ThemeIcon, modifier: 'disabled' | 'spin' | undefined): ThemeIcon {\n\t\tlet id = icon.id;\n\t\tconst tildeIndex = id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\tid = id.substring(0, tildeIndex);\n\t\t}\n\t\tif (modifier) {\n\t\t\tid = `${id}~${modifier}`;\n\t\t}\n\t\treturn { id };\n\t}\n\n\texport function getModifier(icon: ThemeIcon): string | undefined {\n\t\tconst tildeIndex = icon.id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\treturn icon.id.substring(tildeIndex + 1);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\texport function isEqual(ti1: ThemeIcon, ti2: ThemeIcon): boolean {\n\t\treturn ti1.id === ti2.id && ti1.color?.id === ti2.color?.id;\n\t}\n\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { Codicon } from './codicons.js';\n\nexport type IconIdentifier = string;\n\nexport interface ThemeColor {\n\tid: string;\n}\n\nexport namespace ThemeColor {\n\texport function isThemeColor(obj: unknown): obj is ThemeColor {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeColor>obj).id === 'string';\n\t}\n}\n\n\nexport interface ThemeIcon {\n\treadonly id: string;\n\treadonly color?: ThemeColor;\n}\n\nexport namespace ThemeIcon {\n\texport const iconNameSegment = '[A-Za-z0-9]+';\n\texport const iconNameExpression = '[A-Za-z0-9-]+';\n\texport const iconModifierExpression = '~[A-Za-z]+';\n\texport const iconNameCharacter = '[A-Za-z0-9~-]';\n\n\tconst ThemeIconIdRegex = new RegExp(`^(${iconNameExpression})(${iconModifierExpression})?$`);\n\n\texport function asClassNameArray(icon: ThemeIcon): string[] {\n\t\tconst match = ThemeIconIdRegex.exec(icon.id);\n\t\tif (!match) {\n\t\t\treturn asClassNameArray(Codicon.error);\n\t\t}\n\t\tconst [, id, modifier] = match;\n\t\tconst classNames = ['codicon', 'codicon-' + id];\n\t\tif (modifier) {\n\t\t\tclassNames.push('codicon-modifier-' + modifier.substring(1));\n\t\t}\n\t\treturn classNames;\n\t}\n\n\texport function asClassName(icon: ThemeIcon): string {\n\t\treturn asClassNameArray(icon).join(' ');\n\t}\n\n\texport function asCSSSelector(icon: ThemeIcon): string {\n\t\treturn '.' + asClassNameArray(icon).join('.');\n\t}\n\n\texport function isThemeIcon(obj: unknown): obj is ThemeIcon {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeIcon>obj).id === 'string' && (typeof (<ThemeIcon>obj).color === 'undefined' || ThemeColor.isThemeColor((<ThemeIcon>obj).color));\n\t}\n\n\tconst _regexFromString = new RegExp(`^\\\\$\\\\((${ThemeIcon.iconNameExpression}(?:${ThemeIcon.iconModifierExpression})?)\\\\)$`);\n\n\texport function fromString(str: string): ThemeIcon | undefined {\n\t\tconst match = _regexFromString.exec(str);\n\t\tif (!match) {\n\t\t\treturn undefined;\n\t\t}\n\t\tconst [, name] = match;\n\t\treturn { id: name };\n\t}\n\n\texport function fromId(id: string): ThemeIcon {\n\t\treturn { id };\n\t}\n\n\texport function modify(icon: ThemeIcon, modifier: 'disabled' | 'spin' | undefined): ThemeIcon {\n\t\tlet id = icon.id;\n\t\tconst tildeIndex = id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\tid = id.substring(0, tildeIndex);\n\t\t}\n\t\tif (modifier) {\n\t\t\tid = `${id}~${modifier}`;\n\t\t}\n\t\treturn { id };\n\t}\n\n\texport function getModifier(icon: ThemeIcon): string | undefined {\n\t\tconst tildeIndex = icon.id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\treturn icon.id.substring(tildeIndex + 1);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\texport function isEqual(ti1: ThemeIcon, ti2: ThemeIcon): boolean {\n\t\treturn ti1.id === ti2.id && ti1.color?.id === ti2.color?.id;\n\t}\n\n}\n"]}
1
+ {"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/base/common/themables.ts","vs/base/common/themables.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAQxC,MAAM,KAAW,UAAU,CAI1B;AAJD,WAAiB,UAAU;IAC1B,SAAgB,YAAY,CAAC,GAAY;QACxC,OAAO,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAoB,GAAI,CAAC,EAAE,KAAK,QAAQ,CAAC;IACrF,CAAC;IAFe,uBAAY,eAE3B,CAAA;AACF,CAAC,EAJgB,UAAU,KAAV,UAAU,QAI1B;AAQD,MAAM,KAAW,SAAS,CAqFzB;AArFD,WAAiB,SAAS;IACZ,yBAAe,GAAG,cAAc,CAAC;IACjC,4BAAkB,GAAG,eAAe,CAAC;IACrC,gCAAsB,GAAG,YAAY,CAAC;IACtC,2BAAiB,GAAG,eAAe,CAAC;IAEjD,MAAM,gBAAg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AAC;QAC1C,CAAC;QACD,OAAO,SAAS,CAAC;IAClB,CAAC;IANe,qBAAW,cAM1B,CAAA;IAED,SAAgB,OAAO,CAAC,GAAc,EAAE,GAAc;QACrD,OAAO,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC;IAC7D,CAAC;IAFe,iBAAO,UAEtB,CAAA;IAED;;OAEG;IACH,SAAgB,MAAM,CAAC,IAA2B;QACjD,OAAO,IAAI,EAAE,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;IACrC,CAAC;IAFe,gBAAM,SAErB,CAAA;IAED;;OAEG;IACH,SAAgB,QAAQ,CAAC,IAA2B;QACnD,OAAO,IAAI,EAAE,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IACvC,CAAC;IAFe,kBAAQ,WAEvB,CAAA;AACF,CAAC,EArFgB,SAAS,KAAT,SAAS,QAqFzB","file":"themables.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { Codicon } from './codicons.js';\n\nexport type IconIdentifier = string;\n\nexport interface ThemeColor {\n\tid: string;\n}\n\nexport namespace ThemeColor {\n\texport function isThemeColor(obj: unknown): obj is ThemeColor {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeColor>obj).id === 'string';\n\t}\n}\n\n\nexport interface ThemeIcon {\n\treadonly id: string;\n\treadonly color?: ThemeColor;\n}\n\nexport namespace ThemeIcon {\n\texport const iconNameSegment = '[A-Za-z0-9]+';\n\texport const iconNameExpression = '[A-Za-z0-9-]+';\n\texport const iconModifierExpression = '~[A-Za-z]+';\n\texport const iconNameCharacter = '[A-Za-z0-9~-]';\n\n\tconst ThemeIconIdRegex = new RegExp(`^(${iconNameExpression})(${iconModifierExpression})?$`);\n\n\texport function asClassNameArray(icon: ThemeIcon): string[] {\n\t\tconst match = ThemeIconIdRegex.exec(icon.id);\n\t\tif (!match) {\n\t\t\treturn asClassNameArray(Codicon.error);\n\t\t}\n\t\tconst [, id, modifier] = match;\n\t\tconst classNames = ['codicon', 'codicon-' + id];\n\t\tif (modifier) {\n\t\t\tclassNames.push('codicon-modifier-' + modifier.substring(1));\n\t\t}\n\t\treturn classNames;\n\t}\n\n\texport function asClassName(icon: ThemeIcon): string {\n\t\treturn asClassNameArray(icon).join(' ');\n\t}\n\n\texport function asCSSSelector(icon: ThemeIcon): string {\n\t\treturn '.' + asClassNameArray(icon).join('.');\n\t}\n\n\texport function isThemeIcon(obj: unknown): obj is ThemeIcon {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeIcon>obj).id === 'string' && (typeof (<ThemeIcon>obj).color === 'undefined' || ThemeColor.isThemeColor((<ThemeIcon>obj).color));\n\t}\n\n\tconst _regexFromString = new RegExp(`^\\\\$\\\\((${ThemeIcon.iconNameExpression}(?:${ThemeIcon.iconModifierExpression})?)\\\\)$`);\n\n\texport function fromString(str: string): ThemeIcon | undefined {\n\t\tconst match = _regexFromString.exec(str);\n\t\tif (!match) {\n\t\t\treturn undefined;\n\t\t}\n\t\tconst [, name] = match;\n\t\treturn { id: name };\n\t}\n\n\texport function fromId(id: string): ThemeIcon {\n\t\treturn { id };\n\t}\n\n\texport function modify(icon: ThemeIcon, modifier: 'disabled' | 'spin' | undefined): ThemeIcon {\n\t\tlet id = icon.id;\n\t\tconst tildeIndex = id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\tid = id.substring(0, tildeIndex);\n\t\t}\n\t\tif (modifier) {\n\t\t\tid = `${id}~${modifier}`;\n\t\t}\n\t\treturn { id };\n\t}\n\n\texport function getModifier(icon: ThemeIcon): string | undefined {\n\t\tconst tildeIndex = icon.id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\treturn icon.id.substring(tildeIndex + 1);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\texport function isEqual(ti1: ThemeIcon, ti2: ThemeIcon): boolean {\n\t\treturn ti1.id === ti2.id && ti1.color?.id === ti2.color?.id;\n\t}\n\n\t/**\n\t * Returns whether specified icon is defined and has 'file' ID.\n\t */\n\texport function isFile(icon: ThemeIcon | undefined): boolean {\n\t\treturn icon?.id === Codicon.file.id;\n\t}\n\n\t/**\n\t * Returns whether specified icon is defined and has 'folder' ID.\n\t */\n\texport function isFolder(icon: ThemeIcon | undefined): boolean {\n\t\treturn icon?.id === Codicon.folder.id;\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { Codicon } from './codicons.js';\n\nexport type IconIdentifier = string;\n\nexport interface ThemeColor {\n\tid: string;\n}\n\nexport namespace ThemeColor {\n\texport function isThemeColor(obj: unknown): obj is ThemeColor {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeColor>obj).id === 'string';\n\t}\n}\n\n\nexport interface ThemeIcon {\n\treadonly id: string;\n\treadonly color?: ThemeColor;\n}\n\nexport namespace ThemeIcon {\n\texport const iconNameSegment = '[A-Za-z0-9]+';\n\texport const iconNameExpression = '[A-Za-z0-9-]+';\n\texport const iconModifierExpression = '~[A-Za-z]+';\n\texport const iconNameCharacter = '[A-Za-z0-9~-]';\n\n\tconst ThemeIconIdRegex = new RegExp(`^(${iconNameExpression})(${iconModifierExpression})?$`);\n\n\texport function asClassNameArray(icon: ThemeIcon): string[] {\n\t\tconst match = ThemeIconIdRegex.exec(icon.id);\n\t\tif (!match) {\n\t\t\treturn asClassNameArray(Codicon.error);\n\t\t}\n\t\tconst [, id, modifier] = match;\n\t\tconst classNames = ['codicon', 'codicon-' + id];\n\t\tif (modifier) {\n\t\t\tclassNames.push('codicon-modifier-' + modifier.substring(1));\n\t\t}\n\t\treturn classNames;\n\t}\n\n\texport function asClassName(icon: ThemeIcon): string {\n\t\treturn asClassNameArray(icon).join(' ');\n\t}\n\n\texport function asCSSSelector(icon: ThemeIcon): string {\n\t\treturn '.' + asClassNameArray(icon).join('.');\n\t}\n\n\texport function isThemeIcon(obj: unknown): obj is ThemeIcon {\n\t\treturn !!obj && typeof obj === 'object' && typeof (<ThemeIcon>obj).id === 'string' && (typeof (<ThemeIcon>obj).color === 'undefined' || ThemeColor.isThemeColor((<ThemeIcon>obj).color));\n\t}\n\n\tconst _regexFromString = new RegExp(`^\\\\$\\\\((${ThemeIcon.iconNameExpression}(?:${ThemeIcon.iconModifierExpression})?)\\\\)$`);\n\n\texport function fromString(str: string): ThemeIcon | undefined {\n\t\tconst match = _regexFromString.exec(str);\n\t\tif (!match) {\n\t\t\treturn undefined;\n\t\t}\n\t\tconst [, name] = match;\n\t\treturn { id: name };\n\t}\n\n\texport function fromId(id: string): ThemeIcon {\n\t\treturn { id };\n\t}\n\n\texport function modify(icon: ThemeIcon, modifier: 'disabled' | 'spin' | undefined): ThemeIcon {\n\t\tlet id = icon.id;\n\t\tconst tildeIndex = id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\tid = id.substring(0, tildeIndex);\n\t\t}\n\t\tif (modifier) {\n\t\t\tid = `${id}~${modifier}`;\n\t\t}\n\t\treturn { id };\n\t}\n\n\texport function getModifier(icon: ThemeIcon): string | undefined {\n\t\tconst tildeIndex = icon.id.lastIndexOf('~');\n\t\tif (tildeIndex !== -1) {\n\t\t\treturn icon.id.substring(tildeIndex + 1);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\texport function isEqual(ti1: ThemeIcon, ti2: ThemeIcon): boolean {\n\t\treturn ti1.id === ti2.id && ti1.color?.id === ti2.color?.id;\n\t}\n\n\t/**\n\t * Returns whether specified icon is defined and has 'file' ID.\n\t */\n\texport function isFile(icon: ThemeIcon | undefined): boolean {\n\t\treturn icon?.id === Codicon.file.id;\n\t}\n\n\t/**\n\t * Returns whether specified icon is defined and has 'folder' ID.\n\t */\n\texport function isFolder(icon: ThemeIcon | undefined): boolean {\n\t\treturn icon?.id === Codicon.folder.id;\n\t}\n}\n"]}
@@ -5,7 +5,7 @@
5
5
 
6
6
  /* stylelint-disable layer-checker */
7
7
 
8
- .monaco-workbench .workbench-hover {
8
+ .monaco-hover.workbench-hover {
9
9
  position: relative;
10
10
  font-size: 13px;
11
11
  line-height: 19px;
@@ -20,45 +20,45 @@
20
20
  box-shadow: 0 2px 8px var(--vscode-widget-shadow);
21
21
  }
22
22
 
23
- .monaco-workbench .workbench-hover .monaco-action-bar .action-item .codicon {
23
+ .monaco-hover.workbench-hover .monaco-action-bar .action-item .codicon {
24
24
  /* Given our font-size, adjust action icons accordingly */
25
25
  width: 13px;
26
26
  height: 13px;
27
27
  }
28
28
 
29
- .monaco-workbench .workbench-hover hr {
29
+ .monaco-hover.workbench-hover hr {
30
30
  border-bottom: none;
31
31
  }
32
32
 
33
- .monaco-workbench .workbench-hover.compact {
33
+ .monaco-hover.workbench-hover.compact {
34
34
  font-size: 12px;
35
35
  }
36
36
 
37
- .monaco-workbench .workbench-hover.compact .monaco-action-bar .action-item .codicon {
37
+ .monaco-hover.workbench-hover.compact .monaco-action-bar .action-item .codicon {
38
38
  /* Given our font-size, adjust action icons accordingly */
39
39
  width: 12px;
40
40
  height: 12px;
41
41
  }
42
42
 
43
- .monaco-workbench .workbench-hover.compact .hover-contents {
43
+ .monaco-hover.workbench-hover.compact .hover-contents {
44
44
  padding: 2px 8px;
45
45
  }
46
46
 
47
- .monaco-workbench .workbench-hover-container.locked .workbench-hover {
47
+ .workbench-hover-container.locked .monaco-hover.workbench-hover {
48
48
  outline: 1px solid var(--vscode-editorHoverWidget-border);
49
49
  }
50
- .monaco-workbench .workbench-hover-container:focus-within.locked .workbench-hover {
50
+ .workbench-hover-container:focus-within.locked .monaco-hover.workbench-hover {
51
51
  outline-color: var(--vscode-focusBorder);
52
52
  }
53
53
 
54
- .monaco-workbench .workbench-hover-pointer {
54
+ .workbench-hover-pointer {
55
55
  position: absolute;
56
56
  /* Must be higher than workbench hover z-index */
57
57
  z-index: 41;
58
58
  pointer-events: none;
59
59
  }
60
60
 
61
- .monaco-workbench .workbench-hover-pointer:after {
61
+ .workbench-hover-pointer:after {
62
62
  content: '';
63
63
  position: absolute;
64
64
  width: 5px;
@@ -67,77 +67,77 @@
67
67
  border-right: 1px solid var(--vscode-editorHoverWidget-border);
68
68
  border-bottom: 1px solid var(--vscode-editorHoverWidget-border);
69
69
  }
70
- .monaco-workbench .workbench-hover-container:not(:focus-within).locked .workbench-hover-pointer:after {
70
+ .workbench-hover-container:not(:focus-within).locked .workbench-hover-pointer:after {
71
71
  width: 4px;
72
72
  height: 4px;
73
73
  border-right-width: 2px;
74
74
  border-bottom-width: 2px;
75
75
  }
76
- .monaco-workbench .workbench-hover-container:focus-within .workbench-hover-pointer:after {
76
+ .workbench-hover-container:focus-within .workbench-hover-pointer:after {
77
77
  border-right: 1px solid var(--vscode-focusBorder);
78
78
  border-bottom: 1px solid var(--vscode-focusBorder);
79
79
  }
80
80
 
81
- .monaco-workbench .workbench-hover-pointer.left { left: -3px; }
82
- .monaco-workbench .workbench-hover-pointer.right { right: 3px; }
83
- .monaco-workbench .workbench-hover-pointer.top { top: -3px; }
84
- .monaco-workbench .workbench-hover-pointer.bottom { bottom: 3px; }
81
+ .workbench-hover-pointer.left { left: -3px; }
82
+ .workbench-hover-pointer.right { right: 3px; }
83
+ .workbench-hover-pointer.top { top: -3px; }
84
+ .workbench-hover-pointer.bottom { bottom: 3px; }
85
85
 
86
- .monaco-workbench .workbench-hover-pointer.left:after {
86
+ .workbench-hover-pointer.left:after {
87
87
  transform: rotate(135deg);
88
88
  }
89
89
 
90
- .monaco-workbench .workbench-hover-pointer.right:after {
90
+ .workbench-hover-pointer.right:after {
91
91
  transform: rotate(315deg);
92
92
  }
93
93
 
94
- .monaco-workbench .workbench-hover-pointer.top:after {
94
+ .workbench-hover-pointer.top:after {
95
95
  transform: rotate(225deg);
96
96
  }
97
97
 
98
- .monaco-workbench .workbench-hover-pointer.bottom:after {
98
+ .workbench-hover-pointer.bottom:after {
99
99
  transform: rotate(45deg);
100
100
  }
101
101
 
102
- .monaco-workbench .workbench-hover a {
102
+ .monaco-hover.workbench-hover a {
103
103
  color: var(--vscode-textLink-foreground);
104
104
  }
105
105
 
106
- .monaco-workbench .workbench-hover a:focus {
106
+ .monaco-hover.workbench-hover a:focus {
107
107
  outline: 1px solid;
108
108
  outline-offset: -1px;
109
109
  text-decoration: underline;
110
110
  outline-color: var(--vscode-focusBorder);
111
111
  }
112
112
 
113
- .monaco-workbench .workbench-hover a.codicon:focus,
114
- .monaco-workbench .workbench-hover a.monaco-button:focus {
113
+ .monaco-hover.workbench-hover a.codicon:focus,
114
+ .monaco-hover.workbench-hover a.monaco-button:focus {
115
115
  text-decoration: none;
116
116
  }
117
117
 
118
- .monaco-workbench .workbench-hover a:hover,
119
- .monaco-workbench .workbench-hover a:active {
118
+ .monaco-hover.workbench-hover a:hover,
119
+ .monaco-hover.workbench-hover a:active {
120
120
  color: var(--vscode-textLink-activeForeground);
121
121
  }
122
122
 
123
- .monaco-workbench .workbench-hover code {
123
+ .monaco-hover.workbench-hover code {
124
124
  background: var(--vscode-textCodeBlock-background);
125
125
  }
126
126
 
127
- .monaco-workbench .workbench-hover .hover-row .actions {
127
+ .monaco-hover.workbench-hover .hover-row .actions {
128
128
  background: var(--vscode-editorHoverWidget-statusBarBackground);
129
129
  }
130
130
 
131
- .monaco-workbench .workbench-hover.right-aligned {
131
+ .monaco-hover.workbench-hover.right-aligned {
132
132
  /* The context view service wraps strangely when it's right up against the edge without this */
133
133
  left: 1px;
134
134
  }
135
135
 
136
- .monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions {
136
+ .monaco-hover.workbench-hover.right-aligned .hover-row.status-bar .actions {
137
137
  flex-direction: row-reverse;
138
138
  }
139
139
 
140
- .monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container {
140
+ .monaco-hover.workbench-hover.right-aligned .hover-row.status-bar .actions .action-container {
141
141
  margin-right: 0;
142
142
  margin-left: 16px;
143
143
  }
@@ -149,6 +149,9 @@ let HoverService = class HoverService extends Disposable {
149
149
  }
150
150
  _createHover(options, skipLastFocusedUpdate) {
151
151
  this._currentDelayedHover = undefined;
152
+ if (options.content === '') {
153
+ return undefined;
154
+ }
152
155
  if (this._currentHover?.isLocked) {
153
156
  return undefined;
154
157
  }
@@ -517,8 +520,8 @@ registerSingleton(IHoverService, HoverService, 1 /* InstantiationType.Delayed */
517
520
  registerThemingParticipant((theme, collector) => {
518
521
  const hoverBorder = theme.getColor(editorHoverBorder);
519
522
  if (hoverBorder) {
520
- collector.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${hoverBorder.transparent(0.5)}; }`);
521
- collector.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${hoverBorder.transparent(0.5)}; }`);
523
+ collector.addRule(`.monaco-hover.workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${hoverBorder.transparent(0.5)}; }`);
524
+ collector.addRule(`.monaco-hover.workbench-hover hr { border-top: 1px solid ${hoverBorder.transparent(0.5)}; }`);
522
525
  }
523
526
  });
524
527
  //# sourceMappingURL=hoverService.js.map