8000 refactor: rename webview-ui to webview · semgrep/semgrep-vscode@61c9692 · GitHub
[go: up one dir, main page]

Skip to content

Commit 61c9692

Browse files
committed
refactor: rename webview-ui to webview
This can contain more than just UI content (and it should: e.g., IPC definitions, etc...).
1 parent e800177 commit 61c9692

31 files changed

+6
-6
lines changed

src/commands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from "./lspExtensions";
1313
import { restartLsp } from "./lsp";
1414
import { encodeUri } from "./showAstDocument";
15-
import { ViewResults } from "./webview-ui/types/results";
15+
import { ViewResults } from "./webviews/types/results";
1616
import { applyFixAndSave, replaceAll } from "./utils";
1717
import { handleSearch } from "./search";
1818
import { Disposable } from "vscode-languageclient";

src/search.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
search,
66
searchOngoing,
77
} from "./lspExtensions";
8-
import { ViewResults } from "./webview-ui/types/results";
8+
import { ViewResults } from "./webviews/types/results";
99
import * as vscode from "vscode";
1010
import { Environment } from "./env";
1111

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const DEFAULT_LSP_LOG_FOLDER = Uri.file(tmpdir());
66
import { OutputChannel } from "vscode";
77
import * as vscode from "vscode";
88

9-
import { ViewResults } from "./webview-ui/types/results";
9+
import { ViewResults } from "./webviews/types/results";
1010
import * as semver from "semver";
1111
import { getVersionInfo } from "./constants";
1212

src/views/webview.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
extensionToWebviewCommand,
66
SearchLanguage,
77
webviewToExtensionCommand,
8-
} from "../webview-ui/interface";
9-
import { SUPPORTED_LANGS } from "../webview-ui/interface";
8+
} from "../webviews/interface";
9+
import { SUPPORTED_LANGS } from "../webviews/interface";
1010

1111
export class SemgrepSearchWebviewProvider
1212
implements vscode.WebviewViewProvider
File renamed without changes.
File renamed without changes.

src/webview-ui/README.md renamed to src/webviews/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `webview-ui` Directory
1+
# `webview` Directory
22

33
This directory contains all of the code that will be executed within the webview context. It can be thought of as the place where all the "frontend" code of a webview is contained.
44

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
0