mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-23 00:29:35 +01:00
adding event and operator completion item kinds, #2628
This commit is contained in:
@@ -196,6 +196,8 @@ export type SuggestionType = 'method'
|
||||
| 'interface'
|
||||
| 'module'
|
||||
| 'property'
|
||||
| 'event'
|
||||
| 'operator'
|
||||
| 'unit'
|
||||
| 'value'
|
||||
| 'constant'
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-action-orange{fill:#c27d1a}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M14 1.414L9.414 6H14v1.414L5.414 16H3v-1.234L5.371 10H2V8.764L6.382 0H14v1.414z" id="outline" style="display: none;"/><path class="icon-vs-action-orange" d="M7 7h6l-8 8H4l2.985-6H3l4-8h6L7 7z" id="iconBg"/></svg>
|
||||
|
After Width: | Height: | Size: 499 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#2d2d30}.icon-vs-out{fill:#2d2d30}.icon-vs-action-orange{fill:#e8ab53}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M14 1.414L9.414 6H14v1.414L5.414 16H3v-1.234L5.371 10H2V8.764L6.382 0H14v1.414z" id="outline" style="display: none;"/><path class="icon-vs-action-orange" d="M7 7h6l-8 8H4l2.985-6H3l4-8h6L7 7z" id="iconBg"/></svg>
|
||||
|
After Width: | Height: | Size: 499 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-fg{fill:#f0eff1}.icon-vs-action-blue{fill:#00539c}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M16 16H0V0h16v16z" id="outline" style="display: none;"/><path class="icon-vs-action-blue" d="M1 1v14h14V1H1zm6 12H3v-1h4v1zm0-3H3V9h4v1zm0-5H5v2H4V5H2V4h2V2h1v2h2v1zm3.281 8H8.719l3-4h1.563l-3.001 4zM14 5H9V4h5v1z" id="iconBg"/><path class="icon-vs-fg" d="M7 5H5v2H4V5H2V4h2V2h1v2h2v1zm7-1H9v1h5V4zM7 9H3v1h4V9zm0 3H3v1h4v-1zm3.281 1l3-4h-1.563l-3 4h1.563z" id="iconFg" style="display: none;"/></svg>
|
||||
|
After Width: | Height: | Size: 710 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>.icon-canvas-transparent{opacity:0;fill:#2d2d30}.icon-vs-out{fill:#2d2d30}.icon-vs-fg{fill:#2b282e}.icon-vs-action-blue{fill:#75beff}</style><path class="icon-canvas-transparent" d="M16 16H0V0h16v16z" id="canvas"/><path class="icon-vs-out" d="M16 16H0V0h16v16z" id="outline" style="display: none;"/><path class="icon-vs-action-blue" d="M1 1v14h14V1H1zm6 12H3v-1h4v1zm0-3H3V9h4v1zm0-5H5v2H4V5H2V4h2V2h1v2h2v1zm3.281 8H8.719l3-4h1.563l-3.001 4zM14 5H9V4h5v1z" id="iconBg"/><path class="icon-vs-fg" d="M7 5H5v2H4V5H2V4h2V2h1v2h2v1zm7-1H9v1h5V4zM7 9H3v1h4V9zm0 3H3v1h4v-1zm3.281 1l3-4h-1.563l-3 4h1.563z" id="iconFg" style="display: none;"/></svg>
|
||||
|
After Width: | Height: | Size: 710 B |
@@ -128,6 +128,8 @@
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.function,
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.constructor { background-image: url('Method_16x.svg'); }
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.field { background-image: url('Field_16x.svg'); }
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.event { background-image: url('Event_16x_vscode.svg'); }
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.operator { background-image: url('Operator_16x_vscode.svg'); }
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.variable { background-image: url('LocalVariable_16x_vscode.svg'); }
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.class { background-image: url('Class_16x.svg'); }
|
||||
.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.interface { background-image: url('Interface_16x.svg'); }
|
||||
@@ -252,6 +254,12 @@
|
||||
.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.field,
|
||||
.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.field { background-image: url('Field_inverse_16x.svg'); }
|
||||
|
||||
.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.event,
|
||||
.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.event { background-image: url('Event_16x_vscode_inverse.svg'); }
|
||||
|
||||
.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.operator,
|
||||
.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.operator { background-image: url('Operator_16x_vscode_inverse.svg'); }
|
||||
|
||||
.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.variable,
|
||||
.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.variable { background-image: url('LocalVariable_16x_vscode_inverse.svg'); }
|
||||
|
||||
|
||||
Vendored
+6
-4
@@ -2425,20 +2425,22 @@ declare module 'vscode' {
|
||||
Variable = 5,
|
||||
Class = 6,
|
||||
Interface = 7,
|
||||
Struct = 21,
|
||||
Module = 8,
|
||||
Property = 9,
|
||||
Unit = 10,
|
||||
Value = 11,
|
||||
Constant = 20,
|
||||
Enum = 12,
|
||||
EnumMember = 19,
|
||||
Keyword = 13,
|
||||
Snippet = 14,
|
||||
Color = 15,
|
||||
Reference = 17,
|
||||
File = 16,
|
||||
Folder = 18
|
||||
Folder = 18,
|
||||
EnumMember = 19,
|
||||
Constant = 20,
|
||||
Struct = 21,
|
||||
Event = 22,
|
||||
Operator = 23
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -287,6 +287,8 @@ export const CompletionItemKind = {
|
||||
case types.CompletionItemKind.File: return 'file';
|
||||
case types.CompletionItemKind.Reference: return 'reference';
|
||||
case types.CompletionItemKind.Folder: return 'folder';
|
||||
case types.CompletionItemKind.Event: return 'event';
|
||||
case types.CompletionItemKind.Operator: return 'operator';
|
||||
}
|
||||
return 'property';
|
||||
},
|
||||
|
||||
@@ -872,7 +872,9 @@ export enum CompletionItemKind {
|
||||
Folder = 18,
|
||||
EnumMember = 19,
|
||||
Constant = 20,
|
||||
Struct = 21
|
||||
Struct = 21,
|
||||
Event = 22,
|
||||
Operator = 23
|
||||
}
|
||||
|
||||
export class CompletionItem {
|
||||
|
||||
Reference in New Issue
Block a user