@codingame/monaco-vscode-language-detection-worker-service-override 8.0.0 → 8.0.2
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": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@8.0.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.2",
|
|
33
33
|
"@vscode/vscode-languagedetection": "npm:@codingame/vscode-languagedetection@1.0.23"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js
CHANGED
|
@@ -75,15 +75,15 @@ let LanguageDetectionStatusContribution = class LanguageDetectionStatusContribut
|
|
|
75
75
|
const existing = editorModel.getLanguageId();
|
|
76
76
|
if (lang && lang !== existing && skip[existing] !== lang) {
|
|
77
77
|
const detectedName = this._languageService.getLanguageName(lang) || lang;
|
|
78
|
-
let tooltip = ( localize(
|
|
78
|
+
let tooltip = ( localize(2133, "Accept Detected Language: {0}", detectedName));
|
|
79
79
|
const keybinding = this._keybindingService.lookupKeybinding(detectLanguageCommandId);
|
|
80
80
|
const label = keybinding?.getLabel();
|
|
81
81
|
if (label) {
|
|
82
82
|
tooltip += ` (${label})`;
|
|
83
83
|
}
|
|
84
84
|
const props = {
|
|
85
|
-
name: ( localize(
|
|
86
|
-
ariaLabel: ( localize(
|
|
85
|
+
name: ( localize(2134, "Language Detection")),
|
|
86
|
+
ariaLabel: ( localize(2135, "Change to Detected Language: {0}", lang)),
|
|
87
87
|
tooltip,
|
|
88
88
|
command: detectLanguageCommandId,
|
|
89
89
|
text: '$(lightbulb-autofix)',
|
|
@@ -115,7 +115,7 @@ registerAction2(class extends Action2 {
|
|
|
115
115
|
constructor() {
|
|
116
116
|
super({
|
|
117
117
|
id: detectLanguageCommandId,
|
|
118
|
-
title: ( localize2(
|
|
118
|
+
title: ( localize2(2136, "Detect Language from Content")),
|
|
119
119
|
f1: true,
|
|
120
120
|
precondition: ( (ContextKeyExpr.and(
|
|
121
121
|
(NOTEBOOK_EDITOR_EDITABLE.toNegated()),
|
|
@@ -136,7 +136,7 @@ registerAction2(class extends Action2 {
|
|
|
136
136
|
editor.getModel()?.setLanguage(lang, LanguageDetectionLanguageEventSource);
|
|
137
137
|
}
|
|
138
138
|
else {
|
|
139
|
-
notificationService.warn(( localize(
|
|
139
|
+
notificationService.warn(( localize(2137, "Unable to detect editor language")));
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|