Skip to content

Commit

Permalink
Merge branch 'master' into liweitian/fixbug1
Browse files Browse the repository at this point in the history
  • Loading branch information
boydc2014 authored Dec 27, 2019
2 parents 11c41ef + 0fdeb46 commit b0d1cf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions BotProject/CSharp/BotProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.4" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.6.0" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.6.0" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Adaptive" Version="4.6.0-preview2" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Debugging" Version="4.6.0-preview2" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Declarative" Version="4.6.0-preview2" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.6.0" />
<PackageReference Include="Microsoft.Bot.Connector" Version="4.6.0" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.7.0" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.7.0" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Adaptive" Version="4.7.0-preview" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Debugging" Version="4.7.0-preview" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Declarative" Version="4.7.0-preview" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.7.0" />
<PackageReference Include="Microsoft.Bot.Connector" Version="4.7.0" />
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.66">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const CodeEditor: React.FC<CodeEditorProps> = props => {
const { fileId } = props;
const file = lgFiles?.find(({ id }) => id === 'common');
const [diagnostics, setDiagnostics] = useState(get(file, 'diagnostics', []));
const [content, setContent] = useState('');
const [errorMsg, setErrorMsg] = useState('');
const [lgEditor, setLgEditor] = useState<editor.IStandaloneCodeEditor | null>(null);

Expand All @@ -47,6 +46,7 @@ const CodeEditor: React.FC<CodeEditorProps> = props => {
const line = Array.isArray(hashLine) ? +hashLine[0] : typeof hashLine === 'string' ? +hashLine : undefined;

const inlineMode = !!template;
const [content, setContent] = useState(template?.body || file?.content);

useEffect(() => {
// reset content with file.content's initial state
Expand Down

0 comments on commit b0d1cf2

Please sign in to comment.