1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
18 | if (k2 === undefined) k2 = k;
|
19 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
20 | }) : (function(o, m, k, k2) {
|
21 | if (k2 === undefined) k2 = k;
|
22 | o[k2] = m[k];
|
23 | }));
|
24 | var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
25 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
26 | };
|
27 | Object.defineProperty(exports, "__esModule", { value: true });
|
28 | exports.NavigatableWidgetOpenHandler = void 0;
|
29 | const widget_open_handler_1 = require("./widget-open-handler");
|
30 | __exportStar(require("./navigatable-types"), exports);
|
31 | class NavigatableWidgetOpenHandler extends widget_open_handler_1.WidgetOpenHandler {
|
32 | createWidgetOptions(uri, options) {
|
33 | return {
|
34 | kind: 'navigatable',
|
35 | uri: this.serializeUri(uri)
|
36 | };
|
37 | }
|
38 | serializeUri(uri) {
|
39 | if (uri.scheme === 'file') {
|
40 | return uri.withoutFragment().normalizePath().toString();
|
41 | }
|
42 | else {
|
43 | return uri.withoutFragment().toString();
|
44 | }
|
45 | }
|
46 | }
|
47 | exports.NavigatableWidgetOpenHandler = NavigatableWidgetOpenHandler;
|
48 |
|
\ | No newline at end of file |