@codingame/monaco-vscode-language-detection-worker-service-override 34.1.2 → 35.0.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-language-detection-worker-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - language-detection-worker service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "35.0.0",
|
|
19
19
|
"@vscode/vscode-languagedetection": "npm:@codingame/vscode-languagedetection@1.0.23"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js
CHANGED
|
@@ -88,10 +88,10 @@ let LanguageDetectionStatusContribution = class LanguageDetectionStatusContribut
|
|
|
88
88
|
const existing = editorModel.getLanguageId();
|
|
89
89
|
if (lang && lang !== existing && skip[existing] !== lang) {
|
|
90
90
|
const detectedName = this._languageService.getLanguageName(lang) || lang;
|
|
91
|
-
const tooltip = this._keybindingService.appendKeybinding(( localize(
|
|
91
|
+
const tooltip = this._keybindingService.appendKeybinding(( localize(11504, "Accept Detected Language: {0}", detectedName)), detectLanguageCommandId);
|
|
92
92
|
const props = {
|
|
93
|
-
name: ( localize(
|
|
94
|
-
ariaLabel: ( localize(
|
|
93
|
+
name: ( localize(11505, "Language Detection")),
|
|
94
|
+
ariaLabel: ( localize(11506, "Change to Detected Language: {0}", lang)),
|
|
95
95
|
tooltip,
|
|
96
96
|
command: detectLanguageCommandId,
|
|
97
97
|
text: "$(lightbulb-autofix)"
|
|
@@ -126,7 +126,7 @@ registerAction2(class extends Action2 {
|
|
|
126
126
|
constructor() {
|
|
127
127
|
super({
|
|
128
128
|
id: detectLanguageCommandId,
|
|
129
|
-
title: ( localize2(
|
|
129
|
+
title: ( localize2(11507, "Detect Language from Content")),
|
|
130
130
|
f1: true,
|
|
131
131
|
precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.toNegated()), EditorContextKeys.editorTextFocus)),
|
|
132
132
|
keybinding: {
|
|
@@ -146,7 +146,7 @@ registerAction2(class extends Action2 {
|
|
|
146
146
|
if (lang) {
|
|
147
147
|
editor.getModel()?.setLanguage(lang, LanguageDetectionLanguageEventSource);
|
|
148
148
|
} else {
|
|
149
|
-
notificationService.warn(( localize(
|
|
149
|
+
notificationService.warn(( localize(11508, "Unable to detect editor language")));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
}
|