diff --git a/extensions/simple-browser/package.json b/extensions/simple-browser/package.json
index bcd83d483d3..bfb949031f9 100644
--- a/extensions/simple-browser/package.json
+++ b/extensions/simple-browser/package.json
@@ -67,8 +67,7 @@
"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose"
},
"dependencies": {
- "@vscode/extension-telemetry": "0.6.2",
- "vscode-nls": "^5.2.0"
+ "@vscode/extension-telemetry": "0.6.2"
},
"devDependencies": {
"@types/vscode-webview": "^1.57.0",
diff --git a/extensions/simple-browser/src/extension.ts b/extensions/simple-browser/src/extension.ts
index 6d3ded5131b..576029578f2 100644
--- a/extensions/simple-browser/src/extension.ts
+++ b/extensions/simple-browser/src/extension.ts
@@ -4,7 +4,6 @@
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
-import * as nls from 'vscode-nls';
import { SimpleBrowserManager } from './simpleBrowserManager';
import { SimpleBrowserView } from './simpleBrowserView';
@@ -13,8 +12,6 @@ declare class URL {
hostname: string;
}
-const localize = nls.loadMessageBundle();
-
const openApiCommand = 'simpleBrowser.api.open';
const showCommand = 'simpleBrowser.show';
@@ -48,8 +45,8 @@ export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(vscode.commands.registerCommand(showCommand, async (url?: string) => {
if (!url) {
url = await vscode.window.showInputBox({
- placeHolder: localize('simpleBrowser.show.placeholder', "https://example.com"),
- prompt: localize('simpleBrowser.show.prompt', "Enter url to visit")
+ placeHolder: vscode.l10n.t("https://example.com"),
+ prompt: vscode.l10n.t("Enter url to visit")
});
}
@@ -84,7 +81,7 @@ export function activate(context: vscode.ExtensionContext) {
}
}, {
schemes: ['http', 'https'],
- label: localize('openTitle', "Open in simple browser"),
+ label: vscode.l10n.t("Open in simple browser"),
}));
}
diff --git a/extensions/simple-browser/src/simpleBrowserView.ts b/extensions/simple-browser/src/simpleBrowserView.ts
index c5d8a68184e..ca1953be725 100644
--- a/extensions/simple-browser/src/simpleBrowserView.ts
+++ b/extensions/simple-browser/src/simpleBrowserView.ts
@@ -4,10 +4,8 @@
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
-import * as nls from 'vscode-nls';
import { Disposable } from './dispose';
-const localize = nls.loadMessageBundle();
export interface ShowOptions {
readonly preserveFocus?: boolean;
@@ -17,7 +15,7 @@ export interface ShowOptions {
export class SimpleBrowserView extends Disposable {
public static readonly viewType = 'simpleBrowser.view';
- private static readonly title = localize('view.title', "Simple Browser");
+ private static readonly title = vscode.l10n.t("Simple Browser");
private readonly _webviewPanel: vscode.WebviewPanel;
@@ -134,15 +132,15 @@ export class SimpleBrowserView extends Disposable {