Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Respect locale passed through 'initialize' call for microsoft/vscode-…
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Sep 25, 2017
1 parent e60bafc commit cb111be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"noice-json-rpc": "1.0.1",
"request-light": "^0.1.0",
"source-map": "^0.5.6",
"vscode-debugadapter": "^1.24.0-pre.1",
"vscode-debugprotocol": "^1.24.0-pre.0",
"vscode-debugadapter": "^1.24.0",
"vscode-debugprotocol": "^1.24.0",
"vscode-nls": "^2.0.2",
"ws": "^1.1.1"
},
Expand Down
6 changes: 5 additions & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {EagerSourceMapTransformer} from '../transformers/eagerSourceMapTransform
import * as path from 'path';

import * as nls from 'vscode-nls';
const localize = nls.config(process.env.VSCODE_NLS_CONFIG)();
let localize = nls.config(process.env.VSCODE_NLS_CONFIG)();

interface IPropCount {
indexedVariables: number;
Expand Down Expand Up @@ -188,6 +188,10 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
throw errors.pathFormat();
}

if (args.locale) {
localize = nls.config({ locale: args.locale })();
}

// because session bypasses dispatchRequest
if (typeof args.linesStartAt1 === 'boolean') {
(<any>this)._clientLinesStartAt1 = args.linesStartAt1;
Expand Down

0 comments on commit cb111be

Please sign in to comment.