diff --git a/extensions/azuremonitor/package.json b/extensions/azuremonitor/package.json
index 3756b0526a..8ec6cd7583 100644
--- a/extensions/azuremonitor/package.json
+++ b/extensions/azuremonitor/package.json
@@ -188,6 +188,28 @@
],
"configuration": "./language-configuration.json"
}
+ ],
+ "grammars": [
+ {
+ "language": "loganalytics",
+ "scopeName": "source.azuremonitor",
+ "path": "./syntaxes/azuremonitor.tmLanguage"
+ }
+ ],
+ "themes": [
+ {
+ "label": "[Kuskus] Azure Monitor Logs (Dark)",
+ "uiTheme": "vs-dark",
+ "path": "./themes/kuskus-azuremonitorlogs-dark.json"
+ },
+ {
+ "label": "[Kuskus] Azure Monitor Logs 2 (Dark)",
+ "uiTheme": "vs-dark",
+ "path": "./themes/kuskus-azuremonitorlogs-2-dark.json"
+ }
+ ],
+ "outputChannels": [
+ "AzureMonitorLogs"
]
},
"scripts": {
diff --git a/extensions/azuremonitor/syntaxes/azuremonitor.tmLanguage b/extensions/azuremonitor/syntaxes/azuremonitor.tmLanguage
index 15c627641e..e43af1ed4d 100644
--- a/extensions/azuremonitor/syntaxes/azuremonitor.tmLanguage
+++ b/extensions/azuremonitor/syntaxes/azuremonitor.tmLanguage
@@ -3,17 +3,16 @@
scopeName
- source.kusto
+ source.azuremonitor
fileTypes
- kql
- kusto
- csl
+ azuremonitor
+ loganalytics
name
- kusto file
+ azure monitor logs file
patterns
+
+
+
+ name
+ Keyword operators
+ scope
+ keyword.operator.special.kusto
+ settings
+
+ foreground
+ #44C89E
+
+
+
+ name
+ Keyword operators
+ scope
+ keyword.operator
+ settings
+
+ foreground
+ #4E84D4
+
+
+
+ name
+ Keyword control
+ scope
+ keyword.control
+ settings
+
+ foreground
+ #4E84D4
+
+
+
+ name
+ Storage type
+ scope
+ storage.type
+ settings
+
+ foreground
+ #4E84D4
+
+
+
+
+ name
+ Function arguments and parameters
+ scope
+ variable.parameter
+ settings
+
+ foreground
+ #92CAEA
+
+
+
+ name
+ Lambda definitions
+ scope
+ entity.function.name.lambda.kusto
+ settings
+
+ foreground
+ #92CAEA
+
+
+
+ name
+ Library function
+ scope
+ support.function
+ settings
+
+ fontStyle
+
+ foreground
+ #4E84D4
+
+
+
+ name
+ Invalid (deprecated, illegal)
+ scope
+ invalid
+ settings
+
+ fontStyle
+ underline
+ foreground
+ #FF0000
+
+
+
+
+
+ name
+ diff.header
+ scope
+ meta.diff, meta.diff.header
+ settings
+
+ foreground
+ #75715E
+
+
+
+ name
+ diff.deleted
+ scope
+ markup.deleted
+ settings
+
+ foreground
+ #F92672
+
+
+
+ name
+ diff.inserted
+ scope
+ markup.inserted
+ settings
+
+ foreground
+ #A6E22E
+
+
+
+ name
+ diff.changed
+ scope
+ markup.changed
+ settings
+
+ foreground
+ #E6DB74
+
+
+
+ uuid
+ D8D5E82E-3D5B-46B5-B38E-8C841C21347D
+
+
diff --git a/extensions/azuremonitor/themes/Kuskus.Dark.tmTheme b/extensions/azuremonitor/themes/Kuskus.Dark.tmTheme
new file mode 100644
index 0000000000..ba7edaea34
--- /dev/null
+++ b/extensions/azuremonitor/themes/Kuskus.Dark.tmTheme
@@ -0,0 +1,404 @@
+
+
+
+
+ name
+ [Kuskus] Azure Monitor Logs (Dark)
+ settings
+
+
+ settings
+
+ background
+ #272822
+ caret
+ #F8F8F0
+ foreground
+ #F8F8F2
+ invisibles
+ #3B3A32
+ lineHighlight
+ #3E3D32
+ selection
+ #49483E
+ findHighlight
+ #FFE792
+ findHighlightForeground
+ #000000
+ selectionBorder
+ #222218
+ activeGuide
+ #9D550FB0
+
+ bracketsForeground
+ #F8F8F2A5
+ bracketsOptions
+ underline
+
+ bracketContentsForeground
+ #F8F8F2A5
+ bracketContentsOptions
+ underline
+
+ tagsOptions
+ stippled_underline
+
+
+
+ name
+ Comment
+ scope
+ comment
+ settings
+
+ foreground
+ #75715E
+
+
+
+ name
+ String
+ scope
+ string
+ settings
+
+ foreground
+ #E6DB74
+
+
+
+ name
+ Number
+ scope
+ constant.numeric
+ settings
+
+ foreground
+ #AE81FF
+
+
+
+
+ name
+ Built-in constant
+ scope
+ constant.language
+ settings
+
+ foreground
+ #AE81FF
+
+
+
+ name
+ User-defined constant
+ scope
+ constant.character, constant.other
+ settings
+
+ foreground
+ #AE81FF
+
+
+
+ name
+ Variable
+ scope
+ variable
+ settings
+
+ fontStyle
+
+
+
+
+ name
+ Keyword
+ scope
+ keyword
+ settings
+
+ foreground
+ #F92672
+
+
+
+ name
+ Keyword operator words
+ scope
+ keyword.operator.word
+ settings
+
+ foreground
+ #FD971F
+
+
+
+ name
+ Storage
+ scope
+ storage
+ settings
+
+ fontStyle
+
+ foreground
+ #F92672
+
+
+
+ name
+ Storage type
+ scope
+ storage.type
+ settings
+
+ foreground
+ #66D9EF
+
+
+
+ name
+ Class name
+ scope
+ entity.name.class
+ settings
+
+ fontStyle
+ underline
+ foreground
+ #A6E22E
+
+
+
+ name
+ Inherited class
+ scope
+ entity.other.inherited-class
+ settings
+
+ fontStyle
+ italic underline
+ foreground
+ #A6E22E
+
+
+
+ name
+ Function name
+ scope
+ entity.name.function
+ settings
+
+ fontStyle
+
+ foreground
+ #A6E22E
+
+
+
+ name
+ Function argument
+ scope
+ variable.parameter
+ settings
+
+ fontStyle
+ italic
+ foreground
+ #FD971F
+
+ name
+ TODO better semantic scope
+ scope
+ variable.language
+ settings
+
+ foreground
+ #FD971F
+
+
+
+ name
+ Tag name
+ scope
+ entity.name.tag
+ settings
+
+ fontStyle
+
+ foreground
+ #F92672
+
+
+
+ name
+ Tag attribute
+ scope
+ entity.other.attribute-name
+ settings
+
+ fontStyle
+
+ foreground
+ #A6E22E
+
+
+
+ name
+ Library function
+ scope
+ support.function
+ settings
+
+ fontStyle
+
+ foreground
+ #A6E22E
+
+
+
+ name
+ Library constant
+ scope
+ support.constant
+ settings
+
+ fontStyle
+
+ foreground
+ #66D9EF
+
+
+
+ name
+ Library class/type
+ scope
+ support.type, support.class
+ settings
+
+ fontStyle
+ italic
+ foreground
+ #66D9EF
+
+
+
+ name
+ Library variable
+ scope
+ support.other.variable
+ settings
+
+ fontStyle
+
+
+
+
+ name
+ Invalid
+ scope
+ invalid
+ settings
+
+ background
+
+ fontStyle
+
+ foreground
+ #F8F8F0
+
+
+
+ name
+ Invalid deprecated
+ scope
+ invalid.deprecated
+ settings
+
+ fontStyle
+ underline
+ foreground
+ #FF0000
+
+
+
+ name
+ JSON String
+ scope
+ meta.structure.dictionary.json string.quoted.double.json
+ settings
+
+ foreground
+ #CFCFC2
+
+
+
+
+ name
+ diff.header
+ scope
+ meta.diff, meta.diff.header
+ settings
+
+ foreground
+ #75715E
+
+
+
+ name
+ diff.deleted
+ scope
+ markup.deleted
+ settings
+
+ foreground
+ #F92672
+
+
+
+ name
+ diff.inserted
+ scope
+ markup.inserted
+ settings
+
+ foreground
+ #A6E22E
+
+
+
+ name
+ diff.changed
+ scope
+ markup.changed
+ settings
+
+ foreground
+ #E6DB74
+
+
+
+
+ scope
+ constant.numeric.line-number.find-in-files - match
+ settings
+
+ foreground
+ #AE81FFA0
+
+
+
+ scope
+ entity.name.filename.find-in-files
+ settings
+
+ foreground
+ #E6DB74
+
+
+
+ uuid
+ D8D5E82E-3D5B-46B5-B38E-8C841C21347D
+
+
diff --git a/extensions/azuremonitor/themes/kuskus-azuremonitorlogs-2-dark.json b/extensions/azuremonitor/themes/kuskus-azuremonitorlogs-2-dark.json
new file mode 100644
index 0000000000..462c1f90b9
--- /dev/null
+++ b/extensions/azuremonitor/themes/kuskus-azuremonitorlogs-2-dark.json
@@ -0,0 +1,12 @@
+{
+ "tokenColors": "./Kuskus.AzureMonitorLogs.2.Dark.tmTheme",
+ "colors": {
+ "editor.background": "#222224",
+ "editorCursor.foreground": "#F8F8F0",
+ "editor.foreground": "#F8F8F2",
+ "editorWhitespace.foreground": "#3B3A32",
+ "editor.lineHighlightBackground": "#3D4247",
+ "editor.selectionBackground": "#1268AC"
+ },
+ "name": "[Kuskus] Azure Monitor Logs 2 (Dark)"
+}
diff --git a/extensions/azuremonitor/themes/kuskus-azuremonitorlogs-dark.json b/extensions/azuremonitor/themes/kuskus-azuremonitorlogs-dark.json
new file mode 100644
index 0000000000..af7cfc7599
--- /dev/null
+++ b/extensions/azuremonitor/themes/kuskus-azuremonitorlogs-dark.json
@@ -0,0 +1,12 @@
+{
+ "tokenColors": "./Kuskus.Dark.tmTheme",
+ "colors": {
+ "editor.background": "#272822",
+ "editorCursor.foreground": "#F8F8F0",
+ "editor.foreground": "#F8F8F2",
+ "editorWhitespace.foreground": "#3B3A32",
+ "editor.lineHighlightBackground": "#3E3D32",
+ "editor.selectionBackground": "#49483E"
+ },
+ "name": "[Kuskus] Azure Monitor Logs (Dark)"
+}