Skip to content

Commit

Permalink
vscode-extension: uses createTreeView for source path view (references
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed May 18, 2019
1 parent 15dd757 commit 6268750
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vscode-extension/src/main/ts/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
import findJava from "./utils/findJava";
import validateJava from "./utils/validateJava";
import validateEditorSDK from "./utils/validateEditorSDK";
import ActionScriptSourcePathDataProvider from "./utils/ActionScriptSourcePathDataProvider";
import ActionScriptSourcePathDataProvider, { ActionScriptSourcePath } from "./utils/ActionScriptSourcePathDataProvider";
import ActionScriptTaskProvider from "./utils/ActionScriptTaskProvider";
import SWFDebugConfigurationProvider from "./utils/SWFDebugConfigurationProvider";
import SWCTextDocumentContentProvider from "./utils/SWCTextDocumentContentProvider";
Expand Down Expand Up @@ -53,6 +53,7 @@ let editorSDKHome: string;
let javaExecutablePath: string;
let frameworkSDKHome: string;
let sdkStatusBarItem: vscode.StatusBarItem;
let sourcePathView: vscode.TreeView<ActionScriptSourcePath> = null;
let sourcePathDataProvider: ActionScriptSourcePathDataProvider = null;
let actionScriptTaskProvider: ActionScriptTaskProvider = null;
let debugConfigurationProvider: SWFDebugConfigurationProvider = null;
Expand Down Expand Up @@ -246,8 +247,8 @@ export function activate(context: vscode.ExtensionContext)

let rootPath = vscode.workspace.workspaceFolders[0].uri.fsPath;
sourcePathDataProvider = new ActionScriptSourcePathDataProvider(rootPath);
let sourcePathDisposable = vscode.window.registerTreeDataProvider("actionScriptSourcePaths", sourcePathDataProvider);
context.subscriptions.push(sourcePathDisposable);
sourcePathView = vscode.window.createTreeView("actionScriptSourcePaths", {treeDataProvider: sourcePathDataProvider});
context.subscriptions.push(sourcePathView);

actionScriptTaskProvider = new ActionScriptTaskProvider(context, javaExecutablePath);
let taskProviderDisposable = vscode.tasks.registerTaskProvider("actionscript", actionScriptTaskProvider);
Expand Down

0 comments on commit 6268750

Please sign in to comment.